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

Contains DtBoxFacadeBase class. More...

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

Public Member Functions

 DtBoxFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent. More...
 
 DtBoxFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id. More...
 
virtual ~DtBoxFacadeBase ()
 DTOR. More...
 
virtual void addPoint (int index, const DtVector &)
 Overridden to make sure no more than 4 points are added. More...
 
virtual void setPoint (int iIndex, const DtVector &)
 Sets position box. More...
 
virtual void removePoint (int)
 Overriden for no-op. Boxes cannot remove points. More...
 
virtual void setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 Overriden to make sure there are exactly 4 points. More...
 
- Public Member Functions inherited from makVrv::DtAreaFacadeBase
 DtAreaFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent. More...
 
 DtAreaFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id. More...
 
virtual ~DtAreaFacadeBase ()
 DTOR. More...
 
virtual void setModelDefinition (const std::string &)
 Sets the model definition for the model. More...
 
virtual void setColor (float r, float g, float b, float a)
 Sets the color for the area. This will apply to all segments of the area. More...
 
virtual void setOutsideColor (float r, float g, float b, float a)
 Sets the outside color (rim) if available. More...
 
virtual void setSelectedOutsideColor (float r, float g, float b, float a)
 Sets the selected outside color. This color is used if the object is selected. More...
 
virtual void setInsideColor (float r, float g, float b, float a)
 Sets inside color (fill) if available. More...
 
virtual void setSelectedInsideColor (float r, float g, float b, float a)
 Sets the selected inside color. More...
 
virtual void setLineWidth (int)
 Sets the width of the outside line. Default is 2. More...
 
virtual void setFill (bool)
 Sets whether or not to fill area. If fill style of line is specified, will override this flag. More...
 
virtual void setFillPattern (vrvTacticalGraphicUtilities::FillStyle)
 Sets the fill pattern for the area. More...
 
virtual void setSelected (bool)
 Sets the area to be selected. More...
 
virtual bool selected ()
 Get the current selected state. More...
 
virtual void setStipplePattern (int)
 Sets the pattern for the line portion of the area. More...
 
virtual void resetOrigin ()
 Once the origin is set it cannot be changed, unless this method is called first. More...
 
virtual void setOrigin (const DtVector &)
 Sets the origin of the area. More...
 
virtual const DtVectororigin () const
 Returns origin. More...
 
virtual void setScribed (bool)
 Sets whether or not line is scribed. More...
 
virtual void setUseDynamicOrigin (bool)
 Sets whether or not to use dynamic origins. More...
 
virtual void setSolid (bool)
 Sets whether or not this is a solid item. More...
 
virtual void setVisible (bool)
 Sets the object visible. More...
 
virtual void setPickable (bool)
 Sets pickable or not. More...
 
virtual const std::vector
< DtVector > & 
points () const
 Returns the points in this area. More...
 
virtual makVrv::DtUniqueID uniqueId () const
 Returns the unique id of the scene object agent. More...
 
virtual makVrv::DtElementID elementId () const
 Returns the element id of the scene object agent. More...
 
virtual int modelSet () const
 Returns the model set. More...
 
DtSceneObjectAgent * sceneObjectAgent () const
 Returns the scene object agent associated with this facade. More...
 
DtPolygonModelAgent * polygonModelAgent () const
 Returns the polygon model agent created for this class. More...
 
virtual void updateColors ()=0
 pass the current color based on selection down to the model More...
 

Additional Inherited Members

- Protected Attributes inherited from makVrv::DtAreaFacadeBase
DtPolygonModelAgent * myArea
 
DtAgentManagerInterfacemyAgentManagerInterface
 
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
 

Detailed Description

Contains DtBoxFacadeBase class.

Facade for a 2D (overlay) box. All boxes must have 4 points defined. If the lengths or widths of the sides are not equal then the facade will compensate for the largest side. It will not, however, change the values in the listener. Those will remain the same.

The points are laid out as 0 = upper left, 1 = upper right, 2 = lower right, 3 = lower left.

Constructor & Destructor Documentation

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

Constructor that will take an existing scene object agent.

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

DTOR.

Member Function Documentation

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

Overridden to make sure no more than 4 points are added.

Note this routine will not enforce the box shape. It is up to the caller of this routine to make sure that the point(s) set conform to a box

Reimplemented from makVrv::DtAreaFacadeBase.

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

Sets position box.

If index is > 3 it is ignored. Note this routine will not enforce the box shape. It is up to the caller of this routine to make sure that the point(s) set conform to a box

Reimplemented from makVrv::DtAreaFacadeBase.

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

Overriden for no-op. Boxes cannot remove points.

Reimplemented from makVrv::DtAreaFacadeBase.

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

Overriden to make sure there are exactly 4 points.

Note this routine will not enforce the box shape. It is up to the caller of this routine to make sure that the point(s) set conform to a box. If withOffset is specified, the offset is added to the supplied points.

Reimplemented from makVrv::DtAreaFacadeBase.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)