ParameterBinding

Parameter binding base class.

Constructors

this
this(Parameter param)

Construct a binding from its parameter.

Members

Functions

apply
void apply(vec2u index, vec2 norm)

Apply the given interpolated keypoint to this binding.

clear
void clear()

Clear all keypoint values.

copyKeypoint
void copyKeypoint(vec2u index, ParameterBinding other, vec2u dest)

Keypoint operation to copy its value to another binding's keypoint.

deleteKeypoint
void deleteKeypoint(ParameterAxis axis, uint index)

Keypoint operation to delete the keypoint at the given position.

deserialize
void deserialize(DataNode object, ModelState state)

Deserializes this parameter.

disable
void disable(vec2u index)

Clear the keypoint at the given index to its default value.

enable
void enable(vec2u index)

Initialize the keypoint at the given index with its interpolated value.

fillBlanks
void fillBlanks()

Fill undefined keypoints with sensible defaults.

finalize
void finalize(Puppet puppet, ModelState state)

Finalizes the parameter binding.

insertKeypoint
void insertKeypoint(ParameterAxis axis, uint index)

Keypoint operation to insert a keypoint at the given position.

isCompatibleWith
bool isCompatibleWith(Node other)

Check whether this binding is compatible with the given node.

isDefined
bool isDefined(uint index)

Check whether the keypoint at the given index is defined.

moveKeypoint
void moveKeypoint(ParameterAxis axis, uint index, uint dest)

Keypoint operation to move a keypoint to the given position.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserialize this binding.

onFinalize
void onFinalize(Puppet puppet, ModelState state)

Finalizes the parameter binding.

onSerialize
void onSerialize(DataNode object)

Serializes this binding.

reset
void reset(vec2u index)

Reinitialize the keypoint at the given index to its default value.

scaleKeypoint
void scaleKeypoint(ParameterAxis axis, uint index, float scale)

Keypoint operation to scale a keypoint by a given factor.

serialize
void serialize(DataNode object)

Serializes this parameter.

Variables

interpMode
InterpolateMode interpMode;
Undocumented in source.
parameter
Parameter parameter;
Undocumented in source.

Inherited Members

From ISerializable

onSerialize
void onSerialize(DataNode object)

Custom serializer function

Meta