All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::RenderStatePropertyNotificationHandler Class Reference

Property state and value container for render state. More...

#include <kanzi/rendering/render_state_property_notification_handler.hpp>

Inheritance diagram for kanzi::RenderStatePropertyNotificationHandler:
kanzi::NodePropertyNotificationHandler kanzi::AbstractPropertyNotificationHandler

Public Member Functions

 RenderStatePropertyNotificationHandler ()
 Empty constructor. More...
 
 RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor. More...
 
 RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node, size_t handle)
 Constructor. More...
 
template<typename T >
acquirePropertyValue (Object &object, Material &material) const
 Acquire default value for this handler. More...
 
virtual void onPropertyChanged (KzuPropertyNotificationReason) KZ_OVERRIDE
 AbstractPropertyNotificationHandler::onPropertyChanged() implementation. More...
 
void clearDirtyFlag ()
 Clear dirty flag. More...
 
bool isDirty () const
 Is the container dirty? More...
 
size_t getHandle () const
 Access handle. More...
 
void setDirtyFlag ()
 Set dirty flag. More...
 
template<>
bool acquirePropertyValue (Object &object, Material &material) const
 
template<>
GraphicsBlendMode acquirePropertyValue (Object &object, Material &material) const
 
template<>
int acquirePropertyValue (Object &object, Material &material) const
 
template<>
float acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcColorRGBA acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcVector2 acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcVector3 acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcVector4 acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcMatrix3x3 acquirePropertyValue (Object &object, Material &material) const
 
template<>
KzcMatrix4x4 acquirePropertyValue (Object &object, Material &material) const
 
template<>
RenderStateResourceContainer acquirePropertyValue (Object &object, Material &material) const
 
- Public Member Functions inherited from kanzi::NodePropertyNotificationHandler
bool isValid () const
 Tell if this notification handler is valid. More...
 
- Public Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
AbstractPropertyType getPropertyType () const
 Get the property type this handler is listening. More...
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::NodePropertyNotificationHandler
 NodePropertyNotificationHandler ()
 Empty constructor. More...
 
 NodePropertyNotificationHandler (const NodePropertyNotificationHandler &rhs)
 Copy constructor. More...
 
 NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor. More...
 
virtual ~NodePropertyNotificationHandler ()
 Destructor. More...
 
NodePropertyNotificationHandleroperator= (const NodePropertyNotificationHandler &rhs)
 Assignment operator. More...
 
NodegetNode () const
 Access the node. More...
 
- Protected Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
 AbstractPropertyNotificationHandler ()
 Empty constructor. More...
 
 AbstractPropertyNotificationHandler (AbstractPropertyType propertyType)
 Constructor. More...
 

Detailed Description

Property state and value container for render state.

Constructor & Destructor Documentation

kanzi::RenderStatePropertyNotificationHandler::RenderStatePropertyNotificationHandler ( )
inlineexplicit

Empty constructor.

kanzi::RenderStatePropertyNotificationHandler::RenderStatePropertyNotificationHandler ( AbstractPropertyType  propertyType,
Node node 
)
inlineexplicit

Constructor.

Has no handle. Should only used for blend mode.

Parameters
propertyTypeProperty type to listen on.
nodeNode to listen for changes on.
kanzi::RenderStatePropertyNotificationHandler::RenderStatePropertyNotificationHandler ( AbstractPropertyType  propertyType,
Node node,
size_t  handle 
)
inlineexplicit

Constructor.

Parameters
propertyTypeProperty type to listen on.
nodeNode to listen for changes on.
renderStateRender state to extract extra information from.

Member Function Documentation

template<typename T >
T kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const

Acquire default value for this handler.

Parameters
objectFallback object for property value.
materialFallback material for property value.
virtual void kanzi::RenderStatePropertyNotificationHandler::onPropertyChanged ( KzuPropertyNotificationReason  )
virtual
void kanzi::RenderStatePropertyNotificationHandler::clearDirtyFlag ( )
inline

Clear dirty flag.

bool kanzi::RenderStatePropertyNotificationHandler::isDirty ( ) const
inline

Is the container dirty?

Returns
True if dirty, false if not.
size_t kanzi::RenderStatePropertyNotificationHandler::getHandle ( ) const
inline

Access handle.

Returns
Handle.
void kanzi::RenderStatePropertyNotificationHandler::setDirtyFlag ( )
inline

Set dirty flag.

template<>
bool kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
GraphicsBlendMode kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
int kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
float kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcColorRGBA kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcVector2 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcVector3 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcVector4 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcMatrix3x3 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
KzcMatrix4x4 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const
template<>
RenderStateResourceContainer kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue ( Object object,
Material material 
) const

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