VR-Forces 4.1 Class Documentation
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 setLockUpdates (bool)
 Sets whether or not to lock updates.
virtual void setPickable (bool)
 Sets whether or not items are pickable.
virtual void setVisible (bool)
 Sets whether or not item is visible.
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.
- Public Member Functions inherited from makVrv::DtEllipseFacadeInterface
 DtEllipseFacadeInterface (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 DtEllipseFacadeInterface (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~DtEllipseFacadeInterface ()
 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 void setPosition (int iIndex, const DtVector &)
 Sets position in ellipse (origin = 0, X = 1 or Y = 2)
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.

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::DtEllipseFacadeInterface
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

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

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::DtEllipseFacadeInterface.

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::DtEllipseFacadeInterface.

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

Sets whether or not the ellipse is selected.

Implements makVrv::DtEllipseFacadeInterface.

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

Sets the width of the outside line.

Implements makVrv::DtEllipseFacadeInterface.

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::DtEllipseFacadeInterface.

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

Sets whether or not to lock updates.

Implements makVrv::DtEllipseFacadeInterface.

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

Sets whether or not items are pickable.

Implements makVrv::DtEllipseFacadeInterface.

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

Sets whether or not item is visible.

Implements makVrv::DtEllipseFacadeInterface.

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

Currently unimplemented as ellipses do not currently support stipple patterns.

Implements makVrv::DtEllipseFacadeInterface.

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

Unimplemented as ellipses do not currently support fille.

Implements makVrv::DtEllipseFacadeInterface.

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

Sets the outside color (rim) if available.

Reimplemented from makVrv::DtEllipseFacadeInterface.

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

Sets inside color (fill) if available.

Reimplemented from makVrv::DtEllipseFacadeInterface.

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

Sets the X Radius of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeInterface.

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

Sets the Y Radius of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeInterface.

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

Sets the dimensions of the ellipse.

Reimplemented from makVrv::DtEllipseFacadeInterface.

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

Returns whether or not facade is selected.

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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)