HighlightSelectionActionModel Class Reference
#include <HighlightSelectionActionModel.h>
Inherits StateActionModel.

Classes | |
| struct | HighlightData |
Public Member Functions | |
| HighlightSelectionActionModel (std::string modelType, std::string modelPath) | |
| virtual | ~HighlightSelectionActionModel () |
| virtual void | enter (std::vector< PICKEDENTITY > *entities) |
| virtual void | exit () |
| virtual void | action (std::vector< PICKEDENTITY > *addedEntities, std::vector< PICKEDENTITY > *removedEntities, float dt) |
Protected Member Functions | |
| virtual void | highlightEntity (Entity *entity, ModelInterface *model) |
| virtual void | unhighlightEntity (Entity *entity, ModelInterface *model) |
| virtual void | update (float dt) |
Protected Attributes | |
| SceneGraphInterface * | sgIF |
| Pointer to the SceneGraphInterface. | |
| std::string | modelType |
| FileType of the Model used for highlighting. | |
| std::string | modelUrl |
| URL of the Model which is used for highlighting (exclusive path information). | |
| std::vector< HighlightData * > | highlightedEntities |
| List of all Entities which are currently highlighted. | |
| std::vector< ModelInterface * > | attachedModels |
| List of all highlight-Models for local selection attached to the scenegraph. | |
| float | time |
| Timer variable used for animation. | |
Friends | |
| class | InteractionHighlightSelectionActionEvent |
Constructor & Destructor Documentation
| OSG_USING_NAMESPACE HighlightSelectionActionModel::HighlightSelectionActionModel | ( | std::string | modelType, | |
| std::string | modelPath | |||
| ) |
Constructor initializing models for Highlighting. The constructor loads the model used for highlighting of the entities from the passed url.
- Parameters:
-
modelType type of the model file modelPath url of the model used for highlighting
| HighlightSelectionActionModel::~HighlightSelectionActionModel | ( | ) | [virtual] |
Empty destructor.
Member Function Documentation
| void HighlightSelectionActionModel::action | ( | std::vector< PICKEDENTITY > * | addedEntities, | |
| std::vector< PICKEDENTITY > * | removedEntities, | |||
| float | dt | |||
| ) | [virtual] |
Called when the DFA is in the state where the Model is registered for.
Implements StateActionModel.
| void HighlightSelectionActionModel::enter | ( | std::vector< PICKEDENTITY > * | entities | ) | [virtual] |
Called when the state is entered.
Implements StateActionModel.
| void HighlightSelectionActionModel::exit | ( | ) | [virtual] |
Called when the state is left.
Implements StateActionModel.
| void HighlightSelectionActionModel::highlightEntity | ( | Entity * | entity, | |
| ModelInterface * | model | |||
| ) | [protected, virtual] |
| void HighlightSelectionActionModel::unhighlightEntity | ( | Entity * | entity, | |
| ModelInterface * | model | |||
| ) | [protected, virtual] |
| void HighlightSelectionActionModel::update | ( | float | dt | ) | [protected, virtual] |
Updates the animation of the highlighted Models.
- Parameters:
-
dt timestep since the last iteration
Friends And Related Function Documentation
friend class InteractionHighlightSelectionActionEvent [friend] |
Member Data Documentation
std::vector<ModelInterface*> HighlightSelectionActionModel::attachedModels [protected] |
List of all highlight-Models for local selection attached to the scenegraph.
std::vector<HighlightData*> HighlightSelectionActionModel::highlightedEntities [protected] |
List of all Entities which are currently highlighted.
std::string HighlightSelectionActionModel::modelType [protected] |
FileType of the Model used for highlighting.
std::string HighlightSelectionActionModel::modelUrl [protected] |
URL of the Model which is used for highlighting (exclusive path information).
SceneGraphInterface* HighlightSelectionActionModel::sgIF [protected] |
Pointer to the SceneGraphInterface.
float HighlightSelectionActionModel::time [protected] |
Timer variable used for animation.
The documentation for this class was generated from the following files:
- src/inVRs/Modules/Interaction/HighlightSelectionActionModel.h
- src/inVRs/Modules/Interaction/HighlightSelectionActionModel.cpp
Generated on Wed Oct 20 16:11:56 2010 for inVRs by
1.5.8