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
Container type for property values.
Iterator type for container of property values.
virtual kanzi::NodeEffectTemplate2D::~NodeEffectTemplate2D |
( |
| ) |
|
|
virtual |
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. |
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.
Creates a node effect template.
- Parameters
-
metaclassName | Name of the metaclass to use. |
- Returns
- The node effect template.
Creates a node effect template and sets the mataclass name to empty.
- Returns
- The node effect template.
string kanzi::NodeEffectTemplate2D::getName |
( |
| ) |
const |
|
inline |
Gets the name of the template.
- Returns
- Name of the template.
void kanzi::NodeEffectTemplate2D::setName |
( |
string_view |
name | ) |
|
|
inline |
Sets the name of the template.
- Parameters
-
string kanzi::NodeEffectTemplate2D::getMetaclassName |
( |
| ) |
const |
|
inline |
Gets the metaclass name of the template.
- Returns
- Name of the metaclass.
void kanzi::NodeEffectTemplate2D::setMetaclassName |
( |
string_view |
name | ) |
|
|
inline |
Sets the metaclass name of the template.
- Parameters
-
name | Name of the metaclass. |
Adds a property to set when instantiating the template.
- Parameters
-
propertyType | Property type. |
value | Property value. |
Gets iterator to the beginning of properties container of the template.
- Returns
- Const iterator to the beginning of properties container.
Gets iterator to the end of properties container of the template.
- Returns
- Const iterator to the end of properties container.
Instantiates the template.
- Parameters
-
- Returns
- Instantiated node effect.
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.
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: