Base class for components of a layered texture.
Inherits :
Inherited By : DzTextureLayer and DzTextureMask
void | colorChanged ( Color color ) |
void | dataChanged () |
void | enabledChanged ( Boolean onOff ) |
void | flippedHorizontalChanged ( Boolean onOff ) |
void | flippedVerticalChanged ( Boolean onOff ) |
void | imageChanged ( String filename ) |
void | invertedChanged ( Boolean onOff ) |
void | labelChanged ( String label ) |
void | offsetChanged ( Point offset ) |
void | opacityChanged ( Number opacity ) |
void | rotationChanged ( Rotation rotation ) |
void | scaleChanged ( Number x, Number y ) |
See Also:
The enumerated values of possible rotations to be performed.
Holds the color of the component.
Holds whether or not the component is enabled.
Holds whether or not the component is flipped horizontally.
Holds whether or not the component is flipped vertically.
Holds the path of the image file for the component.
Holds whether or not the color channels of the component are inverted.
Holds the label of the component.
Since:
Holds the offset of the component.
Holds the opacity of the component. This should be in the range 0.0 - 1.0.
Holds the rotation of the component.
Holds the horizontal offset of the component.
Holds the scale of the component across its width.
Holds the vertical offset of the component.
Holds the scale of the component across its height.
void : copyFrom( DzTextureComponent comp )
Copies another texture component into this one.
Parameter(s):
void : flip( Boolean horizontal, Boolean vertical )
Flips the image horizontally and/or vertically.
Parameter(s):
true
, the image is flipped horizontally.true
, the image is flipped vertically.Boolean : loadImageData( Image image )
Loads image data from the specified image.
Parameter(s):
Return Value:
true
if image data is loaded, otherwise false
.Return Value:
true
if this texture component has been modified on disk since it was last loaded/updated, otherwise false
.void : setScale( Number xScale, Number yScale )
Sets the scale of the component.
Parameter(s):
Since:
void : colorChanged( Color color )
Signature:“colorChanged(const QColor&)”
Emitted when the color of the texture component has changed.
Parameter(s):
void : dataChanged()
Signature:“dataChanged()”
Emitted when the data of the texture component has changed.
void : enabledChanged( Boolean onOff )
Signature:“enabledChanged(bool)”
Emitted when the enabled state of the texture component has changed.
Parameter(s):
void : flippedHorizontalChanged( Boolean onOff )
Signature:“flippedHorizontalChanged(bool)”
Emitted when the state of whether or not the texture component has been flipped horizontally has changed.
Parameter(s):
void : flippedVerticalChanged( Boolean onOff )
Signature:“flippedVerticalChanged(bool)”
Emitted when the state of whether or not the texture component has been flipped vertically has changed.
Parameter(s):
void : imageChanged( String filename )
Signature:“imageChanged(const QString&)”
Emitted when the filename of the image for the texture component has changed.
Parameter(s):
void : invertedChanged( Boolean onOff )
Signature:“invertedChanged(bool)”
Emitted when the state of whether or not the texture component has been inverted has changed.
Parameter(s):
void : labelChanged( String label )
Signature:“labelChanged(const QString&)”
Emitted when the label of the texture component has changed.
Parameter(s):
void : offsetChanged( Point offset )
Signature:“offsetChanged(const QPoint&)”
Emitted when the offset position of the texture component has changed.
Parameter(s):
void : opacityChanged( Number opacity )
Signature:“opacityChanged(float)”
Emitted when the opacity of the texture component has changed.
Parameter(s):
void : rotationChanged( Rotation rotation )
Signature:“rotationChanged(DzTextureComponent::Rotation)”
Emitted when the rotation of the texture component has changed.
Parameter(s):
void : scaleChanged( Number x, Number y )
Signature:“scaleChanged(float,float)”
Emitted when the scale of the texture component has changed.
Parameter(s):