Dali 3D User Interface Engine
Functions | Variables
Dali::Internal::anonymous_namespace{path-impl.cpp} Namespace Reference

Functions

Dali::BaseHandle Create ()
 
bool PathIsComplete (const Dali::Vector< Vector3 > &point, const Dali::Vector< Vector3 > &controlPoint)
 

Variables

DALI_PROPERTY_TABLE_BEGIN
const float 
BezierBasisCoeff []
 These coefficient arise from the cubic polynomial equations for a bezier curve. More...
 
const Dali::Matrix BezierBasis = Dali::Matrix( BezierBasisCoeff )
 
Dali::TypeRegistration mType (typeid(Dali::Path), typeid(Dali::Handle), Create)
 

Function Documentation

Dali::BaseHandle Dali::Internal::anonymous_namespace{path-impl.cpp}::Create ( )

Definition at line 65 of file path-impl.cpp.

References Dali::Path::New().

Here is the call graph for this function:

bool Dali::Internal::anonymous_namespace{path-impl.cpp}::PathIsComplete ( const Dali::Vector< Vector3 > &  point,
const Dali::Vector< Vector3 > &  controlPoint 
)
inline

Definition at line 72 of file path-impl.cpp.

References Dali::VectorBase::Size().

Referenced by Dali::Internal::Path::SampleAt(), Dali::Internal::Path::SamplePosition(), and Dali::Internal::Path::SampleTangent().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const Dali::Matrix Dali::Internal::anonymous_namespace{path-impl.cpp}::BezierBasis = Dali::Matrix( BezierBasisCoeff )

Definition at line 63 of file path-impl.cpp.

DALI_PROPERTY_TABLE_BEGIN const float Dali::Internal::anonymous_namespace{path-impl.cpp}::BezierBasisCoeff[]
Initial value:
= { -1.0f, 3.0f, -3.0f, 1.0f,
3.0f, -6.0f, 3.0f, 0.0f,
-3.0f, 3.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f, 0.0f }

These coefficient arise from the cubic polynomial equations for a bezier curve.

A bezier curve is defined by a cubic polynomial. Given two end points p0 and p1 and two control points cp0 and cp1, the bezier curve will be defined by a polynomial in the form f(x) = a3*x^3 + a2*x^2 + a1*x + a0 with this restrictions: f(0) = p0 f(1) = p1 f'(0) = 3*(cp0 - p0) f'(1) = 3*(p1-cp1)

Definition at line 58 of file path-impl.cpp.

Dali::TypeRegistration Dali::Internal::anonymous_namespace{path-impl.cpp}::mType(typeid(Dali::Path), typeid(Dali::Handle), Create)
Dali Docs Home
Read more about Dali