DzMorphDeltas Class Reference
[Object and Geometry Objects]

Class containing the actual values for morph displacement. More...

Inheritance diagram for DzMorphDeltas:

DzStorable DzBase QObject Object List of all members.

Methods

Number addDelta (Number vertIdx, Number deltaX, Number deltaY, Number deltaZ, Boolean checkForDuplicates=true)
Number addDelta (Number vertIdx, DzVec3 delta, Boolean checkForDuplicates=true)
Number getDeltaIndex (Number i)
DzVec3 getDeltaVec (Number i)
Number getNumDeltas ()
Number getVertCount ()
Number getVertexDeltaIndex (Number vertIdx)
Boolean hasDeltas ()
Boolean loadDeltas ()
void removeAllDeltas ()
void removeDuplicateDeltas ()
void removeVertex (Number vertIdx)
DzError setDelta (Number index, DzVec3 delta)
void setVertCount (Number vertCount)
void unLoadDeltas ()

Constructors

 DzMorphDeltas ()

Signals

void deltaListChanged ()
 Signature: "deltaListChanged()"
void deltaValueChanged ()
 Signature: "deltaValueChanged()"

Detailed Description

Class containing the actual values for morph displacement.


Constructor & Destructor Documentation

DzMorphDeltas::DzMorphDeltas (  ) 

Default constructor.


Member Function Documentation

Number DzMorphDeltas::addDelta ( Number  vertIdx,
Number  deltaX,
Number  deltaY,
Number  deltaZ,
Boolean  checkForDuplicates = true 
)

Add a morph delta.

Parameters:
vertIdx The index of the vertex to set delta values for.
deltaX The X-axis value for the delta
deltaY The Y-axis value for the delta
deltaZ The Z-axis value for the delta
checkForDuplicates If true, the list of deltas will be checked for any previous deltas assigned to the vertex before adding the delta. Otherwise, it is assumed no deltas have been added for the specified vertex.
Returns:
The index of the delta

Number DzMorphDeltas::addDelta ( Number  vertIdx,
DzVec3  delta,
Boolean  checkForDuplicates = true 
)

Add a morph delta.

Parameters:
vertIdx The index of the vertex to set delta values for.
pos The delta value for the vertex.
checkForDuplicates If true, the list of deltas will be checked for any previous deltas assigned to the vertex before adding the delta. Otherwise, it is assumed no deltas have been added for the specified vertex.
Returns:
The index of the delta

void DzMorphDeltas::deltaListChanged (  )  [signal]

Signature: "deltaListChanged()"

Emitted when deltas are added to or removed from the list

void DzMorphDeltas::deltaValueChanged (  )  [signal]

Signature: "deltaValueChanged()"

Emitted when one or more delta values have been changed

Number DzMorphDeltas::getDeltaIndex ( Number  i  ) 

Get the vertex index of a delta in the list

Parameters:
i The delta to return information for
Returns:
The vertex index of the vert affected by the given delta

DzVec3 DzMorphDeltas::getDeltaVec ( Number  i  ) 

Get the value of a delta in the list

Parameters:
i The delta to return information for
Returns:
An array of 3 floats describing the value of the given delta

Number DzMorphDeltas::getNumDeltas (  ) 

Get the number of deltas

Returns:
The number of vertices that have delta values for this morph

Number DzMorphDeltas::getVertCount (  ) 

Get the vert count for this delta set.

Returns:
The vertex count of the geometry that this morph applies to.

Number DzMorphDeltas::getVertexDeltaIndex ( Number  vertIdx  ) 

Get the delta index of a vertex in the list

Parameters:
vertIdx The vertex to return information for
Returns:
The delta index of the vertex, -1 if vertex not in the list

Boolean DzMorphDeltas::hasDeltas (  ) 

Check to see if any deltas are assigned.

Returns:
true if there are any deltas that exist in this set. Will return false if the deltas have not been loaded from file yet.

bool DzMorphDeltas::loadDeltas (  ) 

Loads the deltas list from file if it has not already been loaded

Returns:
true if the deltas were loaded successfully.

void DzMorphDeltas::removeAllDeltas (  ) 

Clears the list of deltas

void DzMorphDeltas::removeDuplicateDeltas (  ) 

Removes any duplicate deltas that are in the array. Only the earliest instance in the delta array is kept. WARNING: this method is very slow.

void DzMorphDeltas::removeVertex ( Number  vertIdx  ) 

Remove any delta value for the specified vertex.

Parameters:
vertIdx The index of the vertex to remove delta values for.

DzError DzMorphDeltas::setDelta ( Number  index,
DzVec3  pos 
)

Sets the value for a delta in the delta array.

Parameters:
index The index of the delta (not vertex) to set the data for.
pos The new value for the delta.

void DzMorphDeltas::setVertCount ( Number  vertCount  ) 

Set the vertex count for this morph.

Parameters:
vertCount The total number of vertices in the mesh that this morph applies to.

void DzMorphDeltas::unLoadDeltas (  ) 

UnLoads the deltas list from file if it was loaded


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.