Use RenderPassTemplate to instantiate a single render pass.
More...
#include <kanzi/core.ui/template/render_pass_template.hpp>
Use RenderPassTemplate to instantiate a single render pass.
RenderPassTemplate contains the type of the RenderPass to instantiate and all property values and bindings that belong to the RenderPass.
RenderPassPrefab contains a root RenderPassTemplate that contains all the render passes that make up the RenderPass tree.
- See also
- RenderPass, RenderPassPrefab
- Since
- Kanzi 3.7.0
◆ ChildContainer
Container type for children.
◆ ConstChildIterator
Iterator type for children.
◆ BindingContainer
Container type for bindings.
◆ ConstBindingIterator
Iterator type for container of bindings.
◆ PropertyEntry
◆ PropertyContainer
Container type for property values.
◆ ConstPropertyIterator
Iterator type for container of property values.
◆ ~RenderPassTemplate()
virtual kanzi::RenderPassTemplate::~RenderPassTemplate |
( |
| ) |
|
|
virtual |
◆ RenderPassTemplate()
kanzi::RenderPassTemplate::RenderPassTemplate |
( |
string_view | metaclassName, |
|
|
string_view | name ) |
|
explicitprotected |
Constructor.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the render pass to be created. |
◆ create() [1/3]
Creates a render pass template.
- Parameters
-
metaclassName | Name of metaclass to use. |
name | Name of the render pass to be created. |
- Returns
- The render pass template.
◆ create() [2/3]
Creates a render pass template.
- Parameters
-
metaclassName | Name of metaclass to use. |
- Returns
- The render pass template.
◆ create() [3/3]
Creates a render pass template and sets the mataclass name to empty.
- Returns
- The render pass template.
◆ isRoot()
bool kanzi::RenderPassTemplate::isRoot |
( |
| ) |
const |
|
inline |
Indicates whether a template is the root of the render pass tree.
- Returns
- If the template is the root of the render pass tree, true, otherwise false.
◆ setRoot()
void kanzi::RenderPassTemplate::setRoot |
( |
bool | flag | ) |
|
|
inline |
Sets the root flag of the template.
- Parameters
-
◆ addChild()
Adds a child to the template.
- Parameters
-
◆ getName()
string kanzi::RenderPassTemplate::getName |
( |
| ) |
const |
|
inline |
Gets the name of the template.
- Returns
- Name of the template.
◆ setName()
void kanzi::RenderPassTemplate::setName |
( |
string_view | name | ) |
|
|
inline |
Sets the name of the template.
- Parameters
-
◆ getMetaclassName()
string kanzi::RenderPassTemplate::getMetaclassName |
( |
| ) |
const |
|
inline |
Gets the metaclass name of the template.
- Returns
- Name of the metaclass.
◆ setMetaclassName()
void kanzi::RenderPassTemplate::setMetaclassName |
( |
string_view | name | ) |
|
|
inline |
Sets the metaclass name of the template.
- Parameters
-
name | Name of the metaclass. |
◆ addBinding()
Adds a binding to add when instantiating the template.
- Parameters
-
◆ addPropertyValue()
Adds a property to set when instantiating the template.
- Parameters
-
propertyType | Property type. |
value | Property value. |
◆ removePropertyValue()
Removes a value from the properties to be set to the instantiated render pass.
- Parameters
-
propertyType | Property type to remove value for. |
- Returns
- If value existed and was removed true, otherwise false.
◆ beginChildren()
Gets iterator to the beginning of children container of the template.
- Returns
- Const iterator to the beginning of children container.
◆ endChildren()
Gets iterator to the end of children container of the template.
- Returns
- Const iterator to the end of children container.
◆ 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.
◆ beginBindings()
Gets iterator to the beginning of bindings container of the template.
- Returns
- Const iterator to the beginning of bindings container.
◆ endBindings()
Gets iterator to the end of bindings container of the template.
- Returns
- Const iterator to the end of bindings container.
◆ instantiate()
Instantiates the template recursively.
- Parameters
-
domain | Domain to use. |
root | Root render pass for this render pass tree. Empty for top-level instantiation. |
- Returns
- Instantiated render pass.
◆ createFromKZB()
◆ collectResourceUrls()
◆ loadFromKZB()
◆ RenderPassPrefab
The documentation for this class was generated from the following file: