VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::Dt2DVolumetricLineFacade Class Reference

Contains Dt2DVolumetricLineFacade class. More...

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

Public Member Functions

 Dt2DVolumetricLineFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 Dt2DVolumetricLineFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~Dt2DVolumetricLineFacade ()
 DTOR.
virtual void setSolid (bool)
 Override to no-op as this is a 3D only concept.
virtual void setModelDefinition (const std::string &)
 Sets the model definition for the model.
virtual void setColor (float r, float g, float b, float a)
 @ Color setting routines Sets the color for the line.
virtual void setOutsideColor (float r, float g, float b, float a)
 Sets the outside color of the line, leaving the inside color alone.
virtual void setInsideColor (float r, float g, float b, float a)
 Sets the inside color of the line, leaving the outside color along.
virtual void setOutlineWidth (int)
 Sets the width of the outside line. Default is 2.
virtual void setVisible (bool)
 Sets the object visible.
virtual void setPickable (bool)
 Sets pickable or not.
virtual void setPhysicalLineWidth (double)
 Sets the physical line width (in meters) of this volumetric line. Default is 50 meters.
virtual void setGroup (int)
 Sets the layer group on which to draw this object.
virtual void setUseDynamicOrigin (bool)
 If true, when the origin changes all the points move with the origin.
Dt2DVolumetricLineModelAgent * volumetricLineModelAgent () const
 Model agent used by this class.
- Public Member Functions inherited from makVrv::DtVolumetricLineFacadeBase
 DtVolumetricLineFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 DtVolumetricLineFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will DtVolumetricLineFacadeBase a new scene object agent for the given model set and element id.
virtual ~DtVolumetricLineFacadeBase ()
 DTOR.
virtual void setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 Sets the points for the area.
virtual void addPoint (int index, const DtVector &)
 Adds a point to the line. Returns the index of the newly added point.
virtual void removePoint (int)
 Removes a point from the line.
virtual void setOrigin (const DtVector &)
 Sets the origin of the line.
virtual const DtVectororigin () const
virtual void setPoint (int iIndex, const DtVector &)
 Sets position in the line.
virtual const std::vector
< DtVector > & 
points () const
 Returns the points of the facade.
virtual void setScribed (bool)
 Sets whether or not line is scribed.
virtual double physicalLineWidth () const
 Returns the physical line width.
virtual bool pickable () const
 Returns whether or not item is pickable.
virtual makVrv::DtUniqueID uniqueId () const
 Returns the unique id of the scene object agent.
virtual makVrv::DtElementID elementId () const
 Returns the element id of the scene object agent.
virtual int modelSet () const
 Returns the model set.
DtSceneObjectAgent * sceneObjectAgent () const
 Returns the scene object agent associated with this facade.

Protected Member Functions

void createVolumetricLineAgent ()
 Creates the agent used to display the line. Called from constructor.

Protected Attributes

Dt2DVolumetricLineModelAgent * myLine
bool mySolid
float myInsideColor [4]
float myOutsideColor [4]
- Protected Attributes inherited from makVrv::DtVolumetricLineFacadeBase
DtAgentManagerInterfacemyAgentManagerInterface
DtSceneObjectAgent * mySceneObjectAgent
bool myOwnsSceneObjectAgent
double myPhysicalLineWidth
int myOutlineWidth
int myModelSet
bool mySelected
DtVector myOrigin
std::vector< DtVectormyControlPoints
bool myPickable
bool myVisible
makVrv::DtElementID myElementId
bool myScribed

Detailed Description

Contains Dt2DVolumetricLineFacade class.

Facade interface for constructing 2D Volumetric Line objects

Constructor & Destructor Documentation

makVrv::Dt2DVolumetricLineFacade::Dt2DVolumetricLineFacade ( DtAgentManagerInterface ,
DtSceneObjectAgent *  agent,
DtElementID  id,
int  modelSet 
)

Constructor that will take an existing scene object agent.

makVrv::Dt2DVolumetricLineFacade::Dt2DVolumetricLineFacade ( DtAgentManagerInterface ,
int  modelSet,
DtElementID  id,
bool  distribute = true 
)

Will create a new scene object agent for the given model set and element id.

virtual makVrv::Dt2DVolumetricLineFacade::~Dt2DVolumetricLineFacade ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::Dt2DVolumetricLineFacade::setSolid ( bool  )
virtual

Override to no-op as this is a 3D only concept.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setModelDefinition ( const std::string &  )
virtual

Sets the model definition for the model.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

@ Color setting routines Sets the color for the line.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the outside color of the line, leaving the inside color alone.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setInsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the inside color of the line, leaving the outside color along.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setOutlineWidth ( int  )
virtual

Sets the width of the outside line. Default is 2.

Implements makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setVisible ( bool  )
virtual

Sets the object visible.

Reimplemented from makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setPickable ( bool  )
virtual

Sets pickable or not.

Reimplemented from makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setPhysicalLineWidth ( double  )
virtual

Sets the physical line width (in meters) of this volumetric line. Default is 50 meters.

Reimplemented from makVrv::DtVolumetricLineFacadeBase.

virtual void makVrv::Dt2DVolumetricLineFacade::setGroup ( int  )
virtual

Sets the layer group on which to draw this object.

virtual void makVrv::Dt2DVolumetricLineFacade::setUseDynamicOrigin ( bool  )
virtual

If true, when the origin changes all the points move with the origin.

Default is false. This means that when the origin changes only point 0 moves

Implements makVrv::DtVolumetricLineFacadeBase.

Dt2DVolumetricLineModelAgent* makVrv::Dt2DVolumetricLineFacade::volumetricLineModelAgent ( ) const

Model agent used by this class.

void makVrv::Dt2DVolumetricLineFacade::createVolumetricLineAgent ( )
protected

Creates the agent used to display the line. Called from constructor.

Member Data Documentation

Dt2DVolumetricLineModelAgent* makVrv::Dt2DVolumetricLineFacade::myLine
protected
bool makVrv::Dt2DVolumetricLineFacade::mySolid
protected
float makVrv::Dt2DVolumetricLineFacade::myInsideColor[4]
protected
float makVrv::Dt2DVolumetricLineFacade::myOutsideColor[4]
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)