Veda/PackFloat.h File Reference


Detailed Description

This file applies the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 , read file COPYING.

Author:
victorien ferry & www.m4nkind.com

Definition in file PackFloat.h.

#include "BaseType.h"

Go to the source code of this file.

Classes

class  PackFloat
 Base type managing a serializable float value. a float type is serialized to 3 bytes, or 1 byte if value is 0.0f. once read, the 4th IEEE float byte is always set to 0, so that the mantissa is only 15 bit long, not 23 as usual. PackFloat, like all its inherited classes, can be inited with a special constructor where you use a VectorDimension enum. You can choose to init a PackFloat with PackFloat::vd_X if you need one dimension o represent a value, or use vd_XY, for example to define a 2D vector, vd_XYZ for a 3D vector, or vd_XYZD for a dated 3D vector. Note extension library VedaLibMath 's VirtualEquation::Compute() was based on float[4] parameters. More...

Defines

#define REGISTER_MEMBER_PACKFLOAT(_object, _MemberName, _DefaultVal)
 This macro is used to register a serializable member in a class constructor. For editable mode, it uses _MemberName to explicit the use of the member, in order to display it in a GUI for example.
#define REGISTER_MEMBER_PACKFLOAT_XY(_object, _MemberName, _DefaultValX, _DefaultValY)
#define REGISTER_MEMBER_PACKFLOAT_XYZ(_object, _MemberName, _DefaultValX, _DefaultValY, _DefaultValZ)


Define Documentation

#define REGISTER_MEMBER_PACKFLOAT _object,
_MemberName,
_DefaultVal   ) 
 

Value:

RegisterSerializableMember(_object);\
_object.SetMemberName( _MemberName );\
_object.Set(_DefaultVal);
This macro is used to register a serializable member in a class constructor. For editable mode, it uses _MemberName to explicit the use of the member, in order to display it in a GUI for example.

Definition at line 188 of file PackFloat.h.

Referenced by MediaTimePattern::PartToPlay::PartToPlay(), InterfacePrefObject::PreviewEdited::PreviewEdited(), and VirtualEquationSpline::SplineElement::SplineElement().


      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/