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

Helper class for connecting Nodes to the scene-graph RenderTask. More...

#include <render-task-impl.h>

Inheritance diagram for Dali::Internal::RenderTask::Connector:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::RenderTask::Connector:
Collaboration graph
[legend]

Public Types

enum  Type { SOURCE_CONNECTOR, CAMERA_CONNECTOR, MAPPING_CONNECTOR }
 

Public Member Functions

 Connector (Type type, RenderTask &renderTask)
 Create the helper class. More...
 
 ~Connector ()
 Non-virtual destructor; not suitable as a base object. More...
 
void SetActor (Actor *actor)
 Set the actor to be observed. More...
 
void UpdateRenderTask ()
 Update the scene-graph RenderTask with a new source/camera Node. More...
 
virtual void SceneObjectAdded (Object &object)
 Called immediately after the object has created & passed ownership of a scene-graph object. More...
 
virtual void SceneObjectRemoved (Object &object)
 Called immediately after the object has created & passed ownership of a scene-graph object. More...
 
virtual void ObjectDestroyed (Object &object)
 Called shortly before the object itself is destroyed; no further callbacks will be received. More...
 

Public Attributes

const Type mType
 
RenderTaskmRenderTask
 
ActormActor
 Raw-pointer to the actor; not owned. More...
 

Private Member Functions

 Connector (const Connector &)
 
Connectoroperator= (const Connector &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::Internal::Object::Observer
virtual ~Observer ()
 Virtual destructor. More...
 

Detailed Description

Helper class for connecting Nodes to the scene-graph RenderTask.

Definition at line 359 of file render-task-impl.h.

Member Enumeration Documentation

Enumerator
SOURCE_CONNECTOR 
CAMERA_CONNECTOR 
MAPPING_CONNECTOR 

Definition at line 363 of file render-task-impl.h.

Constructor & Destructor Documentation

Dali::Internal::RenderTask::Connector::Connector ( Type  type,
RenderTask renderTask 
)

Create the helper class.

Definition at line 775 of file render-task-impl.cpp.

Dali::Internal::RenderTask::Connector::~Connector ( )

Non-virtual destructor; not suitable as a base object.

Definition at line 782 of file render-task-impl.cpp.

Dali::Internal::RenderTask::Connector::Connector ( const Connector )
private

Member Function Documentation

void Dali::Internal::RenderTask::Connector::ObjectDestroyed ( Object object)
virtual

Called shortly before the object itself is destroyed; no further callbacks will be received.

Parameters
[in]objectThe object object.

Implements Dali::Internal::Object::Observer.

Definition at line 817 of file render-task-impl.cpp.

References Dali::Internal::Stage::GetCurrent(), Dali::Internal::Stage::GetRenderTaskList(), Dali::Internal::anonymous_namespace{actor-impl.cpp}::mType, and Dali::Internal::RenderTaskList::SetExclusive().

Here is the call graph for this function:

Connector& Dali::Internal::RenderTask::Connector::operator= ( const Connector rhs)
private
void Dali::Internal::RenderTask::Connector::SceneObjectAdded ( Object object)
virtual

Called immediately after the object has created & passed ownership of a scene-graph object.

Parameters
[in]objectThe object object.

Implements Dali::Internal::Object::Observer.

Definition at line 807 of file render-task-impl.cpp.

void Dali::Internal::RenderTask::Connector::SceneObjectRemoved ( Object object)
virtual

Called immediately after the object has created & passed ownership of a scene-graph object.

Parameters
[in]objectThe object object.

Implements Dali::Internal::Object::Observer.

Definition at line 812 of file render-task-impl.cpp.

void Dali::Internal::RenderTask::Connector::SetActor ( Actor actor)

Set the actor to be observed.

Parameters
[in]actorThe actor to be observed.

Definition at line 787 of file render-task-impl.cpp.

References Dali::Internal::Object::AddObserver().

Referenced by Dali::Internal::RenderTask::SetCameraActor(), Dali::Internal::RenderTask::SetScreenToFrameBufferMappingActor(), and Dali::Internal::RenderTask::SetSourceActor().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::RenderTask::Connector::UpdateRenderTask ( )

Member Data Documentation

Actor* Dali::Internal::RenderTask::Connector::mActor
RenderTask& Dali::Internal::RenderTask::Connector::mRenderTask

Definition at line 420 of file render-task-impl.h.

const Type Dali::Internal::RenderTask::Connector::mType

Definition at line 418 of file render-task-impl.h.


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