VR-Forces 5.0.1 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::Dt2DAreaFacade Class Reference

Contains Dt2DAreaFacade class. Facade interface for constructing 2D area objects.

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

Public Member Functions

 Dt2DAreaFacade (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, int modelSet)
 
 Dt2DAreaFacade (makVrv::DtAgentManagerInterface &, int modelSet, makVrv::DtElementID id, bool distribute=false)
 
virtual ~Dt2DAreaFacade ()
 
virtual void setSolid (bool)
 
virtual void setFillPattern (const std::vector< unsigned int > &)
 
virtual void updateColors ()
 
virtual void setFillPattern (makVrv::vrvTacticalGraphicUtilities::FillStyle)
 
virtual void setGroup (int)
 
- Public Member Functions inherited from makVrf::DtAreaFacadeBase
 DtAreaFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, int modelSet)
 
 DtAreaFacadeBase (makVrv::DtAgentManagerInterface &, int 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 setOutsideColor (float r, float g, float b, float a)
 
virtual void setSelectedOutsideColor (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 setLineWidth (int)
 
virtual void setFill (bool)
 
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 DtVectororigin () const
 
virtual void setScribed (bool)
 
virtual void setPoint (int iIndex, const DtVector &)
 
virtual void setUseDynamicOrigin (bool)
 
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 int modelSet () const
 
makVrv::DtSceneObjectAgent * sceneObjectAgent () const
 
makVrv::DtPolygonModelAgent * polygonModelAgent () const
 

Protected Member Functions

void createPolygonModelAgent ()
 

Protected Attributes

makVrv::DtOverlayPolygonModelAgent * myPolygonArea
 
- 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
 
int myModelSet
 
bool myFill
 
std::vector< DtVectormyControlPoints
 
bool myOriginSet
 
DtVector myOrigin
 
bool mySelected
 
bool myScribed
 
makVrv::DtElementID myElementId
 

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

makVrf::Dt2DAreaFacade::Dt2DAreaFacade ( makVrv::DtAgentManagerInterface ,
int  modelSet,
makVrv::DtElementID  id,
bool  distribute = false 
)

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

virtual makVrf::Dt2DAreaFacade::~Dt2DAreaFacade ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::Dt2DAreaFacade::setSolid ( bool  )
virtual

Override to no-op as this is a 3D only concept.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt2DAreaFacade::setFillPattern ( const std::vector< unsigned int > &  )
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.

virtual void makVrf::Dt2DAreaFacade::updateColors ( )
virtual

pass the colors down to the model based on the selected state.

Implements makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt2DAreaFacade::setFillPattern ( makVrv::vrvTacticalGraphicUtilities::FillStyle  )
virtual

Sets the fill pattern for the area.

Reimplemented from makVrf::DtAreaFacadeBase.

virtual void makVrf::Dt2DAreaFacade::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 makVrf::Dt2DAreaFacade::createPolygonModelAgent ( )
protected

Creates the polygon model agent (area) to be used with this facade. Called from constructor.

Member Data Documentation

makVrv::DtOverlayPolygonModelAgent* makVrf::Dt2DAreaFacade::myPolygonArea
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)