VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
vrvControlToolkit::DtText3DObject Class Reference

A 3D Text Stealth Draw Control Object.

DtText3DObject represents text that can be positioned and displayed in the 3D scene. A color can be specified; and the text can flash, if desired.

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

Public Member Functions

 DtText3DObject (DtExerciseConn *exConn, unsigned id, const DtString &text, const DtVdc3DAttachPoint &attachment, const DtVector &offset=DtVector::zero(), DtVdcColor color=DtVdcColor::DtVdcWhite, bool flashing=false)
 
virtual ~DtText3DObject ()
 
virtual const DtStringtext () const
 
virtual void setText (const DtString &text)
 
virtual const DtVdc3DAttachPointattachment () const
 
virtual void setAttachment (const DtVdc3DAttachPoint &attachment)
 
virtual const DtVector32 & offset () const
 
virtual void setOffset (const DtVector32 &off)
 
virtual const DtVdcColorcolor () const
 
virtual void setColor (const DtVdcColor &color)
 
virtual bool flashing () const
 
virtual void setFlashing (bool flashing)
 
virtual void setRemoteGraphicSet (const std::string &setName)
 
virtual void update ()
 
- Public Member Functions inherited from vrvControlToolkit::Dt3DPositionedObject
 Dt3DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 
virtual ~Dt3DPositionedObject ()
 
- 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
 

Protected Member Functions

void initRecords ()
 

Protected Attributes

DtVdc3DAttachPoint myAttachment
 
DtVector32 myOffset
 
DtVdcColor myColor
 
bool myFlashing
 
DtString myText
 
DtEnvironmentalPointRecord myPointRecord
 
Dt3DGraphicalObjectStateRecord myStateRecord
 
- Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject
unsigned myId
 
DtEnvironmentProcessPublishermyPublisher
 
bool myVisible
 
DtVdcColor myEmptyColor
 

Private Member Functions

 DtText3DObject ()
 
 DtText3DObject (const DtText3DObject &orig)
 
DtText3DObjectoperator= (const DtText3DObject &rhs)
 

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
 

Constructor & Destructor Documentation

vrvControlToolkit::DtText3DObject::DtText3DObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtString text,
const DtVdc3DAttachPoint attachment,
const DtVector &  offset = DtVector::zero(),
DtVdcColor  color = DtVdcColor::DtVdcWhite,
bool  flashing = false 
)

Construct the text Draw Control Object.

Parameters
idPassed to DtDrawControlObject base (see)
textThe text to draw
attachmentDtVdc3DAttachPoint indicating how the text object is positioned in 3D
offseta 3D vector indicating an east/north/up offset (in meters) from the base attachment
colorThe color of the text
flashingA boolean parameter indicating whether or not the text should be flashing
virtual vrvControlToolkit::DtText3DObject::~DtText3DObject ( )
virtual
vrvControlToolkit::DtText3DObject::DtText3DObject ( )
private

Default constructor.

Private and not implemented - you must supply an id and basic geometric parameters to construct the ellipse or rectangle

vrvControlToolkit::DtText3DObject::DtText3DObject ( const DtText3DObject orig)
private

Copy constructor.

Private and unimplemented - not copyable.

Member Function Documentation

DtText3DObject& vrvControlToolkit::DtText3DObject::operator= ( const DtText3DObject rhs)
private

Assignment operator.

Private and unimplemented - not copyable.

virtual const DtString& vrvControlToolkit::DtText3DObject::text ( ) const
virtual

text accessor

Get the actual text to draw

Returns
Text
virtual void vrvControlToolkit::DtText3DObject::setText ( const DtString text)
virtual

text mutator

Set the text to be drawn

Parameters
textThe actual text to draw
virtual const DtVdc3DAttachPoint& vrvControlToolkit::DtText3DObject::attachment ( ) const
virtual

attachment accessor

Get the text's attachment information

Returns
DtVdc3DAttachPoint, which contains the attachment type and associated data

Implements vrvControlToolkit::Dt3DPositionedObject.

virtual void vrvControlToolkit::DtText3DObject::setAttachment ( const DtVdc3DAttachPoint attachment)
virtual

attachment mutator

Set the text's attachment information

Parameters
attachment

Implements vrvControlToolkit::Dt3DPositionedObject.

virtual const DtVector32& vrvControlToolkit::DtText3DObject::offset ( ) const
virtual

offset accessor

Get the object's offset from the attach point, in entity coordinates if attached, geocentric otherwise

Returns
[X, Y, Z] offset
virtual void vrvControlToolkit::DtText3DObject::setOffset ( const DtVector32 &  off)
virtual

offset mutator

Set the object's offset from the attach point, in entity coordinates if attached, geocentric otherwise

Parameters
off[X, Y, Z]
virtual const DtVdcColor& vrvControlToolkit::DtText3DObject::color ( ) const
virtual

color accessor

Get the color assigned to the text

Returns
Instance of DtVdcColor

Reimplemented from vrvControlToolkit::DtDrawControlObject.

virtual void vrvControlToolkit::DtText3DObject::setColor ( const DtVdcColor color)
virtual

color mutator

Set the color to use when drawing the text

Parameters
colorThe DtVdcColor to use

Reimplemented from vrvControlToolkit::DtDrawControlObject.

virtual bool vrvControlToolkit::DtText3DObject::flashing ( ) const
virtual

flashing accessor

Get the boolean that indicates whether or not the text should flash

Returns
true or false

Reimplemented from vrvControlToolkit::DtDrawControlObject.

virtual void vrvControlToolkit::DtText3DObject::setFlashing ( bool  flashing)
virtual

flashing mutator

Set the boolean that indicates whether or not the text should flash

Parameters
flashingtrue or false

Reimplemented from vrvControlToolkit::DtDrawControlObject.

virtual void vrvControlToolkit::DtText3DObject::setRemoteGraphicSet ( const std::string &  setName)
virtual
virtual void vrvControlToolkit::DtText3DObject::update ( )
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.

void vrvControlToolkit::DtText3DObject::initRecords ( )
protected

Member Data Documentation

DtVdc3DAttachPoint vrvControlToolkit::DtText3DObject::myAttachment
protected
DtVector32 vrvControlToolkit::DtText3DObject::myOffset
protected
DtVdcColor vrvControlToolkit::DtText3DObject::myColor
protected
bool vrvControlToolkit::DtText3DObject::myFlashing
protected
DtString vrvControlToolkit::DtText3DObject::myText
protected
DtEnvironmentalPointRecord vrvControlToolkit::DtText3DObject::myPointRecord
protected
Dt3DGraphicalObjectStateRecord vrvControlToolkit::DtText3DObject::myStateRecord
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)