|
| Overlay (const String &name) |
| Constructor: do not call direct, use OverlayManager::create. More...
|
|
virtual | ~Overlay () |
|
void | _findVisibleObjects (Camera *cam, RenderQueue *queue, Viewport *vp) |
| Internal method to put the overlay contents onto the render queue. More...
|
|
void | _getWorldTransforms (Matrix4 *xform) const |
| Used to transform the overlay when scrolling, scaling etc. More...
|
|
void | _notifyOrigin (const String &origin) |
| Notify this overlay of it's origin. More...
|
|
void | add2D (OverlayContainer *cont) |
| Adds a 2D 'container' to the overlay. More...
|
|
void | add3D (SceneNode *node) |
| Adds a node capable of holding 3D objects to the overlay. More...
|
|
void | clear () |
| Clears the overlay of all attached items. More...
|
|
virtual OverlayElement * | findElementAt (Real x, Real y) |
| This returns a OverlayElement at position x,y. More...
|
|
const OverlayContainerList & | get2DElements () const |
| Returns all 2D elements in this manager. More...
|
|
OverlayContainer * | getChild (const String &name) |
|
const String & | getName (void) const |
| Gets the name of this overlay. More...
|
|
const String & | getOrigin (void) const |
| Get the origin of this overlay, e.g. More...
|
|
const Radian & | getRotate (void) const |
| Gets the rotation applied to this overlay, in degrees. More...
|
|
Real | getScaleX (void) const |
| Gets the current X scale value. More...
|
|
Real | getScaleY (void) const |
| Gets the current Y scale value. More...
|
|
Real | getScrollX (void) const |
| Gets the current X scroll value. More...
|
|
Real | getScrollY (void) const |
| Gets the current Y scroll value. More...
|
|
ushort | getZOrder (void) const |
| Gets the Z-order of this overlay. More...
|
|
void | hide (void) |
| Hides the overlay if it was visible. More...
|
|
bool | isInitialised (void) const |
| Gets whether the overlay is initialised or not. More...
|
|
bool | isVisible (void) const |
| Gets whether the overlay is displayed or not. More...
|
|
void | remove2D (OverlayContainer *cont) |
| Removes a 2D container from the overlay. More...
|
|
void | remove3D (SceneNode *node) |
| Removes a 3D element from the overlay. More...
|
|
void | rotate (const Radian &angle) |
| Adds the passed in angle to the rotation applied to this overlay. More...
|
|
void | scroll (Real xoff, Real yoff) |
| Scrolls the overlay by the offsets provided. More...
|
|
void | setRotate (const Radian &angle) |
| Sets the rotation applied to this overlay. More...
|
|
void | setScale (Real x, Real y) |
| Sets the scaling factor of this overlay. More...
|
|
void | setScroll (Real x, Real y) |
| Sets the scrolling factor of this overlay. More...
|
|
void | setZOrder (ushort zorder) |
| Alters the Z-order of this overlay. More...
|
|
void | show (void) |
| Shows the overlay if it was hidden. More...
|
|
Represents a layer which is rendered on top of the 'normal' scene contents.
- An overlay always takes up the entire size of the viewport, although the components attached to it do not have to. An overlay has no visual element in itself, it it merely a container for visual elements.
- Overlays are created by calling OverlayManager::create, or by defining them in special text scripts (.overlay files). As many overlays as you like can be defined; after creation an overlay is hidden i.e. not visible until you specifically enable it by calling 'show'. This allows you to have multiple overlays predefined (menus etc) which you make visible only when you want. It is possible to have multiple overlays enabled at once; in this case the relative 'zorder' parameter of the overlays determine which one is displayed on top.
- By default overlays are rendered into all viewports. This is fine when you only have fullscreen viewports, but if you have picture-in-picture views, you probably don't want the overlay displayed in the smaller viewports. You turn this off for a specific viewport by calling the Viewport::setDisplayOverlays method.