Class: QgsTransformEffect¶
A paint effect which applies transformations (such as move, scale and rotate) to a picture.
Class Hierarchy¶
Base classes¶
Base class for visual effects which can be applied to QPicture drawings  | 
Methods
Returns whether transform will be reflected along the x-axis  | 
|
Returns whether transform will be reflected along the y-axis  | 
|
Returns the transform rotation, in degrees clockwise.  | 
|
Returns the x axis scaling factor.  | 
|
Returns the y axis scaling factor.  | 
|
Sets whether to reflect along the x-axis  | 
|
Sets whether to reflect along the y-axis  | 
|
Sets the transform rotation, in degrees clockwise.  | 
|
Sets the x axis scaling factor.  | 
|
Sets the y axis scaling factor.  | 
|
Sets the x axis shearing factor.  | 
|
Sets the y axis shearing factor.  | 
|
Sets the map unit scale used for the transform translation.  | 
|
Sets the units used for the transform translation.  | 
|
Sets the transform x translation.  | 
|
Sets the transform y translation.  | 
|
Returns the x axis shearing factor.  | 
|
Returns the y axis shearing factor.  | 
|
Returns the map unit scale used for the transform translation.  | 
|
Returns the units used for the transform translation.  | 
|
Returns the transform x translation.  | 
|
Returns the transform y translation.  | 
Static Methods
Creates a new   | 
- class qgis.core.QgsTransformEffect[source]¶
 Bases:
QgsPaintEffect- static create(map: Dict[str, Any]) QgsPaintEffect | None[source]¶
 Creates a new
QgsTransformEffecteffect from a properties string map.- Parameters:
 map (Dict[str, Any]) – encoded properties string map
- Return type:
 Optional[QgsPaintEffect]
- Returns:
 new QgsTransformEffect
- reflectX(self) bool[source]¶
 Returns whether transform will be reflected along the x-axis
- Return type:
 bool
- Returns:
 Trueif transform will reflect horizontally
See also
See also
- reflectY(self) bool[source]¶
 Returns whether transform will be reflected along the y-axis
- Return type:
 bool
- Returns:
 Trueif transform will reflect horizontally
See also
See also
- rotation(self) float[source]¶
 Returns the transform rotation, in degrees clockwise.
See also
- Return type:
 float
- scaleX(self) float[source]¶
 Returns the x axis scaling factor.
- Return type:
 float
- Returns:
 x axis scaling factor, where 1.0 = no scaling
See also
See also
- scaleY(self) float[source]¶
 Returns the y axis scaling factor.
- Return type:
 float
- Returns:
 y axis scaling factor, where 1.0 = no scaling
See also
See also
- setReflectX(self, reflectX: bool)[source]¶
 Sets whether to reflect along the x-axis
- Parameters:
 reflectX (bool) –
Trueto reflect horizontally
See also
See also
- setReflectY(self, reflectY: bool)[source]¶
 Sets whether to reflect along the y-axis
- Parameters:
 reflectY (bool) –
Trueto reflect horizontally
See also
See also
- setRotation(self, rotation: float)[source]¶
 Sets the transform
rotation, in degrees clockwise.See also
- Parameters:
 rotation (float)
- setScaleX(self, scaleX: float)[source]¶
 Sets the x axis scaling factor.
- Parameters:
 scaleX (float) – factor to scale x axis by, where 1.0 = no scaling
See also
See also
- setScaleY(self, scaleY: float)[source]¶
 Sets the y axis scaling factor.
- Parameters:
 scaleY (float) – factor to scale y axis by, where 1.0 = no scaling
See also
- setShearX(self, shearX: float)[source]¶
 Sets the x axis shearing factor.
- Parameters:
 shearX (float) – x axis shearing
See also
See also
- setShearY(self, shearY: float)[source]¶
 Sets the y axis shearing factor.
- Parameters:
 shearY (float) – y axis shearing
See also
See also
- setTranslateMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
 Sets the map unit scale used for the transform translation.
- Parameters:
 scale (QgsMapUnitScale) – map unit scale for translation
See also
See also
See also
See also
- setTranslateUnit(self, unit: Qgis.RenderUnit)[source]¶
 Sets the units used for the transform translation.
- Parameters:
 unit (Qgis.RenderUnit) – units for translation
See also
See also
See also
See also
- setTranslateX(self, translateX: float)[source]¶
 Sets the transform x translation.
- Parameters:
 translateX (float) – distance to translate along the x axis
See also
See also
See also
See also
- setTranslateY(self, translateY: float)[source]¶
 Sets the transform y translation.
- Parameters:
 translateY (float) – distance to translate along the y axis
See also
See also
See also
See also
- shearX(self) float[source]¶
 Returns the x axis shearing factor.
- Return type:
 float
- Returns:
 x axis shearing
See also
See also
- shearY(self) float[source]¶
 Returns the y axis shearing factor.
- Return type:
 float
- Returns:
 y axis shearing
See also
See also
- translateMapUnitScale(self) QgsMapUnitScale¶
 Returns the map unit scale used for the transform translation.
- Return type:
 - Returns:
 map unit scale for translation
See also
See also
See also
See also
- translateUnit(self) Qgis.RenderUnit[source]¶
 Returns the units used for the transform translation.
- Return type:
 - Returns:
 units for translation
See also
See also
See also
See also
- translateX(self) float[source]¶
 Returns the transform x translation.
- Return type:
 float
- Returns:
 X distance translated along the x axis
See also
See also
See also
See also