Subgroup: other
Class: QgsTransformEffect¶
-
class
qgis.core.
QgsTransformEffect
¶ Bases:
qgis._core.QgsPaintEffect
Constructor for QgsTransformEffect.
QgsTransformEffect(QgsTransformEffect)
A paint effect which applies transformations (such as move,scale and rotate) to a picture.
New in version 2.9: Methods
boundingRect
clone
create
Creates a new QgsTransformEffect effect from a properties string map. draw
drawSource
fixQPictureDpi
imageOffset
properties
readProperties
reflectX
Returns whether transform will be reflected along the x-axis reflectY
Returns whether transform will be reflected along the y-axis rotation
Returns the transform rotation, in degrees clockwise. scaleX
Returns the x axis scaling factor. scaleY
Returns the y axis scaling factor. setReflectX
Sets whether to reflect along the x-axis setReflectY
Sets whether to reflect along the y-axis setRotation
Sets the transform rotation
, in degrees clockwise.setScaleX
Sets the x axis scaling factor. setScaleY
Sets the y axis scaling factor. setShearX
Sets the x axis shearing factor. setShearY
Sets the y axis shearing factor. setTranslateMapUnitScale
Sets the map unit scale used for the transform translation. setTranslateUnit
Sets the units used for the transform translation. setTranslateX
Sets the transform x translation. setTranslateY
Sets the transform y translation. shearX
Returns the x axis shearing factor. shearY
Returns the y axis shearing factor. source
sourceAsImage
translateMapUnitScale
Returns the map unit scale used for the transform translation. translateUnit
Returns the units used for the transform translation. translateX
Returns the transform x translation. translateY
Returns the transform y translation. type
Signals
Attributes
-
boundingRect
(self, rect: QRectF, context: QgsRenderContext) → QRectF¶
-
clone
(self) → QgsTransformEffect¶
-
create
(map: Dict[str, str]) → QgsPaintEffect¶ Creates a new QgsTransformEffect effect from a properties string map.
Parameters: map – encoded properties string map Returns: new QgsTransformEffect
-
draw
(self, context: QgsRenderContext)¶
-
drawSource
()¶
-
fixQPictureDpi
()¶
-
imageOffset
()¶
-
properties
(self) → Dict[str, str]¶
-
readProperties
(self, props: Dict[str, str])¶
-
reflectX
(self) → bool¶ Returns whether transform will be reflected along the x-axis
Returns: true if transform will reflect horizontally See also
See also
-
reflectY
(self) → bool¶ Returns whether transform will be reflected along the y-axis
Returns: true if transform will reflect horizontally See also
See also
-
rotation
(self) → float¶ Returns the transform rotation, in degrees clockwise.
See also
-
scaleX
(self) → float¶ Returns the x axis scaling factor.
Returns: x axis scaling factor, where 1.0 = no scaling See also
See also
-
scaleY
(self) → float¶ Returns the y axis scaling factor.
Returns: y axis scaling factor, where 1.0 = no scaling See also
See also
-
setReflectX
(self, reflectX: bool)¶ Sets whether to reflect along the x-axis
Parameters: reflectX – true to reflect horizontally See also
See also
-
setReflectY
(self, reflectY: bool)¶ Sets whether to reflect along the y-axis
Parameters: reflectY – true to reflect horizontally See also
See also
-
setRotation
(self, rotation: float)¶ Sets the transform
rotation
, in degrees clockwise.See also
-
setScaleX
(self, scaleX: float)¶ Sets the x axis scaling factor.
Parameters: scaleX – factor to scale x axis by, where 1.0 = no scaling See also
See also
-
setScaleY
(self, scaleY: float)¶ Sets the y axis scaling factor.
Parameters: scaleY – factor to scale y axis by, where 1.0 = no scaling See also
-
setShearX
(self, shearX: float)¶ Sets the x axis shearing factor.
Parameters: shearX – x axis shearing See also
See also
-
setShearY
(self, shearY: float)¶ Sets the y axis shearing factor.
Parameters: shearY – y axis shearing See also
See also
-
setTranslateMapUnitScale
(self, scale: QgsMapUnitScale)¶ Sets the map unit scale used for the transform translation.
Parameters: scale – map unit scale for translation See also
See also
See also
See also
-
setTranslateUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units used for the transform translation.
Parameters: unit – units for translation See also
See also
See also
See also
-
setTranslateX
(self, translateX: float)¶ Sets the transform x translation.
Parameters: translateX – distance to translate along the x axis See also
See also
See also
See also
-
setTranslateY
(self, translateY: float)¶ Sets the transform y translation.
Parameters: translateY – distance to translate along the y axis See also
See also
See also
See also
-
shearX
(self) → float¶ Returns the x axis shearing factor.
Returns: x axis shearing See also
See also
-
shearY
(self) → float¶ Returns the y axis shearing factor.
Returns: y axis shearing See also
See also
-
source
()¶
-
sourceAsImage
()¶
-
translateMapUnitScale
(self) → QgsMapUnitScale¶ Returns the map unit scale used for the transform translation.
Returns: map unit scale for translation See also
See also
See also
See also
-
translateUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units used for the transform translation.
Returns: units for translation See also
See also
See also
See also
-
translateX
(self) → float¶ Returns the transform x translation.
Returns: X distance translated along the x axis See also
See also
See also
See also
-
translateY
(self) → float¶ Returns the transform y translation.
Returns: Y distance translated along the y axis See also
See also
See also
See also
-
type
(self) → str¶
-