All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:

Signals

void doneAcquiredTiePoints ()
 
void tiePointsUpdated ()
 

Public Member Functions

Ui::TiePointLocatorWidgetForm * getForm () const
 
void getOutputResolution (double &resX, double &resY)
 
void getOutputSRID (int &srid)
 
bool getReferenceTiePointCoord (te::gm::Coord2D &coordRef)
 Get tie point reference coord that does not have an adjust coordenate. More...
 
const
te::qt::widgets::TiePointData::TPContainerT
getTiePointContainer ()
 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...
 
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 onAdjPointPicked (double x, double y)
 
void onAutoAcquireTiePointsToolButtonClicked ()
 
void onDeleteSelectedToolButtonClicked ()
 
void onDoneToolButtonClicked ()
 
void onRefMapDisplayExtentChanged ()
 
void onRefPointPicked (double x, double y)
 
void onRefreshToolButtonClicked ()
 
void onSelectAllToolButtonClicked ()
 
void onSRIDPushButtonClicked ()
 
void onTiePointsTableWidgetItemSelectionChanged ()
 
void onTiePointsUpdated ()
 
void onUnselectAllToolButtonClicked ()
 

Protected Member Functions

void adjCoordPicked (double x, double y)
 
void createSelection (int initialIdx, int nPos)
 
void drawTiePoints ()
 
QPixmap getPixmap (te::color::RGBAColor **rgba)
 
void refCoordPicked (double x, double y)
 
void setReferenceTiePointMarkLegend (QPixmap p)
 
void setSelectedTiePointMarkLegend (QPixmap p)
 
void setTiePointMarkLegend (QPixmap p)
 
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...
 
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...
 
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...
 
bool m_tiePointHasFirstCoord
 true 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::auto_ptr
< Ui::TiePointLocatorWidgetForm > 
m_ui
 

Detailed Description

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

Definition at line 94 of file TiePointLocatorWidget.h.

Constructor & Destructor Documentation

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

Definition at line 170 of file TiePointLocatorWidget.cpp.

References te::common::Free(), and PATTERN_SIZE.

Member Function Documentation

void te::qt::widgets::TiePointLocatorWidget::adjCoordPicked ( double  x,
double  y 
)
protected
void te::qt::widgets::TiePointLocatorWidget::createSelection ( int  initialIdx,
int  nPos 
)
protected

Definition at line 462 of file TiePointLocatorWidget.cpp.

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

Definition at line 182 of file TiePointLocatorWidget.cpp.

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

Definition at line 386 of file TiePointLocatorWidget.cpp.

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

Definition at line 381 of file TiePointLocatorWidget.cpp.

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

Definition at line 1103 of file TiePointLocatorWidget.cpp.

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

Referenced by TiePointLocatorWidget().

bool te::qt::widgets::TiePointLocatorWidget::getReferenceTiePointCoord ( te::gm::Coord2D coordRef)

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

Parameters
coordRefThe tie point reference coord.
Returns
The m_tiePointHasFirstCoord status.

Definition at line 252 of file TiePointLocatorWidget.cpp.

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 247 of file TiePointLocatorWidget.cpp.

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 187 of file TiePointLocatorWidget.cpp.

References te::da::GetFirstPropertyPos(), 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 223 of file TiePointLocatorWidget.cpp.

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

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

Definition at line 720 of file TiePointLocatorWidget.cpp.

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

Definition at line 732 of file TiePointLocatorWidget.cpp.

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

Definition at line 477 of file TiePointLocatorWidget.cpp.

References te::qt::widgets::TiePointData::AutomaticAcquisitionT, te::rp::TiePointsLocator::execute(), te::rst::Grid::geoToGrid(), te::da::GetFirstPropertyPos(), te::rst::Raster::getGrid(), te::rp::Module::getLastLogStr(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rp::TiePointsLocator::initialize(), te::qt::widgets::TiePointData::m_acqType, 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, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationRescaleFactor, te::qt::widgets::TiePointData::m_tiePoint, te::rp::TiePointsLocator::OutputParameters::m_tiePoints, te::qt::widgets::TiePointData::ManualAcquisitionT, te::dt::RASTER_TYPE, and te::gm::Envelope::transform().

Referenced by TiePointLocatorWidget().

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

Definition at line 651 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 710 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 715 of file TiePointLocatorWidget.cpp.

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

Definition at line 725 of file TiePointLocatorWidget.cpp.

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

Definition at line 705 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 641 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 700 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 739 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 646 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

void te::qt::widgets::TiePointLocatorWidget::refCoordPicked ( double  x,
double  y 
)
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 321 of file TiePointLocatorWidget.cpp.

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

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 260 of file TiePointLocatorWidget.cpp.

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

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

Definition at line 457 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 452 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 447 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 951 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Referenced by TiePointLocatorWidget().

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

Uptate the current transformation information widgets.

Definition at line 870 of file TiePointLocatorWidget.cpp.

References te::gm::GTParameters::m_tiePoints, and te::common::AbstractFactory< GeometricTransformation, std::string >::make().

Member Data Documentation

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

Layer with adjust imagem.

Definition at line 231 of file TiePointLocatorWidget.h.

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

Adjust raster navigator.

Definition at line 242 of file TiePointLocatorWidget.h.

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

The current tie-point.

Definition at line 235 of file TiePointLocatorWidget.h.

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

Represents the mark of a reference tie point.

Definition at line 249 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Represents the mark of a selected tie point.

Definition at line 247 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Represents the mark of a unselected tie point.

Definition at line 248 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Layer with reference imagem.

Definition at line 230 of file TiePointLocatorWidget.h.

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

Reference raster navigator.

Definition at line 241 of file TiePointLocatorWidget.h.

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

Represents the pattern of reference tie point.

Definition at line 246 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Represents the pattern of a selected tie point.

Definition at line 244 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Represents the pattern of a unselected tie point.

Definition at line 245 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

bool te::qt::widgets::TiePointLocatorWidget::m_tiePointHasFirstCoord
private

true if the tie-point has the first part set;

Definition at line 236 of file TiePointLocatorWidget.h.

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

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

Definition at line 237 of file TiePointLocatorWidget.h.

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

Tie Point parameters widget.

Definition at line 228 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Internal tie-points container.

Definition at line 233 of file TiePointLocatorWidget.h.

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

List of selected tie points.

Definition at line 239 of file TiePointLocatorWidget.h.

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

Definition at line 226 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().


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