![]() |
VR-Forces Developer's Guide
|
This contains all the DtVisualizers used to visualize an element in a particular model set.

Public Types | |
| using | VisualizerList = std::vector< DtStateVisualizer * > |
Protected Types | |
| typedef boost::unordered_multimap < std::string, DtStateVisualizer * > | StateVisualizerMap |
Protected Member Functions | |
| void | destroyAllModelVisualizersInternal () |
| virtual DtStateVisualizer * | createVisualizerFromDefinition (const DtVisualizerDefinition &def) |
| virtual void | addVisualizer (const std::string &schemaName, DtStateVisualizer *visualizer) |
| virtual bool | suppressVisualizerCreation (const DtVisualizerDefinition *visDef, const DtVisualizerCreationSettings::VisualTypeVisualizerCreationMap *creationMap) const |
| virtual int | findVisualType (const DtVisualizerDefinition &visDef) const |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
| const DtUnicode * | chooseRandomString (const std::vector< DtUnicode > &stringList) |
Protected Attributes | |
| DtBaseConnection & | myBaseConnection |
| DtStateVisualizerFactory & | myCachedFactory |
| DtStateListener & | myStateListener |
| StateVisualizerMap | myVisualizers |
| DtSignalConnectionManager | myConnections |
| const DtElementDefinition * | myDefinition |
| bool | myPickable |
| bool | myVisible |
| bool | myDistribute |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtModelSetId | myModelSet |
| std::string | myVisualTypeString |
| using makVrv::DtVisualizerSet::VisualizerList = std::vector<DtStateVisualizer*> |
|
protected |
| makVrv::DtVisualizerSet::DtVisualizerSet | ( | DtBaseConnection & | conn, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet, | ||
| bool | distribute | ||
| ) |
CTOR.
|
virtual |
Destructor.
|
virtual |
Visualize an element definition.
|
virtual |
Visualize an element definition.
|
virtual |
Go through the visualizer definitions in the member variable myDefinitions, and create/add any visualizers that have the specified visual type. If the visualizerSet has not been realized yet, myDefinitions will be null, and this method will do nothing.
|
virtual |
Go through all realized visualizers and remove any that match the specified visual type.
| const DtElementDefinition* makVrv::DtVisualizerSet::definition | ( | ) | const |
Returns the visualized definition.
|
virtual |
| DtModelSetId makVrv::DtVisualizerSet::modelSet | ( | ) | const |
Returns the visualized model set.
|
inline |
Find all instances of a Visualizer by schema name.
References myVisualizers.
|
inline |
Find all instance of a visualizer by dynamically casting to the class type rather than doing the faster type info check. Use this when you want to find all instances of a particular class, not the actual class.
References myVisualizers.
Referenced by makVrf::DtEnvironmentalFacadeCollection::setForceColor().
|
virtual |
Find all visualizers which use a particular schema.
|
virtual |
Returns unique id of mySceneObjectVisualizer or mySceneObjectAgent, else 0.
|
virtual |
Set whether this visualizer is pickable.
| bool makVrv::DtVisualizerSet::pickable | ( | ) | const |
Is this visualizer pickable.
|
virtual |
Add a visualizer after the visualizerSet has been visualized.
|
virtual |
Destroys all model agent visualizers associated with visualizer.
|
virtual |
Get the type that this set supports.
Reimplemented in makVrv::DtIntervisibilityVisualizerSet, makVrv::DtAggregateVisualizerSet, makVrv::DtEntityVisualizerSet, and makVrv::DtEnvironmentalVisualizerSet.
| DtStateListener& makVrv::DtVisualizerSet::listener | ( | ) | const |
Returns the state listener.
|
virtual |
On the rare occasion (like hiding all 2D objects when embarked) when we need all the visualizers in one model set the be shown/hidden, Pass the context with which to show or hide into this routine. It will then be passed to each visualizer, which will determine whether or not to show or hide itself based on the context.
|
virtual |
Returns true if any visualizers in this visualizer set are visible. If there are no visualizers in the set will considifer this return value to be true.
|
protected |
Non-virtual work function for destroying all model visualizers in this set.
|
virtual |
Given the DtVisualDefinitionSet, create all visualizers associated. If there is a problem, will throw an exception.
|
protectedvirtual |
Create a state visualizer from a visual definition.
|
protectedvirtual |
Adds a new model visualizer into the list of visualizers. For consistency, the "default" name is always the one used when the visualizer is added regardless of visual driver selected.
|
protectedvirtual |
Check to see if the visualizer type and creation map warrant creation.
Reimplemented in makVrv::DtFireInteractionVisualizerSet.
|
protectedvirtual |
lookup the visualtype attribute from a visual definition; returns 0 if none found
Reimplemented in makVrf::DtVrfSpotReportVisualizerSet.
|
inlineprotected |
Utility function for connect a signal to an update function as well as calling the update function.
|
protected |
Return the model definition that might be randomly chosen, if the definitions has more than 1 item.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by findVisualizers(), and findVisualizersByDynamicCast().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |