Result type for a call to Glypher::getGlyph()
More...
#include <Rendering/SceneComponents/Models/glypher.h>
◆ Glyph() [1/2]
Constructs an invalid glyph.
- See also
- isValid()
◆ Glyph() [2/2]
- Parameters
-
modelId | The id string of the glyph's model. A glypher might use only one type of glyph, in which case only one unique id string will be returned, or it might use any number of different glyphs. |
matrix | The transform to apply to this glyph to place it at the correct location in the scene. |
billboarded | Automatically rotate Glyph to face camera |
◆ getModelId()
const QString & getModelId |
( |
| ) |
const |
|
inline |
- Returns
- The model ID of the glyph. This would normally be passed to a Mesh::MeshModelSource to obtain the corresponding MeshModel. If this string is empty, the glyph is considered invalid and isValid() will return false.
◆ getTransformMatrix()
- Returns
- The transform to apply to the mesh model in order to put it at the correct location. This will be in the same co-ordinate frame as whatever created the object, which is usually a node in a mesh model that was passed to Glypher::getGlyph().
◆ isBillboarded()
bool isBillboarded |
( |
| ) |
const |
|
inline |
- Returns
- Whether or not the glyph needs to be re-oriented (after transforming) so that it faces towards the current view camera.
◆ isValid()
- Returns
- True if this represents a valid glyph. Invalid glyphs can be returned from Glypher::getGlyph() to indicate that no glyph should be shown for that particular node. The default constructor creates an invalid glyph.