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

Public Member Functions | |
| DtTriangle3DObject (DtExerciseConn *exConn, unsigned id, const DtVector &vertex1, const DtVector &vertex2, const DtVector &vertex3, DtVector offset=DtVector::zero(), DtVdcColor color=DtVdcColor::DtVdcWhite, const DtString &textureDirectory="", const DtString &textureFilename=DtString::nullString(), int numTextureTiles=0, bool flashing=false) | |
| Construct the triangle Draw Control Object. | |
| virtual | ~DtTriangle3DObject () |
| 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 | |
Private Member Functions | |
| DtTriangle3DObject () | |
| Default constructor. | |
| DtTriangle3DObject (const DtTriangle3DObject &orig) | |
| Copy constructor. | |
| DtTriangle3DObject & | operator= (const DtTriangle3DObject &rhs) |
| Assignment operator. | |
A 3D Triangle Stealth Draw Control Object.
DtTriangle3DObject 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.
| vrvControlToolkit::DtTriangle3DObject::DtTriangle3DObject | ( | DtExerciseConn * | exConn, |
| unsigned | id, | ||
| const DtVector & | vertex1, | ||
| const DtVector & | vertex2, | ||
| const DtVector & | vertex3, | ||
| DtVector | offset = DtVector::zero(), |
||
| DtVdcColor | color = DtVdcColor::DtVdcWhite, |
||
| const DtString & | textureDirectory = "", |
||
| const DtString & | textureFilename = DtString::nullString(), |
||
| int | numTextureTiles = 0, |
||
| bool | flashing = false |
||
| ) |
Construct the triangle Draw Control Object.
| id | Passed to DtDrawControlObject 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 vrvControlToolkit::DtTriangle3DObject::~DtTriangle3DObject | ( | ) | [virtual] |
Default constructor.
Private and not implemented - you must supply an id and basic geometric parameters to construct the triangle
| vrvControlToolkit::DtTriangle3DObject::DtTriangle3DObject | ( | const DtTriangle3DObject & | orig | ) | [private] |
Copy constructor.
Private and unimplemented - not copyable.
| DtTriangle3DObject& vrvControlToolkit::DtTriangle3DObject::operator= | ( | const DtTriangle3DObject & | rhs | ) | [private] |
Assignment operator.
Private and unimplemented - not copyable.
| virtual const DtVector& vrvControlToolkit::DtTriangle3DObject::vertex1 | ( | ) | const [virtual] |
vertex1 accessor
Get the triangle's 1st vertex
| virtual void vrvControlToolkit::DtTriangle3DObject::setVertex1 | ( | const DtVector & | vertex1 | ) | [virtual] |
vertex1 mutator
Set the triangle's 1st vertex
| vertex1 | 1st vertex (in geocentric coordinates) |
| virtual const DtVector& vrvControlToolkit::DtTriangle3DObject::vertex2 | ( | ) | const [virtual] |
vertex2 accessor
Get the triangle's 2nd vertex
| virtual void vrvControlToolkit::DtTriangle3DObject::setVertex2 | ( | const DtVector & | vertex2 | ) | [virtual] |
vertex2 mutator
Set the triangle's 2nd vertex
| vertex2 | 2nd vertex (in geocentric coordinates) |
| virtual const DtVector& vrvControlToolkit::DtTriangle3DObject::vertex3 | ( | ) | const [virtual] |
vertex3 accessor
Get the triangle's 3rd vertex
| virtual void vrvControlToolkit::DtTriangle3DObject::setVertex3 | ( | const DtVector & | vertex3 | ) | [virtual] |
vertex3 mutator
Set the triangle's 3rd vertex
| vertex3 | 3rd vertex (in geocentric coordinates) |