A sharable object that stores information for a layered texture (image map).
Inherits :
DAZ Script | |
---|---|
void | addLayer ( DzTextureLayer layer ) |
void | beginEditing () |
void | copyFrom ( DzLayeredTexture texture ) |
DzTextureLayer | createLayer ( String name ) |
void | endEditing () |
Number | findLayer ( DzTextureLayer layer ) |
DzTextureLayer | getLayer ( Number index ) |
Number | getNumLayers () |
String | getSourceDSI () |
void | insertLayer ( Number index, DzTextureLayer layer ) |
Boolean | moveLayer ( Number fromIndex, Number toIndex ) |
void | refeshLayeredTexture () |
void | removeAllLayers () |
Boolean | removeLayer ( Number index ) |
Boolean | removeLayer ( DzTextureLayer layer ) |
Boolean | replaceLayer ( DzTextureLayer oldLayer, DzTextureLayer newLayer ) |
DzTextureLayer | takeLayer ( Number index ) |
void | aboutToInsertLayers ( Number index, Number count ) |
void | aboutToRemoveLayers ( Number index, Number count ) |
void | assetModified () |
void | assetWasSaved () |
void | layerListChanged () |
void | layersInserted ( Number index, Number count ) |
void | layersRemoved ( Number index, Number count ) |
void | sizeChanged ( Size size ) |
This class is not intended to be constructed directly. Create (or retrieve) an instance from DzImageMgr - this ensures that there is only one instance of a given layered texture in memory at a time, and also ensures that necessary conversions for rendering the layered texture occurs correctly.
See Also:
Holds the author of the file for this texture. (Read Only)
Since:
Holds the revision version of the asset file for this texture. (Read Only)
Since:
Holds the asset id for this texture.
Since:
Holds the modified date of the asset file for this texture. (Read Only)
Since:
Holds whether or not the asset for this texture needs to be saved. (Read Only)
Since:
Holds the URI of the asset source for this texture; only valid when the asset is in an embedded state - i.e. modified. (Read Only)
Since:
Holds the asset URI for this texture. (Read Only)
Since:
Holds the size of the texture.
void : addLayer( DzTextureLayer layer )
Adds a layer to (the bottom of) this layered texture.
Parameter(s):
void : beginEditing()
Must be called before editing and paired with a call to endEditing().
void : copyFrom( DzLayeredTexture texture )
Copies the settings of the given layered texture to this layered texture.
Parameter(s):
DzTextureLayer : createLayer( String name )
Creates a new (white) layer with the specified name in this layered texture.
Parameter(s):
Return Value:
void : endEditing()
Must be called after editing is completed and after beginEditing() is called.
Number : findLayer( DzTextureLayer layer )
Parameter(s):
Return Value:
DzTextureLayer : getLayer( Number index )
Parameter(s):
Return Value:
Number : getNumLayers()
Return Value:
String : getSourceDSI()
Return Value:
void : insertLayer( Number index, DzTextureLayer layer )
Inserts a layer into this layered texture at the specified index.
Parameter(s):
Boolean : moveLayer( Number fromIndex, Number toIndex )
Parameter(s):
Return Value:
true
if the layer is moved, otherwise false
.void : refeshLayeredTexture()
Refreshes each layer of this layered texture.
void : removeAllLayers()
Removes (deletes) all layers from this layered texture.
Boolean : removeLayer( Number index )
Parameter(s):
Return Value:
true
if the specified layer is removed from this layered texture, otherwise false
.Boolean : removeLayer( DzTextureLayer layer )
Parameter(s):
Return Value:
true
if the specified layer is removed from this layered texture, otherwise false
.Boolean : replaceLayer( DzTextureLayer oldLayer, DzTextureLayer newLayer )
Parameter(s):
Return Value:
true
if replacing the layer succeeds, otherwise false
.DzTextureLayer : takeLayer( Number index )
Removes the layer at the specified index.
Parameter(s):
Return Value:
void : aboutToInsertLayers( Number index, Number count )
Signature:“aboutToInsertLayers(int,int)”
Emitted immediately before layers are inserted into this layered texture.
Parameter(s):
void : aboutToRemoveLayers( Number index, Number count )
Signature:“aboutToRemoveLayers(int,int)”
Emitted immediately before layers are removed from this layered texture.
Parameter(s):
void : assetModified()
Signature:“assetModified()”
Emitted when the layered texture has been modified.
void : assetWasSaved()
Signature:“assetWasSaved()”
Emitted after the layered texture has been saved.
void : layerListChanged()
Signature:“layerListChanged()”
Emitted when the layer list has changed.
void : layersInserted( Number index, Number count )
Signature:“layersInserted(int,int)”
Emitted when layers are inserted into this layered texture.
Parameter(s):
void : layersRemoved( Number index, Number count )
Signature:“layersRemoved(int,int)”
Emitted when layers are removed from this layered texture.
Parameter(s):
void : sizeChanged( Size size )
Signature:“sizeChanged(const QSize&)”
Emitted when the size of this layered texture has changed.
Parameter(s):