#include <lvt/Group.h>
Inheritance diagram for Switch:
A Switch is a Group that renders only one of its child objects. Add children to a switch as you would a group, and select the index of the child to render with Select().
Public Member Functions | |
int | GetCurSelection () const |
Returns the index of the currently selected child. | |
void | Select (int n) |
Selects which child to render. | |
Switch () | |
Default constructor. | |
Protected Member Functions | |
virtual void | RenderChildren () |
Renders the currently selected child object. |
|
Default constructor. Sets the initially selected child object to the first to be added to the switch. |
|
Returns the index of the currently selected child.
|
|
Renders the currently selected child object.
Reimplemented from Group. Reimplemented in AutoSwitch. |
|
Selects which child to render. Selects the nth child as the child to render. It is acceptable for n to be greater than the number of objects in the Switch. In this case, nothing will be drawn with a call to Render() until an nth child is added to the switch. |