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

VariableStep condition class, Uses a list of values, this condition notifies when the Property crosses between different values. More...

#include <property-condition-variable-step-functions.h>

Static Public Member Functions

static ConditionFunction GetFunction (Property::Type valueType)
 

Static Private Member Functions

static bool Evaluate (const float propertyValue, PropertyNotification::RawArgumentContainer &arg)
 Helper function used to evaluate our property. More...
 
static bool EvalInteger (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if integer is Outside. More...
 
static bool EvalFloat (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if float is Outside. More...
 
static bool EvalVector2 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector2.Length() is Outside. More...
 
static bool EvalVector3 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector3.Length() is Outside. More...
 
static bool EvalVector4 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector4.Length() is Outside. More...
 
static bool EvalDefault (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Default check for other types. More...
 

Detailed Description

VariableStep condition class, Uses a list of values, this condition notifies when the Property crosses between different values.

float => value has stepped arg1 amount from arg0. Vector2 => 2 dimensional length of vector has stepped arg1 amount from arg0. Vector3 => 3 dimensional length of vector has stepped arg1 amount from arg0. Vector4 => 4 dimensional length of vector has stepped arg1 amount from arg0. Default => return false.

Definition at line 47 of file property-condition-variable-step-functions.h.

Member Function Documentation

bool Dali::Internal::SceneGraph::VariableStep::EvalDefault ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Default check for other types.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 181 of file property-condition-variable-step-functions.cpp.

Referenced by GetFunction().

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::VariableStep::EvalFloat ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if float is Outside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 157 of file property-condition-variable-step-functions.cpp.

References Evaluate(), and Dali::PropertyInput::GetFloat().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::VariableStep::EvalInteger ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if integer is Outside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 151 of file property-condition-variable-step-functions.cpp.

References Evaluate(), and Dali::PropertyInput::GetInteger().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::VariableStep::Evaluate ( const float  propertyValue,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate
bool Dali::Internal::SceneGraph::VariableStep::EvalVector2 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector2.Length() is Outside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 163 of file property-condition-variable-step-functions.cpp.

References Evaluate(), Dali::PropertyInput::GetVector2(), and Dali::Vector2::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::VariableStep::EvalVector3 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector3.Length() is Outside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 169 of file property-condition-variable-step-functions.cpp.

References Evaluate(), Dali::PropertyInput::GetVector3(), and Dali::Vector3::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::VariableStep::EvalVector4 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector4.Length() is Outside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 175 of file property-condition-variable-step-functions.cpp.

References Evaluate(), Dali::PropertyInput::GetVector4(), and Dali::Vector4::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

ConditionFunction Dali::Internal::SceneGraph::VariableStep::GetFunction ( Property::Type  valueType)
static
Returns
function pointer to the correct condition function, based on the type of value being examined.

Definition at line 43 of file property-condition-variable-step-functions.cpp.

References EvalDefault(), EvalFloat(), EvalInteger(), EvalVector2(), EvalVector3(), EvalVector4(), Dali::Property::FLOAT, Dali::Property::INTEGER, Dali::Property::VECTOR2, Dali::Property::VECTOR3, and Dali::Property::VECTOR4.

Referenced by Dali::Internal::SceneGraph::PropertyNotification::PropertyNotification().

Here is the call graph for this function:

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