HudImageItem extends HudItem with image-specific properties including the image path and size dimensions.
#include <hudItem.h>
|
| | HudImageItem () |
| |
| virtual | ~HudImageItem () override |
| |
| virtual std::string | getImagePath () const |
| |
| virtual void | setImagePath (const std::string &path) |
| |
| virtual void | getSize (float *w, float *h) const |
| |
| virtual void | setSize (float w, float h) |
| |
| virtual float | getWidth () const |
| |
| virtual float | getHeight () const |
| |
| | HudItem () |
| |
| virtual | ~HudItem () |
| |
| virtual Type | type () const |
| |
| virtual int | dirtyKey () const |
| |
| virtual void | makeDirty () |
| |
| virtual void | getPosition (float *x, float *y) const |
| |
| virtual void | setPosition (float x, float y) |
| |
| virtual AlignHorizontal | getHorizontalAlignment () const |
| |
| virtual void | setHorizontalAlignment (AlignHorizontal align) |
| |
| virtual AlignVertical | getVerticalAlignment () const |
| |
| virtual void | setVerticalAlignment (AlignVertical align) |
| |
| virtual float | getX () const |
| |
| virtual float | getY () const |
| |
| virtual bool | getVisible () const |
| |
| virtual void | setVisible (bool visible) |
| |
| virtual void | getColor (float *r, float *g, float *b, float *a) const |
| |
| virtual void | setColor (float r, float g, float b, float a) |
| |
| virtual float | getRed () const |
| |
| virtual float | getGreen () const |
| |
| virtual float | getBlue () const |
| |
| virtual float | getAlpha () const |
| |
◆ HudImageItem()
| makVre::HudImageItem::HudImageItem |
( |
| ) |
|
Constructor for HudImageItem.
Initializes the item as an IMAGE type
◆ ~HudImageItem()
| virtual makVre::HudImageItem::~HudImageItem |
( |
| ) |
|
|
overridevirtual |
◆ getImagePath()
| virtual std::string makVre::HudImageItem::getImagePath |
( |
| ) |
const |
|
virtual |
Gets the current image path.
- Returns
- Path to the image file
◆ setImagePath()
| virtual void makVre::HudImageItem::setImagePath |
( |
const std::string & | path | ) |
|
|
virtual |
Sets the image path.
- Parameters
-
| path | Path to the image file to display |
Updates the dirty key if the image path changes
◆ getSize()
| virtual void makVre::HudImageItem::getSize |
( |
float * | w, |
|
|
float * | h ) const |
|
virtual |
Gets the current image size.
- Parameters
-
| w | Pointer to receive the width |
| h | Pointer to receive the height |
◆ setSize()
| virtual void makVre::HudImageItem::setSize |
( |
float | w, |
|
|
float | h ) |
|
virtual |
Sets the image size.
- Parameters
-
| w | The width of the image |
| h | The height of the image |
Updates the dirty key if the size changes
◆ getWidth()
| virtual float makVre::HudImageItem::getWidth |
( |
| ) |
const |
|
virtual |
Gets the width of the image.
- Returns
- The current width
◆ getHeight()
| virtual float makVre::HudImageItem::getHeight |
( |
| ) |
const |
|
virtual |
Gets the height of the image.
- Returns
- The current height
◆ myImagePath
| std::string makVre::HudImageItem::myImagePath |
|
protected |
◆ mySize
| float makVre::HudImageItem::mySize[2] |
|
protected |
Size of the image [width, height].
The documentation for this class was generated from the following file:
- include/commonRoleLibraries/vreCommonComponents/hudItem.h