#include <LayerComponent.hpp>
Inheritance diagram for vrvis::LayerComponent:

Public Member Functions | |
Constructor & Destructor | |
| LayerComponent (RasterData *pRasterData0, eColor color0, RasterData *pRasterData1=0, eColor color1=NONE, RasterData *pRasterData2=0, eColor color2=NONE) | |
| Constructor that takes one or more RasterData objects and their color interpretation. | |
| ~LayerComponent (void) | |
| Destructor. | |
Accessors | |
| float | getRelativeOriginX (void) const |
| Get the relative origin of this Component, X coordinate. | |
| float | getRelativeOriginY (void) const |
| Get the relative origin of this Component, Y coordinate. | |
| float | getRelativeSizeX (void) const |
| Get the relative width of this Component. | |
| float | getRelativeSizeY (void) const |
| Get the relative height of this Component. | |
| double | getLowerTexLimit (void) const |
| Get the lower clamping limit of this Component's Textures. | |
| double | getUpperTexLimit (void) const |
| Get the upper clamping limit of this Component's Textures. | |
| const std::vector< Texture * > & | getTextures (void) const |
| Get an STL vector of this Component's Textures. | |
Transformation | |
| void | moveTo (const float cRelativeOriginX, const float cRelativeOriginY) |
| Move this Component inside its Layer. | |
| void | resizeTo (const float cRelativeSizeX, const float cRelativeSizeY) |
| Resize this Component inside its Layer. | |
Forwarded VR Juggler Callbacks | |
| virtual void | init (void) |
| Prepare RasterData and Textures. | |
| virtual void | contextInit (void) |
| Build Textures and create own GL display lists. | |
| virtual void | contextUpdate (void) |
| Rebuild Textures. | |
| virtual void | draw (void) |
| Do nothing. Real drawing done by drawTextures(). | |
|
||||||||||||||||||||||||||||
|
Constructs a LayerComponent out of up to three objects implementing the RasterData interface and a connected color interpretation for each one. The default arguments make it possible to create LayerComponents out of one, two or all three primary colors.
|
|
|
Destructor. |
|
|
Builds GL textures for all owned Texture objects and creates a GL display list for the Component's border. Reimplemented from vrvis::Drawable.
|
|
|
Rebuilds the GL texture for all owned Texture objects. Reimplemented from vrvis::Drawable.
|
|
|
Inherited method that exceptionally does nothing. The "real" drawing is done in drawTextures(), which is permanently called by Layer::draw(). Through this design a LayerComponent is not drawn - as every other Drawable - through its inherited draw() method, but is dependent on its surrounding Layer object, which draws the Component in the correct relative position. Implements vrvis::Drawable.
|
|
|
Get the lower clamping limit of this Component's Textures.
|
|
|
Get this Component's relative origin, X coordinate.
|
|
|
Get this Component's relative origin, Y coordinate.
|
|
|
Get this Component's relative width.
|
|
|
Get this Component's relative height.
|
|
|
Get an STL vector of this Component's Textures.
|
|
|
Get the upper clamping limit of this Component's Textures.
|
|
|
Prepares suitable Texture objects, loads the RasterData and fills the Textures with data. Reimplemented from vrvis::Drawable.
|
|
||||||||||||
|
Move the Component to the given relative position.
|
|
||||||||||||
|
Resize the Component to the given relative size.
|
1.3.8