#include <Layer.hpp>
Inheritance diagram for vrvis::Layer:
Public Member Functions | |
Constructor & Destructor | |
Layer (const float cSizeX, const float cSizeY) | |
Constructs a Layer of the given size. | |
~Layer (void) | |
Destructor. | |
Components | |
void | addComponent (LayerComponent *pComponent, const float cRelativeOriginX=0.0f, const float cRelativeOriginY=0.0f, const float cRelativeSizeX=1.0f, const float cRelativeSizeY=1.0f) |
Adds a LayerComponent at a certain position to this Layer. | |
void | removeComponent (LayerComponent *pComponent) |
Removes a certain LayerComponent from this Layer. | |
Accessors | |
float | getSizeX (void) |
Get Layer width (horizontal/X size). | |
float | getSizeY (void) |
Get Layer height (vertical/Y size). | |
const std::list< LayerComponent * > & | getComponentList (void) |
Get STL list of LayerComponents included in this Layer. | |
void | moveTo (const float cX, const float cY, const float cZ) |
Transformation Move the Layer to a certain position in 3D space. | |
void | rotateDegrees (const float cDegX, const float cDegY, const float cDegZ) |
Rotate the Layer around the coordinate axes (Euler angles). | |
Forwarded VR Juggler Callbacks | |
virtual void | contextInit (void) |
Initialize GL display lists. | |
virtual void | draw (void) |
Draw all embedded LayerComponents. |
|
Constructs a Layer object out of given horizontal and vertical sizes.
|
|
Destructor. |
|
Adds a given LayerComponent object to this Layer. The Component is positioned at the given relative origin and scaled to the given relative size. If origin and size are omitted, the Component fills the whole Layer.
|
|
Compiles a GL display list for this Layer's border. Reimplemented from vrvis::Drawable.
|
|
Draws all embedded visible LayerComponents at their relative position and - if the Layer is selected - the Layer's border.
Implements vrvis::Drawable.
|
|
Get an STL list of all LayerComponents embedded in this Layer.
|
|
Get Layer width.
|
|
Get Layer height.
|
|
Move the Layer to a certain position in 3D space.
|
|
Removes the given LayerComponent from this Layer.
|
|
Rotate the Layer by certain degrees around each local coordinate axis (Euler angles).
|