Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes
anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint Struct Reference

Rotation Constraint. More...

Collaboration diagram for anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint:
Collaboration graph

Public Member Functions

 RotationConstraint (float distance, float pageWidth, bool isTurnBack)
void operator() (Quaternion &current, const PropertyInputContainer &inputs)

Public Attributes

float mDistance
float mStep
float mConst
float mSign
Quaternion mRotation

Detailed Description

Rotation Constraint.

This constraint adjusts the rotation property of the page actor based on the X-direction displacement of the pan gesture

Definition at line 106 of file page-turn-view-impl.cpp.

Constructor & Destructor Documentation

anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::RotationConstraint ( float  distance,
float  pageWidth,
bool  isTurnBack 

Definition at line 108 of file page-turn-view-impl.cpp.

References Dali::Math::PI, and Dali::Vector3::YAXIS.

Member Function Documentation

void anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::operator() ( Quaternion current,
const PropertyInputContainer inputs 

Definition at line 117 of file page-turn-view-impl.cpp.

References Dali::Math::PI, and Dali::Vector3::YAXIS.

Member Data Documentation

float anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::mConst

Definition at line 134 of file page-turn-view-impl.cpp.

float anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::mDistance

Definition at line 132 of file page-turn-view-impl.cpp.

Quaternion anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::mRotation

Definition at line 136 of file page-turn-view-impl.cpp.

float anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::mSign

Definition at line 135 of file page-turn-view-impl.cpp.

float anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::mStep

Definition at line 133 of file page-turn-view-impl.cpp.

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