1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/georeferencing/qgsgcppoint.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsGcpPoint
{
%Docstring(signature="appended")
Contains properties of a ground control point (GCP).
.. versionadded:: 3.26
%End
%TypeHeaderCode
#include "qgsgcppoint.h"
%End
public:
enum class PointType
{
Source,
Destination,
};
QgsGcpPoint( const QgsPointXY &sourcePoint, const QgsPointXY &destinationPoint, const QgsCoordinateReferenceSystem &destinationPointCrs, bool enabled = true );
%Docstring
Constructor for QgsGcpPoint.
:param sourcePoint: source coordinates. This may either be in pixels
(for completely non-referenced images) OR in the
source layer CRS.
:param destinationPoint: destination coordinates
:param destinationPointCrs: CRS of destination point
:param enabled: whether the point is currently enabled
%End
QgsPointXY sourcePoint() const;
%Docstring
Returns the source coordinates.
This may either be in pixels (for completely non-referenced images) OR
in the source layer CRS.
.. seealso:: :py:func:`setSourcePoint`
%End
void setSourcePoint( QgsPointXY point );
%Docstring
Sets the source coordinates.
This may either be in pixels (for completely non-referenced images) OR
in the source layer CRS.
.. seealso:: :py:func:`sourcePoint`
%End
QgsPointXY destinationPoint() const;
%Docstring
Returns the destination coordinates.
.. seealso:: :py:func:`setDestinationPoint`
%End
void setDestinationPoint( QgsPointXY point );
%Docstring
Sets the destination coordinates.
.. seealso:: :py:func:`destinationPoint`
%End
QgsCoordinateReferenceSystem destinationPointCrs() const;
%Docstring
Returns the CRS of the destination point.
.. seealso:: :py:func:`setDestinationPointCrs`
%End
void setDestinationPointCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the ``crs`` of the destination point.
.. seealso:: :py:func:`destinationPointCrs`
%End
QgsPointXY transformedDestinationPoint( const QgsCoordinateReferenceSystem &targetCrs, const QgsCoordinateTransformContext &context ) const;
%Docstring
Returns the :py:func:`~QgsGcpPoint.destinationPoint` transformed to the
given target CRS.
%End
bool isEnabled() const;
%Docstring
Returns ``True`` if the point is currently enabled.
.. seealso:: :py:func:`setEnabled`
%End
void setEnabled( bool enabled );
%Docstring
Sets whether the point is currently enabled.
.. seealso:: :py:func:`isEnabled`
%End
bool operator==( const QgsGcpPoint &other ) const;
bool operator!=( const QgsGcpPoint &other ) const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/georeferencing/qgsgcppoint.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|