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 | Private Member Functions
vrvControlToolkit::DtRectangleObject Class Reference

A 2D rectangular Stealth Draw Control Object.

DtRectangleObject represents an Rectangular Draw Control Object that can be sent to a MAK Stealth to be drawn on its main view. The class inherits DtEllipseRectangleBase; it only needs to set the appropriate object type in its constructor.

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

Public Member Functions

 DtRectangleObject (DtExerciseConn *exConn, unsigned id, const DtVdcVector2D &position, const DtVdcVector2D &size, double rotation=0.0, double scale=1.0, DtVdcColor color=DtVdcColor::DtVdcWhite, bool fill=false, unsigned pattern=0xffffffff, bool flashing=false)
 
virtual ~DtRectangleObject ()
 
- Public Member Functions inherited from vrvControlToolkit::DtEllipseRectangleBase
virtual DtVdcVector2D position () const
 
virtual void setPosition (const DtVdcVector2D &position)
 
virtual DtVdcVector2D size () const
 
virtual void setSize (const DtVdcVector2D &size)
 
virtual double rotation () const
 
virtual void setRotation (double rotation)
 
virtual const DtVdcColorcolor () const
 
virtual void setColor (const DtVdcColor &color)
 
virtual bool fill () const
 
virtual void setFill (bool fill)
 
virtual unsigned pattern () const
 
virtual void setPattern (unsigned pattern)
 
virtual bool flashing () const
 
virtual void setFlashing (bool flashing)
 
virtual double scale () const
 
virtual void setScale (double scale)
 
virtual void setRemoteGraphicSet (const std::string &setName)
 
virtual void update ()
 
- Public Member Functions inherited from vrvControlToolkit::Dt2DPositionedObject
 Dt2DPositionedObject (DtExerciseConn *exConn, unsigned id, const DtString &objName)
 
virtual ~Dt2DPositionedObject ()
 
- 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
 

Private Member Functions

 DtRectangleObject ()
 

Additional Inherited Members

- Static Public Member Functions inherited from vrvControlToolkit::DtDrawControlObject
static void setPublisherCreator (DtEnvironmentProcessPublisherCreator *creator)
 
- Protected Member Functions inherited from vrvControlToolkit::DtEllipseRectangleBase
 DtEllipseRectangleBase (DtExerciseConn *exConn, unsigned id, const DtString &objName, const DtVdcVector2D &position, const DtVdcVector2D &size, double rotation=0.0, double scale=1.0, DtVdcColor color=DtVdcColor::DtVdcWhite, bool fill=false, unsigned pattern=0xffffffff, bool flashing=false)
 
virtual ~DtEllipseRectangleBase ()
 
- Protected Attributes inherited from vrvControlToolkit::DtEllipseRectangleBase
DtVdcVector2D myPosition
 
DtVdcVector2D mySize
 
DtVdcColor myColor
 
unsigned myPattern
 
bool myFill
 
double myRotation
 
bool myFlashing
 
double myScale
 
Dt2DGraphicalObjectStateRecordmyStateRecord
 
- Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject
unsigned myId
 
DtEnvironmentProcessPublishermyPublisher
 
bool myVisible
 
DtVdcColor myEmptyColor
 
- Static Protected Attributes inherited from vrvControlToolkit::DtDrawControlObject
static
DtEnvironmentProcessPublisherCreator
thePublisherCreator
 

Constructor & Destructor Documentation

vrvControlToolkit::DtRectangleObject::DtRectangleObject ( DtExerciseConn *  exConn,
unsigned  id,
const DtVdcVector2D position,
const DtVdcVector2D size,
double  rotation = 0.0,
double  scale = 1.0,
DtVdcColor  color = DtVdcColor::DtVdcWhite,
bool  fill = false,
unsigned  pattern = 0xffffffff,
bool  flashing = false 
)

Construct an Rectangle Draw Control Object.

Parameters
idPassed to DtDrawControlObject base (see) Position of the left-bottom corner on the screen - values go from [0.,0.] (left, bottom) to [1.,1.] (right, top)
sizeSize of object along the X and Y axes (before rotation) = values go from [0.,0.] to [1.,.1] (the entire screen) These are the dimensions of the rectangle
rotationA counter-clockwise rotation to apply to the rectangle = values go from 0 to 2 PI
colorThe color of the rectangle outline (and fill, if filled)
fillA boolean parameter indicating whether or not the rectangle should be filled
patternA pattern used when filling the rectangle - values go from 0x00000000 (no fill) to 0xFFFFFF (solid)
flashingA boolean parameter indicating whether or not the rectangle should be flashing
virtual vrvControlToolkit::DtRectangleObject::~DtRectangleObject ( )
virtual
vrvControlToolkit::DtRectangleObject::DtRectangleObject ( )
private

Default constructor.

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


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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)