All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 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, te::qt::widgets::MapDisplay *map)
 
void onAutoAcquireTiePointsToolButtonClicked ()
 
void onDeleteSelectedToolButtonClicked ()
 
void onDoneToolButtonClicked ()
 
void onRefMapDisplayExtentChanged ()
 
void onRefPointPicked (double x, double y, te::qt::widgets::MapDisplay *map)
 
void onRefreshToolButtonClicked ()
 
void onSelectAllToolButtonClicked ()
 
void onSRIDPushButtonClicked ()
 
void onTiePointsTableWidgetItemSelectionChanged ()
 
void onTiePointsUpdated ()
 
void onUnselectAllToolButtonClicked ()
 

Protected Member Functions

void adjCoordPicked (double x, double y)
 
void createSelection (int initialId)
 
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 startAdvancedOptions ()
 Fill interface widget with initial values. More...
 
void startUpNavigators ()
 
void tiePointsTableUpdate ()
 Uptate the tie-points table widget. More...
 
void transformationInfoUpdate ()
 Uptate the current transformation information widgets. More...
 
void updateAdvancedOptions ()
 Update tie point values with advanced options changed values. 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::rp::TiePointsLocator::InputParameters m_inputParameters
 The current parameters. 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::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 93 of file TiePointLocatorWidget.h.

Constructor & Destructor Documentation

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

Definition at line 163 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  initialId)
protected

Definition at line 383 of file TiePointLocatorWidget.cpp.

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

Definition at line 175 of file TiePointLocatorWidget.cpp.

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

Definition at line 307 of file TiePointLocatorWidget.cpp.

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

Definition at line 302 of file TiePointLocatorWidget.cpp.

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

Definition at line 1097 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 221 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 216 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 180 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::onAddToolButtonClicked ( )
protectedslot
void te::qt::widgets::TiePointLocatorWidget::onAdjMapDisplayExtentChanged ( )
protectedslot

Definition at line 605 of file TiePointLocatorWidget.cpp.

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

Definition at line 617 of file TiePointLocatorWidget.cpp.

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

Definition at line 399 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::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rp::TiePointsLocator::initialize(), te::qt::widgets::TiePointData::m_acqType, te::rp::TiePointsLocator::InputParameters::m_enableProgress, te::rp::TiePointsLocator::InputParameters::m_inRaster1Bands, te::rp::TiePointsLocator::InputParameters::m_inRaster1Ptr, te::rp::TiePointsLocator::InputParameters::m_inRaster2Bands, te::rp::TiePointsLocator::InputParameters::m_inRaster2Ptr, te::rp::TiePointsLocator::InputParameters::m_maxR1ToR2Offset, te::rp::TiePointsLocator::InputParameters::m_pixelSizeXRelation, te::rp::TiePointsLocator::InputParameters::m_pixelSizeYRelation, te::rp::TiePointsLocator::InputParameters::m_raster1TargetAreaColStart, te::rp::TiePointsLocator::InputParameters::m_raster1TargetAreaHeight, te::rp::TiePointsLocator::InputParameters::m_raster1TargetAreaLineStart, te::rp::TiePointsLocator::InputParameters::m_raster1TargetAreaWidth, te::rp::TiePointsLocator::InputParameters::m_raster2TargetAreaColStart, te::rp::TiePointsLocator::InputParameters::m_raster2TargetAreaHeight, te::rp::TiePointsLocator::InputParameters::m_raster2TargetAreaLineStart, te::rp::TiePointsLocator::InputParameters::m_raster2TargetAreaWidth, te::qt::widgets::TiePointData::m_tiePoint, te::rp::TiePointsLocator::OutputParameters::m_tiePoints, te::qt::widgets::TiePointData::ManualAcquisitionT, and te::dt::RASTER_TYPE.

Referenced by TiePointLocatorWidget().

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

Definition at line 534 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 595 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 600 of file TiePointLocatorWidget.cpp.

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

Definition at line 610 of file TiePointLocatorWidget.cpp.

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

Definition at line 588 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 524 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 583 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 624 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 529 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 266 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 229 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 378 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 373 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 368 of file TiePointLocatorWidget.cpp.

Referenced by TiePointLocatorWidget().

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

Definition at line 945 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 749 of file TiePointLocatorWidget.cpp.

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

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

Member Data Documentation

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

Layer with adjust imagem.

Definition at line 227 of file TiePointLocatorWidget.h.

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

Adjust raster navigator.

Definition at line 241 of file TiePointLocatorWidget.h.

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

The current tie-point.

Definition at line 233 of file TiePointLocatorWidget.h.

te::rp::TiePointsLocator::InputParameters te::qt::widgets::TiePointLocatorWidget::m_inputParameters
private

The current parameters.

Definition at line 231 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 248 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 246 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 247 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().

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

Layer with reference imagem.

Definition at line 226 of file TiePointLocatorWidget.h.

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

Reference raster navigator.

Definition at line 240 of file TiePointLocatorWidget.h.

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

Represents the pattern of reference tie point.

Definition at line 245 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 243 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 244 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 234 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 235 of file TiePointLocatorWidget.h.

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

Internal tie-points container.

Definition at line 229 of file TiePointLocatorWidget.h.

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

List of selected tie points.

Definition at line 237 of file TiePointLocatorWidget.h.

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

Definition at line 224 of file TiePointLocatorWidget.h.

Referenced by TiePointLocatorWidget().


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