Kanzi 4.0.0
property_field.hpp File Reference

Namespaces

namespace  kanzi
 

Enumerations

enum  kanzi::PropertyField {
  kanzi::PropertyFieldWhole , kanzi::PropertyFieldTranslationX , kanzi::PropertyFieldTranslationY , kanzi::PropertyFieldTranslationZ ,
  kanzi::PropertyFieldScaleX , kanzi::PropertyFieldScaleY , kanzi::PropertyFieldScaleZ , kanzi::PropertyFieldRotationX ,
  kanzi::PropertyFieldRotationY , kanzi::PropertyFieldRotationZ , kanzi::PropertyFieldColorR , kanzi::PropertyFieldColorG ,
  kanzi::PropertyFieldColorB , kanzi::PropertyFieldColorA , kanzi::PropertyFieldVectorX , kanzi::PropertyFieldVectorY ,
  kanzi::PropertyFieldVectorZ , kanzi::PropertyFieldVectorW , kanzi::PropertyFieldRotation
}
 Property field. More...
 

Functions

template<typename TargetType , typename FieldType >
void kanzi::assignFieldValue (TargetType &value, PropertyField field, FieldType fieldValue)
 Free function for setting a field of a value.
 
template<>
void kanzi::assignFieldValue< ColorRGBA, float > (ColorRGBA &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< Matrix3x3, float > (Matrix3x3 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< Matrix4x4, float > (Matrix4x4 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< SRTValue2D, float > (SRTValue2D &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< SRTValue3D, float > (SRTValue3D &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< SRTValue3D, Quaternion > (SRTValue3D &value, PropertyField field, Quaternion fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< Vector2, float > (Vector2 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< Vector3, float > (Vector3 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<>
void kanzi::assignFieldValue< Vector4, float > (Vector4 &value, PropertyField field, float fieldValue)
 Specialization of assignFieldValue;.
 
template<typename T >
float kanzi::retrieveFieldValue (const T &value, PropertyField field)
 Free function for retrieving a value of a field.
 
template<>
float kanzi::retrieveFieldValue< ColorRGBA > (const ColorRGBA &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< Matrix3x3 > (const Matrix3x3 &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< Matrix4x4 > (const Matrix4x4 &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< SRTValue2D > (const SRTValue2D &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< SRTValue3D > (const SRTValue3D &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< Vector2 > (const Vector2 &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< Vector3 > (const Vector3 &value, PropertyField field)
 Specialization of retrieveFieldValue.
 
template<>
float kanzi::retrieveFieldValue< Vector4 > (const Vector4 &value, PropertyField field)
 Specialization of retrieveFieldValue.