Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P > Class Template Reference

Templated message which bakes a property. More...

#include <property-owner-messages.h>

Inheritance diagram for Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >:
Collaboration graph
[legend]

Public Types

typedef void(AnimatableProperty
< P >::* 
MemberFunction )(BufferIndex, float)
 

Public Member Functions

virtual ~AnimatablePropertyComponentMessage ()
 Virtual destructor. More...
 
virtual void Process (BufferIndex updateBufferIndex)
 Called to process the message. More...
 
- Public Member Functions inherited from Dali::Internal::SceneGraph::PropertyOwnerMessageBase
 PropertyOwnerMessageBase ()
 Create a message. More...
 
virtual ~PropertyOwnerMessageBase ()
 Virtual destructor. More...
 
- Public Member Functions inherited from Dali::Internal::MessageBase
 MessageBase ()
 Construct the message base. More...
 
virtual ~MessageBase ()
 Virtual destructor. More...
 

Static Public Member Functions

static void Send (EventThreadServices &eventThreadServices, const PropertyOwner *sceneObject, const AnimatableProperty< P > *property, MemberFunction member, float value)
 Send a message. More...
 

Private Member Functions

 AnimatablePropertyComponentMessage (const PropertyOwner *sceneObject, const AnimatableProperty< P > *property, MemberFunction member, float value)
 Create a message. More...
 

Private Attributes

PropertyOwnermSceneObject
 
AnimatableProperty< P > * mProperty
 
MemberFunction mMemberFunction
 
float mParam
 

Detailed Description

template<typename P>
class Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >

Templated message which bakes a property.

Definition at line 148 of file property-owner-messages.h.

Member Typedef Documentation

template<typename P >
typedef void(AnimatableProperty<P>::* Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::MemberFunction)(BufferIndex, float)

Definition at line 152 of file property-owner-messages.h.

Constructor & Destructor Documentation

Virtual destructor.

Definition at line 180 of file property-owner-messages.h.

template<typename P >
Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::AnimatablePropertyComponentMessage ( const PropertyOwner sceneObject,
const AnimatableProperty< P > *  property,
MemberFunction  member,
float  value 
)
inlineprivate

Create a message.

Note
The scene object is expected to be const in the thread which sends this message. However it can be modified when Process() is called in a different thread.
Parameters
[in]sceneObjectThe property owner scene object
[in]propertyThe property to bake.
[in]memberThe member function of the object.
[in]valueThe new value of the X,Y,Z or W component.

Definition at line 203 of file property-owner-messages.h.

Referenced by Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::Send().

Here is the caller graph for this function:

Member Function Documentation

template<typename P >
virtual void Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::Process ( BufferIndex  updateBufferIndex)
inlinevirtual

Called to process the message.

Parameters
[in]bufferIndexThe current update/render buffer index (depending on which thread processes the message).

Implements Dali::Internal::MessageBase.

Definition at line 187 of file property-owner-messages.h.

References Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mMemberFunction, Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mParam, and Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mProperty.

template<typename P >
static void Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::Send ( EventThreadServices eventThreadServices,
const PropertyOwner sceneObject,
const AnimatableProperty< P > *  property,
MemberFunction  member,
float  value 
)
inlinestatic

Send a message.

Note
The scene object is expected to be const in the thread which sends this message. However it can be modified when Process() is called in a different thread.
Parameters
[in]eventThreadServicesThe service object used for sending messages to the scene graph
[in]sceneObjectThe property owner scene object
[in]propertyThe property to bake.
[in]memberThe member function of the object.
[in]valueThe new value of the X,Y,Z or W component.

Definition at line 164 of file property-owner-messages.h.

References Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::AnimatablePropertyComponentMessage(), and Dali::Internal::EventThreadServices::ReserveMessageSlot().

Here is the call graph for this function:

Member Data Documentation

template<typename P >
MemberFunction Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mMemberFunction
private
template<typename P >
float Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mParam
private
template<typename P >
PropertyOwner* Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::mSceneObject
private

Definition at line 216 of file property-owner-messages.h.


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali