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

Runtime for render property binding source. More...

#include <kanzi/core.ui/binding/typed_render_property_binding_source_runtime.hpp>

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

Public Member Functions

 ~TypedRenderPropertyBindingSourceRuntime ()
 Destructor.
 
- Public Member Functions inherited from kanzi::RenderPropertyBindingSourceRuntime
string getPath () const
 Gets the path to object.
 
AbstractPropertyType getPropertyType () const
 Gets property type.
 
- Public Member Functions inherited from kanzi::BindingSourceRuntime
void attachForRead ()
 Attaches the binding source runtime for reading.
 
void attachForWrite ()
 Attaches the binding source runtime for writing.
 
BindingProcessorRuntimeConstIterator beginProcessorRuntimes () const
 Gets an iterator to the beginning of binding processors.
 
void createBindingProcessorRuntimes (const AbstractBinding &binding)
 Creates a processor runtime for each BindingProcessor held by the binding parameter.
 
void detach ()
 Detaches the binding source runtime.
 
BindingProcessorRuntimeConstIterator endProcessorRuntimes () const
 Gets an iterator to the end of binding processors.
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime.
 
BindingLookupContextgetLookupContext () const
 Gets the lookup context.
 
bool isConnected ()
 Indicates whether this source is connected.
 
bool read (Variant &value)
 Reads a value from binding source.
 
void setBindingRuntime (AbstractBindingRuntime &bindingRuntime)
 Sets the binding runtime.
 
bool write (const Variant &value)
 Writes a value to binding source.
 
virtual ~BindingSourceRuntime ()=default
 Destructor.
 

Static Public Member Functions

static BindingSourceRuntimePtr create (const RenderPropertyBindingSource &source)
 Create a new render property binding source runtime.
 

Protected Types

using ObjectPropertyListenerType
 Type name for object property listener.
 

Protected Member Functions

void attachForReadOverride () override
 BindingSourceRuntime::attachForReadOverride() implementation.
 
void attachMaterialListener ()
 Attach material listener.
 
void detachMaterialListener ()
 Detach material listener.
 
void detachOverride () override
 BindingSourceRuntime::detachOverride() implementation.
 
bool isConnectedOverride () override
 BindingSourceRuntime::isConnectedOverride() implementation.
 
void localPropertyChange () override
 ObjectPropertyListenerImpl::localPropertyChange() implementation.
 
bool readOverride (Variant &value) override
 BindingSourceRuntime::readOverride() implementation.
 
 TypedRenderPropertyBindingSourceRuntime (const RenderPropertyBindingSource &source)
 Constructor.
 
- Protected Member Functions inherited from kanzi::RenderPropertyBindingSourceRuntime
void attachForWriteOverride () override
 BindingSourceRuntime::attachOverride() implementation.
 
MaterialSharedPtr getMaterial () const
 Gets the material attached to.
 
 RenderPropertyBindingSourceRuntime (const RenderPropertyBindingSource &source)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingSourceRuntime
 BindingSourceRuntime ()=default
 Constructor.
 
virtual bool writeOverride (const Variant &value)
 Implementation-dependent write.
 
- Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
void attachLocalPropertyListener (PropertyObjectSharedPtr object, AbstractPropertyType propertyType)
 Installs local property listener.
 
void clearLocalPropertyListener ()
 Clears the property listener object.
 
void detachLocalPropertyListener (AbstractPropertyType propertyType)
 Uninstalls local property listener.
 
PropertyObjectSharedPtr getLocalPropertyListenerObject () const
 Gets the property object with a local property listener installed.
 
bool isLocalPropertyListenerInstalled () const
 Tells whether a local property listener has been installed.
 
 ObjectPropertyListenerImpl ()=default
 Constructor.
 
 ~ObjectPropertyListenerImpl ()
 Destructor.
 

Static Protected Member Functions

static void materialChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *data)
 Callback for material property changes.
 
- Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
static void localPropertyChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *userData)
 Property change callback for object property.
 

Protected Attributes

bool m_materialPropertyListenerInstalled
 Is material property listener installed?
 
- Protected Attributes inherited from kanzi::RenderPropertyBindingSourceRuntime
const RenderPropertyBindingSourcem_source
 Host binding source.
 
- Protected Attributes inherited from kanzi::BindingSourceRuntime
AbstractBindingRuntimem_bindingRuntime
 Abstract binding runtime for this source.
 
BindingProcessorRuntimeContainer m_processorRuntimes
 Binding processors (for the source, forward direction).
 
- Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
PropertyObjectWeakPtr m_localPropertyListenerObject
 The object to which the local property listener has been installed.
 

Additional Inherited Members

- Public Types inherited from kanzi::BindingSourceRuntime
using BindingProcessorRuntimeConstIterator
 Binding processor runtime constant iterator type.
 
using BindingProcessorRuntimeContainer
 Binding processor runtime container type.
 

Detailed Description

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

Runtime for render property binding source.

Since
Kanzi 3.9.0

Member Typedef Documentation

◆ ObjectPropertyListenerType

template<typename T >
using kanzi::TypedRenderPropertyBindingSourceRuntime< T >::ObjectPropertyListenerType
protected

Type name for object property listener.

Constructor & Destructor Documentation

◆ ~TypedRenderPropertyBindingSourceRuntime()

◆ TypedRenderPropertyBindingSourceRuntime()

template<typename T >
kanzi::TypedRenderPropertyBindingSourceRuntime< T >::TypedRenderPropertyBindingSourceRuntime ( const RenderPropertyBindingSource & source)
inlineexplicitprotected

Constructor.

Parameters
sourceHost object property binding source.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

Member Function Documentation

◆ create()

Create a new render property binding source runtime.

Parameters
sourceHost object property binding source.
Returns
Newly created typed object property binding source runtime.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

◆ attachForReadOverride()

template<typename T >
void kanzi::TypedRenderPropertyBindingSourceRuntime< T >::attachForReadOverride ( )
inlineoverrideprotectedvirtual

◆ detachOverride()

template<typename T >
void kanzi::TypedRenderPropertyBindingSourceRuntime< T >::detachOverride ( )
inlineoverrideprotectedvirtual

◆ isConnectedOverride()

template<typename T >
bool kanzi::TypedRenderPropertyBindingSourceRuntime< T >::isConnectedOverride ( )
inlineoverrideprotectedvirtual

◆ readOverride()

template<typename T >
bool kanzi::TypedRenderPropertyBindingSourceRuntime< T >::readOverride ( Variant & value)
inlineoverrideprotectedvirtual

◆ localPropertyChange()

◆ attachMaterialListener()

template<typename T >
void kanzi::TypedRenderPropertyBindingSourceRuntime< T >::attachMaterialListener ( )
inlineprotected

Attach material listener.

◆ detachMaterialListener()

template<typename T >
void kanzi::TypedRenderPropertyBindingSourceRuntime< T >::detachMaterialListener ( )
inlineprotected

Detach material listener.

◆ materialChangeCallback()

template<typename T >
static void kanzi::TypedRenderPropertyBindingSourceRuntime< T >::materialChangeCallback ( PropertyObject & ,
const T & ,
PropertyNotificationReason reason,
void * data )
inlinestaticprotected

Callback for material property changes.

Parameters
reasonReason for the property change.
dataPointer to the listener.

Member Data Documentation

◆ m_materialPropertyListenerInstalled

template<typename T >
bool kanzi::TypedRenderPropertyBindingSourceRuntime< T >::m_materialPropertyListenerInstalled
protected

Is material property listener installed?


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