VR-Forces 4.7 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::Dt2DEllipseFacade Class Reference

Contains Dt2DEllipseFacade class. More...

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

Public Member Functions

 Dt2DEllipseFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 Dt2DEllipseFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~Dt2DEllipseFacade ()
 DTOR.
virtual void setModelDefinition (const std::string &)
 Sets the model definition for the model.
virtual void setColor (float r, float g, float b, float a)
 Sets the color for the ellipse.
virtual void setSelected (bool)
 Sets whether or not the ellipse is selected.
virtual void setLineWidth (int)
 Sets the width of the outside line.
virtual void setFill (bool)
 Sets whether or not to fill ellipse.
virtual void setPickable (bool)
 Sets whether or not items are pickable.
virtual void setVisible (bool)
 Sets whether or not item is visible.
virtual void setPosition (int index, const DtVector &v)
 Sets database position in updater (if created) or model agent.
virtual void setStipplePattern (int)
 Currently unimplemented as ellipses do not currently support stipple patterns.
virtual void setFillPattern (const std::vector< unsigned int > &)
 Unimplemented as ellipses do not currently support fille.
virtual void setOutsideColor (float r, float g, float b, float a)
 Sets the outside color (rim) if available.
virtual void setInsideColor (float r, float g, float b, float a)
 Sets inside color (fill) if available.
virtual void setXRadius (double)
 Sets the X Radius of the ellipse.
virtual void setYRadius (double)
 Sets the Y Radius of the ellipse.
virtual void setDimensions (double, double)
 Sets the dimensions of the ellipse.
bool selected () const
 Returns whether or not facade is selected.
virtual void startClamping ()
 Initialize clamping variables.
DtOverlayEllipseArcModelAgent * ellipseModelAgent () const
 Returns the ellipse model agent used for this class.
virtual void setGroup (int)
 The higher the z order the "closer" to the eyepoint this element will be drawn.
- Public Member Functions inherited from makVrv::DtEllipseFacadeBase
 DtEllipseFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 DtEllipseFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~DtEllipseFacadeBase ()
 DTOR.
virtual void setPoints (const std::vector< DtVector > &)
 Sets the origin, and, possible radii of the ellipse.
virtual void setOrigin (const DtVector &)
 Sets the origin of the ellipse.
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.
virtual void setDynamicOrigin (bool)
 Sets whether or origin is set in the updater or retrieved from the scene object.
virtual void stopClamping ()
 Stops clamping the ellipse.
DtEllipseUpdaterAgent * updater () const
 Returns the updater agent for this class.
DtSceneObjectAgent * sceneObjectAgent () const
 Returns the scene object agent for this class.

Protected Member Functions

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

Protected Attributes

DtOverlayEllipseArcModelAgent * myEllipseModelAgent
bool myFill
bool mySelected
- Protected Attributes inherited from makVrv::DtEllipseFacadeBase
DtSceneObjectAgent * mySceneObjectAgent
DtAgentManagerInterfacemyAgentManagerInterface
bool myOwnsSceneObjectAgent
DtEllipseUpdaterAgent * myUpdater
float myInsideColor [4]
float myOutsideColor [4]
int myLineWidth
int myModelSet
int myNumPoints
double myXRadius
double myYRadius
makVrv::DtElementID myElementId
bool myDynamicOrigin

Detailed Description

Contains Dt2DEllipseFacade class.

Facade for a 2D (overlay) ellipse. If X Radius and Y Radius are specified the object will be rendered as an ellipse. This class will clamp by default

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

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

DTOR.

Member Function Documentation

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

Sets the model definition for the model.

Implements makVrv::DtEllipseFacadeBase.

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

Sets the color for the ellipse.

This will apply to all segments of the area. If the default (all 0's), uses the default as defined in the visual definition

Reimplemented from makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt2DEllipseFacade::setSelected ( bool  )
virtual

Sets whether or not the ellipse is selected.

Implements makVrv::DtEllipseFacadeBase.

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

Sets the width of the outside line.

Implements makVrv::DtEllipseFacadeBase.

virtual void makVrv::Dt2DEllipseFacade::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::Dt2DEllipseFacade::setPickable ( bool  )
virtual

Sets whether or not items are pickable.

Implements makVrv::DtEllipseFacadeBase.

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

Sets whether or not item is visible.

Implements makVrv::DtEllipseFacadeBase.

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

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

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Currently unimplemented as ellipses do not currently support stipple patterns.

Implements makVrv::DtEllipseFacadeBase.

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

Unimplemented as ellipses do not currently support fille.

Implements makVrv::DtEllipseFacadeBase.

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

Sets the outside color (rim) if available.

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Sets inside color (fill) if available.

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Sets the X Radius of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Sets the Y Radius of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

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

Sets the dimensions of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeBase.

bool makVrv::Dt2DEllipseFacade::selected ( ) const
inline

Returns whether or not facade is selected.

virtual void makVrv::Dt2DEllipseFacade::startClamping ( )
virtual

Initialize clamping variables.

Reimplemented from makVrv::DtEllipseFacadeBase.

DtOverlayEllipseArcModelAgent* makVrv::Dt2DEllipseFacade::ellipseModelAgent ( ) const

Returns the ellipse model agent used for this class.

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

The higher the z order the "closer" to the eyepoint this element will be drawn.

Use this variable to stack overlay objects in the particular order you want them displayed

void makVrv::Dt2DEllipseFacade::createEllipseAgent ( )
protected

Creates the ellipse agent. Called from the constructor.

Member Data Documentation

DtOverlayEllipseArcModelAgent* makVrv::Dt2DEllipseFacade::myEllipseModelAgent
protected
bool makVrv::Dt2DEllipseFacade::myFill
protected
bool makVrv::Dt2DEllipseFacade::mySelected
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)