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

LessThan condition class, Checks if a Property is "Less Than" the argument: More...

#include <property-condition-functions.h>

Static Public Member Functions

static ConditionFunction GetFunction (Property::Type valueType)
 

Static Private Member Functions

static bool EvalBoolean (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if bool is LessThan. More...
 
static bool EvalInteger (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if integer is LessThan. More...
 
static bool EvalFloat (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if float is LessThan. More...
 
static bool EvalVector2 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector2.Length() is LessThan. More...
 
static bool EvalVector3 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector3.Length() is LessThan. More...
 
static bool EvalVector4 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector4.Length() is LessThan. More...
 
static bool EvalDefault (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Default check for other types. More...
 

Detailed Description

LessThan condition class, Checks if a Property is "Less Than" the argument:

bool => false (0.0) or true (1.0) is less than arg0. float => value is less than arg0. Vector2 => 2 dimensional length of vector is less than arg0. Vector3 => 3 dimensional length of vector is less than arg0. Vector4 => 4 dimensional length of vector is less than arg0. Default => return false.

Definition at line 54 of file property-condition-functions.h.

Member Function Documentation

bool Dali::Internal::SceneGraph::LessThan::EvalBoolean ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if bool is LessThan.

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 82 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetBoolean().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::LessThan::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 118 of file property-condition-functions.cpp.

Referenced by GetFunction().

Here is the caller graph for this function:

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

Checks if float is LessThan.

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 94 of file property-condition-functions.cpp.

References 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::LessThan::EvalInteger ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if integer is LessThan.

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 88 of file property-condition-functions.cpp.

References 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::LessThan::EvalVector2 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector2.Length() is LessThan.

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 100 of file property-condition-functions.cpp.

References 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::LessThan::EvalVector3 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector3.Length() is LessThan.

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 106 of file property-condition-functions.cpp.

References 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::LessThan::EvalVector4 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector4.Length() is LessThan.

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 112 of file property-condition-functions.cpp.

References 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::LessThan::GetFunction ( Property::Type  valueType)
static
Returns
function pointer to the correct condition function, based on the type of value being examined.

Definition at line 36 of file property-condition-functions.cpp.

References Dali::Property::BOOLEAN, EvalBoolean(), 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