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 | Protected Attributes
makVrv::DtAreaFacadeBase Class Referenceabstract

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. 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 setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 Sets the points for the area. More...
 
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. More...
 
virtual void setSelected (bool)
 Sets the area to be selected. More...
 
virtual bool selected ()
 Get the current selected state. More...
 
virtual void removePoint (int)
 Removes a point from the area. 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 setPoint (int iIndex, const DtVector &)
 Sets position in the area. 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...
 

Protected Attributes

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

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, and makVrv::Dt3DBoxFacade.

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

Sets the selected outside color. This color is used if the object is selected.

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

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

Sets inside color (fill) if available.

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

Sets the selected inside color.

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

Get the current selected state.

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::Dt3DAreaFacade, makVrv::Dt2DBoxFacade, makVrv::Dt3DBoxFacade, 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.

virtual void makVrv::DtAreaFacadeBase::updateColors ( )
pure virtual

pass the current color based on selection down to the model

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

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
float makVrv::DtAreaFacadeBase::mySelectedOutsideColor[4]
protected
float makVrv::DtAreaFacadeBase::mySelectedInsideColor[4]
protected
bool makVrv::DtAreaFacadeBase::mySelectedInsideColorSet
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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)