The ITextStyleImage graph node interface.
More...
#include <murl_graph_i_text_style_image.h>
The ITextStyleImage graph node interface.
◆ GetNodeInterface() [1/2]
virtual INode* Murl::Graph::ITextStyleImage::GetNodeInterface |
( |
| ) |
|
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
- Returns
- The mutable Graph::INode interface, or null if not available
◆ GetNodeInterface() [2/2]
virtual const INode* Murl::Graph::ITextStyleImage::GetNodeInterface |
( |
| ) |
const |
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
- Returns
- The constant Graph::INode interface, or null if not available
◆ GetAtlasResourceTarget() [1/2]
◆ GetAtlasResourceTarget() [2/2]
◆ SetRectangleName()
virtual Bool Murl::Graph::ITextStyleImage::SetRectangleName |
( |
const String & |
rectangleName | ) |
|
|
pure virtual |
Set the current atlas rectangle by name.
If the given name is empty, the rectangle is explicitly set via a given index (see SetIndex()). This method fails if no atlas resource is set, or the given name is not found within the atlas resource.
- Parameters
-
rectangleName | The rectangle name. |
- Returns
- true if successful.
◆ GetRectangleName()
virtual String Murl::Graph::ITextStyleImage::GetRectangleName |
( |
| ) |
const |
|
pure virtual |
Get the current rectangle's name.
This method returns an empty string when no atlas resource is defined or the currently active rectangle is unnamed.
- Returns
- The rectangle name if available.
◆ SetRectangleIndex()
virtual Bool Murl::Graph::ITextStyleImage::SetRectangleIndex |
( |
SInt32 |
index | ) |
|
|
pure virtual |
Set the current rectangle index.
- Parameters
-
index | The signed index to set. |
- Returns
- true if successful.
◆ GetRectangleIndex()
virtual SInt32 Murl::Graph::ITextStyleImage::GetRectangleIndex |
( |
| ) |
const |
|
pure virtual |
Get the current rectangle index.
- Returns
- The current index.
◆ SetScaleFactor()
virtual Bool Murl::Graph::ITextStyleImage::SetScaleFactor |
( |
Real |
s | ) |
|
|
pure virtual |
Set th scaling factor.
- Parameters
-
- Returns
- true if successful.
◆ GetScaleFactor()
virtual Real Murl::Graph::ITextStyleImage::GetScaleFactor |
( |
| ) |
const |
|
pure virtual |
Get the scaling factor.
- Returns
- The scale factor.
◆ SetMaterialSlot()
virtual Bool Murl::Graph::ITextStyleImage::SetMaterialSlot |
( |
SInt32 |
slot | ) |
|
|
pure virtual |
Set the material slot used for rendering.
- Parameters
-
- Returns
- true if successful.
◆ GetMaterialSlot()
virtual SInt32 Murl::Graph::ITextStyleImage::GetMaterialSlot |
( |
| ) |
const |
|
pure virtual |
Get the material slot used for rendering.
- Returns
- The material slot.
◆ SetTextureSlot()
virtual Bool Murl::Graph::ITextStyleImage::SetTextureSlot |
( |
UInt32 |
unit, |
|
|
SInt32 |
slot |
|
) |
| |
|
pure virtual |
Set the texture slot used for rendering.
- Parameters
-
unit | The texture unit for which to set the slot. |
slot | The texture slot. |
- Returns
- true if successful.
◆ GetTextureSlot()
virtual SInt32 Murl::Graph::ITextStyleImage::GetTextureSlot |
( |
UInt32 |
unit | ) |
const |
|
pure virtual |
Get the texture slot used for rendering.
- Parameters
-
unit | The texture unit for which to query the slot. |
- Returns
- The texture slot.
◆ GetFrameSizeX()
virtual Real Murl::Graph::ITextStyleImage::GetFrameSizeX |
( |
| ) |
const |
|
pure virtual |
Get the width of the currently displayed atlas rectangle.
- Returns
- The current atlas rectangle width.
◆ GetFrameSizeY()
virtual Real Murl::Graph::ITextStyleImage::GetFrameSizeY |
( |
| ) |
const |
|
pure virtual |
Get the height of the currently displayed atlas rectangle.
- Returns
- The current atlas rectangle height.
The documentation for this interface was generated from the following file:
- murl_graph_i_text_style_image.h