Inheritance diagram for DzShape:
A container class that references a DzGeometry and holds all the pertinent material definitions, etc for that geometry.
DzError DzShape::addMaterial | ( | DzMaterial | mat | ) |
Adds the given material to the available material list for this shape. Also sets the currently active material index.
newmat | Shared pointer referencing the material to be added to the list of materials for this shape. |
void DzShape::clearMaterialSelection | ( | ) |
Sets the selection status to false for all materials of this shape.
DzMaterial DzShape::findMaterial | ( | String | name | ) |
Called to find a named material. Returns NULL if the material does not exist.
name | Name of the material to find |
Number DzShape::findMaterialIndex | ( | DzMaterial | mat | ) |
mat | Shared pointer referencing the material to find |
name | Name of the material to find |
DzShape::geomChanged | ( | ) | [signal] |
Signature: "geomChanged()"
Emitted when the geometry referenced by this shape changes or is swapped out.
Array DzShape::getAllMaterials | ( | ) |
Array DzShape::getAllRenderPrioritizedMaterials | ( | ) |
Array DzShape::getAllSelectedMaterials | ( | ) |
DzGeometry DzShape::getGeometry | ( | ) |
DzMaterial DzShape::getMaterial | ( | Number | which | ) |
which | Index of the material in the list to return |
Number DzShape::getNumMaterials | ( | ) |
Number DzShape::getNumSelectedMaterials | ( | ) |
DzMaterial DzShape::getSelectedMaterial | ( | Number | which | ) |
which | Index of the material in the list of selected materials to return |
Boolean DzShape::hasMultipleLOD | ( | ) |
DzError DzShape::insertMaterial | ( | DzMaterial | newmat, | |
Number | index = -1 | |||
) |
Inserts the given material at the given index in the material list, or appends to the list of index is <0 or out of range. Also sets the currently active material index.
newmat | Shared pointer referencing the material to be added to the list of materials for this shape. | |
index | The index at which to insert the material. If -1, it will be appended to the material list. |
DzShape::materialAdded | ( | DzMaterial | mat | ) | [signal] |
Signature: "materialAdded(DzMaterial*)"
Emitted after a material has been added to the shape
mat | The material that was added to the shape |
DzShape::materialChanged | ( | ) | [signal] |
Signature: "materialChanged()"
Emitted when a material associated with this shape changes.
DzShape::materialListChanged | ( | ) | [signal] |
Signature: "materialListChanged()"
Emitted after a material has been added to or removed from the shape
DzShape::materialRemoved | ( | DzMaterial | mat | ) | [signal] |
Signature: "materialRemoved(DzMaterial*)"
Emitted after a material has been removed from the shape
mat | The material that was removed from the shape |
DzShape::materialSelected | ( | DzMaterial | mat | ) | [signal] |
Signature: "materialSelected(DzMaterial*)"
Emitted after a material used by this shape is selected
mat | The material that was selected |
DzShape::materialSelectionChanged | ( | ) | [signal] |
Signature: "materialSelectionChanged()"
Emitted after a material used by this shape is selected or deselected
DzShape::materialUnselected | ( | DzMaterial | mat | ) | [signal] |
Signature: "materialUnselected(DzMaterial*)"
Emitted after a material used by this shape is deselected
mat | The material that was deselected |
DzMaterial DzShape::rebuildBaseMap | ( | Number | whichUVSet | ) |
Rebuilds the base map of the base geometry with the specified uv set.
whichUVSet | The UV Set index in the list of this shapes uv sets which which to build the new map with. |
Reimplemented in DzPolyShape.
DzError DzShape::removeMaterial | ( | DzMaterial | mat | ) |
Removes the given material from this shape. Also removes any references to this materal that existed on any faces.
mat | Shared pointer referencing the material to be removed from the list of materials for this shape. |
DzError DzShape::replaceMaterial | ( | DzMaterial | current, | |
DzMaterial | newMat | |||
) |
Attempts to find and replace the given material with the new material.
current | Shared pointer referencing the material to be replaced. | |
newMat | Shared pointer referencing the material to be added. |
DzShape::smoothingChanged | ( | ) | [signal] |
Signature: "smoothingChanged()"
Emitted when the smoothing settings for the shape have changed.
DzShape::uvsChanged | ( | ) | [signal] |
Signature: "uvsChanged()"
Emitted when the current UV set has changed.
Reimplemented in DzSubDShape.