![]() |
VR-Forces Developer's Guide
|
A 2D triangular Stealth Draw Control Object.
DtTriangle2DObject represents an Triangular Draw Control Object that can be sent to a MAK Stealth to be drawn on its main view. The class inherits DtDrawControlObject

Protected Member Functions | |
| virtual DtVdcVector2D | transformVertex (const DtVdcVector2D &v, const DtVdcVector2D ¢er) const |
| virtual void | transformVertices () |
Protected Attributes | |
| DtVdcVector2D | myVertex1 |
| DtVdcVector2D | myVertex2 |
| DtVdcVector2D | myVertex3 |
| DtVdcVector2D | myOffset |
| DtVdcVector2D | myScale |
| DtVdcColor | myColor |
| unsigned | myPattern |
| bool | myFill |
| double | myRotation |
| bool | myFlashing |
| Dt2DGraphicalObjectStateRecord * | myStateRecord |
Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject | |
| unsigned | myId |
| DtEnvironmentProcessPublisher * | myPublisher |
| bool | myVisible |
| DtVdcColor | myEmptyColor |
Private Member Functions | |
| DtTriangle2DObject () | |
Additional Inherited Members | |
Static Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject | |
| static void | setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator) |
Static Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject | |
| static DtEnvironmentProcessPublisherCreator * | thePublisherCreator |
| vrvControlToolkit::DtTriangle2DObject::DtTriangle2DObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVdcVector2D & | vertex1, | ||
| const DtVdcVector2D & | vertex2, | ||
| const DtVdcVector2D & | vertex3, | ||
| const DtVdcVector2D & | offset = DtVdcVector2D::zero(), |
||
| const DtVdcVector2D & | scale = DtVdcVector2D::ones(), |
||
| double | rotation = 0.0, |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| bool | fill = false, |
||
| unsigned | pattern = 0xffffffff, |
||
| bool | flashing = false |
||
| ) |
Construct the Triangle Draw Control Object.
| id | Passed to DtDrawControlObject base (see) |
| vertex1 | Coordinates of the 1st vertex of the triangle. Values go from [0.,0.] to [1.,1.] |
| vertex2 | Coordinates of the 2nd vertex of the triangle. Values go from [0.,0.] to [1.,1.] |
| vertex3 | Coordinates of the 3rd vertex of the triangle. Values go from [0.,0.] to [1.,1.] |
| offset | These coordinate values are added to the coordinates of each vertex specified. Values go from [0.,0.] to [1.,1.] |
| scale | Scaling factor for an object Values go from [0.,0.] to [1.,1.] (the size of the screen along the X, y axes) |
| rotation | A counter-clockwise rotation to apply to the object - values go from 0 to 2 PI |
| color | The color of the object outline (and fill, if filled) |
| fill | A boolean parameter indicating whether or not the object should be filled |
| pattern | A pattern used when filling the object - values go from 0x00000000 (no fill) to 0xFFFFFF (solid) |
| flashing | A boolean parameter indicating whether or not the object should be flashing |
| vrvControlToolkit::DtTriangle2DObject::DtTriangle2DObject | ( | const DtTriangle2DObject & | orig | ) |
Copy constructor.
If you're really cloning a Draw Control Object, be sure to give it a unique id after cloning using the setId() method.
|
virtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the ellipse or rectangle
| DtTriangle2DObject& vrvControlToolkit::DtTriangle2DObject::operator= | ( | const DtTriangle2DObject & | rhs | ) |
Assignment operator.
|
virtual |
vertex1 accessor
Get the position of the triangle's first vertex.
|
virtual |
vertex1 mutator
Set the position of the triangle's first vertex.
| vertex | [0.,0.] to [1.,1.] |
|
virtual |
vertex2 accessor
Get the position of the triangle's second vertex.
|
virtual |
vertex2 mutator
Set the position of the triangle's second vertex.
| vertex | [0.,0.] to [1.,1.] |
|
virtual |
vertex3 accessor
Get the position of the triangle's third vertex.
|
virtual |
vertex3 mutator
Set the position of the triangle's third vertex.
| vertex | [0.,0.] to [1.,1.] |
|
virtual |
offset accessor
Get the object's offset
|
virtual |
offset mutator
Set the object's offset
| offset | [0.,0.] to [1.,1.] |
|
virtual |
scale accessor
Get the object's scale factor in X and Y
|
virtual |
scale mutator
Set the object's scale factor in X and Y
| scale | [0.,0.] to [1.,1.] |
|
virtual |
rotation accessor
Get the counter-clockwise rotation of the object about its center
|
virtual |
rotation mutator
Set the counter-clockwise rotation of the object about center
| rotation | 0. to 2 PI radians |
|
virtual |
color accessor
Get the color assigned to this object
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
color mutator
Set the color to use when drawing (and filling) this object
| color | The DtVdcColor to use |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
fill accessor
Get the boolean that indicates whether or not the object should be filled when drawn.
|
virtual |
fill mutator
Set the boolean that indicates whether or not the object should be filled when drawn.
| fill | true or false |
|
virtual |
pattern accessor
Get the fill pattern to use if the object will be filled
|
virtual |
pattern mutator
Set the fill pattern to use if the object will be filled
| pattern | The fill pattern, 0x00000000 to 0xFFFFFFFF. The object is filled by a series of vertical lines that conform to the pattern, where each on bit results in a vertical line of the object's color |
|
virtual |
flashing accessor
Get the boolean that indicates whether or not the object should flash
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
flashing mutator
Set the boolean that indicates whether or not the object should flash
| flashing | true or false |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
Reimplemented from vrvControlToolkit::DtDrawControlObject.
|
virtual |
update the internal pdu
Make sure the internal pdu reflects the actual state of the draw control object's members. This is necessary because some members can be modified directly (which make the interface easier to use). DtStealthRemoteDrawer::update() calls this, so the user doesn't need to; but if the user is accessing the pdu directly (via the pdu() accessor) this should be called before using the pdu.
Implements vrvControlToolkit::DtDrawControlObject.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |