VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtIntervisibilityElement Class Reference

The DtIntervisibilityElement class implements the common behavior of shape elements that are added to the scene. More...

Inheritance diagram for makVrv::DtIntervisibilityElement:
Inheritance graph
[legend]

List of all members.

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 DtUnicodedefinition () const
 Accessor to get the visual definition.
const ModelSetMapmodelSetMap () const
DtIntervisibilityStateListenerlistener ()
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

DtDemyDe
DtBaseConnectionmyBaseConnection
DtIntervisibilityStateListenermyListener
DtUnicode myElementDefinitionName
DtSignalConnectionManager myConnections
ModelSetMap myModelSetMap
DtElementEntry::ElementType myObjectType
bool myCircleMode
bool myDistribute
bool myPickable
bool mySelected
bool myVisible

Detailed Description

The DtIntervisibilityElement class implements the common behavior of shape elements that are added to the scene.


Member Typedef Documentation


Constructor & Destructor Documentation

COTR.

DTOR.


Member Function Documentation

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.

Accessor to get the visual definition.

The definition changes when visualize is called.

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)

Visualizes on all realized model sets.

Sets points pickable (if there is a shape vertex visualizer) in any of the sets.

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.

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.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)