User Tools

Site Tools


DzTextureComponent

Base class for components of a layered texture.

More...

Inherits :

Inherited By : DzTextureLayer and DzTextureMask

Enumerations

DAZ Script
Rotation{ RotNone, Rot90, Rot180, Rot270 }

Properties

Methods

DAZ Script
voidcopyFrom ( DzTextureComponent comp )
voidflip ( Boolean horizontal, Boolean vertical )
BooleanloadImageData ( Image image )
BooleanneedsImageRefresh ()
voidsetScale ( Number xScale, Number yScale )

Signals

voidcolorChanged ( Color color )
voiddataChanged ()
voidenabledChanged ( Boolean onOff )
voidflippedHorizontalChanged ( Boolean onOff )
voidflippedVerticalChanged ( Boolean onOff )
voidimageChanged ( String filename )
voidinvertedChanged ( Boolean onOff )
voidlabelChanged ( String label )
voidoffsetChanged ( Point offset )
voidopacityChanged ( Number opacity )
voidrotationChanged ( Rotation rotation )
voidscaleChanged ( Number x, Number y )

Detailed Description

See Also:

Enumerations


: Rotation

The enumerated values of possible rotations to be performed.

  • RotNone - No rotation is performed.
  • Rot90 - A 90 degree (clockwise) rotation is performed.
  • Rot180 - A 180 degree rotation is performed.
  • Rot270 - A 270 degree (clockwise) rotation is performed.

Properties


Color : color

Holds the color of the component.


Boolean : enabled

Holds whether or not the component is enabled.


Boolean : flippedHorizontal

Holds whether or not the component is flipped horizontally.


Boolean : flippedVertical

Holds whether or not the component is flipped vertically.


String : imageFile

Holds the path of the image file for the component.


Boolean : invert

Holds whether or not the color channels of the component are inverted.


String : label

Holds the label of the component.

Since:

  • 4.11.0.225

Point : offset

Holds the offset of the component.


Number : opacity

Holds the opacity of the component. This should be in the range 0.0 - 1.0.


Rotation : rotation

Holds the rotation of the component.


Number : xOffset

Holds the horizontal offset of the component.


Number : xScale

Holds the scale of the component across its width.


Number : yOffset

Holds the vertical offset of the component.


Number : yScale

Holds the scale of the component across its height.

Methods


void : copyFrom( DzTextureComponent comp )

Copies another texture component into this one.

Parameter(s):

  • comp - The texture component to copy from.

void : flip( Boolean horizontal, Boolean vertical )

Flips the image horizontally and/or vertically.

Parameter(s):

  • horizontal - If true, the image is flipped horizontally.
  • vertical - If true, the image is flipped vertically.

Boolean : loadImageData( Image image )

Loads image data from the specified image.

Parameter(s):

  • image - The image to load data from.

Return Value:

  • true if image data is loaded, otherwise false.

Boolean : needsImageRefresh()

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):

  • xScale - The scale of the component across its width. 1.0 is equivalent to 100%.
  • yScale - The scale of the component across its height. 1.0 is equivalent to 100%.

Since:

  • 4.11.0.225

Signals


void : colorChanged( Color color )

Signature:“colorChanged(const QColor&)”

Emitted when the color of the texture component has changed.

Parameter(s):

  • color - The new color.

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):

  • onOff - The new enabled state.

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):

  • onOff - The new state.

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):

  • onOff - The new state.

void : imageChanged( String filename )

Signature:“imageChanged(const QString&)”

Emitted when the filename of the image for the texture component has changed.

Parameter(s):

  • filename - The new filename.

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):

  • onOff - The new state.

void : labelChanged( String label )

Signature:“labelChanged(const QString&)”

Emitted when the label of the texture component has changed.

Parameter(s):

  • label - The new label.

void : offsetChanged( Point offset )

Signature:“offsetChanged(const QPoint&)”

Emitted when the offset position of the texture component has changed.

Parameter(s):

  • offset - The new offset position.

void : opacityChanged( Number opacity )

Signature:“opacityChanged(float)”

Emitted when the opacity of the texture component has changed.

Parameter(s):

  • opacity - The new opacity value.

void : rotationChanged( Rotation rotation )

Signature:“rotationChanged(DzTextureComponent::Rotation)”

Emitted when the rotation of the texture component has changed.

Parameter(s):

  • rotation - The new rotation value.

void : scaleChanged( Number x, Number y )

Signature:“scaleChanged(float,float)”

Emitted when the scale of the texture component has changed.

Parameter(s):

  • x - The new scale on the X axis.
  • y - The new scale on the Y axis.