![]() |
VR-Forces Development_Version Class Documentation
|
A 3D Triangle Stealth Draw Control Object. More...

Public Member Functions | |
| DtSdcTriangle3DObject (DtExerciseConn *exConn, unsigned id, const DtVector &vertex1, const DtVector &vertex2, const DtVector &vertex3, DtVector32 offset=DtVector32::zero(), DtSdcColor color=DtSdcColor::DtSdcWhite, const DtString &textureDirectory="", const DtString &textureFilename=DtString::nullString(), int numTextureTiles=0, bool flashing=false) | |
| Construct the triangle Draw Control Object. | |
| virtual | ~DtSdcTriangle3DObject () |
| virtual const DtVector & | vertex1 () const |
| vertex1 accessor | |
| virtual void | setVertex1 (const DtVector &vertex1) |
| vertex1 mutator | |
| virtual const DtVector & | vertex2 () const |
| vertex2 accessor | |
| virtual void | setVertex2 (const DtVector &vertex2) |
| vertex2 mutator | |
| virtual const DtVector & | vertex3 () const |
| vertex3 accessor | |
| virtual void | setVertex3 (const DtVector &vertex3) |
| vertex3 mutator | |
Public Member Functions inherited from DtSdcArea3DObject | |
| DtSdcArea3DObject (DtExerciseConn *exConn, unsigned id, std::vector< DtVector > vertices, DtVector32 offset=DtVector32::zero(), DtSdcColor color=DtSdcColor::DtSdcWhite, const DtString &textureDirectory="", const DtString &textureFilename=DtString::nullString(), int numTextureTiles=0, bool flashing=false) | |
| Construct the area Draw Control Object. | |
| virtual | ~DtSdcArea3DObject () |
| virtual const DtVector32 & | offset () const |
| offset accessor | |
| virtual void | setOffset (const DtVector32 &off) |
| offset mutator | |
| virtual const DtSdcColor & | color () const |
| color accessor | |
| virtual void | setColor (const DtSdcColor &color) |
| color mutator | |
| virtual bool | flashing () const |
| flashing accessor | |
| virtual void | setFlashing (bool flashing) |
| flashing mutator | |
| virtual const DtString & | textureDirectory () const |
| Texture directory accessor. | |
| virtual void | setTextureDirectory (const DtString &str) |
| Texture directory mutator. | |
| virtual const DtString & | textureFilename () const |
| Texture file name accessor. | |
| virtual void | setTextureFilename (const DtString &str) |
| Texture file name mutator. | |
| virtual int | numTextureTiles () const |
| Texture tile repetitions accessor. | |
| virtual void | setNumTextureTiles (int numTextureTiles) |
| Texture tile repetitions mutator. | |
| virtual void | update () |
| update the internal pdu | |
| virtual const DtVector & | vertex (int index) const |
| vertex accessor | |
| virtual void | setVertex (int index, const DtVector &vertex) |
| vertex mutator | |
| virtual void | setRemoteGraphicSet (const std::string &setName) |
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 | |
| DtSdcTriangle3DObject () | |
| Default constructor. | |
| DtSdcTriangle3DObject (const DtSdcTriangle3DObject &orig) | |
| Copy constructor. | |
| DtSdcTriangle3DObject & | operator= (const DtSdcTriangle3DObject &rhs) |
| Assignment operator. | |
Additional Inherited Members | |
Protected Member Functions inherited from DtSdcArea3DObject | |
| virtual void | calculateBoundingSphere () |
| virtual void | setStateRecordUserData () |
| void | initRecords () |
Protected Attributes inherited from DtSdcArea3DObject | |
| DtVector32 | myOffset |
| DtSdcColor | myColor |
| bool | myFlashing |
| int | myNumVertices |
| std::vector< DtVector > | myVertices |
| DtString | myTextureFilename |
| DtString | myTextureDirectory |
| int | myNumTextureTiles |
| std::vector < DtEnvironmentalPointRecord > | myPointRecords |
| DtEnvironmentalBoundingSphereRecord | myBoundingSphereRecord |
| Dt3DGraphicalObjectStateRecord | myStateRecord |
| DtVector | myEmptyVertex |
A 3D Triangle Stealth Draw Control Object.
DtSdcTriangle3DObject represents a triangle that can be positioned and displayed in the 3D scene. A color may be specified; and the triangle can flash, if desired.
| DtSdcTriangle3DObject::DtSdcTriangle3DObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVector & | vertex1, | ||
| const DtVector & | vertex2, | ||
| const DtVector & | vertex3, | ||
| DtVector32 | offset = DtVector32::zero(), |
||
| DtSdcColor | color = DtSdcColor::DtSdcWhite, |
||
| const DtString & | textureDirectory = "", |
||
| const DtString & | textureFilename = DtString::nullString(), |
||
| int | numTextureTiles = 0, |
||
| bool | flashing = false |
||
| ) |
Construct the triangle Draw Control Object.
| id | Passed to DtSdcObject base (see) |
| vertex1 | 1st vertex of the triangle, in geocentric coordinates |
| vertex2 | 2nd vertex of the triangle, in geocentric coordinates |
| vertex3 | 3rd vertex of the triangle, in geocentric coordinates |
| color | The color to apply to all segments constructed |
| flashing | A boolean parameter indicating whether or not the triangle should be flashing |
|
virtual |
|
private |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the triangle
|
private |
Copy constructor.
Private and unimplemented - not copyable.
|
private |
Assignment operator.
Private and unimplemented - not copyable.
|
virtual |
vertex1 accessor
Get the triangle's 1st vertex
|
virtual |
vertex1 mutator
Set the triangle's 1st vertex
| vertex1 | 1st vertex (in geocentric coordinates) |
|
virtual |
vertex2 accessor
Get the triangle's 2nd vertex
|
virtual |
vertex2 mutator
Set the triangle's 2nd vertex
| vertex2 | 2nd vertex (in geocentric coordinates) |
|
virtual |
vertex3 accessor
Get the triangle's 3rd vertex
|
virtual |
vertex3 mutator
Set the triangle's 3rd vertex
| vertex3 | 3rd vertex (in geocentric coordinates) |