DzDFormModifier Class Reference
[Object and Geometry Objects]

The Modifier component of a DForm. More...

Inheritance diagram for DzDFormModifier:

DzModifier DzElement DzBase QObject Object List of all members.

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*)"

Detailed Description

The Modifier component of a DForm.

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.


Constructor & Destructor Documentation

DzDFormModifier::DzDFormModifier (  ) 

Default Constructor.


Member Function Documentation

DzDFormModifier::dformChanged ( DzDForm  newDForm  )  [signal]

Signature: "dformChanged(DzDForm*)"

Emitted when the DForm node that is associated with this modifier has changed.

Parameters:
newDForm A pointer to the new DForm node associated with this modifier.

DzDForm DzDFormModifier::getDForm (  ) 

Returns:
The DForm node that this modifier is driven by.
See also:
setDForm()

DzFloatProperty DzDFormModifier::getValueChannel (  ) 

Get the value channel for this Modifier

Returns:
A pointer to the property that controls the strength of the Modifier

void DzDFormModifier::setDForm ( DzDForm  dform  ) 

Sets the DForm node that this modifier is driven by.

Parameters:
dform The D-Form node that will control this modifier.
See also:
getDForm()

DzMorph DzDFormModifier::spawnMorph ( DzNode  node,
String  name 
)

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.

Parameters:
node The target node
name The name to assign to the morph
Returns:
A pointer to newly generated morph.


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.