Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::SceneGraph::RenderTaskList Class Reference

An ordered list of render-tasks. More...

#include <scene-graph-render-task-list.h>

Collaboration diagram for Dali::Internal::SceneGraph::RenderTaskList:
Collaboration graph
[legend]

Public Types

typedef OwnerContainer
< RenderTask * > 
RenderTaskContainer
 

Public Member Functions

 RenderTaskList (RenderMessageDispatcher &renderMessageDispatcher, ResourceManager &resourceManager)
 Constructor. More...
 
 ~RenderTaskList ()
 Destructor. More...
 
void AddTask (RenderTask *newTask)
 Add a new RenderTask to the list. More...
 
void RemoveTask (RenderTask *task)
 Remove a RenderTask from the list. More...
 
RenderTaskContainerGetTasks ()
 Retrieve the container of RenderTasks. More...
 
const RenderTaskContainerGetTasks () const
 Retrieve the container of RenderTasks. More...
 
void SetCompleteNotificationInterface (CompleteNotificationInterface *object)
 Set the notification method to package in the NotifyFinishedMessage. More...
 
CompleteNotificationInterfaceGetCompleteNotificationInterface ()
 Get the Notification interface for when 1+ render tasks have finished. More...
 

Private Member Functions

 RenderTaskList (const RenderTaskList &)
 
RenderTaskListoperator= (const RenderTaskList &)
 

Private Attributes

CompleteNotificationInterfacemNotificationObject
 object to pass in to the complete notification More...
 
RenderMessageDispatchermRenderMessageDispatcher
 for sending messages to render thread More...
 
ResourceManagermResourceManager
 The resource manager (render tasks need this) More...
 
RenderTaskContainer mRenderTasks
 A container of owned RenderTasks. More...
 

Detailed Description

An ordered list of render-tasks.

Definition at line 42 of file scene-graph-render-task-list.h.

Member Typedef Documentation

Definition at line 46 of file scene-graph-render-task-list.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::RenderTaskList::RenderTaskList ( RenderMessageDispatcher renderMessageDispatcher,
ResourceManager resourceManager 
)

Constructor.

Parameters
renderMessageDispatcherto send messages
resourceManagerto pass to render tasks

Definition at line 33 of file scene-graph-render-task-list.cpp.

Dali::Internal::SceneGraph::RenderTaskList::~RenderTaskList ( )

Destructor.

Definition at line 40 of file scene-graph-render-task-list.cpp.

Dali::Internal::SceneGraph::RenderTaskList::RenderTaskList ( const RenderTaskList )
private

Member Function Documentation

void Dali::Internal::SceneGraph::RenderTaskList::AddTask ( RenderTask newTask)

Add a new RenderTask to the list.

Parameters
[in]newTaskThe RenderTaskList takes ownership of this task.

Definition at line 44 of file scene-graph-render-task-list.cpp.

References DALI_ASSERT_DEBUG, Dali::Internal::SceneGraph::RenderTask::Initialize(), mRenderMessageDispatcher, mRenderTasks, mResourceManager, and Dali::Vector< T, IsTrivialType >::PushBack().

Referenced by Dali::Internal::SceneGraph::AddTaskMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

CompleteNotificationInterface * Dali::Internal::SceneGraph::RenderTaskList::GetCompleteNotificationInterface ( )

Get the Notification interface for when 1+ render tasks have finished.

Definition at line 84 of file scene-graph-render-task-list.cpp.

References mNotificationObject.

Referenced by Dali::Internal::SceneGraph::UpdateManager::Update().

Here is the caller graph for this function:

RenderTaskList::RenderTaskContainer & Dali::Internal::SceneGraph::RenderTaskList::GetTasks ( )
const RenderTaskList::RenderTaskContainer & Dali::Internal::SceneGraph::RenderTaskList::GetTasks ( ) const

Retrieve the container of RenderTasks.

Returns
The container.

Definition at line 73 of file scene-graph-render-task-list.cpp.

References mRenderTasks.

RenderTaskList& Dali::Internal::SceneGraph::RenderTaskList::operator= ( const RenderTaskList )
private
void Dali::Internal::SceneGraph::RenderTaskList::RemoveTask ( RenderTask task)

Remove a RenderTask from the list.

Parameters
[in]taskThe RenderTaskList will destroy this task.

Definition at line 53 of file scene-graph-render-task-list.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), Dali::Vector< T, IsTrivialType >::End(), Dali::OwnerContainer< T >::Erase(), and mRenderTasks.

Referenced by Dali::Internal::SceneGraph::RemoveTaskMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderTaskList::SetCompleteNotificationInterface ( CompleteNotificationInterface object)

Set the notification method to package in the NotifyFinishedMessage.

Parameters
objectto store in notification managers queue

Definition at line 78 of file scene-graph-render-task-list.cpp.

References mNotificationObject.

Referenced by Dali::Internal::RenderTaskList::Initialize().

Here is the caller graph for this function:

Member Data Documentation

CompleteNotificationInterface* Dali::Internal::SceneGraph::RenderTaskList::mNotificationObject
private

object to pass in to the complete notification

Definition at line 105 of file scene-graph-render-task-list.h.

Referenced by GetCompleteNotificationInterface(), and SetCompleteNotificationInterface().

RenderMessageDispatcher& Dali::Internal::SceneGraph::RenderTaskList::mRenderMessageDispatcher
private

for sending messages to render thread

Definition at line 106 of file scene-graph-render-task-list.h.

Referenced by AddTask().

RenderTaskContainer Dali::Internal::SceneGraph::RenderTaskList::mRenderTasks
private

A container of owned RenderTasks.

Definition at line 108 of file scene-graph-render-task-list.h.

Referenced by AddTask(), GetTasks(), and RemoveTask().

ResourceManager& Dali::Internal::SceneGraph::RenderTaskList::mResourceManager
private

The resource manager (render tasks need this)

Definition at line 107 of file scene-graph-render-task-list.h.

Referenced by AddTask().


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