Kanzi 3.9.10
kanzi::TypedRenderStateRangePropertyNotificationHandler< T > Class Template Reference

Specialized notification handler for render state. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/render_state_property_notification_handler.hpp>

Inheritance diagram for kanzi::TypedRenderStateRangePropertyNotificationHandler< T >:
[legend]

Public Member Functions

 TypedRenderStateRangePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node, GlRenderState::HandleType handle, ShaderProgram::UniformTransformation transformation)
 Constructor.
 
- Public Member Functions inherited from kanzi::RenderStatePropertyNotificationHandler
int getHandle () const
 Access handle.
 
bool isDirty () const
 Returns whether the container is dirty.
 
void setDirty (bool enabled)
 Sets the dirty flag state.
 
void update (GlRenderState &renderState, PropertyObject *object, Material &material)
 Update render state with new values acquirable from this.
 
- Public Member Functions inherited from kanzi::NodePropertyNotificationHandler
NodegetNode () const
 Access the node.
 
void invalidate ()
 Invalidates the state of the notification handler.
 
bool isValid () const
 Tell if this notification handler is valid.
 
- Public Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
AbstractPropertyType getPropertyType () const
 Get the property type this handler is listening.
 

Static Public Member Functions

static RenderStatePropertyNotificationHandlerPtr create (AbstractPropertyType propertyType, Node *node, GlRenderState::HandleType handle, ShaderProgram::UniformTransformation transformation)
 Creates a render state property notification handler.
 

Protected Member Functions

void updateOverride (GlRenderState &renderState, PropertyObject *object, Material &material) override
 RenderStatePropertyNotificationHandler::updateOverride() implementation.
 
- Protected Member Functions inherited from kanzi::RenderStatePropertyNotificationHandler
ShaderProgram::UniformTransformation getTransformation () const
 Gets the uniform transformation.
 
void onPropertyChanged (PropertyNotificationReason) override
 AbstractPropertyNotificationHandler::onPropertyChanged() implementation.
 
 RenderStatePropertyNotificationHandler ()=default
 Empty constructor.
 
 RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor Has no handle.
 
 RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node, GlRenderState::HandleType handle, ShaderProgram::UniformTransformation transformation)
 Constructor.
 
- Protected Member Functions inherited from kanzi::NodePropertyNotificationHandler
 NodePropertyNotificationHandler ()
 Empty constructor.
 
 NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor.
 
 NodePropertyNotificationHandler (const NodePropertyNotificationHandler &rhs)
 Copy constructor.
 
NodePropertyNotificationHandleroperator= (const NodePropertyNotificationHandler &rhs)
 Assignment operator.
 
 ~NodePropertyNotificationHandler () override
 Destructor.
 
- Protected Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
 AbstractPropertyNotificationHandler ()
 Empty constructor.
 
 AbstractPropertyNotificationHandler (AbstractPropertyType propertyType)
 Constructor.
 
virtual ~AbstractPropertyNotificationHandler ()
 

Additional Inherited Members

- Protected Attributes inherited from kanzi::RenderStatePropertyNotificationHandler
bool m_dirty
 Indicates whether this property is dirty and needs updating.
 
GlRenderState::HandleType m_handle
 Handle into the render state.
 
ShaderProgram::UniformTransformation m_transformation
 Shader transformation.
 

Detailed Description

template<typename T>
class kanzi::TypedRenderStateRangePropertyNotificationHandler< T >

Specialized notification handler for render state.

Performs array copy from a range property type.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

◆ TypedRenderStateRangePropertyNotificationHandler()

template<typename T >
kanzi::TypedRenderStateRangePropertyNotificationHandler< T >::TypedRenderStateRangePropertyNotificationHandler ( AbstractPropertyType propertyType,
Node * node,
GlRenderState::HandleType handle,
ShaderProgram::UniformTransformation transformation )
inlineexplicit

Constructor.

Parameters
propertyTypeProperty type to listen on.
nodeNode to listen for changes on.
handleHandle into the render state.
transformationUniform transformation.

Member Function Documentation

◆ create()

Creates a render state property notification handler.

Parameters
propertyTypeProperty type to listen on.
nodeNode to listen for changes on.
handleHandle into the render state.
transformationUniform transformation.

◆ updateOverride()

template<typename T >
void kanzi::TypedRenderStateRangePropertyNotificationHandler< T >::updateOverride ( GlRenderState & renderState,
PropertyObject * object,
Material & material )
inlineoverrideprotectedvirtual

The documentation for this class was generated from the following file: