VR-Forces Developer's Guide
 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
makVrf::Dt3DAreaFacade Class Reference

Contains Dt3DAreaFacade class. Facade interface for constructing 3D area objects.

Inheritance diagram for makVrf::Dt3DAreaFacade:
Inheritance graph
[legend]

Public Member Functions

 Dt3DAreaFacade (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, makVrv::DtModelSetId modelSet)
 
 Dt3DAreaFacade (makVrv::DtAgentManagerInterface &, makVrv::DtModelSetId modelSet, makVrv::DtElementID id, bool distribute=false)
 
virtual ~Dt3DAreaFacade () override
 
virtual void setLineWidth (int) override
 
virtual void setScribeWidth (float width)
 
int scribeWidth () const
 
virtual void setScribeAllPolygons (bool)
 
virtual void setSolid (bool b) override
 
virtual void setOutsideColor (float r, float g, float b, float a) override
 
virtual void setSelectedOutsideColor (float r, float g, float b, float a) override
 
virtual void updateColors () override
 
virtual void setScribed (bool) override
 
virtual void setScribeColor (float r, float g, float b, float a)
 
virtual void setSelectedScribeColor (float r, float g, float b, float a)
 
virtual void setLineHeight (float)
 
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 makVrf::DtAreaFacadeBase
 DtAreaFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, makVrv::DtModelSetId modelSet)
 
 DtAreaFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtModelSetId modelSet, makVrv::DtElementID id, bool distribute=false)
 
virtual ~DtAreaFacadeBase ()
 
virtual void setModelDefinition (const std::string &)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setInsideColor (float r, float g, float b, float a)
 
virtual void setSelectedInsideColor (float r, float g, float b, float a)
 
virtual void setFill (bool)
 
virtual void setFillPattern (makVrv::vrvTacticalGraphicUtilities::FillStyle)
 
virtual void setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 
virtual void addPoint (int index, const DtVector &)
 
virtual void setSelected (bool)
 
virtual bool selected ()
 
virtual void removePoint (int)
 
virtual void setStipplePattern (int)
 
virtual void resetOrigin ()
 
virtual void setOrigin (const DtVector &)
 
virtual const DtVector & origin () const
 
virtual void setPoint (int iIndex, const DtVector &)
 
virtual void setVisible (bool)
 
virtual void setPickable (bool)
 
virtual const std::vector
< DtVector > & 
points () const
 
virtual makVrv::DtUniqueID uniqueId () const
 
virtual makVrv::DtElementID elementId () const
 
virtual makVrv::DtModelSetId modelSet () const
 
makVrv::DtSceneObjectAgent * sceneObjectAgent () const
 
makVrv::DtPolygonModelAgent * polygonModelAgent () const
 

Protected Member Functions

void createAreaAgent ()
 

Protected Attributes

makVrv::DtExtrudedPolygonModelAgent * myExtrudedArea
 
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 makVrf::DtAreaFacadeBase
makVrv::DtPolygonModelAgent * myArea
 
makVrv::DtAgentManagerInterfacemyAgentManagerInterface
 
makVrv::DtSceneObjectAgent * mySceneObjectAgent
 
bool myOwnsSceneObjectAgent
 
float myOutsideColor [4]
 
float myInsideColor [4]
 
float mySelectedOutsideColor [4]
 
float mySelectedInsideColor [4]
 
bool mySelectedInsideColorSet
 
int myLineWidth
 
makVrv::DtModelSetId myModelSet
 
bool myFill
 
std::vector< DtVector > myControlPoints
 
bool myOriginSet
 
DtVector myOrigin
 
bool mySelected
 
bool myScribed
 
makVrv::DtElementID myElementId
 

Constructor & Destructor Documentation

makVrf::Dt3DAreaFacade::Dt3DAreaFacade ( makVrv::DtAgentManagerInterface ,
makVrv::DtSceneObjectAgent *  agent,
makVrv::DtElementID  id,
makVrv::DtModelSetId  modelSet 
)

Constructor that will take an existing scene object agent.

makVrf::Dt3DAreaFacade::Dt3DAreaFacade ( makVrv::DtAgentManagerInterface ,
makVrv::DtModelSetId  modelSet,
makVrv::DtElementID  id,
bool  distribute = false 
)

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

virtual makVrf::Dt3DAreaFacade::~Dt3DAreaFacade ( )
overridevirtual

DTOR.

Member Function Documentation

virtual void makVrf::Dt3DAreaFacade::setLineWidth ( int  )
overridevirtual

Sets the up extent of the 3D line to represent width. Setting this will turn off line height.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::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 makVrf::Dt3DAreaFacade::scribeWidth ( ) const

Returns current scribe width.

virtual void makVrf::Dt3DAreaFacade::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 makVrf::Dt3DAreaFacade::setSolid ( bool  b)
overridevirtual

Sets whether or not this item is solid (filled)

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::setOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
overridevirtual

Sets the outside color for the model.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::setSelectedOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
overridevirtual

Sets the selected outside color for the model.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::updateColors ( )
overridevirtual

passes down the colors to use to the model based on the current selection state.

Implements makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::setScribed ( bool  )
overridevirtual

Sets whether or not line is scribed. You will need to scribe a line if you want the edges of the line to appear separate from the body of the object. If you do not scribe the object the edges will be difficult to differentiate from the rest of the model.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt3DAreaFacade::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 makVrf::Dt3DAreaFacade::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 makVrf::Dt3DAreaFacade::setLineHeight ( float  )
virtual

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

virtual void makVrf::Dt3DAreaFacade::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 makVrf::Dt3DAreaFacade::upExtent ( ) const
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 void makVrf::Dt3DAreaFacade::setDownExtent ( 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 makVrf::Dt3DAreaFacade::downExtent ( ) const
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 void makVrf::Dt3DAreaFacade::setLeftExtent ( 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 makVrf::Dt3DAreaFacade::leftExtent ( ) const
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 void makVrf::Dt3DAreaFacade::setRightExtent ( 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 makVrf::Dt3DAreaFacade::rightExtent ( ) const
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.

void makVrf::Dt3DAreaFacade::createAreaAgent ( )
protected

Creates area agent used for facade. Called from constructor.

Member Data Documentation

makVrv::DtExtrudedPolygonModelAgent* makVrf::Dt3DAreaFacade::myExtrudedArea
protected
float makVrf::Dt3DAreaFacade::myLineHeight
protected
float makVrf::Dt3DAreaFacade::myUpExtent
protected
float makVrf::Dt3DAreaFacade::myDownExtent
protected
float makVrf::Dt3DAreaFacade::myRightExtent
protected
float makVrf::Dt3DAreaFacade::myLeftExtent
protected
bool makVrf::Dt3DAreaFacade::myScribeColorSet
protected
float makVrf::Dt3DAreaFacade::myScribeWidth
protected
bool makVrf::Dt3DAreaFacade::mySelectedOutsideColorSet
protected
float makVrf::Dt3DAreaFacade::myScribeColor[4]
protected
float makVrf::Dt3DAreaFacade::mySelectedScribeColor[4]
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)