Kanzi  3.9.7
Kanzi Engine API
variant.hpp File Reference

Classes

struct  kanzi::Variant
 Union container for manipulating an object from a heterogeneous set of types in a uniform manner. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

template<typename TargetType , typename FieldType >
void kanzi::assignFieldValue (TargetType &value, PropertyField field, FieldType fieldValue)
 Free function for setting a field of a value. More...
 
template<>
void kanzi::assignFieldValue< ColorRGBA, float > (ColorRGBA &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< Matrix3x3, float > (Matrix3x3 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< Matrix4x4, float > (Matrix4x4 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< SRTValue2D, float > (SRTValue2D &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< SRTValue3D, float > (SRTValue3D &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< SRTValue3D, Quaternion > (SRTValue3D &value, PropertyField field, Quaternion fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< Vector2, float > (Vector2 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< Vector3, float > (Vector3 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<>
void kanzi::assignFieldValue< Vector4, float > (Vector4 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;. More...
 
template<typename T >
float kanzi::retrieveFieldValue (const T &value, PropertyField field)
 Free function for retrieving a value of a field. More...
 
template<>
float kanzi::retrieveFieldValue< ColorRGBA > (const ColorRGBA &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< Matrix3x3 > (const Matrix3x3 &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< Matrix4x4 > (const Matrix4x4 &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< SRTValue2D > (const SRTValue2D &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< SRTValue3D > (const SRTValue3D &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< Vector2 > (const Vector2 &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< Vector3 > (const Vector3 &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
template<>
float kanzi::retrieveFieldValue< Vector4 > (const Vector4 &value, PropertyField field)
 Specialization of retrieveFieldValue. More...
 
Variant kanzi::variantCast (const Variant &value, PropertyDataType targetDataType)
 Casts variant to another data type. More...
 
template<typename T >
Variant kanzi::variantCast (const Variant &value)
 Casts variant to another data type. More...
 
template<>
Variant kanzi::variantCast< AbstractRangeSharedPtr > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< bool > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< ColorRGBA > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< float > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< int > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< Matrix3x3 > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< Matrix4x4 > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< ResourceSharedPtr > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< SRTValue2D > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< SRTValue3D > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< string > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< Vector2 > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< Vector3 > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< Vector4 > (const Variant &value)
 Specialization of typed variantCast. More...
 
template<>
Variant kanzi::variantCast< void * > (const Variant &value)
 Specialization of typed variantCast. More...