QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Contains properties of a ground control point (GCP). More...
#include <qgsgcppoint.h>
Public Types | |
enum class | PointType { Source , Destination } |
Coordinate point types. More... | |
Public Member Functions | |
QgsGcpPoint (const QgsPointXY &sourcePoint, const QgsPointXY &destinationPoint, const QgsCoordinateReferenceSystem &destinationPointCrs, bool enabled=true) | |
Constructor for QgsGcpPoint. | |
QgsPointXY | destinationPoint () const |
Returns the destination coordinates. | |
QgsCoordinateReferenceSystem | destinationPointCrs () const |
Returns the CRS of the destination point. | |
bool | isEnabled () const |
Returns true if the point is currently enabled. | |
bool | operator!= (const QgsGcpPoint &other) const |
bool | operator== (const QgsGcpPoint &other) const |
void | setDestinationPoint (QgsPointXY point) |
Sets the destination coordinates. | |
void | setDestinationPointCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the crs of the destination point. | |
void | setEnabled (bool enabled) |
Sets whether the point is currently enabled. | |
void | setSourcePoint (QgsPointXY point) |
Sets the source coordinates. | |
QgsPointXY | sourcePoint () const |
Returns the source coordinates. | |
QgsPointXY | transformedDestinationPoint (const QgsCoordinateReferenceSystem &targetCrs, const QgsCoordinateTransformContext &context) const |
Returns the destinationPoint() transformed to the given target CRS. | |
Contains properties of a ground control point (GCP).
Definition at line 30 of file qgsgcppoint.h.
|
strong |
Coordinate point types.
Enumerator | |
---|---|
Source | Source point. |
Destination | Destination point. |
Definition at line 34 of file qgsgcppoint.h.
QgsGcpPoint::QgsGcpPoint | ( | const QgsPointXY & | sourcePoint, |
const QgsPointXY & | destinationPoint, | ||
const QgsCoordinateReferenceSystem & | destinationPointCrs, | ||
bool | enabled = true |
||
) |
Constructor for QgsGcpPoint.
sourcePoint | source coordinates. This may either be in pixels (for completely non-referenced images) OR in the source layer CRS. |
destinationPoint | destination coordinates |
destinationPointCrs | CRS of destination point |
enabled | whether the point is currently enabled |
Definition at line 21 of file qgsgcppoint.cpp.
|
inline |
Returns the destination coordinates.
Definition at line 73 of file qgsgcppoint.h.
QgsCoordinateReferenceSystem QgsGcpPoint::destinationPointCrs | ( | ) | const |
Returns the CRS of the destination point.
Definition at line 29 of file qgsgcppoint.cpp.
|
inline |
Returns true
if the point is currently enabled.
Definition at line 106 of file qgsgcppoint.h.
|
inline |
Definition at line 124 of file qgsgcppoint.h.
|
inline |
Definition at line 116 of file qgsgcppoint.h.
|
inline |
Sets the destination coordinates.
Definition at line 80 of file qgsgcppoint.h.
void QgsGcpPoint::setDestinationPointCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the crs of the destination point.
Definition at line 34 of file qgsgcppoint.cpp.
|
inline |
Sets whether the point is currently enabled.
Definition at line 113 of file qgsgcppoint.h.
|
inline |
Sets the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
Definition at line 66 of file qgsgcppoint.h.
|
inline |
Returns the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
Definition at line 57 of file qgsgcppoint.h.
QgsPointXY QgsGcpPoint::transformedDestinationPoint | ( | const QgsCoordinateReferenceSystem & | targetCrs, |
const QgsCoordinateTransformContext & | context | ||
) | const |
Returns the destinationPoint() transformed to the given target CRS.
Definition at line 39 of file qgsgcppoint.cpp.