Container for property modifiers for instantiated nodes. More...
#include <kanzi/core.ui/node/instantiator3d.hpp>
Public Member Functions | |
| FinalTransformModifier (Instantiator3D &instantiator, Node3DSharedPtr node) | |
| Constructor. More... | |
| void | invalidate () |
| Invalidates the transform modifier. More... | |
| void | runModifier (Matrix4x4 &storage) |
| Executes the transform modifier. More... | |
| void | setEnabled (bool enabled) |
| Sets the enabled status of the transform modifier. More... | |
| ~FinalTransformModifier () | |
| Destructor. More... | |
Public Attributes | |
| optional< Matrix4x4 > | m_cachedTransform |
| Cached matrix that can be returned. More... | |
| bool | m_cachedTransformNotificationGuard |
| Notification guard for cached transform invalidation. More... | |
| bool | m_enabled |
| Indicates whether the transform modifier is enabled. More... | |
| Node3DWeakPtr | m_node |
| Weak reference to the node whose transform is being modified. More... | |
| Instantiator3D & | m_parentInstantiator |
| Instantiator parent. More... | |
Container for property modifiers for instantiated nodes.
| kanzi::Instantiator3D::FinalTransformModifier::FinalTransformModifier | ( | Instantiator3D & | instantiator, |
| Node3DSharedPtr | node | ||
| ) |
Constructor.
Registers the modifier callback and notification handler for this construct.
| instantiator | Instantiator parent. |
| node | Source node. |
| kanzi::Instantiator3D::FinalTransformModifier::~FinalTransformModifier | ( | ) |
Destructor.
| void kanzi::Instantiator3D::FinalTransformModifier::invalidate | ( | ) |
Invalidates the transform modifier.
Ran whenever source properties change. If the guard flag is set, the transformation is not reset.
| void kanzi::Instantiator3D::FinalTransformModifier::runModifier | ( | Matrix4x4 & | storage | ) |
Executes the transform modifier.
| storage | Storage to write to. |
| void kanzi::Instantiator3D::FinalTransformModifier::setEnabled | ( | bool | enabled | ) |
Sets the enabled status of the transform modifier.
Adds or removes the transform modifier.
| enabled | New enabled flag. |
| Instantiator3D& kanzi::Instantiator3D::FinalTransformModifier::m_parentInstantiator |
Instantiator parent.
| Node3DWeakPtr kanzi::Instantiator3D::FinalTransformModifier::m_node |
Weak reference to the node whose transform is being modified.
| optional<Matrix4x4> kanzi::Instantiator3D::FinalTransformModifier::m_cachedTransform |
Cached matrix that can be returned.
Reset when the value is dirtied.
| bool kanzi::Instantiator3D::FinalTransformModifier::m_cachedTransformNotificationGuard |
Notification guard for cached transform invalidation.
| bool kanzi::Instantiator3D::FinalTransformModifier::m_enabled |
Indicates whether the transform modifier is enabled.