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 Types | Protected Member Functions | Protected Attributes | Private Attributes
makVrv::DtGraphAttribute Class Reference

The attribute layout tells DtAttributes where to draw.

Inheritance diagram for makVrv::DtGraphAttribute:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtGraphAttribute ()
 
 DtGraphAttribute ()=delete
 
 DtGraphAttribute (const DtGraphAttribute &other)=delete
 
DtGraphAttributeoperator= (const DtGraphAttribute &other)=delete
 
virtual void setOffset (double x, double y)
 
virtual void setPosition (float x, float y, float z, float w)
 
virtual void getMinSize (double &xOut, double &yOut)
 
virtual void setSize (double x, double y)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setPoint (unsigned int pointIndex, double x, double y)
 
virtual void clear ()
 
virtual void setShadowText (bool enabled)
 
virtual void setVisible (bool visible)
 
virtual bool visible () const
 
virtual void setLodOutAltitude (double lodOutAltitude)
 
virtual double lodOutAltitude () const
 
virtual void setIsLodOutAltitudeEnabled (bool isEnabled)
 
virtual bool isLodOutAltitudeEnabled () const
 
virtual void setOverlay (unsigned int overlayId)
 
virtual void setGroup (unsigned int group)
 
- Public Member Functions inherited from makVrv::DtAttribute
 DtAttribute ()
 
virtual ~DtAttribute ()
 
 DtAttribute (const DtAttribute &other)=delete
 
DtAttributeoperator= (const DtAttribute &other)=delete
 
virtual void setForegroundGroup (unsigned int group)
 
virtual void setBackgroundGroup (unsigned int group)
 

Protected Types

typedef std::vector
< DtLineSegment * > 
LineSegments
 
typedef std::vector
< DtQuadProxyInterface * > 
Quads
 
typedef std::vector< Dt2dPointDtPointList
 

Protected Member Functions

 DtGraphAttribute (DtDe &de, int maxValues)
 
virtual void draw ()
 

Protected Attributes

LineSegments myLineSegments
 
Quads myQuads
 
DtPointList myPoints
 
DtBaseOutlineAttributemyOutline
 
DtDemyDe
 
float myX
 
float myY
 
float myZ
 
float myW
 
double myOffsetX
 
double myOffsetY
 
double mySizeX
 
double mySizeY
 
float myR
 
float myG
 
float myB
 
float myA
 
bool myVisible
 
int myMaxValues
 

Private Attributes

friend DtGraphAttributeCreator
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtAttribute
boost::signalslib::signal
< void(DtAttribute *, double,
double)> 
signal_sizeChanged
 

Member Typedef Documentation

typedef std::vector<DtLineSegment*> makVrv::DtGraphAttribute::LineSegments
protected
typedef std::vector<DtQuadProxyInterface*> makVrv::DtGraphAttribute::Quads
protected
typedef std::vector<Dt2dPoint> makVrv::DtGraphAttribute::DtPointList
protected

Constructor & Destructor Documentation

virtual makVrv::DtGraphAttribute::~DtGraphAttribute ( )
virtual

DTOR.

makVrv::DtGraphAttribute::DtGraphAttribute ( )
delete

Default Constructor not implemented.

makVrv::DtGraphAttribute::DtGraphAttribute ( const DtGraphAttribute other)
delete

Copy Constructor not implemented - Copy not allowed.

makVrv::DtGraphAttribute::DtGraphAttribute ( DtDe de,
int  maxValues 
)
protected

Protected CTOR Use DtGraphAttributeCreator to create an instance of this class. maxValues is the maximum number of values to store in the graph; when this maximum is reached, the graph will throw out the oldest values as new values are added. Values of maxValue < 0 indicate no limit.

Member Function Documentation

DtGraphAttribute& makVrv::DtGraphAttribute::operator= ( const DtGraphAttribute other)
delete

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtGraphAttribute::setOffset ( double  x,
double  y 
)
virtual

Set the position of the attribute (generally the top left corner)

Reimplemented from makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setPosition ( float  x,
float  y,
float  z,
float  w 
)
virtual

Set the position of the attribute in world space, using vrvGraphics float packing.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::getMinSize ( double xOut,
double yOut 
)
virtual

Get the size of the attribute.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setSize ( double  x,
double  y 
)
virtual

Set the size of the attribute.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the bar.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setPoint ( unsigned int  pointIndex,
double  x,
double  y 
)
virtual

Set the pointIndex'th point.

virtual void makVrv::DtGraphAttribute::clear ( )
virtual

Clear the graph.

virtual void makVrv::DtGraphAttribute::setShadowText ( bool  enabled)
virtual

Set whether attribute text should have shadows.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setVisible ( bool  visible)
virtual

Set the attribute visible or hidden.

Implements makVrv::DtAttribute.

virtual bool makVrv::DtGraphAttribute::visible ( ) const
virtual

Get the visibility of the attribute.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setLodOutAltitude ( double  lodOutAltitude)
virtual

Set the altitude, in meters, at which this attribute no longer appears. Only used if setIsLodOutAltitudeEnabled(true). This function is UNSUPPORTED by this attribute class.

Implements makVrv::DtAttribute.

virtual double makVrv::DtGraphAttribute::lodOutAltitude ( ) const
virtual

Get the altitude, in meters, at which this attribute no longer appears. This function is UNSUPPORTED by this attribute class.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setIsLodOutAltitudeEnabled ( bool  isEnabled)
virtual

Set whether or not this attribute will use the LOD Out Altitude property. This function is UNSUPPORTED by this attribute class.

Implements makVrv::DtAttribute.

virtual bool makVrv::DtGraphAttribute::isLodOutAltitudeEnabled ( ) const
virtual

Get whether or not this attribute will use the LOD Out Altitude property. This function is UNSUPPORTED by this attribute class.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setOverlay ( unsigned int  overlayId)
virtual

Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::setGroup ( unsigned int  group)
virtual

Set the group to draw the atribute on. The group specifies the z order of the attribute on the overlay.

Implements makVrv::DtAttribute.

virtual void makVrv::DtGraphAttribute::draw ( )
protectedvirtual

Draw the graph.

Member Data Documentation

friend makVrv::DtGraphAttribute::DtGraphAttributeCreator
private
LineSegments makVrv::DtGraphAttribute::myLineSegments
protected
Quads makVrv::DtGraphAttribute::myQuads
protected
DtPointList makVrv::DtGraphAttribute::myPoints
protected
DtBaseOutlineAttribute* makVrv::DtGraphAttribute::myOutline
protected
DtDe& makVrv::DtGraphAttribute::myDe
protected
float makVrv::DtGraphAttribute::myX
protected
float makVrv::DtGraphAttribute::myY
protected
float makVrv::DtGraphAttribute::myZ
protected
float makVrv::DtGraphAttribute::myW
protected
double makVrv::DtGraphAttribute::myOffsetX
protected
double makVrv::DtGraphAttribute::myOffsetY
protected
double makVrv::DtGraphAttribute::mySizeX
protected
double makVrv::DtGraphAttribute::mySizeY
protected
float makVrv::DtGraphAttribute::myR
protected
float makVrv::DtGraphAttribute::myG
protected
float makVrv::DtGraphAttribute::myB
protected
float makVrv::DtGraphAttribute::myA
protected
bool makVrv::DtGraphAttribute::myVisible
protected
int makVrv::DtGraphAttribute::myMaxValues
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)