te::qt::widgets::TiePointLocatorWidget Class Reference

This class is used to define a widget for tie point acquirement. More...

#include <TiePointLocatorWidget.h>

Inheritance diagram for te::qt::widgets::TiePointLocatorWidget:
QWidget

Public Types

enum  FirstCoordType { None, Reference, Adjust }
 

Signals

void doneAcquiredTiePoints ()
 
void tiePointsUpdated ()
 

Public Member Functions

FirstCoordType getFirstTiePointCoord (te::gm::Coord2D &firstCoord)
 Get tie point reference coord that does not have an adjust coordenate or \ tie point adjust coord that does not have an reference coordenate. More...
 
Ui::TiePointLocatorWidgetForm * getForm () const
 
te::rst::Interpolator::Method getInterpolatorMethod () const
 
void getOutputResolution (double &resX, double &resY)
 
void getOutputSRID (int &srid)
 
const te::qt::widgets::TiePointData::TPContainerTgetTiePointContainer ()
 Get tie point data container. More...
 
void getTiePoints (std::vector< te::gm::GTParameters::TiePoint > &tiePoints) const
 Get the current acquired tie-points. More...
 
void getTiePointsIdxCoords (std::vector< te::gm::GTParameters::TiePoint > &tiePoints) const
 Get the current acquired tie-points. More...
 
std::string getTransformationName () const
 
void setAdjustLayer (te::map::AbstractLayerPtr layer)
 This method is used to set the selected layer used to be the adjust layer. More...
 
void setReferenceLayer (te::map::AbstractLayerPtr layer)
 This method is used to set the selected layer used to be the reference layer. More...
 
 TiePointLocatorWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~TiePointLocatorWidget ()
 

Protected Slots

void onAddToolButtonClicked ()
 
void onAdjMapDisplayExtentChanged ()
 
void onAdjPointMoved (double xorig, double yorig, double xnew, double ynew)
 
void onAdjPointPicked (double x, double y)
 
void onAutoAcquireTiePointsToolButtonClicked ()
 
void onDeleteSelectedToolButtonClicked ()
 
void onDoneToolButtonClicked ()
 
void onLoadTiePointsToolButtonClicked ()
 
void onRefMapDisplayExtentChanged ()
 
void onRefPointMoved (double xorig, double yorig, double xnew, double ynew)
 
void onRefPointPicked (double x, double y)
 
void onRefreshToolButtonClicked ()
 
void onSaveTiePointsToolButtonClicked ()
 
void onSelectAllToolButtonClicked ()
 
void onSRIDPushButtonClicked ()
 
void onTiePointsTableWidgetItemChanged (QTableWidgetItem *)
 
void onTiePointsTableWidgetItemSelectionChanged ()
 
void onTiePointsUpdated ()
 
void onUnselectAllToolButtonClicked ()
 

Protected Member Functions

void adjCoordMoved (double xorig, double yorig, double xnew, double ynew)
 
void adjCoordPicked (double x, double y)
 
void createSelection (int initialIdx, int nPos)
 
void drawTiePoints ()
 
QPixmap getPixmap (te::color::RGBAColor **rgba)
 
void refCoordMoved (double xorig, double yorig, double xnew, double ynew)
 
void refCoordPicked (double x, double y)
 
void reset ()
 
void setReferenceTiePointMarkLegend (QPixmap p)
 
void setSelectedTiePointMarkLegend (QPixmap p)
 
void setTiePointMarkLegend (QPixmap p)
 
bool shotFirstPoint ()
 
bool shotSecondtPoint ()
 
void startUpNavigators ()
 
void tiePointsTableUpdate ()
 Uptate the tie-points table widget. More...
 
void transformationInfoUpdate ()
 Uptate the current transformation information widgets. More...
 

Private Attributes

te::map::AbstractLayerPtr m_adjLayer
 Layer with adjust imagem. More...
 
te::qt::widgets::RasterNavigatorWidgetm_adjNavigator
 Adjust raster navigator. More...
 
std::map< unsigned int, QPointF > m_adjPoints
 Display adjust coordinates. More...
 
te::gm::GTParameters::TiePoint m_currentTiePoint
 The current tie-point. More...
 
te::se::Markm_markRef
 Represents the mark of a reference tie point. More...
 
te::se::Markm_markSelected
 Represents the mark of a selected tie point. More...
 
te::se::Markm_markUnselected
 Represents the mark of a unselected tie point. More...
 
te::map::AbstractLayerPtr m_refLayer
 Layer with reference imagem. More...
 
te::qt::widgets::RasterNavigatorWidgetm_refNavigator
 Reference raster navigator. More...
 
std::map< unsigned int, QPointF > m_refPoints
 Display reference coordinates. More...
 
te::color::RGBAColor ** m_rgbaMarkRef
 Represents the pattern of reference tie point. More...
 
te::color::RGBAColor ** m_rgbaMarkSelected
 Represents the pattern of a selected tie point. More...
 
te::color::RGBAColor ** m_rgbaMarkUnselected
 Represents the pattern of a unselected tie point. More...
 
FirstCoordType m_tiePointFirstCoord
 Type of coord if the tie-point has the first part set;. More...
 
unsigned int m_tiePointIdCounter
 A ID counter for new tie pointes inserted into m_tiePoints;. More...
 
te::qt::widgets::TiePointLocatorParametersWidgetm_tiePointParameters
 Tie Point parameters widget. More...
 
te::qt::widgets::TiePointData::TPContainerT m_tiePoints
 Internal tie-points container. More...
 
std::set< intm_tiePointsSelected
 List of selected tie points. More...
 
std::unique_ptr< Ui::TiePointLocatorWidgetForm > m_ui
 

Detailed Description

This class is used to define a widget for tie point acquirement.

Definition at line 97 of file TiePointLocatorWidget.h.

Member Enumeration Documentation

Enumerator
None 

None first coord picked.

Reference 

Reference first coord was picked.

Adjust 

Adjust first coord was picked.

Definition at line 103 of file TiePointLocatorWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::TiePointLocatorWidget::~TiePointLocatorWidget ( )

Member Function Documentation

void te::qt::widgets::TiePointLocatorWidget::adjCoordMoved ( double  xorig,
double  yorig,
double  xnew,
double  ynew 
)
protected
void te::qt::widgets::TiePointLocatorWidget::createSelection ( int  initialIdx,
int  nPos 
)
protected

Definition at line 760 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by onAutoAcquireTiePointsToolButtonClicked().

void te::qt::widgets::TiePointLocatorWidget::doneAcquiredTiePoints ( )
signal

Referenced by onDoneToolButtonClicked().

te::qt::widgets::TiePointLocatorWidget::FirstCoordType te::qt::widgets::TiePointLocatorWidget::getFirstTiePointCoord ( te::gm::Coord2D firstCoord)

Get tie point reference coord that does not have an adjust coordenate or \ tie point adjust coord that does not have an reference coordenate.

Parameters
firstCoordThe tie point reference or adjsut coord.
Returns
The m_tiePointHasFirstCoord type (None, Reference or Adjust).

Definition at line 275 of file TiePointLocatorWidget.cpp.

References Adjust, m_currentTiePoint, m_tiePointFirstCoord, and Reference.

Referenced by drawTiePoints().

Ui::TiePointLocatorWidgetForm * te::qt::widgets::TiePointLocatorWidget::getForm ( ) const

Definition at line 192 of file TiePointLocatorWidget.cpp.

References m_ui.

void te::qt::widgets::TiePointLocatorWidget::getOutputResolution ( double &  resX,
double &  resY 
)

Definition at line 459 of file TiePointLocatorWidget.cpp.

References m_ui.

void te::qt::widgets::TiePointLocatorWidget::getOutputSRID ( int srid)

Definition at line 454 of file TiePointLocatorWidget.cpp.

References m_ui.

QPixmap te::qt::widgets::TiePointLocatorWidget::getPixmap ( te::color::RGBAColor **  rgba)
protected

Definition at line 1884 of file TiePointLocatorWidget.cpp.

References te::qt::widgets::GetImage(), p, and PATTERN_SIZE.

Referenced by TiePointLocatorWidget().

const te::qt::widgets::TiePointData::TPContainerT & te::qt::widgets::TiePointLocatorWidget::getTiePointContainer ( )

Get tie point data container.

Returns
The tie point data container.

Definition at line 270 of file TiePointLocatorWidget.cpp.

References m_tiePoints.

Referenced by drawTiePoints().

void te::qt::widgets::TiePointLocatorWidget::getTiePoints ( std::vector< te::gm::GTParameters::TiePoint > &  tiePoints) const

Get the current acquired tie-points.

Parameters
tiePointsThe current acquired tie-points.

Definition at line 197 of file TiePointLocatorWidget.cpp.

References ds, te::da::GetFirstPropertyPos(), m_refLayer, m_tiePoints, m_ui, te::dt::RASTER_TYPE, te::gm::Coord2D::x, and te::gm::Coord2D::y.

void te::qt::widgets::TiePointLocatorWidget::getTiePointsIdxCoords ( std::vector< te::gm::GTParameters::TiePoint > &  tiePoints) const

Get the current acquired tie-points.

Parameters
tiePointsThe current acquired tie-points.

Definition at line 246 of file TiePointLocatorWidget.cpp.

References ds, te::da::GetFirstPropertyPos(), m_refLayer, m_tiePoints, and te::dt::RASTER_TYPE.

std::string te::qt::widgets::TiePointLocatorWidget::getTransformationName ( ) const
void te::qt::widgets::TiePointLocatorWidget::onAdjMapDisplayExtentChanged ( )
protectedslot

Definition at line 1139 of file TiePointLocatorWidget.cpp.

References drawTiePoints().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onAdjPointMoved ( double  xorig,
double  yorig,
double  xnew,
double  ynew 
)
protectedslot

Definition at line 1165 of file TiePointLocatorWidget.cpp.

References adjCoordMoved(), and drawTiePoints().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onAdjPointPicked ( double  x,
double  y 
)
protectedslot

Definition at line 1151 of file TiePointLocatorWidget.cpp.

References adjCoordPicked(), and drawTiePoints().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked ( )
protectedslot

Definition at line 775 of file TiePointLocatorWidget.cpp.

References te::qt::widgets::TiePointData::AutomaticAcquisitionT, createSelection(), te::rp::TiePointsLocator::execute(), te::rst::Grid::geoToGrid(), te::qt::widgets::RasterNavigatorWidget::getCurrentExtent(), te::da::GetFirstPropertyPos(), te::rst::Raster::getGrid(), te::rp::Module::getLastLogStr(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::qt::widgets::TiePointLocatorParametersWidget::getTiePointInputParameters(), te::rp::TiePointsLocator::initialize(), te::qt::widgets::TiePointData::m_acqType, m_adjLayer, m_adjNavigator, m_adjPoints, te::rp::TiePointsLocatorInputParameters::m_enableProgress, te::rp::TiePointsLocatorInputParameters::m_inRaster1Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster1Ptr, te::rp::TiePointsLocatorInputParameters::m_inRaster2Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster2Ptr, te::rp::TiePointsLocatorInputParameters::m_pixelSizeXRelation, te::rp::TiePointsLocatorInputParameters::m_pixelSizeYRelation, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaWidth, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaWidth, m_refLayer, m_refNavigator, m_refPoints, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationRescaleFactor, te::qt::widgets::TiePointData::m_tiePoint, m_tiePointIdCounter, m_tiePointParameters, te::rp::TiePointsLocator::OutputParameters::m_tiePoints, m_tiePoints, m_ui, te::qt::widgets::TiePointData::ManualAcquisitionT, onTiePointsTableWidgetItemSelectionChanged(), te::dt::RASTER_TYPE, tiePointsTableUpdate(), te::gm::Envelope::transform(), and transformationInfoUpdate().

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::onDeleteSelectedToolButtonClicked ( )
protectedslot
void te::qt::widgets::TiePointLocatorWidget::onDoneToolButtonClicked ( )
protectedslot

Definition at line 1129 of file TiePointLocatorWidget.cpp.

References doneAcquiredTiePoints().

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::onRefMapDisplayExtentChanged ( )
protectedslot

Definition at line 1134 of file TiePointLocatorWidget.cpp.

References drawTiePoints().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onRefPointMoved ( double  xorig,
double  yorig,
double  xnew,
double  ynew 
)
protectedslot

Definition at line 1158 of file TiePointLocatorWidget.cpp.

References drawTiePoints(), and refCoordMoved().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onRefPointPicked ( double  x,
double  y 
)
protectedslot

Definition at line 1144 of file TiePointLocatorWidget.cpp.

References drawTiePoints(), and refCoordPicked().

Referenced by startUpNavigators().

void te::qt::widgets::TiePointLocatorWidget::onRefreshToolButtonClicked ( )
protectedslot

Definition at line 1124 of file TiePointLocatorWidget.cpp.

References tiePointsTableUpdate().

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::onSelectAllToolButtonClicked ( )
protectedslot

Definition at line 986 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::onSRIDPushButtonClicked ( )
protectedslot
void te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged ( QTableWidgetItem *  item)
protectedslot
void te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemSelectionChanged ( )
protectedslot
void te::qt::widgets::TiePointLocatorWidget::onTiePointsUpdated ( )
protectedslot

Definition at line 1172 of file TiePointLocatorWidget.cpp.

References drawTiePoints().

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::onUnselectAllToolButtonClicked ( )
protectedslot

Definition at line 991 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::refCoordMoved ( double  xorig,
double  yorig,
double  xnew,
double  ynew 
)
protected
void te::qt::widgets::TiePointLocatorWidget::reset ( )
protected
void te::qt::widgets::TiePointLocatorWidget::setAdjustLayer ( te::map::AbstractLayerPtr  layer)

This method is used to set the selected layer used to be the adjust layer.

Parameters
layerThe layer ptr
Note
This layer MUST HAVE a valid raster object.

Definition at line 387 of file TiePointLocatorWidget.cpp.

References ds, te::da::GetFirstPropertyPos(), m_adjLayer, m_adjNavigator, m_refLayer, m_tiePointParameters, m_ui, te::dt::RASTER_TYPE, reset(), te::qt::widgets::RasterNavigatorWidget::set(), and te::qt::widgets::TiePointLocatorParametersWidget::setRescaleFactor().

void te::qt::widgets::TiePointLocatorWidget::setReferenceLayer ( te::map::AbstractLayerPtr  layer)

This method is used to set the selected layer used to be the reference layer.

Parameters
layerThe layer ptr
Note
This layer MUST HAVE a valid raster object.

Definition at line 285 of file TiePointLocatorWidget.cpp.

References ds, te::da::GetFirstPropertyPos(), m_adjLayer, m_refLayer, m_refNavigator, m_tiePointFirstCoord, m_tiePointParameters, m_ui, None, te::dt::RASTER_TYPE, reset(), te::qt::widgets::RasterNavigatorWidget::set(), and te::qt::widgets::TiePointLocatorParametersWidget::setRescaleFactor().

void te::qt::widgets::TiePointLocatorWidget::setReferenceTiePointMarkLegend ( QPixmap  p)
protected

Definition at line 755 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::setSelectedTiePointMarkLegend ( QPixmap  p)
protected

Definition at line 750 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::setTiePointMarkLegend ( QPixmap  p)
protected

Definition at line 745 of file TiePointLocatorWidget.cpp.

References m_ui.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::tiePointsUpdated ( )
signal

Member Data Documentation

te::qt::widgets::RasterNavigatorWidget* te::qt::widgets::TiePointLocatorWidget::m_adjNavigator
private
std::map< unsigned int, QPointF > te::qt::widgets::TiePointLocatorWidget::m_adjPoints
private
te::gm::GTParameters::TiePoint te::qt::widgets::TiePointLocatorWidget::m_currentTiePoint
private
te::se::Mark* te::qt::widgets::TiePointLocatorWidget::m_markRef
private

Represents the mark of a reference tie point.

Definition at line 283 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget(), and ~TiePointLocatorWidget().

te::se::Mark* te::qt::widgets::TiePointLocatorWidget::m_markSelected
private

Represents the mark of a selected tie point.

Definition at line 281 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget(), and ~TiePointLocatorWidget().

te::se::Mark* te::qt::widgets::TiePointLocatorWidget::m_markUnselected
private

Represents the mark of a unselected tie point.

Definition at line 282 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget(), and ~TiePointLocatorWidget().

te::qt::widgets::RasterNavigatorWidget* te::qt::widgets::TiePointLocatorWidget::m_refNavigator
private

Reference raster navigator.

Definition at line 275 of file TiePointLocatorWidget.h.

Referenced by drawTiePoints(), onAutoAcquireTiePointsToolButtonClicked(), setReferenceLayer(), and startUpNavigators().

std::map< unsigned int, QPointF > te::qt::widgets::TiePointLocatorWidget::m_refPoints
private
te::color::RGBAColor** te::qt::widgets::TiePointLocatorWidget::m_rgbaMarkRef
private

Represents the pattern of reference tie point.

Definition at line 280 of file TiePointLocatorWidget.h.

Referenced by drawTiePoints(), TiePointLocatorWidget(), and ~TiePointLocatorWidget().

te::color::RGBAColor** te::qt::widgets::TiePointLocatorWidget::m_rgbaMarkSelected
private

Represents the pattern of a selected tie point.

Definition at line 278 of file TiePointLocatorWidget.h.

Referenced by drawTiePoints(), TiePointLocatorWidget(), and ~TiePointLocatorWidget().

te::color::RGBAColor** te::qt::widgets::TiePointLocatorWidget::m_rgbaMarkUnselected
private

Represents the pattern of a unselected tie point.

Definition at line 279 of file TiePointLocatorWidget.h.

Referenced by drawTiePoints(), TiePointLocatorWidget(), and ~TiePointLocatorWidget().

FirstCoordType te::qt::widgets::TiePointLocatorWidget::m_tiePointFirstCoord
private

Type of coord if the tie-point has the first part set;.

Definition at line 270 of file TiePointLocatorWidget.h.

Referenced by adjCoordPicked(), getFirstTiePointCoord(), refCoordPicked(), reset(), setReferenceLayer(), and shotSecondtPoint().

unsigned int te::qt::widgets::TiePointLocatorWidget::m_tiePointIdCounter
private
std::set<int> te::qt::widgets::TiePointLocatorWidget::m_tiePointsSelected
private

List of selected tie points.

Definition at line 273 of file TiePointLocatorWidget.h.

Referenced by onDeleteSelectedToolButtonClicked(), reset(), tiePointsTableUpdate(), and transformationInfoUpdate().


The documentation for this class was generated from the following files: