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

Implementation of Stage. More...

#include <stage-impl.h>

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

Public Member Functions

void Initialize ()
 Initialize the stage. More...
 
void Uninitialize ()
 Uninitialize the stage. More...
 
ObjectRegistryGetObjectRegistry ()
 Get the Object registry. More...
 
LayerGetRootActor ()
 Retrieve the root actor (not publically accessible). More...
 
AnimationPlaylistGetAnimationPlaylist ()
 Returns the animation playlist. More...
 
PropertyNotificationManagerGetPropertyNotificationManager ()
 Returns the property notification manager. More...
 
void Add (Actor &actor)
 Adds a child Actor to the Stage. More...
 
void Remove (Actor &actor)
 Removes a child Actor from the Stage. More...
 
void SetSize (float width, float height)
 Sets the size of the stage and indirectly, the root actor. More...
 
Vector2 GetSize () const
 Returns the size of the Stage in pixels as a Vector. More...
 
RenderTaskListGetRenderTaskList () const
 Retrieve the list of render-tasks. More...
 
void CreateDefaultCameraActor ()
 Create a default camera actor. More...
 
virtual ActorGetDefaultRootActor ()
 From RenderTaskDefaults; retrieve the default root actor. More...
 
virtual CameraActorGetDefaultCameraActor ()
 From RenderTaskDefaults; retrieve the default camera actor. More...
 
unsigned int GetLayerCount () const
 Query the number of on-stage layers. More...
 
Dali::Layer GetLayer (unsigned int depth) const
 Retrieve the layer at a specified depth. More...
 
Dali::Layer GetRootLayer () const
 Returns the Stage's Root Layer. More...
 
LayerListGetLayerList ()
 Retrieve the ordered list of on-stage layers. More...
 
Integration::SystemOverlayGetSystemOverlay ()
 Use the SystemOverlay to draw content for system-level indicators, dialogs etc. More...
 
SystemOverlayGetSystemOverlayInternal ()
 Retrieve the internal implementation of the SystemOverlay. More...
 
void SetViewMode (ViewMode viewMode)
 Set the stereoscopic 3D view mode. More...
 
ViewMode GetViewMode () const
 Get the current view mode. More...
 
void SetStereoBase (float stereoBase)
 Set the stereo base (eye seperation) for stereoscopic 3D. More...
 
float GetStereoBase () const
 Get the stereo base (eye seperation) for stereoscopic 3D. More...
 
void SetKeyboardFocusActor (Actor *actor)
 As one virtual keyboard per stage, the stage will hold a pointer to the Actor currently set to receive keyboard input. More...
 
ActorGetKeyboardFocusActor () const
 Get the actor that is currently set to receive keyboard inputs. More...
 
void RemoveActorFromKeyFocus (Actor *actor)
 Removes the given actor from keyboard focus so it will no longer receive key events from keyboard. More...
 
void SetBackgroundColor (Vector4 color)
 Set the background color of the stage. More...
 
Vector4 GetBackgroundColor () const
 Retrieve the background color of the stage. More...
 
Vector2 GetDpi () const
 Retrieve the DPI of the display device to which the stage is connected. More...
 
void SetDpi (Vector2 dpi)
 Sets horizontal and vertical pixels per inch value that is used by the display. More...
 
NotificationManagerGetNotificationManager ()
 
void KeepRendering (float durationSeconds)
 Keep rendering for at least the given amount of time. More...
 
void EmitKeyEventSignal (const KeyEvent &event)
 Used by the EventProcessor to emit key event signals. More...
 
void EmitEventProcessingFinishedSignal ()
 Emits the event processing finished signal. More...
 
void EmitTouchedSignal (const TouchEvent &touch)
 Emits the touched signal. More...
 
void EmitWheelEventSignal (const WheelEvent &event)
 Used by the EventProcessor to emit wheel event signals. More...
 
void EmitSceneCreatedSignal ()
 Emits the scene created. More...
 
Dali::Stage::KeyEventSignalTypeKeyEventSignal ()
 This signal is emitted when key event is received. More...
 
Dali::Stage::EventProcessingFinishedSignalTypeEventProcessingFinishedSignal ()
  More...
 
Dali::Stage::TouchedSignalTypeTouchedSignal ()
 This signal is emitted when the screen is touched and when the touch ends (i.e. More...
 
Dali::Stage::WheelEventSignalTypeWheelEventSignal ()
 This signal is emitted when wheel event is received. More...
 
Dali::Stage::ContextStatusSignalContextLostSignal ()
 This signal is emitted when the GL context is lost (Platform specific behaviour). More...
 
Dali::Stage::ContextStatusSignalContextRegainedSignal ()
 This signal is emitted when the GL context is regained (Platform specific behaviour). More...
 
Dali::Stage::SceneCreatedSignalTypeSceneCreatedSignal ()
 This signal is emitted after the initial scene is created. More...
 
virtual void RegisterObject (BaseObject *object)
 Registers the object as created with the Object registry. More...
 
virtual void UnregisterObject (BaseObject *object)
 Unregisters the object from Object registry. More...
 
virtual SceneGraph::UpdateManagerGetUpdateManager ()
 Get a reference to the UpdateManager. More...
 
virtual unsigned int * ReserveMessageSlot (std::size_t size, bool updateScene)
 Reserve space for another message in the queue; this must then be initialized by the caller. More...
 
virtual BufferIndex GetEventBufferIndex () const
  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...
 
- Public Member Functions inherited from Dali::Internal::EventThreadServices
virtual ~EventThreadServices ()
 Virtual destructor. More...
 

Static Public Member Functions

static StagePtr New (AnimationPlaylist &playlist, PropertyNotificationManager &propertyNotificationManager, SceneGraph::UpdateManager &updateManager, NotificationManager &notificationManager)
 Create the stage. More...
 
static StagePtr GetCurrent ()
 Get the current Stage. More...
 
static bool IsInstalled ()
 Query whether the Stage exists; this should only return false during or after destruction of Dali core. More...
 
static bool DoConnectSignal (BaseObject *object, ConnectionTrackerInterface *tracker, const std::string &signalName, FunctorDelegate *functor)
 Connects a callback function with the object's signals. More...
 
- Static Public Member Functions inherited from Dali::Internal::EventThreadServices
static bool IsCoreRunning ()
 

Private Member Functions

virtual void NotifyContextLost ()
  More...
 
virtual void NotifyContextRegained ()
  More...
 
 Stage (AnimationPlaylist &playlist, PropertyNotificationManager &propertyNotificationManager, SceneGraph::UpdateManager &updateManager, NotificationManager &notificationManager)
 Protected constructor; see also Stage::New() More...
 
virtual ~Stage ()
 A reference counted object may only be deleted by calling Unreference() More...
 

Private Attributes

AnimationPlaylistmAnimationPlaylist
 
PropertyNotificationManagermPropertyNotificationManager
 
SceneGraph::UpdateManagermUpdateManager
 
NotificationManagermNotificationManager
 
Vector2 mSize
 
Vector4 mBackgroundColor
 
LayerPtr mRootLayer
 
OwnerPointer< LayerListmLayerList
 
IntrusivePtr< CameraActormDefaultCamera
 
ViewMode mViewMode
 
float mStereoBase
 
Vector2 mDpi
 
ObjectRegistryPtr mObjectRegistry
 
IntrusivePtr< RenderTaskListmRenderTaskList
 
Dali::RenderTask mRightRenderTask
 
IntrusivePtr< CameraActormRightCamera
 
Dali::RenderTask mLeftRenderTask
 
IntrusivePtr< CameraActormLeftCamera
 
Integration::SystemOverlaymSystemOverlay
 SystemOverlay stage access. More...
 
Dali::Stage::KeyEventSignalType mKeyEventSignal
 
Dali::Stage::EventProcessingFinishedSignalType mEventProcessingFinishedSignal
 
Dali::Stage::TouchedSignalType mTouchedSignal
 
Dali::Stage::WheelEventSignalType mWheelEventSignal
 
Dali::Stage::ContextStatusSignal mContextLostSignal
 
Dali::Stage::ContextStatusSignal mContextRegainedSignal
 
Dali::Stage::SceneCreatedSignalType mSceneCreatedSignal
 

Additional Inherited Members

- 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::Internal::RenderTaskDefaults
virtual ~RenderTaskDefaults ()
 Virtual destructor. More...
 

Detailed Description

Implementation of Stage.

Definition at line 68 of file stage-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Stage::Stage ( AnimationPlaylist playlist,
PropertyNotificationManager propertyNotificationManager,
SceneGraph::UpdateManager updateManager,
NotificationManager notificationManager 
)
private

Protected constructor; see also Stage::New()

Definition at line 607 of file stage-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Stage::~Stage ( )
privatevirtual

A reference counted object may only be deleted by calling Unreference()

Definition at line 638 of file stage-impl.cpp.

References mObjectRegistry, mSystemOverlay, and Dali::IntrusivePtr< T >::Reset().

Here is the call graph for this function:

Member Function Documentation

void Dali::Internal::Stage::Add ( Actor actor)

Adds a child Actor to the Stage.

The child will be referenced. .0

Parameters
[in]actorThe child.
Precondition
The actor has been initialized.
The actor does not have a parent.

Definition at line 179 of file stage-impl.cpp.

References Dali::Actor::Add(), and mRootLayer.

Referenced by CreateDefaultCameraActor().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Stage::ContextStatusSignal & Dali::Internal::Stage::ContextLostSignal ( )

This signal is emitted when the GL context is lost (Platform specific behaviour).

If the application is responsible for handling context loss, it should listen to this signal and tear down UI components when recieved. .0

Returns
The context lost signal to connect to.

Definition at line 582 of file stage-impl.cpp.

References mContextLostSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

Dali::Stage::ContextStatusSignal & Dali::Internal::Stage::ContextRegainedSignal ( )

This signal is emitted when the GL context is regained (Platform specific behaviour).

If the application is responsible for handling context loss, it should listen to this signal and rebuild UI components on receipt. .0

Returns
The context regained signal to connect to.

Definition at line 587 of file stage-impl.cpp.

References mContextRegainedSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

void Dali::Internal::Stage::CreateDefaultCameraActor ( )

Create a default camera actor.

Definition at line 232 of file stage-impl.cpp.

References Add(), Dali::ParentOrigin::CENTER, Dali::IntrusivePtr< T >::Get(), mDefaultCamera, Dali::Internal::Actor::New(), Dali::Actor::SetParentOrigin(), and Dali::Vector2::ZERO.

Referenced by Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::Stage::DoConnectSignal ( BaseObject object,
ConnectionTrackerInterface tracker,
const std::string &  signalName,
FunctorDelegate functor 
)
static

Connects a callback function with the object's signals.

Parameters
[in]objectThe object providing the signal.
[in]trackerUsed to disconnect the signal.
[in]signalNameThe signal to connect to.
[in]functorA newly allocated FunctorDelegate.
Returns
True if the signal was connected.
Postcondition
If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.

Definition at line 491 of file stage-impl.cpp.

References Dali::Signal< void() >::Connect(), ContextLostSignal(), ContextRegainedSignal(), EventProcessingFinishedSignal(), KeyEventSignal(), SceneCreatedSignal(), Dali::Internal::anonymous_namespace{stage-impl.cpp}::SIGNAL_CONTEXT_LOST, Dali::Internal::anonymous_namespace{stage-impl.cpp}::SIGNAL_CONTEXT_REGAINED, Dali::Internal::anonymous_namespace{stage-impl.cpp}::SIGNAL_EVENT_PROCESSING_FINISHED, Dali::Internal::anonymous_namespace{stage-impl.cpp}::SIGNAL_KEY_EVENT, Dali::Internal::anonymous_namespace{stage-impl.cpp}::SIGNAL_SCENE_CREATED, Dali::Internal::anonymous_namespace{actor-impl.cpp}::SIGNAL_TOUCHED, Dali::Internal::anonymous_namespace{actor-impl.cpp}::SIGNAL_WHEEL_EVENT, TouchedSignal(), and WheelEventSignal().

Here is the call graph for this function:

void Dali::Internal::Stage::EmitEventProcessingFinishedSignal ( )

Emits the event processing finished signal.

See Also
Dali::Stage::SignalEventProcessingFinished()

Definition at line 540 of file stage-impl.cpp.

References Dali::Signal< void() >::Emit(), and mEventProcessingFinishedSignal.

Here is the call graph for this function:

void Dali::Internal::Stage::EmitKeyEventSignal ( const KeyEvent event)

Used by the EventProcessor to emit key event signals.

Parameters
[in]eventThe key event.

Definition at line 533 of file stage-impl.cpp.

References mKeyEventSignal.

Referenced by Dali::Internal::KeyEventProcessor::ProcessKeyEvent().

Here is the caller graph for this function:

void Dali::Internal::Stage::EmitSceneCreatedSignal ( )

Emits the scene created.

Definition at line 557 of file stage-impl.cpp.

References Dali::Signal< void() >::Emit(), and mSceneCreatedSignal.

Here is the call graph for this function:

void Dali::Internal::Stage::EmitTouchedSignal ( const TouchEvent touch)

Emits the touched signal.

Parameters
[in]touchThe touch event details.

Definition at line 545 of file stage-impl.cpp.

References mTouchedSignal.

Referenced by Dali::Internal::TouchEventProcessor::ProcessTouchEvent().

Here is the caller graph for this function:

void Dali::Internal::Stage::EmitWheelEventSignal ( const WheelEvent event)

Used by the EventProcessor to emit wheel event signals.

Parameters
[in]eventThe wheel event.

Definition at line 550 of file stage-impl.cpp.

References mWheelEventSignal.

Referenced by Dali::Internal::WheelEventProcessor::ProcessWheelEvent().

Here is the caller graph for this function:

Dali::Stage::EventProcessingFinishedSignalType & Dali::Internal::Stage::EventProcessingFinishedSignal ( )

Definition at line 567 of file stage-impl.cpp.

References mEventProcessingFinishedSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

AnimationPlaylist & Dali::Internal::Stage::GetAnimationPlaylist ( )

Returns the animation playlist.

Returns
reference to the animation playlist.

Definition at line 169 of file stage-impl.cpp.

References mAnimationPlaylist.

Referenced by Dali::Internal::Animation::New().

Here is the caller graph for this function:

Vector4 Dali::Internal::Stage::GetBackgroundColor ( ) const

Retrieve the background color of the stage.

.0

Returns
The background color.

Definition at line 470 of file stage-impl.cpp.

References mBackgroundColor.

StagePtr Dali::Internal::Stage::GetCurrent ( )
static
CameraActor & Dali::Internal::Stage::GetDefaultCameraActor ( )
virtual

From RenderTaskDefaults; retrieve the default camera actor.

Returns
The default camera actor.

Implements Dali::Internal::RenderTaskDefaults.

Definition at line 247 of file stage-impl.cpp.

References mDefaultCamera.

Referenced by Dali::Internal::RenderTask::TranslateCoordinates().

Here is the caller graph for this function:

Actor & Dali::Internal::Stage::GetDefaultRootActor ( )
virtual

From RenderTaskDefaults; retrieve the default root actor.

Returns
The default root actor.

Implements Dali::Internal::RenderTaskDefaults.

Definition at line 242 of file stage-impl.cpp.

References mRootLayer.

Vector2 Dali::Internal::Stage::GetDpi ( ) const

Retrieve the DPI of the display device to which the stage is connected.

.0

Returns
The horizontal and vertical DPI

Definition at line 475 of file stage-impl.cpp.

References mDpi.

Referenced by SetStereoBase(), and SetViewMode().

Here is the caller graph for this function:

BufferIndex Dali::Internal::Stage::GetEventBufferIndex ( ) const
virtual

Returns
the current event-buffer index.

Implements Dali::Internal::EventThreadServices.

Definition at line 633 of file stage-impl.cpp.

References Dali::Internal::SceneGraph::UpdateManager::GetEventBufferIndex(), and mUpdateManager.

Here is the call graph for this function:

Actor* Dali::Internal::Stage::GetKeyboardFocusActor ( ) const

Get the actor that is currently set to receive keyboard inputs.

Returns
Pointer to the actor set to receive keyboard inputs.
Dali::Layer Dali::Internal::Stage::GetLayer ( unsigned int  depth) const

Retrieve the layer at a specified depth.

.0

Parameters
[in]depthThe depth.
Returns
The layer found at the given depth.
Precondition
Depth is less than layer count; see GetLayerCount().

Definition at line 257 of file stage-impl.cpp.

References mLayerList.

unsigned int Dali::Internal::Stage::GetLayerCount ( ) const

Query the number of on-stage layers.

Note that a default layer is always provided (count >= 1). .0

Returns
The number of layers.

Definition at line 252 of file stage-impl.cpp.

References mLayerList.

LayerList & Dali::Internal::Stage::GetLayerList ( )

Retrieve the ordered list of on-stage layers.

Returns
The layer-list.

Definition at line 267 of file stage-impl.cpp.

References mLayerList.

Referenced by Dali::Internal::HitTestAlgorithm::HitTest().

Here is the caller graph for this function:

NotificationManager& Dali::Internal::Stage::GetNotificationManager ( )
inline

Definition at line 279 of file stage-impl.h.

References mNotificationManager.

ObjectRegistry & Dali::Internal::Stage::GetObjectRegistry ( )

Get the Object registry.

.0

Returns
The object registry.

Definition at line 149 of file stage-impl.cpp.

References mObjectRegistry.

Referenced by Dali::Stage::GetObjectRegistry().

Here is the caller graph for this function:

PropertyNotificationManager & Dali::Internal::Stage::GetPropertyNotificationManager ( )

Returns the property notification manager.

Returns
reference to the property notification manager.

Definition at line 174 of file stage-impl.cpp.

References mPropertyNotificationManager.

Referenced by Dali::Internal::PropertyNotification::New().

Here is the caller graph for this function:

RenderTaskList & Dali::Internal::Stage::GetRenderTaskList ( ) const

Retrieve the list of render-tasks.

.0

Returns
A valid handle to a RenderTaskList.

Definition at line 227 of file stage-impl.cpp.

References mRenderTaskList.

Referenced by Dali::Internal::HitTestAlgorithm::HitTest(), Dali::Internal::RenderTask::Connector::ObjectDestroyed(), Dali::Internal::Actor::ScreenToLocal(), Dali::Internal::RenderTask::SetExclusive(), and Dali::Internal::RenderTask::SetSourceActor().

Here is the caller graph for this function:

Layer & Dali::Internal::Stage::GetRootActor ( )

Retrieve the root actor (not publically accessible).

Returns
The root actor.

Definition at line 164 of file stage-impl.cpp.

References mRootLayer.

Dali::Layer Dali::Internal::Stage::GetRootLayer ( ) const

Returns the Stage's Root Layer.

.0

Returns
The root layer.

Definition at line 262 of file stage-impl.cpp.

References Dali::IntrusivePtr< T >::Get(), and mRootLayer.

Here is the call graph for this function:

Vector2 Dali::Internal::Stage::GetSize ( ) const

Returns the size of the Stage in pixels as a Vector.

The x component will be the width of the Stage in pixels The y component will be the height of the Stage in pixels

Returns
The size of the Stage as a Vector.

Definition at line 222 of file stage-impl.cpp.

References mSize.

Referenced by Dali::Internal::RenderTask::GetViewport(), Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestRenderTask(), Dali::Internal::Layer::SetClippingBox(), Dali::Internal::CameraActor::SetPerspectiveProjection(), and Dali::Internal::RenderTask::TranslateCoordinates().

Here is the caller graph for this function:

float Dali::Internal::Stage::GetStereoBase ( ) const

Get the stereo base (eye seperation) for stereoscopic 3D.

Returns
The stereo base (eye seperation) for stereoscopic 3D (mm)

Definition at line 456 of file stage-impl.cpp.

References mStereoBase.

Integration::SystemOverlay & Dali::Internal::Stage::GetSystemOverlay ( )

Use the SystemOverlay to draw content for system-level indicators, dialogs etc.

Returns
The SystemOverlay.

Definition at line 272 of file stage-impl.cpp.

References DALI_ASSERT_ALWAYS, Dali::Integration::SystemOverlay::GetImpl(), Dali::Vector2::height, mSize, mSystemOverlay, Dali::WeightObject::New(), and Dali::Vector2::width.

Here is the call graph for this function:

SystemOverlay * Dali::Internal::Stage::GetSystemOverlayInternal ( )

Retrieve the internal implementation of the SystemOverlay.

Returns
The implementation, or NULL if this has never been requested from Integration API.

Definition at line 286 of file stage-impl.cpp.

References Dali::Integration::SystemOverlay::GetImpl(), and mSystemOverlay.

Referenced by Dali::Internal::HitTestAlgorithm::HitTest().

Here is the call graph for this function:

Here is the caller graph for this function:

SceneGraph::UpdateManager & Dali::Internal::Stage::GetUpdateManager ( )
virtual

Get a reference to the UpdateManager.

Returns
the update manager

Implements Dali::Internal::EventThreadServices.

Definition at line 623 of file stage-impl.cpp.

References mUpdateManager.

Referenced by Dali::Internal::PanGestureProcessor::PanGestureProcessor(), and Dali::Internal::PanGestureProcessor::~PanGestureProcessor().

Here is the caller graph for this function:

ViewMode Dali::Internal::Stage::GetViewMode ( ) const

Get the current view mode.

Returns
The current view mode
See Also
SetViewMode.

Definition at line 406 of file stage-impl.cpp.

References mViewMode.

void Dali::Internal::Stage::Initialize ( void  )
bool Dali::Internal::Stage::IsInstalled ( )
static
void Dali::Internal::Stage::KeepRendering ( float  durationSeconds)

Keep rendering for at least the given amount of time.

By default Dali will stop rendering when no Actor positions are being set, and when no animations are running etc. This method is useful to force screen refreshes e.g. when updating a NativeImage. .0

Parameters
[in]durationSecondsTime to keep rendering, 0 means render at least one more frame

Definition at line 485 of file stage-impl.cpp.

References Dali::Internal::SceneGraph::KeepRenderingMessage(), and mUpdateManager.

Here is the call graph for this function:

Dali::Stage::KeyEventSignalType & Dali::Internal::Stage::KeyEventSignal ( )

This signal is emitted when key event is received.

A callback of the following type may be connected:

void YourCallbackName(const KeyEvent& event);

.0

Returns
The signal to connect to.

Definition at line 562 of file stage-impl.cpp.

References mKeyEventSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

StagePtr Dali::Internal::Stage::New ( AnimationPlaylist playlist,
PropertyNotificationManager propertyNotificationManager,
SceneGraph::UpdateManager updateManager,
NotificationManager notificationManager 
)
static

Create the stage.

Parameters
[in]playlistfor animations
[in]propertyNotificationManager
[in]updateManager
[in]notificationManager

Definition at line 78 of file stage-impl.cpp.

References Stage().

Here is the call graph for this function:

void Dali::Internal::Stage::NotifyContextLost ( )
privatevirtual

Implements Dali::Integration::ContextNotifierInterface.

Definition at line 597 of file stage-impl.cpp.

References Dali::Signal< void() >::Emit(), and mContextLostSignal.

Here is the call graph for this function:

void Dali::Internal::Stage::NotifyContextRegained ( )
privatevirtual

Implements Dali::Integration::ContextNotifierInterface.

Definition at line 602 of file stage-impl.cpp.

References Dali::Signal< void() >::Emit(), and mContextRegainedSignal.

Here is the call graph for this function:

void Dali::Internal::Stage::RegisterObject ( Dali::BaseObject object)
virtual

Registers the object as created with the Object registry.

Parameters
[in]objectto register

Implements Dali::Internal::EventThreadServices.

Definition at line 154 of file stage-impl.cpp.

References mObjectRegistry.

Referenced by Dali::BaseObject::RegisterObject().

Here is the caller graph for this function:

void Dali::Internal::Stage::Remove ( Actor actor)

Removes a child Actor from the Stage.

The child will be unreferenced. .0

Parameters
[in]actorThe child.
Precondition
The actor has been added to the stage.

Definition at line 184 of file stage-impl.cpp.

References mRootLayer, and Dali::Actor::Remove().

Here is the call graph for this function:

void Dali::Internal::Stage::RemoveActorFromKeyFocus ( Actor actor)

Removes the given actor from keyboard focus so it will no longer receive key events from keyboard.

Parameters
[in]actorwhich should be removed from focus.
unsigned int * Dali::Internal::Stage::ReserveMessageSlot ( std::size_t  size,
bool  updateScene 
)
virtual

Reserve space for another message in the queue; this must then be initialized by the caller.

The message will be read from the update-thread after the next FlushMessages is called.

Postcondition
Calling this method may invalidate any previously returned slots.
Parameters
[in]sizeThe message size with respect to the size of type "char".
[in]updateSceneA flag, when true denotes that the message will cause the scene-graph node tree to require an update.
Returns
A pointer to the first char allocated for the message.

Implements Dali::Internal::EventThreadServices.

Definition at line 628 of file stage-impl.cpp.

References mUpdateManager, and Dali::Internal::SceneGraph::UpdateManager::ReserveMessageSlot().

Here is the call graph for this function:

Dali::Stage::SceneCreatedSignalType & Dali::Internal::Stage::SceneCreatedSignal ( )

This signal is emitted after the initial scene is created.

It will be triggered after the application init signal.

A callback of the following type may be connected:

void YourCallbackName();

.0

Returns
The signal to connect to.

Definition at line 592 of file stage-impl.cpp.

References mSceneCreatedSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

void Dali::Internal::Stage::SetBackgroundColor ( Vector4  color)

Set the background color of the stage.

.0

Parameters
[in]colorThe new background color.

Definition at line 461 of file stage-impl.cpp.

References mBackgroundColor, mUpdateManager, and Dali::Internal::SceneGraph::SetBackgroundColorMessage().

Here is the call graph for this function:

void Dali::Internal::Stage::SetDpi ( Vector2  dpi)

Sets horizontal and vertical pixels per inch value that is used by the display.

Parameters
[in]dpiHorizontal and vertical dpi value

Definition at line 480 of file stage-impl.cpp.

References mDpi.

void Dali::Internal::Stage::SetKeyboardFocusActor ( Actor actor)

As one virtual keyboard per stage, the stage will hold a pointer to the Actor currently set to receive keyboard input.

Parameters
[in]actorto receive keyboard input
void Dali::Internal::Stage::SetSize ( float  width,
float  height 
)
void Dali::Internal::Stage::SetStereoBase ( float  stereoBase)

Set the stereo base (eye seperation) for stereoscopic 3D.

Parameters
[in]stereoBaseThe stereo base (eye seperation) for stereoscopic 3D (mm)

Definition at line 411 of file stage-impl.cpp.

References DALI_LOG_INFO, Dali::Equals(), GetDpi(), Dali::Vector2::height, mLeftCamera, mRightCamera, mSize, mStereoBase, mViewMode, Dali::CameraActor::SetAspectRatio(), Dali::CameraActor::SetFieldOfView(), Dali::CameraActor::SetPerspectiveProjection(), Dali::Actor::SetPosition(), Dali::STEREO_HORIZONTAL, Dali::STEREO_VERTICAL, Dali::Vector2::width, Dali::Vector2::x, and Dali::Vector2::y.

Here is the call graph for this function:

void Dali::Internal::Stage::SetViewMode ( ViewMode  viewMode)
Dali::Stage::TouchedSignalType & Dali::Internal::Stage::TouchedSignal ( )

This signal is emitted when the screen is touched and when the touch ends (i.e.

the down & up touch events only).

If there are multiple touch points, then this will be emitted when the first touch occurs and then when the last finger is lifted. An interrupted event will also be emitted. A callback of the following type may be connected:

void YourCallbackName(const TouchEvent& event);

.0

Returns
The touch signal to connect to.
Note
Motion events are not emitted.

Definition at line 572 of file stage-impl.cpp.

References mTouchedSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

void Dali::Internal::Stage::Uninitialize ( )

Uninitialize the stage.

Definition at line 111 of file stage-impl.cpp.

References mDefaultCamera, mRootLayer, mSystemOverlay, and Dali::IntrusivePtr< T >::Reset().

Here is the call graph for this function:

void Dali::Internal::Stage::UnregisterObject ( Dali::BaseObject object)
virtual

Unregisters the object from Object registry.

Parameters
[in]objectto unregister

Implements Dali::Internal::EventThreadServices.

Definition at line 159 of file stage-impl.cpp.

References mObjectRegistry.

Referenced by Dali::BaseObject::UnregisterObject().

Here is the caller graph for this function:

Dali::Stage::WheelEventSignalType & Dali::Internal::Stage::WheelEventSignal ( )

This signal is emitted when wheel event is received.

A callback of the following type may be connected:

void YourCallbackName(const WheelEvent& event);

.0

Returns
The signal to connect to.

Definition at line 577 of file stage-impl.cpp.

References mWheelEventSignal.

Referenced by DoConnectSignal().

Here is the caller graph for this function:

Member Data Documentation

AnimationPlaylist& Dali::Internal::Stage::mAnimationPlaylist
private

Definition at line 422 of file stage-impl.h.

Referenced by GetAnimationPlaylist().

Vector4 Dali::Internal::Stage::mBackgroundColor
private

Definition at line 434 of file stage-impl.h.

Referenced by GetBackgroundColor(), and SetBackgroundColor().

Dali::Stage::ContextStatusSignal Dali::Internal::Stage::mContextLostSignal
private

Definition at line 473 of file stage-impl.h.

Referenced by ContextLostSignal(), and NotifyContextLost().

Dali::Stage::ContextStatusSignal Dali::Internal::Stage::mContextRegainedSignal
private

Definition at line 474 of file stage-impl.h.

Referenced by ContextRegainedSignal(), and NotifyContextRegained().

IntrusivePtr<CameraActor> Dali::Internal::Stage::mDefaultCamera
private
Vector2 Dali::Internal::Stage::mDpi
private

Definition at line 446 of file stage-impl.h.

Referenced by GetDpi(), and SetDpi().

Dali::Stage::EventProcessingFinishedSignalType Dali::Internal::Stage::mEventProcessingFinishedSignal
private
Dali::Stage::KeyEventSignalType Dali::Internal::Stage::mKeyEventSignal
private

Definition at line 462 of file stage-impl.h.

Referenced by EmitKeyEventSignal(), and KeyEventSignal().

OwnerPointer<LayerList> Dali::Internal::Stage::mLayerList
private

Definition at line 439 of file stage-impl.h.

Referenced by GetLayer(), GetLayerCount(), GetLayerList(), and Initialize().

IntrusivePtr<CameraActor> Dali::Internal::Stage::mLeftCamera
private

Definition at line 457 of file stage-impl.h.

Referenced by SetStereoBase(), and SetViewMode().

Dali::RenderTask Dali::Internal::Stage::mLeftRenderTask
private

Definition at line 456 of file stage-impl.h.

Referenced by SetViewMode().

NotificationManager& Dali::Internal::Stage::mNotificationManager
private

Definition at line 428 of file stage-impl.h.

Referenced by GetNotificationManager().

ObjectRegistryPtr Dali::Internal::Stage::mObjectRegistry
private

Definition at line 449 of file stage-impl.h.

Referenced by GetObjectRegistry(), Initialize(), RegisterObject(), UnregisterObject(), and ~Stage().

PropertyNotificationManager& Dali::Internal::Stage::mPropertyNotificationManager
private

Definition at line 424 of file stage-impl.h.

Referenced by GetPropertyNotificationManager().

IntrusivePtr<RenderTaskList> Dali::Internal::Stage::mRenderTaskList
private

Definition at line 452 of file stage-impl.h.

Referenced by GetRenderTaskList(), Initialize(), SetSize(), and SetViewMode().

IntrusivePtr<CameraActor> Dali::Internal::Stage::mRightCamera
private

Definition at line 455 of file stage-impl.h.

Referenced by SetStereoBase(), and SetViewMode().

Dali::RenderTask Dali::Internal::Stage::mRightRenderTask
private

Definition at line 454 of file stage-impl.h.

Referenced by SetViewMode().

LayerPtr Dali::Internal::Stage::mRootLayer
private
Dali::Stage::SceneCreatedSignalType Dali::Internal::Stage::mSceneCreatedSignal
private

Definition at line 476 of file stage-impl.h.

Referenced by EmitSceneCreatedSignal(), and SceneCreatedSignal().

Vector2 Dali::Internal::Stage::mSize
private

Definition at line 431 of file stage-impl.h.

Referenced by GetSize(), GetSystemOverlay(), SetSize(), SetStereoBase(), and SetViewMode().

float Dali::Internal::Stage::mStereoBase
private

Definition at line 444 of file stage-impl.h.

Referenced by GetStereoBase(), SetStereoBase(), and SetViewMode().

Integration::SystemOverlay* Dali::Internal::Stage::mSystemOverlay
private

SystemOverlay stage access.

Definition at line 459 of file stage-impl.h.

Referenced by GetSystemOverlay(), GetSystemOverlayInternal(), SetSize(), Uninitialize(), and ~Stage().

Dali::Stage::TouchedSignalType Dali::Internal::Stage::mTouchedSignal
private

Definition at line 468 of file stage-impl.h.

Referenced by EmitTouchedSignal(), and TouchedSignal().

SceneGraph::UpdateManager& Dali::Internal::Stage::mUpdateManager
private
ViewMode Dali::Internal::Stage::mViewMode
private

Definition at line 443 of file stage-impl.h.

Referenced by GetViewMode(), SetStereoBase(), and SetViewMode().

Dali::Stage::WheelEventSignalType Dali::Internal::Stage::mWheelEventSignal
private

Definition at line 471 of file stage-impl.h.

Referenced by EmitWheelEventSignal(), and WheelEventSignal().


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