![]() |
VR-Forces 5.0.3 Developer's Guide
|
A 2D rectangular Stealth Draw Control Object.
DtRectangleObject represents an Rectangular Draw Control Object that can be sent to a MAK Stealth to be drawn on its main view. The class inherits DtEllipseRectangleBase; it only needs to set the appropriate object type in its constructor.

Public Member Functions | |
| DtRectangleObject (DtExerciseConn *exConn, unsigned id, const DtVdcVector2D &position, const DtVdcVector2D &size, double rotation=0.0, double scale=1.0, DtVdcColor color=DtVdcColor::DtVdcWhite, bool fill=false, unsigned pattern=0xffffffff, bool flashing=false) | |
| virtual | ~DtRectangleObject () |
Public Member Functions inherited from vrvControlToolkit::DtEllipseRectangleBase | |
| virtual DtVdcVector2D | position () const |
| virtual void | setPosition (const DtVdcVector2D &position) |
| virtual DtVdcVector2D | size () const |
| virtual void | setSize (const DtVdcVector2D &size) |
| virtual double | rotation () const |
| virtual void | setRotation (double rotation) |
| virtual const DtVdcColor & | color () const |
| virtual void | setColor (const DtVdcColor &color) |
| virtual bool | fill () const |
| virtual void | setFill (bool fill) |
| virtual unsigned | pattern () const |
| virtual void | setPattern (unsigned pattern) |
| virtual bool | flashing () const |
| virtual void | setFlashing (bool flashing) |
| virtual double | scale () const |
| virtual void | setScale (double scale) |
| virtual void | setRemoteGraphicSet (const std::string &setName) |
| virtual void | update () |
Public Member Functions inherited from vrvControlToolkit::Dt2DPositionedObject | |
| Dt2DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| virtual | ~Dt2DPositionedObject () |
Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject | |
| DtDrawControlObject (DtExerciseConn *exConn, unsigned id, const DtString &objName) | |
| virtual | ~DtDrawControlObject () |
| virtual unsigned | id () const |
| virtual void | setId (unsigned id) |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| virtual void | setVisible (bool yesNo) |
| virtual bool | visible () const |
Private Member Functions | |
| DtRectangleObject () | |
| vrvControlToolkit::DtRectangleObject::DtRectangleObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdcVector2D & | position, | ||
| const DtVdcVector2D & | size, | ||
| double | rotation = 0.0, |
||
| double | scale = 1.0, |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | fill = false, |
||
| unsigned | pattern = 0xffffffff, |
||
| bool | flashing = false |
||
| ) |
Construct an Rectangle Draw Control Object.
| id | Passed to DtDrawControlObject base (see) Position of the left-bottom corner 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) These are the dimensions of the rectangle |
| 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