26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_TIEPOINTLOCATORWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_TIEPOINTLOCATORWIDGET_H 30 #include "../../../color/RGBAColor.h" 31 #include "../../../geometry/Coord2D.h" 32 #include "../../../geometry/GTParameters.h" 34 #include "../../../maptools/AbstractLayer.h" 35 #include "../../../rp/TiePointsLocator.h" 37 #include "../Config.h" 45 #include <QTableWidgetItem> 48 namespace Ui {
class TiePointLocatorWidgetForm; }
53 namespace se {
class Mark; }
60 class RasterNavigatorWidget;
61 class TiePointLocatorParametersWidget;
114 Ui::TiePointLocatorWidgetForm* getForm()
const;
121 void getTiePoints( std::vector< te::gm::GTParameters::TiePoint >& tiePoints )
const;
128 void getTiePointsIdxCoords( std::vector< te::gm::GTParameters::TiePoint >& tiePoints )
const;
164 void getOutputSRID(
int& srid);
166 void getOutputResolution(
double& resX,
double& resY);
168 std::string getTransformationName()
const;
181 : QTableWidgetItem( QString::number( value ), type )
183 setData( 0, QVariant( value ) );
187 : QTableWidgetItem( text, type )
189 setData( 0, QVariant( text.toDouble() ) );
194 return ( data(0).toDouble() < other.data(0).toDouble() );
198 void refCoordPicked(
double x,
double y);
200 void adjCoordPicked(
double x,
double y);
202 void refCoordMoved(
double xorig,
double yorig,
double xnew,
double ynew);
204 void adjCoordMoved(
double xorig,
double yorig,
double xnew,
double ynew);
206 void setTiePointMarkLegend(QPixmap p);
208 void setSelectedTiePointMarkLegend(QPixmap p);
210 void setReferenceTiePointMarkLegend(QPixmap p);
212 void createSelection(
int initialIdx,
int nPos);
214 bool shotSecondtPoint();
216 bool shotFirstPoint();
220 void onAutoAcquireTiePointsToolButtonClicked();
222 void onSelectAllToolButtonClicked();
224 void onUnselectAllToolButtonClicked();
226 void onDeleteSelectedToolButtonClicked();
228 void onAddToolButtonClicked();
230 void onTiePointsTableWidgetItemSelectionChanged();
232 void onRefreshToolButtonClicked();
234 void onDoneToolButtonClicked();
236 void onRefMapDisplayExtentChanged();
238 void onAdjMapDisplayExtentChanged();
240 void onRefPointPicked(
double x,
double y);
242 void onAdjPointPicked(
double x,
double y);
244 void onRefPointMoved(
double xorig,
double yorig,
double xnew,
double ynew);
246 void onAdjPointMoved(
double xorig,
double yorig,
double xnew,
double ynew);
248 void onTiePointsUpdated();
250 void onSRIDPushButtonClicked();
252 void onLoadTiePointsToolButtonClicked();
254 void onSaveTiePointsToolButtonClicked();
256 void onTiePointsTableWidgetItemChanged(QTableWidgetItem*);
261 void tiePointsTableUpdate();
264 void transformationInfoUpdate();
266 void startUpNavigators();
268 void drawTiePoints();
280 void getRastersPixelSizesRelation(
double& pixelSizeXRelation,
281 double& pixelSizeYRelation )
const;
287 double getRastersMeanPixelSizeRelation()
const;
291 void tiePointsUpdated();
293 void doneAcquiredTiePoints();
297 std::unique_ptr<Ui::TiePointLocatorWidgetForm>
m_ui;
329 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_TIEPOINTLOCATORWIDGET_H
TEDATAACCESSEXPORT te::da::Expression * operator<(const te::da::Expression &e1, const te::da::Expression &e2)
A Mark specifies a geometric shape and applies coloring to it.
An utility struct for representing 2D coordinates.
InterpolationMethod
Allowed interpolation methods.
std::pair< Coord2D, Coord2D > TiePoint
Tie point type definition.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr