Use NodeEffectTemplate2D to instantiate a node effect.
More...
#include <kanzi/core.ui/template/node_effect_template2d.hpp>
Use NodeEffectTemplate2D to instantiate a node effect.
NodeEffectTemplate2D contains the type of the NodeEffect2D to instantiate and all property values that belong to the NodeEffect2D.
- See also
- NodeEffect2D, NodeEffectPrefab2D
- Since
- Kanzi 3.9.0
◆ PropertyEntry
◆ PropertyContainer
Container type for property values.
◆ ConstPropertyIterator
Iterator type for container of property values.
◆ ~NodeEffectTemplate2D()
virtual kanzi::NodeEffectTemplate2D::~NodeEffectTemplate2D |
( |
| ) |
|
|
virtual |
◆ NodeEffectTemplate2D()
kanzi::NodeEffectTemplate2D::NodeEffectTemplate2D |
( |
string_view |
metaclassName, |
|
|
string_view |
name |
|
) |
| |
|
explicitprotected |
Constructor.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the node effect to create. |
◆ create() [1/3]
Creates a node effect template.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the node effect to create. |
- Returns
- The node effect template.
◆ create() [2/3]
Creates a node effect template.
- Parameters
-
metaclassName | Name of the metaclass to use. |
- Returns
- The node effect template.
◆ create() [3/3]
Creates a node effect template and sets the mataclass name to empty.
- Returns
- The node effect template.
◆ getName()
string kanzi::NodeEffectTemplate2D::getName |
( |
| ) |
const |
|
inline |
Gets the name of the template.
- Returns
- Name of the template.
◆ setName()
void kanzi::NodeEffectTemplate2D::setName |
( |
string_view |
name | ) |
|
|
inline |
Sets the name of the template.
- Parameters
-
◆ getMetaclassName()
string kanzi::NodeEffectTemplate2D::getMetaclassName |
( |
| ) |
const |
|
inline |
Gets the metaclass name of the template.
- Returns
- Name of the metaclass.
◆ setMetaclassName()
void kanzi::NodeEffectTemplate2D::setMetaclassName |
( |
string_view |
name | ) |
|
|
inline |
Sets the metaclass name of the template.
- Parameters
-
name | Name of the metaclass. |
◆ addPropertyValue()
Adds a property to set when instantiating the template.
- Parameters
-
propertyType | Property type. |
value | Property value. |
◆ beginProperties()
Gets iterator to the beginning of properties container of the template.
- Returns
- Const iterator to the beginning of properties container.
◆ endProperties()
Gets iterator to the end of properties container of the template.
- Returns
- Const iterator to the end of properties container.
◆ instantiate()
Instantiates the template.
- Parameters
-
- Returns
- Instantiated node effect.
◆ createFromKZB()
Creates a template instance and loads it from a file.
- Parameters
-
domain | Domain |
kzbFile | The kzb file from which to load the template instance. |
file | The template instance file in the kzb file. |
parser | File memory parser. |
- Returns
- Created node effect template.
◆ loadFromKZB()
Loads a node effect template from a file.
- Parameters
-
domain | Domain |
kzbFile | KZB file where to load from. |
file | Effect preafb file inside KZB file where to load from. |
parser | File memory parser. |
The documentation for this class was generated from the following file: