Jamba C++ API
5.1.1
|
Interface that defines a converter from a type T
to an int32
given a number of steps (provided by getStepCount
).
More...
#include <ParamSerializers.h>
Inherited by DiscreteTypeParamSerializer< T, Compare >, and StaticCastDiscreteConverter< T >.
Public Member Functions | |
virtual tresult | convertFromDiscreteValue (int32 iDiscreteValue, T &oValue) const =0 |
virtual tresult | convertToDiscreteValue (T const &iValue, int32 &oDiscreteValue) const =0 |
virtual int32 | getStepCount () const =0 |
Interface that defines a converter from a type T
to an int32
given a number of steps (provided by getStepCount
).
Any Jmb parameter providing this interface can be used as a discrete parameter (for example, in a step button view). Note that this interface does not need to be implemented if T
can behave like an int32
(see StaticCastDiscreteConverter
).
|
pure virtual |
Implemented in DiscreteTypeParamSerializer< T, Compare >, BooleanParamSerializer, and StaticCastDiscreteConverter< T >.
|
pure virtual |
Implemented in DiscreteTypeParamSerializer< T, Compare >, BooleanParamSerializer, and StaticCastDiscreteConverter< T >.
|
pure virtual |
Implemented in DiscreteTypeParamSerializer< T, Compare >, BooleanParamSerializer, and StaticCastDiscreteConverter< T >.