![]() |
VR-Forces 4.0.4 Class Documentation
|
The DtIntervisibilityElement class implements the common behavior of shape elements that are added to the scene. More...

Public Types | |
| typedef boost::unordered_map < int, DtIntervisibilityVisualizerSet * > | ModelSetMap |
Public Member Functions | |
| DtIntervisibilityElement (DtDe &de, DtBaseConnection &connection, DtIntervisibilityStateListener &, const DtUnicode &elementDefName, DtElementEntry::ElementType type, bool distribute=true) | |
| COTR. | |
| virtual | ~DtIntervisibilityElement () |
| DTOR. | |
| virtual void | setVisible (bool visible) |
| Set the element to be visible. | |
| bool | visible () const |
| Get whether the element is visible. | |
| DtElementID | elementID () |
| Get the element ID of the element. | |
| const DtUnicode & | definition () const |
| Accessor to get the visual definition. | |
| const ModelSetMap & | modelSetMap () const |
| DtIntervisibilityStateListener & | listener () |
| virtual void | setSelected (bool) |
| bool | selected () const |
| virtual int | indexOfVertex (DtUniqueID id, DtStateVisualizer *&visualizer) const |
| Returns the index of the vertex and the visualizer that contains it. | |
| virtual void | setVertexSelected (int iIndex, bool) |
| Loops through all visual sets and sets the particular vertex at the index to be selected (or not) | |
| virtual void | visualizeModelSets () |
| Visualizes on all realized model sets. | |
| virtual void | setPickable (bool) |
| Sets points pickable (if there is a shape vertex visualizer) in any of the sets. | |
| bool | pickable () const |
| virtual bool | circleSelected () const |
| Returns true if circle is selected. | |
| virtual bool | hasCircle () const |
| Returns true if any of the visualizers in this set has the circleMode flag set. | |
Protected Member Functions | |
| virtual void | setModelSetEnabled (int modelSet, bool enabled) |
| Enables a given model set. | |
| virtual DtIntervisibilityVisualizerSet * | createVisualizerSet (int modelSet) const |
| Must implement to return visualizer set to use. | |
Protected Attributes | |
| DtDe & | myDe |
| DtBaseConnection & | myBaseConnection |
| DtIntervisibilityStateListener & | myListener |
| DtUnicode | myElementDefinitionName |
| DtSignalConnectionManager | myConnections |
| ModelSetMap | myModelSetMap |
| DtElementEntry::ElementType | myObjectType |
| bool | myCircleMode |
| bool | myDistribute |
| bool | myPickable |
| bool | mySelected |
| bool | myVisible |
The DtIntervisibilityElement class implements the common behavior of shape elements that are added to the scene.
| typedef boost::unordered_map<int, DtIntervisibilityVisualizerSet*> makVrv::DtIntervisibilityElement::ModelSetMap |
| makVrv::DtIntervisibilityElement::DtIntervisibilityElement | ( | DtDe & | de, |
| DtBaseConnection & | connection, | ||
| DtIntervisibilityStateListener & | , | ||
| const DtUnicode & | elementDefName, | ||
| DtElementEntry::ElementType | type, | ||
| bool | distribute = true |
||
| ) |
COTR.
| virtual makVrv::DtIntervisibilityElement::~DtIntervisibilityElement | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtIntervisibilityElement::setVisible | ( | bool | visible | ) | [virtual] |
Set the element to be visible.
Get whether the element is visible.
Get the element ID of the element.
Usually the element ID is the unique id of the listener.
| const DtUnicode& makVrv::DtIntervisibilityElement::definition | ( | ) | const |
Accessor to get the visual definition.
The definition changes when visualize is called.
| const ModelSetMap& makVrv::DtIntervisibilityElement::modelSetMap | ( | ) | const [inline] |
| virtual void makVrv::DtIntervisibilityElement::setSelected | ( | bool | ) | [virtual] |
| bool makVrv::DtIntervisibilityElement::selected | ( | ) | const [inline] |
| virtual int makVrv::DtIntervisibilityElement::indexOfVertex | ( | DtUniqueID | id, |
| DtStateVisualizer *& | visualizer | ||
| ) | const [virtual] |
Returns the index of the vertex and the visualizer that contains it.
Returns -1 is index does not exist
| virtual void makVrv::DtIntervisibilityElement::setVertexSelected | ( | int | iIndex, |
| bool | |||
| ) | [virtual] |
Loops through all visual sets and sets the particular vertex at the index to be selected (or not)
| virtual void makVrv::DtIntervisibilityElement::visualizeModelSets | ( | ) | [virtual] |
Visualizes on all realized model sets.
| virtual void makVrv::DtIntervisibilityElement::setPickable | ( | bool | ) | [virtual] |
Sets points pickable (if there is a shape vertex visualizer) in any of the sets.
| virtual bool makVrv::DtIntervisibilityElement::circleSelected | ( | ) | const [virtual] |
Returns true if circle is selected.
The visual definition, when created, has the "circleMode" flag as true, the item is selected and the center point is not.
| virtual bool makVrv::DtIntervisibilityElement::hasCircle | ( | ) | const [virtual] |
Returns true if any of the visualizers in this set has the circleMode flag set.
| virtual void makVrv::DtIntervisibilityElement::setModelSetEnabled | ( | int | modelSet, |
| bool | enabled | ||
| ) | [protected, virtual] |
Enables a given model set.
| virtual DtIntervisibilityVisualizerSet* makVrv::DtIntervisibilityElement::createVisualizerSet | ( | int | modelSet | ) | const [protected, virtual] |
Must implement to return visualizer set to use.
Reimplemented in exampleRangeLine::DtRangeLineElement.
DtDe& makVrv::DtIntervisibilityElement::myDe [protected] |
bool makVrv::DtIntervisibilityElement::myCircleMode [protected] |
bool makVrv::DtIntervisibilityElement::myDistribute [protected] |
bool makVrv::DtIntervisibilityElement::myPickable [protected] |
bool makVrv::DtIntervisibilityElement::mySelected [protected] |
bool makVrv::DtIntervisibilityElement::myVisible [protected] |