QGIS API Documentation 3.39.0-Master (bca3cdb6021)
|
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 35 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 75 of file qgsgcppoint.h.
QgsCoordinateReferenceSystem QgsGcpPoint::destinationPointCrs | ( | ) | const |
Returns the CRS of the destination point.
Definition at line 30 of file qgsgcppoint.cpp.
|
inline |
Returns true
if the point is currently enabled.
Definition at line 108 of file qgsgcppoint.h.
|
inline |
Definition at line 126 of file qgsgcppoint.h.
|
inline |
Definition at line 118 of file qgsgcppoint.h.
|
inline |
Sets the destination coordinates.
Definition at line 82 of file qgsgcppoint.h.
void QgsGcpPoint::setDestinationPointCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the crs of the destination point.
Definition at line 35 of file qgsgcppoint.cpp.
|
inline |
Sets whether the point is currently enabled.
Definition at line 115 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 68 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 59 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 40 of file qgsgcppoint.cpp.