Public Types | |
enum | modeType { mtStatic, mtFlightPath } |
Public Member Functions | |
scene (const objectRegistry &obr, const word &name) | |
Construct from components. More... | |
virtual | ~scene () |
Destructor. More... | |
const HashPtrTable< DataEntry< vector >, word > & | colours () const |
Return the colours. More... | |
label | frameIndex () const |
Return the current frame index. More... | |
scalar | position () const |
Return the current position (in range 0-1) More... | |
void | read (const dictionary &dict) |
void | initialise (vtkRenderer *renderer, const word &outputName) |
bool | loop (vtkRenderer *renderer) |
Main control loop. More... | |
void | saveImage (vtkRenderWindow *renderWindow) const |
Save image to file. More... | |
Data Fields | |
NamedEnum< modeType, 2 > | modeTypeNames_ |
Protected Member Functions | |
void | setCamera (vtkRenderer *renderer, const bool override) const |
string | frameIndexStr () const |
Protected Attributes | |
HashPtrTable< DataEntry< vector >, word > | colours_ |
Colours. More... | |
modeType | mode_ |
Mode. More... | |
autoPtr< DataEntry< point > > | cameraPosition_ |
Position. More... | |
autoPtr< DataEntry< point > > | cameraFocalPoint_ |
Focal point. More... | |
autoPtr< DataEntry< vector > > | cameraUp_ |
Up direction. More... | |
autoPtr< DataEntry< scalar > > | cameraZoom_ |
Zoom level. More... | |
autoPtr< DataEntry< scalar > > | cameraViewAngle_ |
View angle. More... | |
boundBox | clipBox_ |
Clipping box. More... | |
bool | parallelProjection_ |
Parallel projection flag. More... | |
label | nFrameTotal_ |
Number of frames. More... | |
scalar | position_ |
Position [0-1]. More... | |
scalar | dPosition_ |
Change in position per frame. More... | |
label | currentFrameI_ |
Index of current frame. More... | |
word | outputName_ |
Name prefix of output. More... | |
Private Member Functions | |
void | readCamera (const dictionary &dict) |
Read camera properties. More... | |
void | readColours (const dictionary &dict) |
Read solour properties. More... | |
scene (const scene &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const scene &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const objectRegistry & | obr_ |
Reference to the object registry. More... | |
const word | name_ |
Object name. More... | |
scene | ( | const objectRegistry & | obr, |
const word & | name | ||
) |
|
private |
Read camera properties.
Definition at line 58 of file scene.C.
References Foam::abort(), scene::cameraFocalPoint_, scene::cameraPosition_, scene::cameraUp_, scene::cameraViewAngle_, scene::cameraZoom_, scene::clipBox_, dict, scene::dPosition_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), scene::mode_, scene::modeTypeNames_, scene::mtFlightPath, scene::mtStatic, scene::nFrameTotal_, scene::parallelProjection_, scene::position_, and NamedEnum< Enum, nEnum >::read().
|
private |
Read solour properties.
Definition at line 157 of file scene.C.
References Foam::constant::universal::c, dict, forAll, and dictionary::toc().
|
private |
Disallow default bitwise assignment.
|
protected |
Definition at line 241 of file scene.C.
References Foam::compressible::New(), Foam::pos(), dimensioned::value(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
protected |
Definition at line 268 of file scene.C.
References Foam::name().
const Foam::HashPtrTable< Foam::DataEntry< Foam::vector >, Foam::word > & colours | ( | ) | const |
Foam::label frameIndex | ( | ) | const |
Foam::scalar position | ( | ) | const |
void read | ( | const dictionary & | dict | ) |
Definition at line 327 of file scene.C.
References dict, and dictionary::subDict().
void initialise | ( | vtkRenderer * | renderer, |
const word & | outputName | ||
) |
Definition at line 168 of file scene.C.
References Foam::max(), Foam::min(), Foam::compressible::New(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
void saveImage | ( | vtkRenderWindow * | renderWindow | ) | const |
Save image to file.
Definition at line 364 of file scene.C.
References Foam::endl(), Foam::Info, Foam::mkDir(), and Foam::compressible::New().
Definition at line 67 of file scene.H.
Referenced by scene::readCamera().
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
Parallel projection flag.
Definition at line 131 of file scene.H.
Referenced by scene::readCamera().
|
protected |
|
protected |
|
protected |
Change in position per frame.
Definition at line 140 of file scene.H.
Referenced by scene::readCamera().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.