VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtAreaFacadeBase Class Reference

Contains DtAreaFacadeBase class. More...

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

Public Member Functions

 DtAreaFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 DtAreaFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~DtAreaFacadeBase ()
 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 area.
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 setLineWidth (int)
 Sets the width of the outside line. Default is 2.
virtual void setFill (bool)
 Sets whether or not to fill area. If fill style of line is specified, will override this flag.
virtual void setFillPattern (vrvTacticalGraphicUtilities::FillStyle)
 Sets the fill pattern for the area.
virtual void setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 Sets the points for the area.
virtual void addPoint (int index, const DtVector &)
 Adds a point to the area. Returns the index of the newly added point. Index of -1 will append.
virtual void setSelected (bool)
 Sets the area to be selected.
virtual void removePoint (int)
 Removes a point from the area.
virtual void setStipplePattern (int)
 Sets the pattern for the line portion of the area.
virtual void resetOrigin ()
 Once the origin is set it cannot be changed, unless this method is called first.
virtual void setOrigin (const DtVector &)
 Sets the origin of the area.
virtual const DtVectororigin () const
 Returns origin.
virtual void setScribed (bool)
 Sets whether or not line is scribed.
virtual void setPoint (int iIndex, const DtVector &)
 Sets position in the area.
virtual void setUseDynamicOrigin (bool)
 Sets whether or not to use dynamic origins.
virtual void setSolid (bool)
 Sets whether or not this is a solid item.
virtual void setVisible (bool)
 Sets the object visible.
virtual void setPickable (bool)
 Sets pickable or not.
virtual const std::vector
< DtVector > & 
points () const
 Returns the points in this area.
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.
DtSceneObjectAgent * sceneObjectAgent () const
 Returns the scene object agent associated with this facade.
DtPolygonModelAgent * polygonModelAgent () const
 Returns the polygon model agent created for this class.

Protected Attributes

DtPolygonModelAgent * myArea
DtAgentManagerInterfacemyAgentManagerInterface
DtSceneObjectAgent * mySceneObjectAgent
bool myOwnsSceneObjectAgent
float myOutsideColor [4]
float myInsideColor [4]
int myLineWidth
int myModelSet
bool myFill
std::vector< DtVectormyControlPoints
bool myOriginSet
DtVector myOrigin
bool mySelected
bool myScribed
makVrv::DtElementID myElementId

Detailed Description

Contains DtAreaFacadeBase class.

Facade base for constructing area objects

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

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

DTOR.

Member Function Documentation

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

Sets the model definition for the model.

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

Sets the color for the area.

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

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

Sets the outside color (rim) if available.

Reimplemented in makVrv::Dt3DAreaFacade, makVrv::Dt2DAreaFacade, makVrv::Dt2DBoxFacade, and makVrv::Dt3DBoxFacade.

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

Sets inside color (fill) if available.

Reimplemented in makVrv::Dt3DAreaFacade, makVrv::Dt2DAreaFacade, makVrv::Dt2DBoxFacade, and makVrv::Dt3DBoxFacade.

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

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

Reimplemented in makVrv::Dt3DAreaFacade.

virtual void makVrv::DtAreaFacadeBase::setFill ( bool  )
virtual

Sets whether or not to fill area. If fill style of line is specified, will override this flag.

virtual void makVrv::DtAreaFacadeBase::setFillPattern ( vrvTacticalGraphicUtilities::FillStyle  )
virtual

Sets the fill pattern for the area.

Note that this will also set the fill to be true if the fill pattern is one that will map to a valid fill pattern. This will be implemented by sub-classes as this feature is subclass specific

Reimplemented in makVrv::Dt2DAreaFacade.

virtual void makVrv::DtAreaFacadeBase::setPoints ( const std::vector< DtVector > &  ,
const DtVector withOffset = DtVector::zero() 
)
virtual

Sets the points for the area.

If withOffset is specified, the offset is added to the supplied points

Reimplemented in makVrv::DtBoxFacadeBase.

virtual void makVrv::DtAreaFacadeBase::addPoint ( int  index,
const DtVector  
)
virtual

Adds a point to the area. Returns the index of the newly added point. Index of -1 will append.

Reimplemented in makVrv::DtBoxFacadeBase.

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

Sets the area to be selected.

virtual void makVrv::DtAreaFacadeBase::removePoint ( int  )
virtual

Removes a point from the area.

Reimplemented in makVrv::DtBoxFacadeBase.

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

Sets the pattern for the line portion of the area.

virtual void makVrv::DtAreaFacadeBase::resetOrigin ( )
virtual

Once the origin is set it cannot be changed, unless this method is called first.

Call resetOrigin to make a future call to setOrigin reset the origin

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

Sets the origin of the area.

virtual const DtVector& makVrv::DtAreaFacadeBase::origin ( ) const
virtual

Returns origin.

virtual void makVrv::DtAreaFacadeBase::setScribed ( bool  )
virtual

Sets whether or not line is scribed.

Default is to do nothing. Implemented by subclasses that support line scribing

Reimplemented in makVrv::Dt3DAreaFacade, and makVrv::Dt3DBoxFacade.

virtual void makVrv::DtAreaFacadeBase::setPoint ( int  iIndex,
const DtVector  
)
virtual

Sets position in the area.

If index is not within the current bound of the number of points then no action is taken

Reimplemented in makVrv::DtBoxFacadeBase.

virtual void makVrv::DtAreaFacadeBase::setUseDynamicOrigin ( bool  )
virtual

Sets whether or not to use dynamic origins.

virtual void makVrv::DtAreaFacadeBase::setSolid ( bool  )
virtual

Sets whether or not this is a solid item.

Reimplemented in makVrv::Dt3DBoxFacade, makVrv::Dt2DBoxFacade, makVrv::Dt3DAreaFacade, and makVrv::Dt2DAreaFacade.

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

Sets the object visible.

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

Sets pickable or not.

virtual const std::vector<DtVector>& makVrv::DtAreaFacadeBase::points ( ) const
virtual

Returns the points in this area.

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

Returns the unique id of the scene object agent.

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

Returns the element id of the scene object agent.

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

Returns the model set.

DtSceneObjectAgent* makVrv::DtAreaFacadeBase::sceneObjectAgent ( ) const

Returns the scene object agent associated with this facade.

DtPolygonModelAgent* makVrv::DtAreaFacadeBase::polygonModelAgent ( ) const

Returns the polygon model agent created for this class.

Member Data Documentation

DtPolygonModelAgent* makVrv::DtAreaFacadeBase::myArea
protected
DtAgentManagerInterface& makVrv::DtAreaFacadeBase::myAgentManagerInterface
protected
DtSceneObjectAgent* makVrv::DtAreaFacadeBase::mySceneObjectAgent
protected
bool makVrv::DtAreaFacadeBase::myOwnsSceneObjectAgent
protected
float makVrv::DtAreaFacadeBase::myOutsideColor[4]
protected
float makVrv::DtAreaFacadeBase::myInsideColor[4]
protected
int makVrv::DtAreaFacadeBase::myLineWidth
protected
int makVrv::DtAreaFacadeBase::myModelSet
protected
bool makVrv::DtAreaFacadeBase::myFill
protected
std::vector<DtVector> makVrv::DtAreaFacadeBase::myControlPoints
protected
bool makVrv::DtAreaFacadeBase::myOriginSet
protected
DtVector makVrv::DtAreaFacadeBase::myOrigin
protected
bool makVrv::DtAreaFacadeBase::mySelected
protected
bool makVrv::DtAreaFacadeBase::myScribed
protected
makVrv::DtElementID makVrv::DtAreaFacadeBase::myElementId
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)