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

Contains Dt3DEllipseFacadeclass. More...

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

Public Member Functions

 Dt3DEllipseFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent. More...
 
 Dt3DEllipseFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id. More...
 
virtual ~Dt3DEllipseFacade ()
 DTOR. More...
 
virtual void setModelDefinition (const std::string &)
 Sets the model definition for the model. More...
 
virtual void setPosition (int index, const DtVector &v)
 Sets database position in updater (if created) or model agent. More...
 
virtual void setFillPattern (const std::vector< unsigned int > &)
 Unimplemented as ellipses to not currently support fill patterns. More...
 
virtual void setStipplePattern (int)
 Unimplemented as ellipses do not currently support stipple patterns. More...
 
virtual void setLineWidth (int)
 Sets the width of the outside line. More...
 
virtual void setXRadius (double)
 Sets the X Radius of the llipse. More...
 
virtual void setYRadius (double)
 Sets the Y Radius of the ellipse. More...
 
virtual void setDimensions (double, double)
 Sets the dimensions of the ellipse. More...
 
virtual void updateColors ()
 Send the current colors down to the model. More...
 
virtual void setFill (bool)
 Sets whether or not to fill ellipse. If fill style of line is specified, will override this flag. More...
 
virtual void setOutsideColor (float r, float g, float b, float a)
 Sets the outside color for the model. More...
 
virtual void setSelectedOutsideColor (float r, float g, float b, float a)
 Sets the selected outside color for the model. More...
 
virtual void setPickable (bool)
 Sets whether or not items are pickable. More...
 
virtual void setVisible (bool)
 Sets whether or not item is visible. More...
 
virtual void setScribeWidth (float width)
 Sets the width of the scribe line in pixel space. More...
 
int scribeWidth () const
 Returns current scribe width. More...
 
virtual void setScribed (bool)
 Sets whether or not line is scribed. More...
 
virtual void setScribeColor (float r, float g, float b, float a)
 Sets the color of the scribe. By default it is based on outside color. More...
 
virtual void setSelectedScribeColor (float r, float g, float b, float a)
 Sets the color to used for the scribe when the mode is selected. More...
 
virtual void setLineHeight (float)
 Sets the height of all lines in the area (up extent). Setting this will turn off line width. More...
 
virtual void setSolid (bool b)
 Sets whether or not this item is solid (filled) More...
 
virtual void setScribeAllPolygons (bool)
 Sets whether or not to only scribe the outline (and not the line edges). More...
 
virtual void startClamping ()
 Create an updater to update the orientation of this object, not the position. More...
 
DtExtrudedEllipseModelAgent * ellipseModelAgent () const
 Returns the ellipse model agent for this class. More...
 
virtual void setUpExtent (float)
 
virtual float upExtent () const
 
virtual void setDownExtent (float)
 
virtual float downExtent () const
 
virtual void setLeftExtent (float)
 
virtual float leftExtent () const
 
virtual void setRightExtent (float)
 
virtual float rightExtent () const
 
- Public Member Functions inherited from makVrv::DtEllipseFacadeBase
 DtEllipseFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent. More...
 
 DtEllipseFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id. More...
 
virtual ~DtEllipseFacadeBase ()
 DTOR. More...
 
virtual void setColor (float r, float g, float b, float a)
 Sets the color for the ellipse. More...
 
virtual void setInsideColor (float r, float g, float b, float a)
 Sets inside color (fill) if available. More...
 
virtual void setSelectedInsideColor (float r, float g, float b, float a)
 Sets the selected inside color. More...
 
virtual void setPoints (const std::vector< DtVector > &)
 Sets the origin, and, possible radii of the ellipse. More...
 
virtual void setOrigin (const DtVector &)
 Sets the origin of the ellipse. More...
 
virtual void setSelected (bool)
 Sets whether or not the ellipse is selected. More...
 
virtual bool selected ()
 Get the current selected state. More...
 
virtual makVrv::DtUniqueID uniqueId () const
 Returns the unique id of the scene object agent. More...
 
virtual makVrv::DtElementID elementId () const
 Returns the element id of the scene object agent. More...
 
virtual int modelSet () const
 Returns the model set. More...
 
virtual void setDynamicOrigin (bool)
 Sets whether or origin is set in the updater or retrieved from the scene object. More...
 
virtual void stopClamping ()
 Stops clamping the ellipse. More...
 
DtEllipseUpdaterAgent * updater () const
 Returns the updater agent for this class. More...
 
DtSceneObjectAgent * sceneObjectAgent () const
 Returns the scene object agent for this class. More...
 

Protected Member Functions

void createEllipseAgent ()
 Creates ellipse agent. Called from constructor. More...
 

Protected Attributes

DtExtrudedEllipseModelAgent * myEllipseModelAgent
 
bool myFill
 
float myLineHeight
 
float myUpExtent
 
float myDownExtent
 
float myRightExtent
 
float myLeftExtent
 
bool myScribeColorSet
 
float myScribeWidth
 
bool mySelectedOutsideColorSet
 
float myScribeColor [4]
 
float mySelectedScribeColor [4]
 
- Protected Attributes inherited from makVrv::DtEllipseFacadeBase
DtSceneObjectAgent * mySceneObjectAgent
 
DtAgentManagerInterfacemyAgentManagerInterface
 
bool myOwnsSceneObjectAgent
 
DtEllipseUpdaterAgent * myUpdater
 
float myInsideColor [4]
 
float myOutsideColor [4]
 
float mySelectedOutsideColor [4]
 
float mySelectedInsideColor [4]
 
bool mySelectedInsideColorSet
 
int myLineWidth
 
int myModelSet
 
int myNumPoints
 
double myXRadius
 
double myYRadius
 
makVrv::DtElementID myElementId
 
bool myDynamicOrigin
 
bool mySelected
 

Detailed Description

Contains Dt3DEllipseFacadeclass.

Facade for a 3D (overlay). This class will not clamp by default ellipse.

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

makVrv::Dt3DEllipseFacade::Dt3DEllipseFacade ( 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::Dt3DEllipseFacade::~Dt3DEllipseFacade ( )
virtual

DTOR.

Member Function Documentation

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

Sets the model definition for the model.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setPosition ( int  index,
const DtVector v 
)
virtual

Sets database position in updater (if created) or model agent.

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setFillPattern ( const std::vector< unsigned int > &  )
virtual

Unimplemented as ellipses to not currently support fill patterns.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setStipplePattern ( int  )
virtual

Unimplemented as ellipses do not currently support stipple patterns.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setLineWidth ( int  )
virtual

Sets the width of the outside line.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setXRadius ( double  )
virtual

Sets the X Radius of the llipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setYRadius ( double  )
virtual

Sets the Y Radius of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setDimensions ( double  ,
double   
)
virtual

Sets the dimensions of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::updateColors ( )
virtual

Send the current colors down to the model.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setFill ( bool  )
virtual

Sets whether or not to fill ellipse. If fill style of line is specified, will override this flag.

Implements makVrv::DtEllipseFacadeBase.

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

Sets the outside color for the model.

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setSelectedOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the selected outside color for the model.

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Sets whether or not items are pickable.

Implements makVrv::DtEllipseFacadeBase.

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

Sets whether or not item is visible.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt3DEllipseFacade::setScribeWidth ( float  width)
virtual

Sets the width of the scribe line in pixel space.

This will set a flag such that when the line width is changed this width is not, so, once set, you will need to continue to set to keep pace with line width.

int makVrv::Dt3DEllipseFacade::scribeWidth ( ) const

Returns current scribe width.

virtual void makVrv::Dt3DEllipseFacade::setScribed ( bool  )
virtual

Sets whether or not line is scribed.

virtual void makVrv::Dt3DEllipseFacade::setScribeColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color of the scribe. By default it is based on outside color.

virtual void makVrv::Dt3DEllipseFacade::setSelectedScribeColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color to used for the scribe when the mode is selected.

virtual void makVrv::Dt3DEllipseFacade::setLineHeight ( float  )
virtual

Sets the height of all lines in the area (up extent). Setting this will turn off line width.

virtual void makVrv::Dt3DEllipseFacade::setSolid ( bool  b)
virtual

Sets whether or not this item is solid (filled)

virtual void makVrv::Dt3DEllipseFacade::setScribeAllPolygons ( bool  )
virtual

Sets whether or not to only scribe the outline (and not the line edges).

Only valid if scribed is true. If set to true will scribe all point connections along the polygon. If false will only scribe the top and bottom of the polygon

virtual void makVrv::Dt3DEllipseFacade::setUpExtent ( float  )
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line

virtual float makVrv::Dt3DEllipseFacade::upExtent ( ) const
virtual
virtual void makVrv::Dt3DEllipseFacade::setDownExtent ( float  )
virtual
virtual float makVrv::Dt3DEllipseFacade::downExtent ( ) const
virtual
virtual void makVrv::Dt3DEllipseFacade::setLeftExtent ( float  )
virtual
virtual float makVrv::Dt3DEllipseFacade::leftExtent ( ) const
virtual
virtual void makVrv::Dt3DEllipseFacade::setRightExtent ( float  )
virtual
virtual float makVrv::Dt3DEllipseFacade::rightExtent ( ) const
virtual
virtual void makVrv::Dt3DEllipseFacade::startClamping ( )
virtual

Create an updater to update the orientation of this object, not the position.

Reimplemented from makVrv::DtEllipseFacadeBase.

DtExtrudedEllipseModelAgent* makVrv::Dt3DEllipseFacade::ellipseModelAgent ( ) const

Returns the ellipse model agent for this class.

void makVrv::Dt3DEllipseFacade::createEllipseAgent ( )
protected

Creates ellipse agent. Called from constructor.

Member Data Documentation

DtExtrudedEllipseModelAgent* makVrv::Dt3DEllipseFacade::myEllipseModelAgent
protected
bool makVrv::Dt3DEllipseFacade::myFill
protected
float makVrv::Dt3DEllipseFacade::myLineHeight
protected
float makVrv::Dt3DEllipseFacade::myUpExtent
protected
float makVrv::Dt3DEllipseFacade::myDownExtent
protected
float makVrv::Dt3DEllipseFacade::myRightExtent
protected
float makVrv::Dt3DEllipseFacade::myLeftExtent
protected
bool makVrv::Dt3DEllipseFacade::myScribeColorSet
protected
float makVrv::Dt3DEllipseFacade::myScribeWidth
protected
bool makVrv::Dt3DEllipseFacade::mySelectedOutsideColorSet
protected
float makVrv::Dt3DEllipseFacade::myScribeColor[4]
protected
float makVrv::Dt3DEllipseFacade::mySelectedScribeColor[4]
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)