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

#include <touch-event-processor.h>

Collaboration diagram for Dali::Internal::TouchEventProcessor:
Collaboration graph
[legend]

Public Member Functions

 TouchEventProcessor (Stage &stage)
 Create an event processor. More...
 
 ~TouchEventProcessor ()
 Non-virtual destructor; TouchEventProcessor is not a base class. More...
 
void ProcessTouchEvent (const Integration::TouchEvent &event)
 This function is called by the event processor whenever a touch event occurs. More...
 

Private Member Functions

 TouchEventProcessor (const TouchEventProcessor &)
 
TouchEventProcessoroperator= (const TouchEventProcessor &rhs)
 
void OnObservedActorDisconnected (Actor *actor)
 Called by some actor-observers when the observed actor is disconnected. More...
 

Private Attributes

StagemStage
 Used to deliver touch events. More...
 
ActorObserver mLastPrimaryHitActor
 Stores the last primary point hit actor. More...
 
ActorObserver mLastConsumedActor
 Stores the last consumed actor. More...
 
ActorObserver mTouchDownConsumedActor
 Stores the touch-down consumed actor. More...
 
Dali::RenderTask mLastRenderTask
 The RenderTask used for the last hit actor. More...
 

Detailed Description

Multi-Touch Event Processing:

The TouchEventProcessor processes touch events and emits the Touched signal on the hit actor (and its parents).

Definition at line 52 of file touch-event-processor.h.

Constructor & Destructor Documentation

Dali::Internal::TouchEventProcessor::TouchEventProcessor ( Stage stage)

Create an event processor.

Parameters
[in]stageThe stage.

Definition at line 127 of file touch-event-processor.cpp.

References DALI_LOG_TRACE_METHOD.

Dali::Internal::TouchEventProcessor::~TouchEventProcessor ( )

Non-virtual destructor; TouchEventProcessor is not a base class.

Definition at line 137 of file touch-event-processor.cpp.

References DALI_LOG_TRACE_METHOD.

Dali::Internal::TouchEventProcessor::TouchEventProcessor ( const TouchEventProcessor )
private

Member Function Documentation

void Dali::Internal::TouchEventProcessor::OnObservedActorDisconnected ( Actor actor)
private

Called by some actor-observers when the observed actor is disconnected.

Parameters
[in]actorThe actor that has been disconnected.

Definition at line 404 of file touch-event-processor.cpp.

References Dali::Internal::anonymous_namespace{touch-event-processor.cpp}::EmitTouchSignals(), Dali::Internal::ActorObserver::GetActor(), Dali::TouchPoint::Interrupted, mLastConsumedActor, mLastPrimaryHitActor, mLastRenderTask, Dali::TouchEvent::points, Dali::BaseHandle::Reset(), and Dali::Internal::ActorObserver::SetActor().

Here is the call graph for this function:

TouchEventProcessor& Dali::Internal::TouchEventProcessor::operator= ( const TouchEventProcessor rhs)
private
void Dali::Internal::TouchEventProcessor::ProcessTouchEvent ( const Integration::TouchEvent &  event)

Member Data Documentation

ActorObserver Dali::Internal::TouchEventProcessor::mLastConsumedActor
private

Stores the last consumed actor.

Definition at line 92 of file touch-event-processor.h.

Referenced by OnObservedActorDisconnected(), and ProcessTouchEvent().

ActorObserver Dali::Internal::TouchEventProcessor::mLastPrimaryHitActor
private

Stores the last primary point hit actor.

Definition at line 91 of file touch-event-processor.h.

Referenced by OnObservedActorDisconnected(), and ProcessTouchEvent().

Dali::RenderTask Dali::Internal::TouchEventProcessor::mLastRenderTask
private

The RenderTask used for the last hit actor.

Definition at line 94 of file touch-event-processor.h.

Referenced by OnObservedActorDisconnected(), and ProcessTouchEvent().

Stage& Dali::Internal::TouchEventProcessor::mStage
private

Used to deliver touch events.

Definition at line 90 of file touch-event-processor.h.

Referenced by ProcessTouchEvent().

ActorObserver Dali::Internal::TouchEventProcessor::mTouchDownConsumedActor
private

Stores the touch-down consumed actor.

Definition at line 93 of file touch-event-processor.h.

Referenced by ProcessTouchEvent().


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