VR-Forces 4.6.1 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
makVrf::DtAttackLine Class Reference

This class will display a 2D representation of the attack line. More...

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

Public Member Functions

 DtAttackLine (makVrv::DtDe &de, int modelSet, makVrv::DtElementID sourceId, makVrv::DtElementID targetId, double wedgeSize)
 Will create a new scene object agent for the given model set and element id.
virtual ~DtAttackLine ()
virtual void setWedgeSize (double)
 Sets size of wedge (in degrees)
DtAttackLineAttachableUpdaterAgent * updater ()
 Updater for this line. Use to change margin, etc.
- Public Member Functions inherited from makVrv::Dt2DAreaFacade
 Dt2DAreaFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 Dt2DAreaFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~Dt2DAreaFacade ()
 DTOR.
virtual void setSolid (bool)
 Override to no-op as this is a 3D only concept.
virtual void setFillPattern (const std::vector< unsigned int > &)
 Sets the pattern to fill the 2D polygon with.
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 setFillPattern (vrvTacticalGraphicUtilities::FillStyle)
 Sets the fill pattern for the area.
virtual void setGroup (int)
 The higher the z order the "closer" to the eyepoint this element will be drawn.
- Public Member Functions inherited from makVrv::DtAreaFacadeBase
 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 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 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 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

DtAttackLineAttachableUpdaterAgent * myUpdater
 Agent use to change positions of points to always point from origin to destination.
double myWedgeSize
makVrv::DtDemyDe
- Protected Attributes inherited from makVrv::Dt2DAreaFacade
DtOverlayPolygonModelAgent * myPolygonArea
- Protected Attributes inherited from makVrv::DtAreaFacadeBase
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

Additional Inherited Members

- Protected Member Functions inherited from makVrv::Dt2DAreaFacade
void createPolygonModelAgent ()
 Creates the polygon model agent (area) to be used with this facade. Called from constructor.

Detailed Description

This class will display a 2D representation of the attack line.

The attack line is a wedge that is drawn from the origin of the attacking to the origin of the target entity

Constructor & Destructor Documentation

makVrf::DtAttackLine::DtAttackLine ( makVrv::DtDe de,
int  modelSet,
makVrv::DtElementID  sourceId,
makVrv::DtElementID  targetId,
double  wedgeSize 
)

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

virtual makVrf::DtAttackLine::~DtAttackLine ( )
virtual

Member Function Documentation

virtual void makVrf::DtAttackLine::setWedgeSize ( double  )
virtual

Sets size of wedge (in degrees)

DtAttackLineAttachableUpdaterAgent* makVrf::DtAttackLine::updater ( )
inline

Updater for this line. Use to change margin, etc.

Member Data Documentation

DtAttackLineAttachableUpdaterAgent* makVrf::DtAttackLine::myUpdater
protected

Agent use to change positions of points to always point from origin to destination.

double makVrf::DtAttackLine::myWedgeSize
protected
makVrv::DtDe& makVrf::DtAttackLine::myDe
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)