VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
DtSdcRectangleObject Class Reference

A 2D rectangular Stealth Draw Control Object. More...

Inheritance diagram for DtSdcRectangleObject:
Inheritance graph
[legend]

Public Member Functions

 DtSdcRectangleObject (DtExerciseConn *exConn, unsigned id, const DtSdcVector2D &position, const DtSdcVector2D &size, double rotation=0.0, double scale=1.0, DtSdcColor color=DtSdcColor::DtSdcWhite, bool fill=false, unsigned pattern=0xffffffff, bool flashing=false)
 Construct an Rectangle Draw Control Object.
virtual ~DtSdcRectangleObject ()
- Public Member Functions inherited from DtSdcEllRectBase
virtual DtSdcVector2D position () const
 position accessor
virtual void setPosition (const DtSdcVector2D &position)
 position mutator
virtual DtSdcVector2D size () const
 size accessor
virtual void setSize (const DtSdcVector2D &size)
 size mutator
virtual double rotation () const
 rotation accessor
virtual void setRotation (double rotation)
 rotation mutator
virtual const DtSdcColorcolor () const
 color accessor
virtual void setColor (const DtSdcColor &color)
 color mutator
virtual bool fill () const
 fill accessor
virtual void setFill (bool fill)
 fill mutator
virtual unsigned pattern () const
 pattern accessor
virtual void setPattern (unsigned pattern)
 pattern mutator
virtual bool flashing () const
 flashing accessor
virtual void setFlashing (bool flashing)
 flashing mutator
virtual double scale () const
 scale accessor
virtual void setScale (double scale)
 scale mutator
virtual void setRemoteGraphicSet (const std::string &setName)
virtual void update ()
 update the internal pdu
- Public Member Functions inherited from DtSdc2DPositionedObject
 DtSdc2DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
virtual ~DtSdc2DPositionedObject ()
- Public Member Functions inherited from DtSdcObject
 DtSdcObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 Parameterized constructor.
virtual ~DtSdcObject ()
 Virtual destructor.
virtual unsigned id () const
 id accessor
virtual void setId (unsigned id)
 id mutator
virtual const
DtGlobalObjectDesignator
globalId () const
virtual void setVisible (bool yesNo)
virtual bool visible () const

Private Member Functions

 DtSdcRectangleObject ()
 Default constructor.

Additional Inherited Members

- Protected Member Functions inherited from DtSdcEllRectBase
 DtSdcEllRectBase (DtExerciseConn *exConn, unsigned id, const DtString &objName, const DtSdcVector2D &position, const DtSdcVector2D &size, double rotation=0.0, double scale=1.0, DtSdcColor color=DtSdcColor::DtSdcWhite, bool fill=false, unsigned pattern=0xffffffff, bool flashing=false)
 Construct the basis of an Ellipse or Rectangle Draw Control Object.
virtual ~DtSdcEllRectBase ()
- Protected Attributes inherited from DtSdcEllRectBase
DtSdcVector2D myPosition
DtSdcVector2D mySize
DtSdcColor myColor
unsigned myPattern
bool myFill
double myRotation
bool myFlashing
double myScale
Dt2DGraphicalObjectStateRecordmyStateRecord

Detailed Description

A 2D rectangular Stealth Draw Control Object.

DtSdcRectangleObject represents an Rectangular Draw Control Object that can be sent to a MAK Stealth to be drawn on it's main view. The class inherits DtSdcEllRectBase; it only needs to set the appropriate object type in it's constructor.

Constructor & Destructor Documentation

DtSdcRectangleObject::DtSdcRectangleObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtSdcVector2D position,
const DtSdcVector2D size,
double  rotation = 0.0,
double  scale = 1.0,
DtSdcColor  color = DtSdcColor::DtSdcWhite,
bool  fill = false,
unsigned  pattern = 0xffffffff,
bool  flashing = false 
)

Construct an Rectangle Draw Control Object.

Parameters
idPassed to DtSdcObject base (see) Center position on the screen - values go from [0.,0.] (left, bottom) to [1.,1.] (right, top)
sizeSize of object along the X and Y axes (before rotation) = values go from [0.,0.] to [1.,.1] (the entire screen)
rotationA counter-clockwise rotation to apply to the rectangle = values go from 0 to 2 PI
colorThe color of the rectangle outline (and fill, if filled)
fillA boolean parameter indicating whether or not the rectangle should be filled
patternA pattern used when filling the rectangle - values go from 0x00000000 (no fill) to 0xFFFFFF (solid)
flashingA boolean parameter indicating whether or not the rectangle should be flashing
virtual DtSdcRectangleObject::~DtSdcRectangleObject ( )
virtual
DtSdcRectangleObject::DtSdcRectangleObject ( )
private

Default constructor.

Private and not implemented - you must supply an id and basic geometric parameters to construct the rectangle


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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)