A dialog used to execute tie points location. More...
#include <TiePointsLocatorDialog.h>
Classes | |
class | TiePointData |
Public Member Functions | |
void | getTiePoints (std::vector< te::gm::GTParameters::TiePoint > &tiePoints) const |
Get the current acquired tie-points. More... | |
TiePointsLocatorDialog (const te::map::DataSetLayerPtr &inLayer1Ptr, const te::map::DataSetLayerPtr &inLayer2Ptr, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic dialog which is a child of parent, with widget flags set to f. More... | |
~TiePointsLocatorDialog () | |
Destructor. More... | |
Protected Types | |
typedef std::map< unsigned int, TiePointData > | TPContainerT |
Tie-pints container type definition. More... | |
Protected Slots | |
void | on_addPushButton_clicked () |
void | on_advancedOptionsPushButton_clicked () |
void | on_autoAcquireTiePointsPushButton_clicked () |
void | on_deleteSelectedPushButton_clicked () |
void | on_mapDisplay1_coordTracked (QPointF &coordinate) |
void | on_mapDisplay1_extentChanged () |
void | on_mapDisplay1_keyPressed (int key) |
void | on_mapDisplay2_coordTracked (QPointF &coordinate) |
void | on_mapDisplay2_extentChanged () |
void | on_mapDisplay2_keyPressed (int key) |
void | on_okPushButton_clicked () |
void | on_selectAllPushButton_clicked () |
void | on_tiePointsTableWidget_itemSelectionChanged () |
void | on_unselectAllPushButton_clicked () |
Protected Member Functions | |
void | refreshMapDisplay1 () |
Refresh map display 1. More... | |
void | refreshMapDisplay2 () |
Refresh map display 2. More... | |
void | tiePointsTableUpdate () |
Uptate the tie-points table widget. More... | |
void | transformationInfoUpdate () |
Uptate the current transformation information widgets. More... | |
A dialog used to execute tie points location.
Definition at line 98 of file TiePointsLocatorDialog.h.
|
protected |
Tie-pints container type definition.
Definition at line 170 of file TiePointsLocatorDialog.h.
te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog | ( | const te::map::DataSetLayerPtr & | inLayer1Ptr, |
const te::map::DataSetLayerPtr & | inLayer2Ptr, | ||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic dialog which is a child of parent, with widget flags set to f.
inRaster1Ptr | Input raster layer 1 pointer. |
inRaster1Ptr | Input raster layer 2 pointer. |
parent | Parent widget pointer. |
f | Widget flags. |
Definition at line 111 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::MapDisplay::Center, te::rst::Raster::getExtent(), te::rst::Raster::getNumberOfBands(), te::map::GetRaster(), te::rst::Raster::getSRID(), m_advDialogPtr, m_coordTracking1, m_coordTracking2, m_inLayer1Ptr, m_inLayer2Ptr, m_mapDisplay1, m_mapDisplay2, m_mDEventFilter1, m_mDEventFilter2, m_raster1, m_raster2, m_selectedPointPattern, m_tempPointPattern, m_uiPtr, m_unselectedPointPattern, m_zoomClickEvent1, m_zoomClickEvent2, on_addPushButton_clicked(), on_advancedOptionsPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), on_deleteSelectedPushButton_clicked(), on_mapDisplay1_coordTracked(), on_mapDisplay1_extentChanged(), on_mapDisplay1_keyPressed(), on_mapDisplay2_coordTracked(), on_mapDisplay2_extentChanged(), on_mapDisplay2_keyPressed(), on_okPushButton_clicked(), on_selectAllPushButton_clicked(), on_tiePointsTableWidget_itemSelectionChanged(), on_unselectAllPushButton_clicked(), te::color::RGBAColor::setColor(), te::qt::widgets::MapDisplay::setExtent(), te::map::MapDisplay::setLayerList(), te::qt::widgets::MapDisplay::setResizePolicy(), te::qt::widgets::MapDisplay::setSRID(), TE_OPAQUE, TE_TRANSPARENT, and TPLDIALOG_P_PATTERN_W.
te::qt::widgets::TiePointsLocatorDialog::~TiePointsLocatorDialog | ( | ) |
Destructor.
Definition at line 245 of file TiePointsLocatorDialog.cpp.
References m_mapDisplay1, m_mapDisplay2, m_raster1, m_raster2, m_selectedPointPattern, m_tempPointPattern, m_uiPtr, m_unselectedPointPattern, and TPLDIALOG_P_PATTERN_W.
void te::qt::widgets::TiePointsLocatorDialog::getTiePoints | ( | std::vector< te::gm::GTParameters::TiePoint > & | tiePoints | ) | const |
Get the current acquired tie-points.
tiePoints | The current acquired tie-points. |
Definition at line 273 of file TiePointsLocatorDialog.cpp.
References m_tiePoints.
|
protectedslot |
Definition at line 457 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_acqType, m_lastInsertedTPID, te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_tiePoint, m_tiePoints, m_uiPtr, te::qt::widgets::TiePointsLocatorDialog::TiePointData::ManualAcquisitionT, and tiePointsTableUpdate().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 452 of file TiePointsLocatorDialog.cpp.
References m_advDialogPtr.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 294 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::TiePointsLocatorDialog::TiePointData::AutomaticAcquisitionT, te::rp::TiePointsLocator::execute(), te::rst::Grid::geoToGrid(), te::map::MapDisplay::getExtent(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rp::TiePointsLocator::initialize(), te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_acqType, m_advDialogPtr, te::qt::widgets::TiePointsLocatorAdvancedDialog::m_inputParameters, te::rp::TiePointsLocatorInputParameters::m_inRaster1Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster1Ptr, te::rp::TiePointsLocatorInputParameters::m_inRaster2Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster2Ptr, m_lastInsertedTPID, m_mapDisplay1, m_mapDisplay2, m_raster1, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaWidth, m_raster2, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaWidth, te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_tiePoint, te::rp::TiePointsLocator::OutputParameters::m_tiePoints, m_tiePoints, m_uiPtr, te::qt::widgets::TiePointsLocatorDialog::TiePointData::ManualAcquisitionT, and tiePointsTableUpdate().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 423 of file TiePointsLocatorDialog.cpp.
References m_lastInsertedTPID, m_tiePoints, m_uiPtr, and tiePointsTableUpdate().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 505 of file TiePointsLocatorDialog.cpp.
References te::rst::Grid::geoToGrid(), te::rst::Raster::getGrid(), m_lastTrackedTiePoint, m_raster1, and m_uiPtr.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 730 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::rst::Raster::getGrid(), te::rst::Grid::gridToGeo(), m_lastSelectedTiePoint, m_lastSelectedTiePointHasFirstOk, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay1, m_raster1, m_selectedPointPattern, m_tempPointPattern, m_tiePoints, m_uiPtr, m_unselectedPointPattern, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::Canvas::setWindow(), te::gm::Point::setX(), te::gm::Point::setY(), TPLDIALOG_P_PATTERN_W, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 478 of file TiePointsLocatorDialog.cpp.
References m_lastSelectedTiePoint, m_lastSelectedTiePointHasFirstOk, m_lastTrackedTiePoint, and refreshMapDisplay1().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 516 of file TiePointsLocatorDialog.cpp.
References te::rst::Grid::geoToGrid(), te::rst::Raster::getGrid(), m_lastTrackedTiePoint, m_raster2, and m_uiPtr.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 800 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::rst::Raster::getGrid(), te::rst::Grid::gridToGeo(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay2, m_raster2, m_selectedPointPattern, m_tiePoints, m_uiPtr, m_unselectedPointPattern, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::Canvas::setWindow(), te::gm::Point::setX(), te::gm::Point::setY(), TPLDIALOG_P_PATTERN_W, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 486 of file TiePointsLocatorDialog.cpp.
References te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_acqType, m_lastInsertedTPID, m_lastSelectedTiePoint, m_lastSelectedTiePointHasFirstOk, m_lastTrackedTiePoint, te::qt::widgets::TiePointsLocatorDialog::TiePointData::m_tiePoint, m_tiePoints, te::qt::widgets::TiePointsLocatorDialog::TiePointData::ManualAcquisitionT, and tiePointsTableUpdate().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 289 of file TiePointsLocatorDialog.cpp.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 413 of file TiePointsLocatorDialog.cpp.
References m_uiPtr.
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 723 of file TiePointsLocatorDialog.cpp.
References refreshMapDisplay1(), refreshMapDisplay2(), and transformationInfoUpdate().
Referenced by TiePointsLocatorDialog().
|
protectedslot |
Definition at line 418 of file TiePointsLocatorDialog.cpp.
References m_uiPtr.
Referenced by TiePointsLocatorDialog().
|
protected |
Refresh map display 1.
Definition at line 711 of file TiePointsLocatorDialog.cpp.
References te::map::MapDisplay::getExtent(), m_mapDisplay1, and te::qt::widgets::MapDisplay::setExtent().
Referenced by on_mapDisplay1_keyPressed(), on_tiePointsTableWidget_itemSelectionChanged(), and tiePointsTableUpdate().
|
protected |
Refresh map display 2.
Definition at line 717 of file TiePointsLocatorDialog.cpp.
References te::map::MapDisplay::getExtent(), m_mapDisplay2, and te::qt::widgets::MapDisplay::setExtent().
Referenced by on_tiePointsTableWidget_itemSelectionChanged(), and tiePointsTableUpdate().
|
protected |
Uptate the tie-points table widget.
Definition at line 527 of file TiePointsLocatorDialog.cpp.
References m_advDialogPtr, te::rp::TiePointsLocatorInputParameters::m_geomTransfName, te::qt::widgets::TiePointsLocatorAdvancedDialog::m_inputParameters, te::gm::GTParameters::m_tiePoints, m_tiePoints, m_uiPtr, te::common::AbstractFactory< GeometricTransformation, std::string >::make(), te::qt::widgets::TiePointsLocatorDialog::TiePointData::ManualAcquisitionT, refreshMapDisplay1(), refreshMapDisplay2(), and transformationInfoUpdate().
Referenced by on_addPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), on_deleteSelectedPushButton_clicked(), and on_mapDisplay2_keyPressed().
|
protected |
Uptate the current transformation information widgets.
Definition at line 629 of file TiePointsLocatorDialog.cpp.
References m_advDialogPtr, te::rp::TiePointsLocatorInputParameters::m_geomTransfName, te::qt::widgets::TiePointsLocatorAdvancedDialog::m_inputParameters, te::gm::GTParameters::m_tiePoints, m_tiePoints, m_uiPtr, and te::common::AbstractFactory< GeometricTransformation, std::string >::make().
Referenced by on_tiePointsTableWidget_itemSelectionChanged(), and tiePointsTableUpdate().
|
protected |
User interface.
Advanced options dialog.
Definition at line 176 of file TiePointsLocatorDialog.h.
Referenced by on_advancedOptionsPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), TiePointsLocatorDialog(), tiePointsTableUpdate(), and transformationInfoUpdate().
|
protected |
Coord tracking (map display 1);.
Definition at line 185 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Coord tracking (map display 2);.
Definition at line 186 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Definition at line 179 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Input data set layer 1 pointer.
Definition at line 180 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
A ID counter for new tie pointes inserted into m_tiePoints;.
Definition at line 193 of file TiePointsLocatorDialog.h.
Referenced by on_addPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), on_deleteSelectedPushButton_clicked(), and on_mapDisplay2_keyPressed().
|
protected |
The last mouse tracked tie-point by pressing any key over the map areas.
Definition at line 188 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_extentChanged(), on_mapDisplay1_keyPressed(), and on_mapDisplay2_keyPressed().
|
protected |
true if the last selected tie-point has the first part set;
Definition at line 189 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_extentChanged(), on_mapDisplay1_keyPressed(), and on_mapDisplay2_keyPressed().
|
protected |
The last mouse tracked tie-point by analysing the mouse move over the map areas.
Definition at line 187 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_coordTracked(), on_mapDisplay1_keyPressed(), on_mapDisplay2_coordTracked(), and on_mapDisplay2_keyPressed().
|
protected |
Map display 1.
Definition at line 177 of file TiePointsLocatorDialog.h.
Referenced by on_autoAcquireTiePointsPushButton_clicked(), on_mapDisplay1_extentChanged(), refreshMapDisplay1(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
Map display 2.
Definition at line 178 of file TiePointsLocatorDialog.h.
Referenced by on_autoAcquireTiePointsPushButton_clicked(), on_mapDisplay2_extentChanged(), refreshMapDisplay2(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
Map display 1 event filter.
Definition at line 190 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Map display 2 event filter.
Definition at line 191 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Input data set layer 2 pointer.
Definition at line 181 of file TiePointsLocatorDialog.h.
Referenced by on_autoAcquireTiePointsPushButton_clicked(), on_mapDisplay1_coordTracked(), on_mapDisplay1_extentChanged(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
Input raster 1 pointer.
Definition at line 182 of file TiePointsLocatorDialog.h.
Referenced by on_autoAcquireTiePointsPushButton_clicked(), on_mapDisplay2_coordTracked(), on_mapDisplay2_extentChanged(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
The display draw pattern used for selected points.
Definition at line 172 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_extentChanged(), on_mapDisplay2_extentChanged(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
The display draw pattern used for temporary points.
Definition at line 174 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_extentChanged(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
Internal tie-points container.
Definition at line 192 of file TiePointsLocatorDialog.h.
Referenced by getTiePoints(), on_addPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), on_deleteSelectedPushButton_clicked(), on_mapDisplay1_extentChanged(), on_mapDisplay2_extentChanged(), on_mapDisplay2_keyPressed(), tiePointsTableUpdate(), and transformationInfoUpdate().
|
protected |
Definition at line 175 of file TiePointsLocatorDialog.h.
Referenced by on_addPushButton_clicked(), on_autoAcquireTiePointsPushButton_clicked(), on_deleteSelectedPushButton_clicked(), on_mapDisplay1_coordTracked(), on_mapDisplay1_extentChanged(), on_mapDisplay2_coordTracked(), on_mapDisplay2_extentChanged(), on_selectAllPushButton_clicked(), on_unselectAllPushButton_clicked(), TiePointsLocatorDialog(), tiePointsTableUpdate(), transformationInfoUpdate(), and ~TiePointsLocatorDialog().
|
protected |
The display draw pattern used for unselected points.
Definition at line 173 of file TiePointsLocatorDialog.h.
Referenced by on_mapDisplay1_extentChanged(), on_mapDisplay2_extentChanged(), TiePointsLocatorDialog(), and ~TiePointsLocatorDialog().
|
protected |
Input raster 2 pointer.
Zoom click event (map display 1).
Definition at line 183 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().
|
protected |
Zoom click event (map display 2).
Definition at line 184 of file TiePointsLocatorDialog.h.
Referenced by TiePointsLocatorDialog().