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:

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< int > m_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

◆ FirstCoordType

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

◆ TiePointLocatorWidget()

te::qt::widgets::TiePointLocatorWidget::TiePointLocatorWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

◆ ~TiePointLocatorWidget()

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

Member Function Documentation

◆ adjCoordMoved()

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

◆ adjCoordPicked()

void te::qt::widgets::TiePointLocatorWidget::adjCoordPicked ( double  x,
double  y 
)
protected

◆ createSelection()

void te::qt::widgets::TiePointLocatorWidget::createSelection ( int  initialIdx,
int  nPos 
)
protected

◆ doneAcquiredTiePoints

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

◆ drawTiePoints()

void te::qt::widgets::TiePointLocatorWidget::drawTiePoints ( )
protected

◆ getFirstTiePointCoord()

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).

◆ getForm()

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

◆ getInterpolatorMethod()

te::rst::Interpolator::Method te::qt::widgets::TiePointLocatorWidget::getInterpolatorMethod ( ) const

◆ getOutputResolution()

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

◆ getOutputSRID()

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

◆ getPixmap()

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

◆ getTiePointContainer()

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

Get tie point data container.

Returns
The tie point data container.

◆ getTiePoints()

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.

◆ getTiePointsIdxCoords()

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.

◆ getTransformationName()

std::string te::qt::widgets::TiePointLocatorWidget::getTransformationName ( ) const

◆ onAddToolButtonClicked

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

◆ onAdjMapDisplayExtentChanged

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

◆ onAdjPointMoved

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

◆ onAdjPointPicked

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

◆ onAutoAcquireTiePointsToolButtonClicked

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

◆ onDeleteSelectedToolButtonClicked

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

◆ onDoneToolButtonClicked

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

◆ onLoadTiePointsToolButtonClicked

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

◆ onRefMapDisplayExtentChanged

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

◆ onRefPointMoved

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

◆ onRefPointPicked

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

◆ onRefreshToolButtonClicked

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

◆ onSaveTiePointsToolButtonClicked

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

◆ onSelectAllToolButtonClicked

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

◆ onSRIDPushButtonClicked

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

◆ onTiePointsTableWidgetItemChanged

void te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged ( QTableWidgetItem *  )
protectedslot

◆ onTiePointsTableWidgetItemSelectionChanged

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

◆ onTiePointsUpdated

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

◆ onUnselectAllToolButtonClicked

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

◆ refCoordMoved()

void te::qt::widgets::TiePointLocatorWidget::refCoordMoved ( double  xorig,
double  yorig,
double  xnew,
double  ynew 
)
protected

◆ refCoordPicked()

void te::qt::widgets::TiePointLocatorWidget::refCoordPicked ( double  x,
double  y 
)
protected

◆ reset()

void te::qt::widgets::TiePointLocatorWidget::reset ( )
protected

◆ setAdjustLayer()

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.

◆ setReferenceLayer()

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.

◆ setReferenceTiePointMarkLegend()

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

◆ setSelectedTiePointMarkLegend()

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

◆ setTiePointMarkLegend()

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

◆ shotFirstPoint()

bool te::qt::widgets::TiePointLocatorWidget::shotFirstPoint ( )
protected

◆ shotSecondtPoint()

bool te::qt::widgets::TiePointLocatorWidget::shotSecondtPoint ( )
protected

◆ startUpNavigators()

void te::qt::widgets::TiePointLocatorWidget::startUpNavigators ( )
protected

◆ tiePointsTableUpdate()

void te::qt::widgets::TiePointLocatorWidget::tiePointsTableUpdate ( )
protected

Uptate the tie-points table widget.

◆ tiePointsUpdated

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

◆ transformationInfoUpdate()

void te::qt::widgets::TiePointLocatorWidget::transformationInfoUpdate ( )
protected

Uptate the current transformation information widgets.

Member Data Documentation

◆ m_adjLayer

te::map::AbstractLayerPtr te::qt::widgets::TiePointLocatorWidget::m_adjLayer
private

Layer with adjust imagem.

Definition at line 265 of file TiePointLocatorWidget.h.

◆ m_adjNavigator

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

Adjust raster navigator.

Definition at line 276 of file TiePointLocatorWidget.h.

◆ m_adjPoints

std::map< unsigned int, QPointF > te::qt::widgets::TiePointLocatorWidget::m_adjPoints
private

Display adjust coordinates.

Definition at line 285 of file TiePointLocatorWidget.h.

◆ m_currentTiePoint

te::gm::GTParameters::TiePoint te::qt::widgets::TiePointLocatorWidget::m_currentTiePoint
private

The current tie-point.

Definition at line 269 of file TiePointLocatorWidget.h.

◆ m_markRef

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.

◆ m_markSelected

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.

◆ m_markUnselected

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.

◆ m_refLayer

te::map::AbstractLayerPtr te::qt::widgets::TiePointLocatorWidget::m_refLayer
private

Layer with reference imagem.

Definition at line 264 of file TiePointLocatorWidget.h.

◆ m_refNavigator

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

Reference raster navigator.

Definition at line 275 of file TiePointLocatorWidget.h.

◆ m_refPoints

std::map< unsigned int, QPointF > te::qt::widgets::TiePointLocatorWidget::m_refPoints
private

Display reference coordinates.

Definition at line 284 of file TiePointLocatorWidget.h.

◆ m_rgbaMarkRef

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.

◆ m_rgbaMarkSelected

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.

◆ m_rgbaMarkUnselected

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.

◆ m_tiePointFirstCoord

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.

◆ m_tiePointIdCounter

unsigned int te::qt::widgets::TiePointLocatorWidget::m_tiePointIdCounter
private

A ID counter for new tie pointes inserted into m_tiePoints;.

Definition at line 271 of file TiePointLocatorWidget.h.

◆ m_tiePointParameters

te::qt::widgets::TiePointLocatorParametersWidget* te::qt::widgets::TiePointLocatorWidget::m_tiePointParameters
private

Tie Point parameters widget.

Definition at line 262 of file TiePointLocatorWidget.h.

◆ m_tiePoints

te::qt::widgets::TiePointData::TPContainerT te::qt::widgets::TiePointLocatorWidget::m_tiePoints
private

Internal tie-points container.

Definition at line 267 of file TiePointLocatorWidget.h.

◆ m_tiePointsSelected

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

List of selected tie points.

Definition at line 273 of file TiePointLocatorWidget.h.

◆ m_ui

std::unique_ptr<Ui::TiePointLocatorWidgetForm> te::qt::widgets::TiePointLocatorWidget::m_ui
private

Definition at line 260 of file TiePointLocatorWidget.h.


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