QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
analysis
georeferencing
qgsgcpgeometrytransformer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgcpgeometrytransformer.h
3
----------------------
4
begin : February 2021
5
copyright : (C) 2021 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSGCPGEOMETRYTRANSFORMER_H
19
#define QGSGCPGEOMETRYTRANSFORMER_H
20
21
#include <memory>
22
23
#include "qgis_analysis.h"
24
#include "
qgsfeedback.h
"
25
#include "
qgsgcptransformer.h
"
26
#include "
qgsgeometrytransformer.h
"
27
28
class
QgsGeometry
;
29
37
class
ANALYSIS_EXPORT
QgsGcpGeometryTransformer
:
public
QgsAbstractGeometryTransformer
38
{
39
public
:
46
QgsGcpGeometryTransformer
(
QgsGcpTransformerInterface
*
gcpTransformer
SIP_TRANSFER
);
47
52
QgsGcpGeometryTransformer
(
QgsGcpTransformerInterface::TransformMethod
method,
const
QVector<QgsPointXY> &sourceCoordinates,
const
QVector<QgsPointXY> &destinationCoordinates );
53
54
~QgsGcpGeometryTransformer
()
override
;
55
56
QgsGcpGeometryTransformer
(
const
QgsGcpGeometryTransformer
&other ) =
delete
;
57
QgsGcpGeometryTransformer
&
operator=
(
const
QgsGcpGeometryTransformer
&other ) =
delete
;
58
59
bool
transformPoint
(
double
&x
SIP_INOUT
,
double
&y
SIP_INOUT
,
double
&z
SIP_INOUT
,
double
&m
SIP_INOUT
)
override
;
60
71
QgsGeometry
transform
(
const
QgsGeometry
&geometry,
bool
&ok
SIP_OUT
,
QgsFeedback
*feedback =
nullptr
);
72
78
QgsGcpTransformerInterface
*
gcpTransformer
()
const
;
79
87
void
setGcpTransformer
(
QgsGcpTransformerInterface
*transformer
SIP_TRANSFER
);
88
89
private
:
90
#ifdef SIP_RUN
91
QgsGcpGeometryTransformer
(
const
QgsGcpGeometryTransformer
&other );
92
#endif
93
94
std::unique_ptr<QgsGcpTransformerInterface> mGcpTransformer;
95
};
96
97
#endif
// QGSGCPGEOMETRYTRANSFORMER_H
QgsAbstractGeometryTransformer
An abstract base class for classes which transform geometries by transforming input points to output ...
Definition
qgsgeometrytransformer.h:33
QgsAbstractGeometryTransformer::transformPoint
virtual bool transformPoint(double &x, double &y, double &z, double &m)=0
Transforms the point defined by the coordinates (x, y, z) and the specified m value.
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition
qgsfeedback.h:44
QgsGcpGeometryTransformer::setGcpTransformer
void setGcpTransformer(QgsGcpTransformerInterface *transformer)
Sets the underlying GCP transformer used to transform geometries.
Definition
qgsgcpgeometrytransformer.cpp:61
QgsGcpGeometryTransformer::transform
QgsGeometry transform(const QgsGeometry &geometry, bool &ok, QgsFeedback *feedback=nullptr)
Transforms the specified input geometry using the GCP based transform.
Definition
qgsgcpgeometrytransformer.cpp:40
QgsGcpGeometryTransformer::~QgsGcpGeometryTransformer
~QgsGcpGeometryTransformer() override
QgsGcpGeometryTransformer::QgsGcpGeometryTransformer
QgsGcpGeometryTransformer(QgsGcpTransformerInterface *gcpTransformer)
Constructor for QgsGcpGeometryTransformer, which uses the specified gcpTransformer to modify geometri...
Definition
qgsgcpgeometrytransformer.cpp:22
QgsGcpGeometryTransformer::operator=
QgsGcpGeometryTransformer & operator=(const QgsGcpGeometryTransformer &other)=delete
QgsGcpGeometryTransformer::QgsGcpGeometryTransformer
QgsGcpGeometryTransformer(const QgsGcpGeometryTransformer &other)=delete
QgsGcpGeometryTransformer::gcpTransformer
QgsGcpTransformerInterface * gcpTransformer() const
Returns the underlying GCP transformer used to transform geometries.
Definition
qgsgcpgeometrytransformer.cpp:56
QgsGcpTransformerInterface
An interface for Ground Control Points (GCP) based transformations.
Definition
qgsgcptransformer.h:37
QgsGcpTransformerInterface::TransformMethod
TransformMethod
Available transformation methods.
Definition
qgsgcptransformer.h:45
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:35
SIP_OUT
#define SIP_OUT
Definition
qgis_sip.h:57
SIP_INOUT
#define SIP_INOUT
Definition
qgis_sip.h:78
qgsfeedback.h
qgsgcptransformer.h
qgsgeometrytransformer.h
Generated on
for QGIS API Documentation by
1.17.0