Inheritance diagram for DzMorphDeltas:
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()" |
DzMorphDeltas::DzMorphDeltas | ( | ) |
Default constructor.
Number DzMorphDeltas::addDelta | ( | Number | vertIdx, | |
Number | deltaX, | |||
Number | deltaY, | |||
Number | deltaZ, | |||
Boolean | checkForDuplicates = true | |||
) |
Add a morph delta.
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. |
Add a morph delta.
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. |
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
Get the vertex index of a delta in the list
i | The delta to return information for |
Get the value of a delta in the list
i | The delta to return information for |
Number DzMorphDeltas::getNumDeltas | ( | ) |
Get the number of deltas
Number DzMorphDeltas::getVertCount | ( | ) |
Get the vert count for this delta set.
Get the delta index of a vertex in the list
vertIdx | The vertex to return information for |
Boolean DzMorphDeltas::hasDeltas | ( | ) |
Check to see if any deltas are assigned.
bool DzMorphDeltas::loadDeltas | ( | ) |
Loads the deltas list from file if it has not already been loaded
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.
vertIdx | The index of the vertex to remove delta values for. |
Sets the value for a delta in the delta array.
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.
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