Inheritance diagram for DzDFormModifier:
Constructors | |
DzDFormModifier () | |
Methods | |
DzDForm | getDForm () |
DzFloatProperty | getValueChannel () |
void | setDForm (DzDForm dform) |
DzMorph | spawnMorph (DzNode node, String name) |
Signals | |
void | dformChanged (DzDForm newDForm) |
Signature: "dformChanged(DzDForm*)" |
The DForm Modifier is the modifier component of a DForm deformer. The others are the DzDFormBase, DzDFormZone and DzDForm.
The DzDFormModifier generates a local space delta for the vertices in the target geometry based on the DForm component parameters. It also draws the vertex weight points.
It can be used to spawn a morph from the DForm on the target geometry.
The DForm Modifier is coded for one-to-one dform and target relationships. Setting a new DForm/target pair replaces the old pair.
The preRemove() and modifierAdded() are similar to the same functions on the DForm which are used to make sure that if one component of the DForm is deleted or removed, the others are.
Generally the DzDFormModifier should not be created by the user but rather generated by the DForm itself using the addTargetNode() function.
DzDFormModifier::DzDFormModifier | ( | ) |
Default Constructor.
DzDFormModifier::dformChanged | ( | DzDForm | newDForm | ) | [signal] |
Signature: "dformChanged(DzDForm*)"
Emitted when the DForm node that is associated with this modifier has changed.
newDForm | A pointer to the new DForm node associated with this modifier. |
DzDForm DzDFormModifier::getDForm | ( | ) |
DzFloatProperty DzDFormModifier::getValueChannel | ( | ) |
Get the value channel for this Modifier
void DzDFormModifier::setDForm | ( | DzDForm | dform | ) |
Sets the DForm node that this modifier is driven by.
dform | The D-Form node that will control this modifier. |
Generates a morph from this Modifier. It searches for a morph of the same name and if it exists it adds its values to the allready existing morph. This was down to allow generation of a morph that is made from more than one DForm.
node | The target node | |
name | The name to assign to the morph |