#include <SelectAction.hpp>
Inheritance diagram for vrvis::SelectAction< SelectableT >:

Public Member Functions | |
| SelectAction (const std::vector< SelectableT * > &crSelectableVec) | |
| Constructor that takes an STL vector of SelectableT pointers. | |
| ~SelectAction (void) | |
| Destructor. | |
| SelectableT * | getSelected (void) |
| Get the currently selected SelectableT. | |
| virtual void | activate (void) |
| Selects nothing but the first SelectableT. | |
| virtual void | deactivate (void) |
| Deselects all SelectableT objects in queue. | |
| virtual void | execute (const gadget::Digital::State cButtonState) |
| Upon button release, selects the next SelectableT in queue. | |
std::vector<Selectable*> selectableVec;
std::vector<Layer*> layerVec;
// ... fill vectors here ...
// Create instance of default SelectAction<Selectable>.
SelectAction* pSA1 = new SelectAction(selectableVec);
// Create instance of specific SelectAction<Layer>.
SelectAction<Layer>* pSA2 = new SelectAction<Layer>(layerVec);
|
||||||||||
|
Constructs a SelectAction object that operates on the given Selectables.
|
|
||||||||||
|
Destructor. |
|
||||||||||
|
On activation of this SelectAction all contained Selectables but the first one in queue are deselected. Reimplemented from vrvis::Action.
|
|
||||||||||
|
On deactivation of this SelectAction all contained Selectables in queue are deselected. Reimplemented from vrvis::Action.
|
|
||||||||||
|
Rotates the queue of SelectableT objects on button release and selects nothing but the (new) first one.
Implements vrvis::DigitalAction.
|
|
||||||||||
|
Get the currently selected SelectableT object.
|
1.3.8