Base class for sharable objects that store information for a texture (image map).
Inherits :
Inherited By : DzImageTexture and DzLayeredTexture
DAZ Script | |
---|---|
TextureType | { Standard, LatLong, LightProbe, CustomTexture } |
DAZ Script | |
---|---|
String | getFilename () |
Number | getGamma () |
Size | getGLAlphaTextureSize () |
Size | getGLTextureSize () |
Size | getOriginalImageSize () |
Pixmap | getPreviewPixmap ( Size size ) |
Pixmap | getPreviewPixmap ( Number width, Number height ) |
Number | getRevision () |
String | getTempFilename () |
Number | getTextureType () |
void | incrementRevision ( Boolean emitDataChanged=true ) |
Boolean | loadImageData ( Image image ) |
void | refresh () |
void | setGamma ( Number gamma ) |
void | setTextureType ( Number val ) |
void | drawnDataChanged () |
void | tempFilenameChanged ( String filename ) |
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 image in memory at a time, and also ensures that necessary conversions for rendering the image occurs correctly.
TODO: Add description.
String : getFilename()
Return Value:
Return Value:
Attention:
Size : getGLAlphaTextureSize()
Return Value:
Size : getGLTextureSize()
Return Value:
Return Value:
Pixmap : getPreviewPixmap( Size size )
Parameter(s):
Return Value:
Pixmap : getPreviewPixmap( Number width, Number height )
Parameter(s):
Return Value:
Number : getRevision()
Return Value:
Since:
Return Value:
Number : getTextureType()
Return Value:
void : incrementRevision( Boolean emitDataChanged=true )
Increments the texture to indicated that it's data has changed.
Parameter(s):
Since:
Boolean : loadImageData( Image image )
Loads the image data from the specified image into this texture.
Parameter(s):
Return Value:
true
if the image data was loaded, false
if there was an error or the image could not be loaded.Since:
void : refresh()
Reloads the image if its source file has changed.
void : setGamma( Number gamma )
Parameter(s):
void : setTextureType( Number val )
Sets the texture type for this texture.
Parameter(s):
void : drawnDataChanged()
Signature:“drawnDataChanged()”
Emitted when the data of the texture has changed - e.g. after a call to refresh()
void : tempFilenameChanged( String filename )
Signature:“tempFilenameChanged(const QString&)”
Emitted when the temporary filename for the image has changed.
Parameter(s):