![]() |
VR-Forces 4.5 Class Documentation
|
A 2D rectangular Stealth Draw Control Object. More...

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 DtSdcColor & | color () 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 |
| Dt2DGraphicalObjectStateRecord * | myStateRecord |
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.
| 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.
| id | Passed to DtSdcObject base (see) Center position on the screen - values go from [0.,0.] (left, bottom) to [1.,1.] (right, top) |
| size | Size of object along the X and Y axes (before rotation) = values go from [0.,0.] to [1.,.1] (the entire screen) |
| rotation | A counter-clockwise rotation to apply to the rectangle = values go from 0 to 2 PI |
| color | The color of the rectangle outline (and fill, if filled) |
| fill | A boolean parameter indicating whether or not the rectangle should be filled |
| pattern | A pattern used when filling the rectangle - values go from 0x00000000 (no fill) to 0xFFFFFF (solid) |
| flashing | A boolean parameter indicating whether or not the rectangle should be flashing |
|
virtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the rectangle