Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions
Dali::Internal::EventThreadServices Class Referenceabstract

Abstract interface of services for event-thread objects. More...

#include <event-thread-services.h>

Inheritance diagram for Dali::Internal::EventThreadServices:
Inheritance graph
[legend]

Public Member Functions

virtual ~EventThreadServices ()
 Virtual destructor. More...
 
virtual void RegisterObject (BaseObject *object)=0
 Registers the object as created with the Object registry. More...
 
virtual void UnregisterObject (BaseObject *object)=0
 Unregisters the object from Object registry. More...
 
virtual SceneGraph::UpdateManagerGetUpdateManager ()=0
 Get a reference to the UpdateManager. More...
 
virtual unsigned int * ReserveMessageSlot (std::size_t size, bool updateScene=true)=0
 Reserve space for another message in the queue; this must then be initialized by the caller. More...
 
virtual BufferIndex GetEventBufferIndex () const =0
 

Static Public Member Functions

static bool IsCoreRunning ()
 

Detailed Description

Abstract interface of services for event-thread objects.

Used for registering objects, queueing messages during the event-thread for the next update. Allows the event-thread to read double-buffered property values.

Definition at line 45 of file event-thread-services.h.

Constructor & Destructor Documentation

virtual Dali::Internal::EventThreadServices::~EventThreadServices ( )
inlinevirtual

Virtual destructor.

Definition at line 52 of file event-thread-services.h.

Member Function Documentation

virtual BufferIndex Dali::Internal::EventThreadServices::GetEventBufferIndex ( ) const
pure virtual
Returns
the current event-buffer index.

Implemented in Dali::Internal::Stage.

Referenced by Dali::Internal::Actor::GetCurrentWorldMatrix(), and Dali::Internal::RenderTask::GetViewport().

Here is the caller graph for this function:

virtual SceneGraph::UpdateManager& Dali::Internal::EventThreadServices::GetUpdateManager ( )
pure virtual
bool Dali::Internal::EventThreadServices::IsCoreRunning ( )
static
virtual void Dali::Internal::EventThreadServices::RegisterObject ( BaseObject object)
pure virtual

Registers the object as created with the Object registry.

Parameters
[in]objectto register

Implemented in Dali::Internal::Stage.

Referenced by Dali::Internal::Shader::Initialize(), Dali::Internal::Geometry::Initialize(), Dali::Internal::Material::Initialize(), Dali::Internal::Renderer::Initialize(), and Dali::Internal::Actor::Initialize().

Here is the caller graph for this function:

virtual unsigned int* Dali::Internal::EventThreadServices::ReserveMessageSlot ( std::size_t  size,
bool  updateScene = true 
)
pure 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.

Implemented in Dali::Internal::Stage.

Referenced by Dali::Internal::SceneGraph::AddAnimatorMessage(), Dali::Internal::SceneGraph::AddRendererMessage(), Dali::Internal::SceneGraph::AddTaskMessage(), Dali::Internal::SceneGraph::AddTextureMessage(), Dali::Internal::SceneGraph::AddUniformMapMessage(), Dali::Internal::SceneGraph::AddVertexBufferMessage(), Dali::Internal::SceneGraph::ApplyConstraintMessage(), Dali::Internal::SceneGraph::BakeClearColorMessage(), Dali::Internal::BakeMessage(), Dali::Internal::BakeRelativeMessage(), Dali::Internal::SceneGraph::BakeViewportPositionMessage(), Dali::Internal::SceneGraph::BakeViewportSizeMessage(), Dali::Internal::SceneGraph::ClearIndexBufferMessage(), Dali::Internal::SceneGraph::InstallCustomPropertyMessage(), Dali::Internal::SceneGraph::InstallUniformMetaMessage(), Dali::Internal::SceneGraph::OnStageConnectMessage(), Dali::Internal::SceneGraph::OnStageDisconnectMessage(), Dali::Internal::SceneGraph::PauseAnimationMessage(), Dali::Internal::SceneGraph::PlayAnimationFromMessage(), Dali::Internal::SceneGraph::PlayAnimationMessage(), Dali::Internal::SceneGraph::RemoveConstraintMessage(), Dali::Internal::SceneGraph::RemoveRendererMessage(), Dali::Internal::SceneGraph::RemoveTaskMessage(), Dali::Internal::SceneGraph::RemoveTextureMessage(), Dali::Internal::SceneGraph::RemoveUniformMapMessage(), Dali::Internal::SceneGraph::RemoveVertexBufferMessage(), Dali::Internal::RequestAddBitmapImageMessage(), Dali::Internal::RequestAddFrameBufferImageMessage(), Dali::Internal::RequestAddNativeImageMessage(), Dali::Internal::RequestAllocateTextureMessage(), Dali::Internal::RequestCreateGlTextureMessage(), Dali::Internal::RequestDecodeResourceMessage(), Dali::Internal::RequestDiscardResourceMessage(), Dali::Internal::RequestLoadResourceMessage(), Dali::Internal::RequestReloadResourceMessage(), Dali::Internal::RequestUpdateBitmapAreaMessage(), Dali::Internal::RequestUploadBitmapMessage(), Dali::Internal::SceneGraph::NodePropertyMessage< P >::Send(), Dali::Internal::SceneGraph::AnimatablePropertyMessage< P >::Send(), Dali::Internal::SceneGraph::NodePropertyComponentMessage< P >::Send(), Dali::Internal::SceneGraph::AnimatablePropertyComponentMessage< P >::Send(), Dali::Internal::SceneGraph::SetAnchorPointMessage(), Dali::Internal::SceneGraph::SetAspectRatioMessage(), Dali::Internal::SceneGraph::SetBehaviorMessage(), Dali::Internal::SceneGraph::SetBlendColorMessage(), Dali::Internal::SceneGraph::SetBlendingModeMessage(), Dali::Internal::SceneGraph::SetBlendingOptionsMessage(), Dali::Internal::SceneGraph::SetBottomClippingPlaneMessage(), Dali::Internal::SceneGraph::SetCameraNodeMessage(), Dali::Internal::SceneGraph::SetClearColorMessage(), Dali::Internal::SceneGraph::SetClearEnabledMessage(), Dali::Internal::SceneGraph::SetClippingBoxMessage(), Dali::Internal::SceneGraph::SetClippingMessage(), Dali::Internal::SceneGraph::SetColorModeMessage(), Dali::Internal::SceneGraph::SetCoordinateTypeMessage(), Dali::Internal::SceneGraph::SetCullModeMessage(), Dali::Internal::SceneGraph::SetCurrentProgressMessage(), Dali::Internal::SceneGraph::SetDepthIndexMessage(), Dali::Internal::SceneGraph::SetDepthTestDisabledMessage(), Dali::Internal::SceneGraph::SetDisconnectActionMessage(), Dali::Internal::SceneGraph::SetDrawModeMessage(), Dali::Internal::SceneGraph::SetDurationMessage(), Dali::Internal::SceneGraph::SetEnablePreMultipliedAlphaMessage(), Dali::Internal::SceneGraph::SetEndActionMessage(), Dali::Internal::SceneGraph::SetExclusiveMessage(), Dali::Internal::SceneGraph::SetFaceCullingModeMessage(), Dali::Internal::SceneGraph::SetFarClippingPlaneMessage(), Dali::Internal::SceneGraph::SetFieldOfViewMessage(), Dali::Internal::SceneGraph::SetFrameBufferIdMessage(), Dali::Internal::SceneGraph::SetGeometryMessage(), Dali::Internal::SceneGraph::SetGeometryRequiresDepthTestMessage(), Dali::Internal::SceneGraph::SetGeometryTypeMessage(), Dali::Internal::SceneGraph::SetGridDensityMessage(), Dali::Internal::SceneGraph::SetHintsMessage(), Dali::Internal::SceneGraph::SetIndexBufferMessage(), Dali::Internal::SceneGraph::SetInheritOrientationMessage(), Dali::Internal::SceneGraph::SetInheritScaleMessage(), Dali::Internal::SceneGraph::SetInvertYAxisMessage(), Dali::Internal::SceneGraph::SetLeftClippingPlaneMessage(), Dali::Internal::SceneGraph::SetLoopingMessage(), Dali::Internal::SceneGraph::SetMaterialMessage(), Dali::Internal::SceneGraph::SetNearClippingPlaneMessage(), Dali::Internal::SceneGraph::SetParentOriginMessage(), Dali::Internal::SceneGraph::SetPlayRangeMessage(), Dali::Internal::SceneGraph::SetPositionInheritanceModeMessage(), Dali::Internal::SceneGraph::SetProjectionModeMessage(), Dali::Internal::SceneGraph::SetRefreshRateMessage(), Dali::Internal::SceneGraph::SetRemoveActionMessage(), Dali::Internal::SceneGraph::SetRightClippingPlaneMessage(), Dali::Internal::SceneGraph::SetShaderMessage(), Dali::Internal::SceneGraph::SetSortFunctionMessage(), Dali::Internal::SceneGraph::SetSourceNodeMessage(), Dali::Internal::SceneGraph::SetSpeedFactorMessage(), Dali::Internal::SceneGraph::SetStereoBiasMessage(), Dali::Internal::SceneGraph::SetTargetPositionMessage(), Dali::Internal::SceneGraph::SetTextureIdMessage(), Dali::Internal::SceneGraph::SetTextureImageMessage(), Dali::Internal::SceneGraph::SetTextureSamplerMessage(), Dali::Internal::SceneGraph::SetTextureUniformNameMessage(), Dali::Internal::SceneGraph::SetTopClippingPlaneMessage(), Dali::Internal::SceneGraph::SetTypeMessage(), Dali::Internal::SetWComponentMessage(), Dali::Internal::SetXComponentMessage(), Dali::Internal::SetYComponentMessage(), and Dali::Internal::SetZComponentMessage().

virtual void Dali::Internal::EventThreadServices::UnregisterObject ( BaseObject object)
pure virtual

Unregisters the object from Object registry.

Parameters
[in]objectto unregister

Implemented in Dali::Internal::Stage.

Referenced by Dali::Internal::Actor::~Actor(), Dali::Internal::Geometry::~Geometry(), Dali::Internal::Material::~Material(), Dali::Internal::Renderer::~Renderer(), and Dali::Internal::Shader::~Shader().

Here is the caller graph for this function:


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