| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/overlayimagegl.h>

Public Member Functions | |
| OverlayImageGL () | |
| OverlayImageGL (SO< SceneThing > parentThing) | |
| virtual | ~OverlayImageGL () |
| int | addImage (SO< Image > overlayImage, const Vector &minPosition, const Vector &maxPosition, bool showHide=true) |
| bool | removeOverlayItem (int i) |
| int | getSize () const |
| SO< Image > | getImageAt (int i) const |
| Vector | getMinPosition (int i) const |
| Vector | getMaxPosition (int i) const |
| SO< ColorAttribute > | getColorAttribute (int i) const |
| bool | hideOverlayItem (int i) |
| Sets the alpha value of the corresponding overlay item to 0.0 - so it becomes transparent. | |
| bool | showOverlayItem (int i) |
| Sets the alpha value of the corresponding overlay item to 1.0 - so it becomes opaque. | |
| VRS_TYPEINFO (OverlayImageGL, SceneThing) | |
| VRS_SERIALIZABLE (OverlayImageGL) | |
| OverlayImageGL () | |
| OverlayImageGL (SceneThing *parentThing) | |
| virtual | ~OverlayImageGL () |
| int | addImage (Image *overlayImage, Vector &minPosition, Vector &maxPosition, bool showHide=true) |
| int | addText (Font *font, const std::string &text, Vector &minPosition=Vector(0, 0, 0), Vector &maxPosition=Vector(0, 0, 0), Text::AlignmentH alignmentH=Text::LEFT, Text::AlignmentV alignmentV=Text::BOTTOM, Color textColor=Color(0, 0, 0, 1)) |
| bool | removeOverlayItem (int i) |
| int | getSize () |
| Image * | getImageAt (int i) |
| Text * | getTextAt (int i) |
| Vector | getMinPosition (int i) |
| Vector | getMaxPosition (int i) |
| ColorAttribute * | getColorAttribute (int i) |
| bool | hideOverlayItem (int i) |
| bool | showOverlayItem (int i) |
| VRS_TYPEINFO (OverlayImageGL, SceneThing) | |
Enables 2D overlays over a 3d scene. Could be used for navigation symbols or TV-like logo or title overlays. Overlay items can later be accessed via their corresponding index. The ColorAttribute of each item can be used to change the color or alpha values of the items These ColorAttributes can also be used to smoothly fade in /out the items using the VRS::ColorLinearEffect class
Enables 2D overlays over a 3d scene. Could be used for navigation symbols or TV-like logo or title overlays.
| VRS::OverlayImageGL::OverlayImageGL | ( | ) |
| VRS::OverlayImageGL::OverlayImageGL | ( | SO< SceneThing > | parentThing | ) |
| virtual VRS::OverlayImageGL::~OverlayImageGL | ( | ) | [virtual] |
| VRS::OverlayImageGL::OverlayImageGL | ( | ) |
| VRS::OverlayImageGL::OverlayImageGL | ( | SceneThing * | parentThing | ) |
| virtual VRS::OverlayImageGL::~OverlayImageGL | ( | ) | [virtual] |
| int VRS::OverlayImageGL::addImage | ( | SO< Image > | overlayImage, | |
| const Vector & | minPosition, | |||
| const Vector & | maxPosition, | |||
| bool | showHide = true | |||
| ) |
| overlayImage | An image to be added to the overlay. | |
| minPosition | The lower left corner position of the image relative to the screen in screen coordinates ([0.0 ... 1.0]) | |
| maxPosition | The upper right corner position of the image relative to the screen in screen coordinates ([0.0 ... 1.0]) | |
| showHide | Determines whether the image will be visible when included into the overlay.Set to false if you want to fade in the text later (e.g. using ColorLinearEffect) |
| bool VRS::OverlayImageGL::removeOverlayItem | ( | int | i | ) |
| int VRS::OverlayImageGL::getSize | ( | ) | const |
| Vector VRS::OverlayImageGL::getMinPosition | ( | int | i | ) | const |
| Vector VRS::OverlayImageGL::getMaxPosition | ( | int | i | ) | const |
| SO<ColorAttribute> VRS::OverlayImageGL::getColorAttribute | ( | int | i | ) | const |
| bool VRS::OverlayImageGL::hideOverlayItem | ( | int | i | ) |
Sets the alpha value of the corresponding overlay item to 0.0 - so it becomes transparent.
| bool VRS::OverlayImageGL::showOverlayItem | ( | int | i | ) |
Sets the alpha value of the corresponding overlay item to 1.0 - so it becomes opaque.
| VRS::OverlayImageGL::VRS_TYPEINFO | ( | OverlayImageGL | , | |
| SceneThing | ||||
| ) |
| VRS::OverlayImageGL::VRS_SERIALIZABLE | ( | OverlayImageGL | ) |
| int VRS::OverlayImageGL::addImage | ( | Image * | overlayImage, | |
| Vector & | minPosition, | |||
| Vector & | maxPosition, | |||
| bool | showHide = true | |||
| ) |
| int VRS::OverlayImageGL::addText | ( | Font * | font, | |
| const std::string & | text, | |||
| Vector & | minPosition = Vector(0, 0, 0), |
|||
| Vector & | maxPosition = Vector(0, 0, 0), |
|||
| Text::AlignmentH | alignmentH = Text::LEFT, |
|||
| Text::AlignmentV | alignmentV = Text::BOTTOM, |
|||
| Color | textColor = Color(0, 0, 0, 1) | |||
| ) |
| bool VRS::OverlayImageGL::removeOverlayItem | ( | int | i | ) |
| int VRS::OverlayImageGL::getSize | ( | ) |
| Image* VRS::OverlayImageGL::getImageAt | ( | int | i | ) |
| Text* VRS::OverlayImageGL::getTextAt | ( | int | i | ) |
| Vector VRS::OverlayImageGL::getMinPosition | ( | int | i | ) |
| Vector VRS::OverlayImageGL::getMaxPosition | ( | int | i | ) |
| ColorAttribute* VRS::OverlayImageGL::getColorAttribute | ( | int | i | ) |
| bool VRS::OverlayImageGL::hideOverlayItem | ( | int | i | ) |
| bool VRS::OverlayImageGL::showOverlayItem | ( | int | i | ) |
| VRS::OverlayImageGL::VRS_TYPEINFO | ( | OverlayImageGL | , | |
| SceneThing | ||||
| ) |