VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
vrvControlToolkit::DtTriangle3DObject Class Reference

A 3D Triangle Stealth Draw Control Object. More...

Inheritance diagram for vrvControlToolkit::DtTriangle3DObject:
Inheritance graph
[legend]

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 DtVectorvertex1 () const
 vertex1 accessor
virtual void setVertex1 (const DtVector &vertex1)
 vertex1 mutator
virtual const DtVectorvertex2 () const
 vertex2 accessor
virtual void setVertex2 (const DtVector &vertex2)
 vertex2 mutator
virtual const DtVectorvertex3 () const
 vertex3 accessor
virtual void setVertex3 (const DtVector &vertex3)
 vertex3 mutator
- Public Member Functions inherited from vrvControlToolkit::DtArea3DObject
 DtArea3DObject (DtExerciseConn *exConn, unsigned id, std::vector< DtVector > vertices, DtVector offset=DtVector::zero(), DtVdcColor color=DtVdcColor::DtVdcWhite, const DtString &textureDirectory="", const DtString &textureFilename=DtString::nullString(), int numTextureTiles=0, bool flashing=false)
 Construct the area Draw Control Object.
virtual ~DtArea3DObject ()
virtual const DtVector32 & offset () const
 offset accessor
virtual void setOffset (const DtVector32 &off)
 offset mutator
virtual const DtVdcColorcolor () const
 color accessor
virtual void setColor (const DtVdcColor &color)
 color mutator
virtual bool flashing () const
 flashing accessor
virtual void setFlashing (bool flashing)
 flashing mutator
virtual const DtStringtextureDirectory () const
 Texture directory accessor.
virtual void setTextureDirectory (const DtString &str)
 Texture directory mutator.
virtual const DtStringtextureFilename () 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 DtVectorvertex (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 vrvControlToolkit::DtDrawControlObject
 DtDrawControlObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 Parameterized constructor.
virtual ~DtDrawControlObject ()
 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

 DtTriangle3DObject ()
 Default constructor.
 DtTriangle3DObject (const DtTriangle3DObject &orig)
 Copy constructor.
DtTriangle3DObjectoperator= (const DtTriangle3DObject &rhs)
 Assignment operator.

Additional Inherited Members

- Static Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject
static void setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator)
- Protected Member Functions inherited from vrvControlToolkit::DtArea3DObject
virtual void calculateBoundingSphere ()
virtual void setStateRecordUserData ()
void initRecords ()
- Protected Attributes inherited from vrvControlToolkit::DtArea3DObject
DtVector32 myOffset
DtVdcColor myColor
bool myFlashing
int myNumVertices
std::vector< DtVectormyVertices
DtString myTextureFilename
DtString myTextureDirectory
int myNumTextureTiles
std::vector
< DtEnvironmentalPointRecord > 
myPointRecords
DtEnvironmentalBoundingSphereRecord myBoundingSphereRecord
Dt3DGraphicalObjectStateRecord myStateRecord
DtVector myEmptyVertex
- Static Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject
static
DtEnvironmentProcessPublisherCreator
thePublisherCreator

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
idPassed to DtDrawControlObject base (see)
vertex11st vertex of the triangle, in geocentric coordinates
vertex22nd vertex of the triangle, in geocentric coordinates
vertex33rd vertex of the triangle, in geocentric coordinates
colorThe color to apply to all segments constructed
flashingA boolean parameter indicating whether or not the triangle should be flashing
virtual vrvControlToolkit::DtTriangle3DObject::~DtTriangle3DObject ( )
virtual
vrvControlToolkit::DtTriangle3DObject::DtTriangle3DObject ( )
private

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.

Member Function Documentation

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

Returns
1st vertex (in geocentric coordinates)
virtual void vrvControlToolkit::DtTriangle3DObject::setVertex1 ( const DtVector vertex1)
virtual

vertex1 mutator

Set the triangle's 1st vertex

Parameters
vertex11st vertex (in geocentric coordinates)
virtual const DtVector& vrvControlToolkit::DtTriangle3DObject::vertex2 ( ) const
virtual

vertex2 accessor

Get the triangle's 2nd vertex

Returns
2nd vertex (in geocentric coordinates)
virtual void vrvControlToolkit::DtTriangle3DObject::setVertex2 ( const DtVector vertex2)
virtual

vertex2 mutator

Set the triangle's 2nd vertex

Parameters
vertex22nd vertex (in geocentric coordinates)
virtual const DtVector& vrvControlToolkit::DtTriangle3DObject::vertex3 ( ) const
virtual

vertex3 accessor

Get the triangle's 3rd vertex

Returns
3rd vertex (in geocentric coordinates)
virtual void vrvControlToolkit::DtTriangle3DObject::setVertex3 ( const DtVector vertex3)
virtual

vertex3 mutator

Set the triangle's 3rd vertex

Parameters
vertex33rd vertex (in geocentric coordinates)

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)