Container for property modifiers for instantiated nodes. More...
#include <kanzi/core.ui/node/instantiator3d.hpp>
Public Member Functions | |
FinalTransformModifier (Instantiator3D &instantiator, Node3DSharedPtr node) | |
Constructor. | |
void | invalidate () |
Invalidates the transform modifier. | |
void | runModifier (Matrix4x4 &storage) |
Executes the transform modifier. | |
void | setEnabled (bool enabled) |
Sets the enabled status of the transform modifier. | |
~FinalTransformModifier () | |
Destructor. | |
Public Attributes | |
optional< Matrix4x4 > | m_cachedTransform |
Cached matrix that can be returned. | |
bool | m_cachedTransformNotificationGuard |
Notification guard for cached transform invalidation. | |
bool | m_enabled |
Indicates whether the transform modifier is enabled. | |
Node3DWeakPtr | m_node |
Weak reference to the node whose transform is being modified. | |
Instantiator3D & | m_parentInstantiator |
Instantiator parent. | |
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.
Executes the transform modifier.
storage | Storage to write to. |
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.