VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
makVrv::DtEllipseFacadeInterface Class Reference

Contains DtEllipseFacadeInterface class. More...

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

Public Member Functions

 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 setModelDefinition (const std::string &)=0
 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 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 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 void setSelected (bool)=0
 Sets whether or not the ellipse is selected.
virtual void setLineWidth (int)=0
 Sets the width of the outside line. Default is 4.
virtual void setFill (bool)=0
 Sets whether or not to fill ellipse.
virtual void setDimensions (double, double)
 Sets the dimensions of the ellipse.
virtual void setXRadius (double)
 Sets the X Radius of the ellipse.
virtual void setYRadius (double)
 Sets the Y Radius of the ellipse.
virtual void setPickable (bool)=0
 Sets whether or not items are pickable.
virtual void setLockUpdates (bool)=0
 Sets whether or not to lock updates.
virtual void setVisible (bool)=0
 Sets whether or not item is visible.
virtual void setStipplePattern (int)=0
 Sets the 16 bit stipple pattern for the line portion of the area.
virtual void setFillPattern (const std::vector< unsigned int > &)=0
 Sets the pattern to fill the 2D polygon with.
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 Attributes

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

This interface class defines the minimum amount of functionality a ellipse facade must implement The setPoints method will inherently assume that if there are 2 points defined the distance between the first (origin) and second is the X Radius. If there are three points defined the distance between the third and the first is the Y radius.

If there is no Y radius a circle is assumed.

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

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

DTOR.

Member Function Documentation

virtual void makVrv::DtEllipseFacadeInterface::setModelDefinition ( const std::string &  )
pure virtual

Sets the model definition for the model.

Implemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::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 in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

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

Sets the outside color (rim) if available.

Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

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

Sets inside color (fill) if available.

Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setPoints ( const std::vector< DtVector > &  )
virtual

Sets the origin, and, possible radii of the ellipse.

Akin to calling setOrigin, setXRadius and setYRadius

virtual void makVrv::DtEllipseFacadeInterface::setOrigin ( const DtVector )
virtual

Sets the origin of the ellipse.

virtual void makVrv::DtEllipseFacadeInterface::setPosition ( int  iIndex,
const DtVector  
)
virtual

Sets position in ellipse (origin = 0, X = 1 or Y = 2)

virtual void makVrv::DtEllipseFacadeInterface::setSelected ( bool  )
pure virtual

Sets whether or not the ellipse is selected.

Implemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setLineWidth ( int  )
pure virtual

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

Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setFill ( bool  )
pure virtual

Sets whether or not to fill ellipse.

If fill style of line is specified, will override this flag

Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.

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

Sets the dimensions of the ellipse.

Will also set the X and Y radius member variables.

Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

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

Sets the X Radius of the ellipse.

Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

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

Sets the Y Radius of the ellipse.

Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setPickable ( bool  )
pure virtual

Sets whether or not items are pickable.

Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setLockUpdates ( bool  )
pure virtual

Sets whether or not to lock updates.

Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setVisible ( bool  )
pure virtual

Sets whether or not item is visible.

Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.

virtual void makVrv::DtEllipseFacadeInterface::setStipplePattern ( int  )
pure virtual

Sets the 16 bit stipple pattern for the line portion of the area.

Implemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

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

Sets the pattern to fill the 2D polygon with.

The fill pattern is a bit pattern of 32 x 32 integers. The bits of the integers will be considered "on" if they are 1 and off if they are 0. The pattern will be repeated to fill the interior of the polygon

Implemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.

virtual makVrv::DtUniqueID makVrv::DtEllipseFacadeInterface::uniqueId ( ) const
virtual

Returns the unique id of the scene object agent.

virtual makVrv::DtElementID makVrv::DtEllipseFacadeInterface::elementId ( ) const
virtual

Returns the element id of the scene object agent.

virtual int makVrv::DtEllipseFacadeInterface::modelSet ( ) const
virtual

Returns the model set.

Member Data Documentation

DtSceneObjectAgent* makVrv::DtEllipseFacadeInterface::mySceneObjectAgent
protected
DtAgentManagerInterface& makVrv::DtEllipseFacadeInterface::myAgentManagerInterface
protected
bool makVrv::DtEllipseFacadeInterface::myOwnsSceneObjectAgent
protected
DtEllipseUpdaterAgent* makVrv::DtEllipseFacadeInterface::myUpdater
protected
float makVrv::DtEllipseFacadeInterface::myInsideColor[4]
protected
float makVrv::DtEllipseFacadeInterface::myOutsideColor[4]
protected
int makVrv::DtEllipseFacadeInterface::myLineWidth
protected
int makVrv::DtEllipseFacadeInterface::myModelSet
protected
int makVrv::DtEllipseFacadeInterface::myNumPoints
protected
double makVrv::DtEllipseFacadeInterface::myXRadius
protected
double makVrv::DtEllipseFacadeInterface::myYRadius
protected
makVrv::DtElementID makVrv::DtEllipseFacadeInterface::myElementId
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)