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 Attributes
makVrv::DtImageAttribute Class Reference

The attribute layout tells DtAttributes where to draw.

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

Public Member Functions

virtual ~DtImageAttribute ()
 
 DtImageAttribute ()=delete
 
 DtImageAttribute (const DtImageAttribute &other)=delete
 
DtImageAttributeoperator= (const DtImageAttribute &other)=delete
 
virtual void setImageFilePath (const std::string &imageFilePath)
 
virtual void setPosition (float x, float y, float z, float w)
 
virtual void setOffset (double x, double y)
 
virtual void getMinSize (double &xOut, double &yOut)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setSize (double x, double y)
 
virtual void setShadowText (bool enabled)
 
virtual void setVisible (bool visible)
 
virtual bool visible () const
 
virtual void setLodOutAltitude (double lodOutAltitude) override
 
virtual double lodOutAltitude () const override
 
virtual void setIsLodOutAltitudeEnabled (bool isEnabled) override
 
virtual bool isLodOutAltitudeEnabled () const override
 
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 Member Functions

 DtImageAttribute (DtDe &de)
 
void updateImageBox ()
 

Protected Attributes

DtBaseQuadAttributemyQuadAttribute
 
DtBaseOutlineAttributemyOutlineAttribute
 
DtDemyDe
 
std::string myImageFilePath
 
DtOsgTextureWrappermyQuadTexture
 
double mySizeX
 
double mySizeY
 
double myLodOutAltitude
 
bool myIsLodOutAltitudeEnabled
 

Private Attributes

friend DtImageAttributeCreator
 

Additional Inherited Members

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

Constructor & Destructor Documentation

virtual makVrv::DtImageAttribute::~DtImageAttribute ( )
virtual

DTOR.

makVrv::DtImageAttribute::DtImageAttribute ( )
delete

Default Constructor not implemented.

makVrv::DtImageAttribute::DtImageAttribute ( const DtImageAttribute other)
delete

Copy Constructor not implemented - Copy not allowed.

makVrv::DtImageAttribute::DtImageAttribute ( DtDe de)
protected

Protected CTOR Use DtImageAttributeCreator to create an instance of this class.

Member Function Documentation

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

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtImageAttribute::setImageFilePath ( const std::string &  imageFilePath)
virtual

Set the image to display.

Reimplemented in makVrf::DtVrfImageAttribute.

virtual void makVrv::DtImageAttribute::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::DtImageAttribute::setOffset ( double  x,
double  y 
)
virtual

Set the offset of the attribute.

Reimplemented from makVrv::DtAttribute.

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

Get the minimum size of the attribute.

Implements makVrv::DtAttribute.

Reimplemented in makVrf::DtVrfImageAttribute.

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

Set the color of the attribute.

Implements makVrv::DtAttribute.

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

Set the size of the attribute.

Implements makVrv::DtAttribute.

Reimplemented in makVrf::DtVrfImageAttribute.

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

Set whether attribute text should have shadows. This function is not supported by this class and does nothing.

Implements makVrv::DtAttribute.

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

Set the attribute visible or hidden.

Implements makVrv::DtAttribute.

Reimplemented in makVrf::DtVrfImageAttribute.

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

Get the visibility of the attribute.

Implements makVrv::DtAttribute.

virtual void makVrv::DtImageAttribute::setLodOutAltitude ( double  lodOutAltitude)
overridevirtual

Set the altitude, in meters, at which this attribute no longer appears.

Implements makVrv::DtAttribute.

virtual double makVrv::DtImageAttribute::lodOutAltitude ( ) const
overridevirtual

Get the altitude, in meters, at which this attribute no longer appears.

Implements makVrv::DtAttribute.

virtual void makVrv::DtImageAttribute::setIsLodOutAltitudeEnabled ( bool  isEnabled)
overridevirtual

Set whether or not this attribute will use the LOD Out Altitude property.

Implements makVrv::DtAttribute.

virtual bool makVrv::DtImageAttribute::isLodOutAltitudeEnabled ( ) const
overridevirtual

Get whether or not this attribute will use the LOD Out Altitude property.

Implements makVrv::DtAttribute.

virtual void makVrv::DtImageAttribute::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::DtImageAttribute::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.

void makVrv::DtImageAttribute::updateImageBox ( )
protected

Updates the image box with the current settings. This function is not virtual because it is called from the constructor.

Member Data Documentation

friend makVrv::DtImageAttribute::DtImageAttributeCreator
private
DtBaseQuadAttribute* makVrv::DtImageAttribute::myQuadAttribute
protected
DtBaseOutlineAttribute* makVrv::DtImageAttribute::myOutlineAttribute
protected
DtDe& makVrv::DtImageAttribute::myDe
protected
std::string makVrv::DtImageAttribute::myImageFilePath
protected
DtOsgTextureWrapper* makVrv::DtImageAttribute::myQuadTexture
protected
double makVrv::DtImageAttribute::mySizeX
protected
double makVrv::DtImageAttribute::mySizeY
protected
double makVrv::DtImageAttribute::myLodOutAltitude
protected
bool makVrv::DtImageAttribute::myIsLodOutAltitudeEnabled
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)