VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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...

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

makVrv::DtIntervisibilityElement::DtIntervisibilityElement ( DtDe de,
DtBaseConnection connection,
DtIntervisibilityStateListener ,
const DtUnicode elementDefName,
DtElementEntry::ElementType  type,
bool  distribute = true 
)

COTR.

virtual makVrv::DtIntervisibilityElement::~DtIntervisibilityElement ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtIntervisibilityElement::setVisible ( bool  visible)
virtual

Set the element to be visible.

bool makVrv::DtIntervisibilityElement::visible ( ) const

Get whether the element is visible.

DtElementID makVrv::DtIntervisibilityElement::elementID ( )

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
DtIntervisibilityStateListener& makVrv::DtIntervisibilityElement::listener ( )
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.

bool makVrv::DtIntervisibilityElement::pickable ( ) const
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 
)
protectedvirtual

Enables a given model set.

virtual DtIntervisibilityVisualizerSet* makVrv::DtIntervisibilityElement::createVisualizerSet ( int  modelSet) const
protectedvirtual

Must implement to return visualizer set to use.

Member Data Documentation

DtDe& makVrv::DtIntervisibilityElement::myDe
protected
DtBaseConnection& makVrv::DtIntervisibilityElement::myBaseConnection
protected
DtIntervisibilityStateListener& makVrv::DtIntervisibilityElement::myListener
protected
DtUnicode makVrv::DtIntervisibilityElement::myElementDefinitionName
protected
DtSignalConnectionManager makVrv::DtIntervisibilityElement::myConnections
protected
ModelSetMap makVrv::DtIntervisibilityElement::myModelSetMap
protected
DtElementEntry::ElementType makVrv::DtIntervisibilityElement::myObjectType
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

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)