VR-Forces 4.7 Class Documentation
 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
makVrv::DtImageAttribute Class Reference

The attribute layout tells DtAttributes where to draw. More...

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

Public Member Functions

 DtImageAttribute (DtDe &de)
 CTOR.
virtual ~DtImageAttribute ()
 DTOR.
virtual void setImageFilePath (const std::string &imageFilePath)
 Set the image to display.
virtual void setPosition (float x, float y, float z, float w)
 Set the position of the attribute in world space, using vrvGraphics float packing.
virtual void setOffset (double x, double y)
 Set the offset of the attribute.
virtual void getMinSize (double &xOut, double &yOut)
 Get the minimum size of the attribute.
virtual void setColor (float r, float g, float b, float a)
 Set the color of the attribute.
virtual void setSize (double x, double y)
 Set the size of the attribute.
virtual void setShadowText (bool enabled)
 Set whether attribute text should have shadows.
virtual void setVisible (bool visible)
 Set the attribute visible or hidden.
virtual bool visible () const
 Get the visibility of the attribute.
virtual void setOverlay (unsigned int overlayId)
 Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager.
virtual void setGroup (unsigned int group)
 Set the group to draw the atribute on.
- Public Member Functions inherited from makVrv::DtAttribute
 DtAttribute ()
 CTOR.
virtual ~DtAttribute ()
 DTOR.
virtual void setForegroundGroup (unsigned int group)
 Set the group to draw the atribute's foreground on.
virtual void setBackgroundGroup (unsigned int group)
 Set the group to draw the atribute's background on.

Protected Member Functions

virtual void updateImageBox ()
 Updates the image box with the current settings.

Protected Attributes

DtBaseQuadAttribute myQuadAttribute
DtBaseOutlineAttribute myOutlineAttribute
DtDemyDe
std::string myImageFilePath
osg::ref_ptr< osg::Texture > myQuadTexture

Additional Inherited Members

- Public Attributes inherited from makVrv::DtAttribute
boost::signal< void(DtAttribute
*, double, double)> 
signal_sizeChanged
 Emitted when the attribute's size changes.

Detailed Description

The attribute layout tells DtAttributes where to draw.

Constructor & Destructor Documentation

makVrv::DtImageAttribute::DtImageAttribute ( DtDe de)

CTOR.

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

DTOR.

Member Function Documentation

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.

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::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.

virtual void makVrv::DtImageAttribute::updateImageBox ( )
protectedvirtual

Updates the image box with the current settings.

Reimplemented in makVrf::DtVrfImageAttribute.

Member Data Documentation

DtBaseQuadAttribute makVrv::DtImageAttribute::myQuadAttribute
protected
DtBaseOutlineAttribute makVrv::DtImageAttribute::myOutlineAttribute
protected
DtDe& makVrv::DtImageAttribute::myDe
protected
std::string makVrv::DtImageAttribute::myImageFilePath
protected
osg::ref_ptr<osg::Texture> makVrv::DtImageAttribute::myQuadTexture
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)