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

The latest pan gesture information is stored in this scene object. More...

#include <scene-graph-pan-gesture.h>

Inheritance diagram for Dali::Internal::SceneGraph::PanGesture:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::SceneGraph::PanGesture:
Collaboration graph
[legend]

Classes

struct  FrameGestureInfo
 
struct  PanInfo
 Only stores the information we actually require from Dali::PanGesture. More...
 

Public Types

enum  PredictionMode { PREDICTION_NONE = 0, PREDICTION_1 }
 
enum  SmoothingMode { SMOOTHING_NONE, SMOOTHING_LAST_VALUE }
 
typedef std::vector< PanInfoPanInfoHistory
 
typedef PanInfoHistory::iterator PanInfoHistoryIter
 
typedef
PanInfoHistory::const_iterator 
PanInfoHistoryConstIter
 

Public Member Functions

virtual ~PanGesture ()
 Virtual destructor. More...
 
void AddGesture (const Dali::PanGesture &gesture)
 Adds a PanGesture to the internal circular-buffer waiting to be handled by UpdateProperties. More...
 
void RemoveOldHistory (PanInfoHistory &panHistory, unsigned int currentTime, unsigned int maxAge, unsigned int minEvents)
 Removes pan events from the history that are older than maxAge, leaving at least minEvents. More...
 
void PredictiveAlgorithm1 (int eventsThisFrame, PanInfo &gestureOut, PanInfoHistory &panHistory, unsigned int lastVSyncTime, unsigned int nextVSyncTime)
 Uses elapsed time and time stamps. More...
 
void SmoothingAlgorithm1 (bool justStarted, PanInfo &gestureOut, unsigned int lastVSyncTime)
 Uses last two gestures. More...
 
void SmoothingAlgorithm2 (bool justStarted, PanInfo &gestureOut, unsigned int lastVSyncTime)
 Future smoothing method, implementation not complete. More...
 
virtual bool UpdateProperties (unsigned int lastRenderTime, unsigned int nextRenderTime)
 Called by the update manager so that we can update the value of our properties. More...
 
const GesturePropertyBoolGetPanningProperty () const
 Retrieves a reference to the panning flag property. More...
 
const GesturePropertyVector2GetScreenPositionProperty () const
 Retrieves a reference to the screen position property. More...
 
const GesturePropertyVector2GetScreenVelocityProperty () const
 Retrieves a reference to the screen velocity property. More...
 
const GesturePropertyVector2GetScreenDisplacementProperty () const
 Retrieves a reference to the screen displacement property. More...
 
const GesturePropertyVector2GetLocalPositionProperty () const
 Retrieves a reference to the local position property. More...
 
const GesturePropertyVector2GetLocalDisplacementProperty () const
 Retrieves a reference to the local displacement property. More...
 
const GesturePropertyVector2GetLocalVelocityProperty () const
 Retrieves a reference to the local velocity property. More...
 
void SetPredictionMode (PredictionMode mode)
 Sets the prediction mode of the pan gesture. More...
 
void SetPredictionAmount (unsigned int amount)
 Sets the prediction amount of the pan gesture. More...
 
void SetMaximumPredictionAmount (unsigned int amount)
 Sets the upper bound of the prediction amount for clamping. More...
 
void SetMinimumPredictionAmount (unsigned int amount)
 Sets the lower bound of the prediction amount for clamping. More...
 
void SetPredictionAmountAdjustment (unsigned int amount)
 Sets the amount of prediction interpolation to adjust when the pan velocity is changed. More...
 
void SetSmoothingMode (SmoothingMode mode)
 Sets the prediction mode of the pan gesture. More...
 
void SetSmoothingAmount (float amount)
 Sets the amount of smoothing to apply for the current smoothing mode. More...
 
void EnableProfiling ()
 Called to provide pan-gesture profiling information. More...
 
- Public Member Functions inherited from Dali::Internal::SceneGraph::PropertyOwner
virtual ~PropertyOwner ()
 Virtual destructor; this is intended as a base class. More...
 
void AddObserver (Observer &observer)
 Add an observer. More...
 
void RemoveObserver (Observer &observer)
 Remove an observer. More...
 
bool IsObserved ()
 This method can be used to determine if there is an animation or constraint that is using this property owner. More...
 
void Destroy ()
 Called just before destruction to disconnect all observers and remove constraints. More...
 
void ConnectToSceneGraph ()
 Notify all observers that the object has been connected This occurs when the object is connected to the scene-graph during UpdateManager::Update(). More...
 
void DisconnectFromSceneGraph (BufferIndex updateBufferIndex)
 Notify all observers that the object has been disconnected and remove constraints. More...
 
void InstallCustomProperty (PropertyBase *property)
 Install a custom property. More...
 
OwnedPropertyContainerGetCustomProperties ()
 Retrieve the custom properties owned by the object. More...
 
const OwnedPropertyContainerGetCustomProperties () const
 Retrieve the custom properties owned by the object. More...
 
void ResetToBaseValues (BufferIndex updateBufferIndex)
 Reset animatable properties to the corresponding base values. More...
 
void ApplyConstraint (ConstraintBase *constraint)
 Apply a constraint. More...
 
void RemoveConstraint (ConstraintBase *constraint)
 Begin removal of constraints. More...
 
ConstraintOwnerContainerGetConstraints ()
 Retrieve the constraints that are currently applied. More...
 
virtual void AddUniformMapping (UniformPropertyMapping *map)
 Add a map to the mappings table. More...
 
virtual void RemoveUniformMapping (const std::string &uniformName)
 Remove a map from the mappings table. More...
 
const UniformMapGetUniformMap () const
 Get the mappings table. More...
 
void AddUniformMapObserver (UniformMap::Observer &observer)
  More...
 
void RemoveUniformMapObserver (UniformMap::Observer &observer)
  More...
 

Static Public Member Functions

static PanGestureNew ()
 Create a new PanGesture. More...
 
- Static Public Member Functions inherited from Dali::Internal::SceneGraph::PropertyOwner
static PropertyOwnerNew ()
 Create a property owner. More...
 

Static Public Attributes

static const PredictionMode DEFAULT_PREDICTION_MODE = PanGesture::PREDICTION_NONE
 
static const int NUM_PREDICTION_MODES = PanGesture::PREDICTION_1 + 1
 
static const SmoothingMode DEFAULT_SMOOTHING_MODE = PanGesture::SMOOTHING_LAST_VALUE
 
static const int NUM_SMOOTHING_MODES = PanGesture::SMOOTHING_LAST_VALUE + 1
 

Private Member Functions

 PanGesture ()
 Protected constructor. More...
 
 PanGesture (const PanGesture &)
 
PanGestureoperator= (const PanGesture &)
 
virtual void ResetDefaultProperties (BufferIndex updateBufferIndex)
 Called after ResetToBaseValues; derived classes should reset any default properties. More...
 
bool ReadGestures (FrameGestureInfo &info, unsigned int currentTimestamp)
 Reads gestures from input, builds history. More...
 
bool ReadAndResampleGestures (FrameGestureInfo &info, unsigned int currentTimestamp)
 Reads gestures from input and resamples data, builds history. More...
 

Private Attributes

GesturePropertyBool mPanning
 panning flag More...
 
GesturePropertyVector2 mScreenPosition
 screenPosition More...
 
GesturePropertyVector2 mScreenDisplacement
 screenDisplacement More...
 
GesturePropertyVector2 mScreenVelocity
 screenVelocity More...
 
GesturePropertyVector2 mLocalPosition
 localPosition More...
 
GesturePropertyVector2 mLocalDisplacement
 localDisplacement More...
 
GesturePropertyVector2 mLocalVelocity
 localVelocity More...
 
PanInfoHistory mPanHistory
 
PanInfoHistory mPredictionHistory
 
PanInfo mGestures [PAN_GESTURE_HISTORY]
 Circular buffer storing the 4 most recent gestures. More...
 
PanInfo mLastGesture
 The last gesture. (last update frame). More...
 
PanInfo mTargetGesture
 The most recent input gesture, if the current used gesture does not match. More...
 
PanInfo mLastUnmodifiedGesture
 The last gesture before any processing was done on it. More...
 
unsigned int mWritePosition
 The next PanInfo buffer to write to. (starts at 0). More...
 
unsigned int mReadPosition
 The next PanInfo buffer to read. (starts at 0). More...
 
bool mNotAtTarget
 Keeps track of if the last gesture used was the most recent received. More...
 
bool mInGesture
 True if the gesture is currently being handled i.e. between Started <-> Finished/Cancelled. More...
 
PredictionMode mPredictionMode
 The pan gesture prediction mode. More...
 
unsigned int mPredictionAmount
 how far into future to predict in milliseconds More...
 
unsigned int mCurrentPredictionAmount
 the current prediction amount used by the prediction algorithm More...
 
unsigned int mMaxPredictionAmount
 the maximum prediction amount used by the prediction algorithm More...
 
unsigned int mMinPredictionAmount
 the minimum prediction amount used by the prediction algorithm More...
 
unsigned int mPredictionAmountAdjustment
 the prediction amount to adjust in milliseconds when pan velocity changes More...
 
SmoothingMode mSmoothingMode
 The pan gesture prediction mode. More...
 
float mSmoothingAmount
 How much smoothing to apply [0.0f,1.0f]. More...
 
PanGestureProfilingmProfiling
 NULL unless pan-gesture profiling information is required. More...
 

Static Private Attributes

static const unsigned int PAN_GESTURE_HISTORY = 10u
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::Internal::SceneGraph::PropertyOwner
 PropertyOwner ()
 Protected constructor. More...
 
- Protected Attributes inherited from Dali::Internal::SceneGraph::PropertyOwner
OwnedPropertyContainer mCustomProperties
 Properties provided with InstallCustomProperty() More...
 
UniformMap mUniformMaps
 Container of owned uniform maps. More...
 

Detailed Description

The latest pan gesture information is stored in this scene object.

Definition at line 43 of file scene-graph-pan-gesture.h.

Member Typedef Documentation

Definition at line 173 of file scene-graph-pan-gesture.h.

Definition at line 175 of file scene-graph-pan-gesture.h.

Definition at line 174 of file scene-graph-pan-gesture.h.

Member Enumeration Documentation

Enumerator
PREDICTION_NONE 
PREDICTION_1 

Definition at line 47 of file scene-graph-pan-gesture.h.

Enumerator
SMOOTHING_NONE 
SMOOTHING_LAST_VALUE 

Definition at line 53 of file scene-graph-pan-gesture.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::PanGesture::~PanGesture ( )
virtual

Virtual destructor.

Definition at line 58 of file scene-graph-pan-gesture.cpp.

References mProfiling.

Dali::Internal::SceneGraph::PanGesture::PanGesture ( )
private

Protected constructor.

Definition at line 644 of file scene-graph-pan-gesture.cpp.

Referenced by New().

Here is the caller graph for this function:

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

Member Function Documentation

void Dali::Internal::SceneGraph::PanGesture::AddGesture ( const Dali::PanGesture gesture)

Adds a PanGesture to the internal circular-buffer waiting to be handled by UpdateProperties.

Parameters
[in]gestureThe latest pan gesture.

Definition at line 63 of file scene-graph-pan-gesture.cpp.

References mGestures, mWritePosition, and PAN_GESTURE_HISTORY.

Referenced by Dali::Internal::PanGestureProcessor::EmitPanSignal(), and Dali::Internal::PanGestureProcessor::SetPanGestureProperties().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::EnableProfiling ( )

Called to provide pan-gesture profiling information.

Definition at line 627 of file scene-graph-pan-gesture.cpp.

References mProfiling.

Referenced by Dali::Internal::PanGestureProcessor::EnableProfiling().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetLocalDisplacementProperty ( ) const

Retrieves a reference to the local displacement property.

Returns
The local displacement property.

Definition at line 582 of file scene-graph-pan-gesture.cpp.

References mLocalDisplacement.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetLocalPositionProperty ( ) const

Retrieves a reference to the local position property.

Returns
The local position property.

Definition at line 577 of file scene-graph-pan-gesture.cpp.

References mLocalPosition.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetLocalVelocityProperty ( ) const

Retrieves a reference to the local velocity property.

Returns
The local velocity property.

Definition at line 587 of file scene-graph-pan-gesture.cpp.

References mLocalVelocity.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyBool & Dali::Internal::SceneGraph::PanGesture::GetPanningProperty ( ) const

Retrieves a reference to the panning flag property.

Returns
The panning flag property.

Definition at line 557 of file scene-graph-pan-gesture.cpp.

References mPanning.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetScreenDisplacementProperty ( ) const

Retrieves a reference to the screen displacement property.

Returns
The screen displacement property.

Definition at line 572 of file scene-graph-pan-gesture.cpp.

References mScreenDisplacement.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetScreenPositionProperty ( ) const

Retrieves a reference to the screen position property.

Returns
The screen position property.

Definition at line 562 of file scene-graph-pan-gesture.cpp.

References mScreenPosition.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

const GesturePropertyVector2 & Dali::Internal::SceneGraph::PanGesture::GetScreenVelocityProperty ( ) const

Retrieves a reference to the screen velocity property.

Returns
The screen velocity property.

Definition at line 567 of file scene-graph-pan-gesture.cpp.

References mScreenVelocity.

Referenced by Dali::Internal::PanGestureDetector::GetDefaultProperty(), and Dali::Internal::PanGestureDetector::GetSceneObjectInputProperty().

Here is the caller graph for this function:

PanGesture * Dali::Internal::SceneGraph::PanGesture::New ( )
static

Create a new PanGesture.

Definition at line 53 of file scene-graph-pan-gesture.cpp.

References PanGesture().

Here is the call graph for this function:

PanGesture& Dali::Internal::SceneGraph::PanGesture::operator= ( const PanGesture )
private
void Dali::Internal::SceneGraph::PanGesture::PredictiveAlgorithm1 ( int  eventsThisFrame,
PanInfo gestureOut,
PanInfoHistory panHistory,
unsigned int  lastVSyncTime,
unsigned int  nextVSyncTime 
)
bool Dali::Internal::SceneGraph::PanGesture::ReadAndResampleGestures ( FrameGestureInfo info,
unsigned int  currentTimestamp 
)
private
bool Dali::Internal::SceneGraph::PanGesture::ReadGestures ( FrameGestureInfo info,
unsigned int  currentTimestamp 
)
private
void Dali::Internal::SceneGraph::PanGesture::RemoveOldHistory ( PanInfoHistory panHistory,
unsigned int  currentTime,
unsigned int  maxAge,
unsigned int  minEvents 
)

Removes pan events from the history that are older than maxAge, leaving at least minEvents.

Parameters
[in]panHistoryThe pan event history container
[in]currentTimeThe current frame time
[in]maxAgeMaximum age of an event before removing (in millis)
[in]minEventsThe minimum number of events to leave in history, oldest events are removed before newest

Definition at line 72 of file scene-graph-pan-gesture.cpp.

References mPredictionHistory, and Dali::Internal::SceneGraph::PanGesture::PanInfo::time.

Referenced by PredictiveAlgorithm1().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::ResetDefaultProperties ( BufferIndex  updateBufferIndex)
privatevirtual

Called after ResetToBaseValues; derived classes should reset any default properties.

Parameters
[in]currentBufferIndexThe buffer to reset.

Reimplemented from Dali::Internal::SceneGraph::PropertyOwner.

Definition at line 635 of file scene-graph-pan-gesture.cpp.

References mLocalDisplacement, mLocalPosition, mPanning, mScreenDisplacement, mScreenPosition, and Dali::Internal::SceneGraph::GestureProperty< T >::Reset().

Here is the call graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetMaximumPredictionAmount ( unsigned int  amount)

Sets the upper bound of the prediction amount for clamping.

Parameters
[in]amountThe prediction amount in milliseconds

Definition at line 602 of file scene-graph-pan-gesture.cpp.

References mMaxPredictionAmount.

Referenced by Dali::Internal::PanGestureProcessor::SetMaximumPredictionAmount().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetMinimumPredictionAmount ( unsigned int  amount)

Sets the lower bound of the prediction amount for clamping.

Parameters
[in]amountThe prediction amount in milliseconds

Definition at line 607 of file scene-graph-pan-gesture.cpp.

References mMinPredictionAmount.

Referenced by Dali::Internal::PanGestureProcessor::SetMinimumPredictionAmount().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetPredictionAmount ( unsigned int  amount)

Sets the prediction amount of the pan gesture.

Parameters
[in]amountThe prediction amount in milliseconds

Definition at line 597 of file scene-graph-pan-gesture.cpp.

References mPredictionAmount.

Referenced by Dali::Internal::PanGestureProcessor::SetPredictionAmount().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetPredictionAmountAdjustment ( unsigned int  amount)

Sets the amount of prediction interpolation to adjust when the pan velocity is changed.

Parameters
[in]amountThe prediction amount in milliseconds

Definition at line 612 of file scene-graph-pan-gesture.cpp.

References mPredictionAmountAdjustment.

Referenced by Dali::Internal::PanGestureProcessor::SetPredictionAmountAdjustment().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetPredictionMode ( PredictionMode  mode)

Sets the prediction mode of the pan gesture.

Parameters
[in]modeThe prediction mode

Definition at line 592 of file scene-graph-pan-gesture.cpp.

References mPredictionMode.

Referenced by Dali::Internal::PanGestureProcessor::SetPredictionMode().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetSmoothingAmount ( float  amount)

Sets the amount of smoothing to apply for the current smoothing mode.

Parameters
[in]amountThe amount of smoothing [0.0f,1.0f]

Definition at line 622 of file scene-graph-pan-gesture.cpp.

References mSmoothingAmount.

Referenced by Dali::Internal::PanGestureProcessor::SetSmoothingAmount().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SetSmoothingMode ( SmoothingMode  mode)

Sets the prediction mode of the pan gesture.

Parameters
[in]modeThe prediction mode

Definition at line 617 of file scene-graph-pan-gesture.cpp.

References mSmoothingMode.

Referenced by Dali::Internal::PanGestureProcessor::SetSmoothingMode().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SmoothingAlgorithm1 ( bool  justStarted,
PanInfo gestureOut,
unsigned int  lastVSyncTime 
)

Uses last two gestures.

Parameters
[in]justStartedWhether the pan has just started.
[out]gestureOutOutput gesture using average values from last two gestures
[in]lastVSyncTimeThe time to set on gestureOut.

Definition at line 190 of file scene-graph-pan-gesture.cpp.

References Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::displacement, Dali::Internal::SceneGraph::PanGesture::PanInfo::local, mLastGesture, mSmoothingAmount, Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::position, Dali::Internal::SceneGraph::PanGesture::PanInfo::screen, Dali::Internal::SceneGraph::PanGesture::PanInfo::time, Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::velocity, and Dali::Vector2::ZERO.

Referenced by UpdateProperties().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::PanGesture::SmoothingAlgorithm2 ( bool  justStarted,
PanInfo gestureOut,
unsigned int  lastVSyncTime 
)
bool Dali::Internal::SceneGraph::PanGesture::UpdateProperties ( unsigned int  lastRenderTime,
unsigned int  nextRenderTime 
)
virtual

Called by the update manager so that we can update the value of our properties.

Parameters
[in]nextRenderTimeThe estimated time of the next render (in milliseconds).
Returns
true, if properties were updated.

Definition at line 382 of file scene-graph-pan-gesture.cpp.

References Dali::Internal::SceneGraph::PanGesture::FrameGestureInfo::acceleration, Dali::Internal::SceneGraph::anonymous_namespace{scene-graph-pan-gesture.cpp}::ACCELERATION_THRESHOLD, Dali::Internal::PanGestureProfiling::ClearData(), Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::displacement, Dali::Internal::SceneGraph::PanGesture::FrameGestureInfo::eventsThisFrame, Dali::Internal::SceneGraph::PanGesture::FrameGestureInfo::frameGesture, Dali::Internal::SceneGraph::PanGesture::FrameGestureInfo::justFinished, Dali::Internal::SceneGraph::PanGesture::FrameGestureInfo::justStarted, Dali::Vector2::Length(), Dali::Internal::SceneGraph::PanGesture::PanInfo::local, Dali::Math::MACHINE_EPSILON_0, Dali::Internal::PanGestureProfiling::mAveragedData, mCurrentPredictionAmount, Dali::Toolkit::Text::min(), mInGesture, mLastGesture, mLastUnmodifiedGesture, Dali::Internal::PanGestureProfiling::mLatestData, mLocalDisplacement, mLocalPosition, mLocalVelocity, mMaxPredictionAmount, mMinPredictionAmount, mPanHistory, mPanning, mPredictionAmount, mPredictionAmountAdjustment, mPredictionHistory, mPredictionMode, mProfiling, mScreenDisplacement, mScreenPosition, mScreenVelocity, mSmoothingMode, Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::position, PREDICTION_1, PREDICTION_NONE, PredictiveAlgorithm1(), Dali::Internal::PanGestureProfiling::PrintData(), ReadAndResampleGestures(), ReadGestures(), Dali::Internal::SceneGraph::PanGesture::PanInfo::screen, Dali::Internal::SceneGraph::GestureProperty< T >::Set(), SMOOTHING_LAST_VALUE, SMOOTHING_NONE, SmoothingAlgorithm1(), Dali::Internal::SceneGraph::PanGesture::PanInfo::state, Dali::Internal::SceneGraph::PanGesture::PanInfo::time, Dali::Internal::SceneGraph::PanGesture::PanInfo::Info::velocity, Dali::Vector2::x, and Dali::Vector2::y.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const PanGesture::PredictionMode Dali::Internal::SceneGraph::PanGesture::DEFAULT_PREDICTION_MODE = PanGesture::PREDICTION_NONE
static
const PanGesture::SmoothingMode Dali::Internal::SceneGraph::PanGesture::DEFAULT_SMOOTHING_MODE = PanGesture::SMOOTHING_LAST_VALUE
static
unsigned int Dali::Internal::SceneGraph::PanGesture::mCurrentPredictionAmount
private

the current prediction amount used by the prediction algorithm

Definition at line 402 of file scene-graph-pan-gesture.h.

Referenced by PredictiveAlgorithm1(), and UpdateProperties().

PanInfo Dali::Internal::SceneGraph::PanGesture::mGestures[PAN_GESTURE_HISTORY]
private

Circular buffer storing the 4 most recent gestures.

Definition at line 391 of file scene-graph-pan-gesture.h.

Referenced by AddGesture(), ReadAndResampleGestures(), and ReadGestures().

bool Dali::Internal::SceneGraph::PanGesture::mInGesture
private

True if the gesture is currently being handled i.e. between Started <-> Finished/Cancelled.

Definition at line 398 of file scene-graph-pan-gesture.h.

Referenced by UpdateProperties().

PanInfo Dali::Internal::SceneGraph::PanGesture::mLastGesture
private

The last gesture. (last update frame).

Definition at line 392 of file scene-graph-pan-gesture.h.

Referenced by ReadAndResampleGestures(), SmoothingAlgorithm1(), and UpdateProperties().

PanInfo Dali::Internal::SceneGraph::PanGesture::mLastUnmodifiedGesture
private

The last gesture before any processing was done on it.

Definition at line 394 of file scene-graph-pan-gesture.h.

Referenced by ReadGestures(), and UpdateProperties().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mLocalDisplacement
private

localDisplacement

Definition at line 386 of file scene-graph-pan-gesture.h.

Referenced by GetLocalDisplacementProperty(), ResetDefaultProperties(), and UpdateProperties().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mLocalPosition
private

localPosition

Definition at line 385 of file scene-graph-pan-gesture.h.

Referenced by GetLocalPositionProperty(), ResetDefaultProperties(), and UpdateProperties().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mLocalVelocity
private

localVelocity

Definition at line 387 of file scene-graph-pan-gesture.h.

Referenced by GetLocalVelocityProperty(), and UpdateProperties().

unsigned int Dali::Internal::SceneGraph::PanGesture::mMaxPredictionAmount
private

the maximum prediction amount used by the prediction algorithm

Definition at line 403 of file scene-graph-pan-gesture.h.

Referenced by SetMaximumPredictionAmount(), and UpdateProperties().

unsigned int Dali::Internal::SceneGraph::PanGesture::mMinPredictionAmount
private

the minimum prediction amount used by the prediction algorithm

Definition at line 404 of file scene-graph-pan-gesture.h.

Referenced by SetMinimumPredictionAmount(), and UpdateProperties().

bool Dali::Internal::SceneGraph::PanGesture::mNotAtTarget
private

Keeps track of if the last gesture used was the most recent received.

Definition at line 397 of file scene-graph-pan-gesture.h.

Referenced by ReadAndResampleGestures().

PanInfoHistory Dali::Internal::SceneGraph::PanGesture::mPanHistory
private
GesturePropertyBool Dali::Internal::SceneGraph::PanGesture::mPanning
private

panning flag

Definition at line 381 of file scene-graph-pan-gesture.h.

Referenced by GetPanningProperty(), ResetDefaultProperties(), and UpdateProperties().

unsigned int Dali::Internal::SceneGraph::PanGesture::mPredictionAmount
private

how far into future to predict in milliseconds

Definition at line 401 of file scene-graph-pan-gesture.h.

Referenced by SetPredictionAmount(), and UpdateProperties().

unsigned int Dali::Internal::SceneGraph::PanGesture::mPredictionAmountAdjustment
private

the prediction amount to adjust in milliseconds when pan velocity changes

Definition at line 405 of file scene-graph-pan-gesture.h.

Referenced by SetPredictionAmountAdjustment(), and UpdateProperties().

PanInfoHistory Dali::Internal::SceneGraph::PanGesture::mPredictionHistory
private
PredictionMode Dali::Internal::SceneGraph::PanGesture::mPredictionMode
private

The pan gesture prediction mode.

Definition at line 400 of file scene-graph-pan-gesture.h.

Referenced by SetPredictionMode(), and UpdateProperties().

PanGestureProfiling* Dali::Internal::SceneGraph::PanGesture::mProfiling
private

NULL unless pan-gesture profiling information is required.

Definition at line 408 of file scene-graph-pan-gesture.h.

Referenced by EnableProfiling(), ReadAndResampleGestures(), ReadGestures(), UpdateProperties(), and ~PanGesture().

unsigned int Dali::Internal::SceneGraph::PanGesture::mReadPosition
private

The next PanInfo buffer to read. (starts at 0).

Definition at line 396 of file scene-graph-pan-gesture.h.

Referenced by ReadAndResampleGestures(), and ReadGestures().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mScreenDisplacement
private

screenDisplacement

Definition at line 383 of file scene-graph-pan-gesture.h.

Referenced by GetScreenDisplacementProperty(), ResetDefaultProperties(), and UpdateProperties().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mScreenPosition
private

screenPosition

Definition at line 382 of file scene-graph-pan-gesture.h.

Referenced by GetScreenPositionProperty(), ResetDefaultProperties(), and UpdateProperties().

GesturePropertyVector2 Dali::Internal::SceneGraph::PanGesture::mScreenVelocity
private

screenVelocity

Definition at line 384 of file scene-graph-pan-gesture.h.

Referenced by GetScreenVelocityProperty(), and UpdateProperties().

float Dali::Internal::SceneGraph::PanGesture::mSmoothingAmount
private

How much smoothing to apply [0.0f,1.0f].

Definition at line 407 of file scene-graph-pan-gesture.h.

Referenced by SetSmoothingAmount(), and SmoothingAlgorithm1().

SmoothingMode Dali::Internal::SceneGraph::PanGesture::mSmoothingMode
private

The pan gesture prediction mode.

Definition at line 406 of file scene-graph-pan-gesture.h.

Referenced by SetSmoothingMode(), and UpdateProperties().

PanInfo Dali::Internal::SceneGraph::PanGesture::mTargetGesture
private

The most recent input gesture, if the current used gesture does not match.

Definition at line 393 of file scene-graph-pan-gesture.h.

Referenced by ReadAndResampleGestures().

unsigned int Dali::Internal::SceneGraph::PanGesture::mWritePosition
private

The next PanInfo buffer to write to. (starts at 0).

Definition at line 395 of file scene-graph-pan-gesture.h.

Referenced by AddGesture(), ReadAndResampleGestures(), and ReadGestures().

const int Dali::Internal::SceneGraph::PanGesture::NUM_PREDICTION_MODES = PanGesture::PREDICTION_1 + 1
static
const int Dali::Internal::SceneGraph::PanGesture::NUM_SMOOTHING_MODES = PanGesture::SMOOTHING_LAST_VALUE + 1
static
const unsigned int Dali::Internal::SceneGraph::PanGesture::PAN_GESTURE_HISTORY = 10u
staticprivate

Definition at line 178 of file scene-graph-pan-gesture.h.

Referenced by AddGesture(), ReadAndResampleGestures(), and ReadGestures().


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