Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Dali::Internal::PropertyBuffer Class Reference

PropertyBuffer is an object that contains an array of structures of values that can be accessed as properties. More...

#include <property-buffer-impl.h>

Inheritance diagram for Dali::Internal::PropertyBuffer:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::PropertyBuffer:
Collaboration graph
[legend]

Public Member Functions

void SetSize (std::size_t size)
  More...
 
std::size_t GetSize () const
  More...
 
void SetData (const void *data)
  More...
 
void SetFormat (Dali::Property::Map &format)
 Set the format of the PropertyBuffer. More...
 
const Render::PropertyBufferGetRenderObject () const
 Get the render thread side of the PropertyBuffer. More...
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static PropertyBufferPtr New ()
 Convenience function to create an object with a custom "weight" property. More...
 

Protected Member Functions

 ~PropertyBuffer ()
 Destructor. More...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Private Member Functions

 PropertyBuffer ()
 Default constructor. More...
 
void Initialize ()
 Second stage initialization. More...
 
void FormatChanged ()
 Update the buffer when the format changes. More...
 
void SizeChanged ()
 Update the buffer when the size changes. More...
 
 PropertyBuffer (const PropertyBuffer &)
 
PropertyBufferoperator= (const PropertyBuffer &)
 

Private Attributes

EventThreadServicesmEventThreadServices
 Used to send messages to the render thread via update thread. More...
 
Render::PropertyBuffermRenderObject
 Render side object. More...
 
Property::Map mFormat
 Format of the property buffer. More...
 
const
Render::PropertyBuffer::Format
mBufferFormat
 Metadata for the format of the property buffer. More...
 
unsigned int mSize
 Number of elements in the buffer. More...
 
Dali::Vector< char > mBuffer
 

Detailed Description

PropertyBuffer is an object that contains an array of structures of values that can be accessed as properties.

Definition at line 42 of file property-buffer-impl.h.

Constructor & Destructor Documentation

Dali::Internal::PropertyBuffer::~PropertyBuffer ( )
protected
Dali::Internal::PropertyBuffer::PropertyBuffer ( )
private

Default constructor.

Definition at line 185 of file property-buffer-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::PropertyBuffer::PropertyBuffer ( const PropertyBuffer )
private

Member Function Documentation

void Dali::Internal::PropertyBuffer::FormatChanged ( )
private
const Render::PropertyBuffer * Dali::Internal::PropertyBuffer::GetRenderObject ( ) const

Get the render thread side of the PropertyBuffer.

Returns
The render thread side of this PropertyBuffer

Definition at line 172 of file property-buffer-impl.cpp.

References mRenderObject.

Referenced by Dali::Internal::Geometry::AddVertexBuffer(), and Dali::Internal::Geometry::SetIndexBuffer().

Here is the caller graph for this function:

std::size_t Dali::Internal::PropertyBuffer::GetSize ( ) const

Definition at line 144 of file property-buffer-impl.cpp.

References mSize.

void Dali::Internal::PropertyBuffer::Initialize ( void  )
private

Second stage initialization.

Definition at line 193 of file property-buffer-impl.cpp.

References Dali::Internal::SceneGraph::AddPropertyBuffer(), Dali::Internal::EventThreadServices::GetUpdateManager(), mEventThreadServices, and mRenderObject.

Here is the call graph for this function:

PropertyBufferPtr Dali::Internal::PropertyBuffer::New ( )
static

Convenience function to create an object with a custom "weight" property.

.0

Returns
A handle to a newly allocated object.

Definition at line 127 of file property-buffer-impl.cpp.

References PropertyBuffer().

Referenced by Dali::Internal::anonymous_namespace{image-actor-impl.cpp}::CreateGeometry(), and Dali::PropertyBuffer::New().

Here is the call graph for this function:

Here is the caller graph for this function:

PropertyBuffer& Dali::Internal::PropertyBuffer::operator= ( const PropertyBuffer )
private
void Dali::Internal::PropertyBuffer::SetData ( const void *  data)
void Dali::Internal::PropertyBuffer::SetFormat ( Dali::Property::Map format)

Set the format of the PropertyBuffer.

Precondition
Has not been set yet
Parameters
[in]formatof the PropertyBuffer

Definition at line 161 of file property-buffer-impl.cpp.

References DALI_ASSERT_ALWAYS, DALI_ASSERT_DEBUG, FormatChanged(), and mFormat.

Referenced by Dali::Internal::anonymous_namespace{image-actor-impl.cpp}::CreateGeometry().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::PropertyBuffer::SetSize ( std::size_t  size)
void Dali::Internal::PropertyBuffer::SizeChanged ( )
private

Update the buffer when the size changes.

Definition at line 270 of file property-buffer-impl.cpp.

References mBuffer, mBufferFormat, mSize, Dali::Vector< T, IsTrivialType >::Resize(), and Dali::Internal::Render::PropertyBuffer::Format::size.

Referenced by FormatChanged(), and SetSize().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Dali::Vector< char > Dali::Internal::PropertyBuffer::mBuffer
private

Definition at line 122 of file property-buffer-impl.h.

Referenced by SetData(), and SizeChanged().

const Render::PropertyBuffer::Format* Dali::Internal::PropertyBuffer::mBufferFormat
private

Metadata for the format of the property buffer.

Definition at line 120 of file property-buffer-impl.h.

Referenced by FormatChanged(), and SizeChanged().

EventThreadServices& Dali::Internal::PropertyBuffer::mEventThreadServices
private

Used to send messages to the render thread via update thread.

Definition at line 116 of file property-buffer-impl.h.

Referenced by FormatChanged(), Initialize(), SetData(), SetSize(), and ~PropertyBuffer().

Property::Map Dali::Internal::PropertyBuffer::mFormat
private

Format of the property buffer.

Definition at line 119 of file property-buffer-impl.h.

Referenced by FormatChanged(), SetData(), and SetFormat().

Render::PropertyBuffer* Dali::Internal::PropertyBuffer::mRenderObject
private

Render side object.

Definition at line 117 of file property-buffer-impl.h.

Referenced by FormatChanged(), GetRenderObject(), Initialize(), SetData(), SetSize(), and ~PropertyBuffer().

unsigned int Dali::Internal::PropertyBuffer::mSize
private

Number of elements in the buffer.

Definition at line 121 of file property-buffer-impl.h.

Referenced by FormatChanged(), GetSize(), SetData(), SetSize(), and SizeChanged().


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