HighlightSelectionActionModel Class Reference

#include <HighlightSelectionActionModel.h>

Inherits StateActionModel.

Collaboration diagram for HighlightSelectionActionModel:

List of all members.


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

SceneGraphInterfacesgIF
 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]

Displays the loaded Model for Entity highlighting.

Parameters:
entity Entity which should be highlighted

void HighlightSelectionActionModel::unhighlightEntity ( Entity entity,
ModelInterface model 
) [protected, virtual]

Removes the Model used for highlighting the passed Entity.

Parameters:
entity Entity from which the highlighted model should be removed

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


Member Data Documentation

List of all highlight-Models for local selection attached to the scenegraph.

List of all Entities which are currently highlighted.

FileType of the Model used for highlighting.

std::string HighlightSelectionActionModel::modelUrl [protected]

URL of the Model which is used for highlighting (exclusive path information).

Timer variable used for animation.


The documentation for this class was generated from the following files:

Generated on Wed Oct 20 16:11:56 2010 for inVRs by doxygen 1.5.8