Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Protected Member Functions
Dali::Internal::SceneGraph::PropertyBufferDataProvider Class Referenceabstract

#include <property-buffer-data-provider.h>

Public Types

typedef Dali::Vector< char > BufferType
 Type for the data contained in the buffer. More...
 

Public Member Functions

 PropertyBufferDataProvider ()
 Constructor. More...
 
virtual unsigned int GetAttributeCount (BufferIndex bufferIndex) const =0
 Get the number of attributes. More...
 
virtual const std::string & GetAttributeName (BufferIndex bufferIndex, unsigned int index) const =0
 Get the name of an attribute. More...
 
virtual size_t GetAttributeSize (BufferIndex bufferIndex, unsigned int index) const =0
 Get the byte size of an attribute. More...
 
virtual Property::Type GetAttributeType (BufferIndex bufferIndex, unsigned int index) const =0
 Get the type of an attribute. More...
 
virtual size_t GetAttributeOffset (BufferIndex bufferIndex, unsigned int index) const =0
 Get the byte offset of an attribute. More...
 
virtual const BufferTypeGetData (BufferIndex bufferIndex) const =0
 Get the property buffer data. More...
 
virtual size_t GetDataSize (BufferIndex bufferIndex) const =0
 Get the size of the property buffer in bytes. More...
 
virtual size_t GetElementSize (BufferIndex bufferIndex) const =0
 Get the size of an element of the buffer in bytes. More...
 
virtual unsigned int GetElementCount (BufferIndex bufferIndex) const =0
 Get the number of elements. More...
 
virtual unsigned int GetGpuBufferId (BufferIndex bufferIndex) const =0
 Get Id of the GPU buffer associated with this propertyBuffer. More...
 
virtual bool HasDataChanged (BufferIndex bufferIndex) const =0
 Checks if data in the PropertyBuffer has changed repect previous frame. More...
 

Protected Member Functions

virtual ~PropertyBufferDataProvider ()
 No deletion through this interface. More...
 

Detailed Description

Definition at line 35 of file property-buffer-data-provider.h.

Member Typedef Documentation

Type for the data contained in the buffer.

Definition at line 42 of file property-buffer-data-provider.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::PropertyBufferDataProvider::PropertyBufferDataProvider ( )
inline

Constructor.

Definition at line 48 of file property-buffer-data-provider.h.

virtual Dali::Internal::SceneGraph::PropertyBufferDataProvider::~PropertyBufferDataProvider ( )
inlineprotectedvirtual

No deletion through this interface.

Definition at line 137 of file property-buffer-data-provider.h.

Member Function Documentation

virtual unsigned int Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetAttributeCount ( BufferIndex  bufferIndex) const
pure virtual

Get the number of attributes.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the number of attributes
virtual const std::string& Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetAttributeName ( BufferIndex  bufferIndex,
unsigned int  index 
) const
pure virtual

Get the name of an attribute.

Parameters
[in]bufferIndexIndex to access double buffered values
[in]indexIndex of the attribute
Returns
the name of the attribute
virtual size_t Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetAttributeOffset ( BufferIndex  bufferIndex,
unsigned int  index 
) const
pure virtual

Get the byte offset of an attribute.

Parameters
[in]bufferIndexIndex to access double buffered values
[in]indexIndex of the attribute
Returns
the byte offset of the attribute
virtual size_t Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetAttributeSize ( BufferIndex  bufferIndex,
unsigned int  index 
) const
pure virtual

Get the byte size of an attribute.

Parameters
[in]bufferIndexIndex to access double buffered values
[in]indexIndex of the attribute
Returns
the byte size of the attribute
virtual Property::Type Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetAttributeType ( BufferIndex  bufferIndex,
unsigned int  index 
) const
pure virtual

Get the type of an attribute.

Parameters
[in]bufferIndexIndex to access double buffered values
[in]indexIndex of the attribute
Returns
the type of the attribute
virtual const BufferType& Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetData ( BufferIndex  bufferIndex) const
pure virtual

Get the property buffer data.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the property buffer's data array
virtual size_t Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetDataSize ( BufferIndex  bufferIndex) const
pure virtual

Get the size of the property buffer in bytes.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the size in bytes
virtual unsigned int Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetElementCount ( BufferIndex  bufferIndex) const
pure virtual

Get the number of elements.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the number of elements
virtual size_t Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetElementSize ( BufferIndex  bufferIndex) const
pure virtual

Get the size of an element of the buffer in bytes.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the element size in bytes
virtual unsigned int Dali::Internal::SceneGraph::PropertyBufferDataProvider::GetGpuBufferId ( BufferIndex  bufferIndex) const
pure virtual

Get Id of the GPU buffer associated with this propertyBuffer.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
the Id
virtual bool Dali::Internal::SceneGraph::PropertyBufferDataProvider::HasDataChanged ( BufferIndex  bufferIndex) const
pure virtual

Checks if data in the PropertyBuffer has changed repect previous frame.

Parameters
[in]bufferIndexIndex to access double buffered values
Returns
true if data has changed, false otherwise

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