Base class for graphics entries. More...
#include <kanzi/core.ui/graphics3d/graphics_entry.hpp>
Public Member Functions | |
| MaterialSharedPtr | getMaterial () const |
| Gets the associated material. | |
| Node3D * | getNode () const |
| Gets the associated node. | |
| RenderPass & | getRenderPass () |
| Gets the associated render pass. | |
| RenderState & | getRenderState () |
| Gets the internal render state. | |
| void | initializeState (MaterialSharedPtr sharedMaterial) |
| Initialize the state of the graphics entry. | |
Public Member Functions inherited from kanzi::VariableBindingHost | |
| void | addAvailableVariableSource (AbstractBindingVariableSource &variableSource) |
| Add a variable source to the list of available sources. | |
| void | addBindingRuntime (AbstractBindingRuntimeSharedPtr bindingRuntime) |
| Adds a binding runtime to the list of binding runtimes. | |
| void | addVariableTarget (VariableBindingTargetRuntime &targetRuntime) |
| Adds variable binding target runtime into the variable host. | |
| BindingRuntimeIterator | beginBindingRuntimes () |
| Gets an iterator to the beginning of binding runtimes. | |
| BindingRuntimeConstIterator | beginBindingRuntimes () const |
| Gets an iterator to the beginning of binding runtimes. | |
| BindingRuntimeIterator | endBindingRuntimes () |
| Gets an iterator to the end of binding runtimes. | |
| BindingRuntimeConstIterator | endBindingRuntimes () const |
| Gets an iterator to the end of binding runtimes. | |
| BindingRuntimeIterator | endFixedRuntimes () |
| Gets an iterator to the end of fixed binding runtimes. | |
| BindingRuntimeConstIterator | endFixedRuntimes () const |
| Gets an iterator to the end of fixed binding runtimes. | |
| VariableBindingTargetRuntime * | getVariableBindingTargetRuntime (AbstractPropertyType propertyType) |
| Gets an existing variable binding target runtime based on a property type. | |
| void | removeAvailableVariableSource (AbstractBindingVariableSource &variableSource) |
| Remove a variable source from the list of available sources. | |
| void | removeBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
| Removes a binding runtime. | |
| void | removeVariableTarget (VariableBindingTargetRuntime &targetRuntime) |
| Removes a variable binding target from the variable host. | |
| ~VariableBindingHost () | |
| Destructor. | |
Protected Member Functions | |
| GraphicsEntry (RenderPass &renderPass, Node3D *node) | |
| Constructor. | |
| void | updateBindingsWithFixedUniformInputs () |
| Execute all bindings needing manual execution. | |
Protected Attributes | |
| Node3D * | m_node |
| Pointer to source node. | |
| RenderPass & | m_renderPass |
| Base render pass. | |
| RenderState | m_renderState |
| Contained render state. | |
Additional Inherited Members | |
Public Types inherited from kanzi::VariableBindingHost | |
| using | BindingRuntimeConstIterator |
| Const iterator for binding runtimes. | |
| using | BindingRuntimeContainer |
| Binding runtime container. | |
| using | BindingRuntimeIterator |
| Iterator for binding runtimes. | |
| using | BindingTargetMapping |
| Binding target mapping. | |
Base class for graphics entries.
Contains references to the render pass, node, and render state that are common to all graphics entries.
|
explicitprotected |
Constructor.
| renderPass | Owning render pass. |
| node | Node associated. |
|
inline |
Gets the associated render pass.
Returned render pass cannot be invalid, since the association is owned by it.
|
inline |
Gets the associated node.
|
inline |
Gets the internal render state.
|
inline |
Gets the associated material.
| void kanzi::GraphicsEntry::initializeState | ( | MaterialSharedPtr | sharedMaterial | ) |
Initialize the state of the graphics entry.
Attach render state to material. Create binding runtimes for render value bindings and attach them.
| sharedMaterial | Material to attach to. |
|
protected |
Execute all bindings needing manual execution.
Used internally by the binding functions.
|
protected |
Base render pass.
The render pass owns the association, so this reference can never be invalid.
|
protected |
Pointer to source node.
If this pointer is marked as nullptr, the entry is invalid.
|
protected |
Contained render state.