This class is used to define a widget for tie point acquirement. More...
#include <TiePointLocatorWidget.h>
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::RasterNavigatorWidget * | m_adjNavigator |
Adjust raster navigator. More... | |
te::gm::GTParameters::TiePoint | m_currentTiePoint |
The current tie-point. More... | |
te::se::Mark * | m_markRef |
Represents the mark of a reference tie point. More... | |
te::se::Mark * | m_markSelected |
Represents the mark of a selected tie point. More... | |
te::se::Mark * | m_markUnselected |
Represents the mark of a unselected tie point. More... | |
te::map::AbstractLayerPtr | m_refLayer |
Layer with reference imagem. More... | |
te::qt::widgets::RasterNavigatorWidget * | m_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::TiePointLocatorParametersWidget * | m_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 |
This class is used to define a widget for tie point acquirement.
Definition at line 94 of file TiePointLocatorWidget.h.
te::qt::widgets::TiePointLocatorWidget::TiePointLocatorWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 92 of file TiePointLocatorWidget.cpp.
References te::se::CreateFill(), te::se::CreateMark(), te::se::CreateStroke(), te::common::Singleton< MarkRendererManager >::getInstance(), getPixmap(), te::qt::widgets::TiePointLocatorParametersWidget::getWidgetForm(), m_markRef, m_markSelected, m_markUnselected, m_rgbaMarkRef, m_rgbaMarkSelected, m_rgbaMarkUnselected, m_tiePointParameters, m_ui, onAddToolButtonClicked(), onAutoAcquireTiePointsToolButtonClicked(), onDeleteSelectedToolButtonClicked(), onDoneToolButtonClicked(), onRefreshToolButtonClicked(), onSelectAllToolButtonClicked(), onSRIDPushButtonClicked(), onTiePointsTableWidgetItemSelectionChanged(), onTiePointsUpdated(), onUnselectAllToolButtonClicked(), PATTERN_SIZE, setReferenceTiePointMarkLegend(), setSelectedTiePointMarkLegend(), setTiePointMarkLegend(), startUpNavigators(), and tiePointsUpdated().
te::qt::widgets::TiePointLocatorWidget::~TiePointLocatorWidget | ( | ) |
Definition at line 170 of file TiePointLocatorWidget.cpp.
References te::common::Free(), and PATTERN_SIZE.
|
protected |
Definition at line 413 of file TiePointLocatorWidget.cpp.
References te::da::GetFirstPropertyPos(), te::qt::widgets::TiePointData::m_acqType, te::qt::widgets::TiePointData::m_tiePoint, te::qt::widgets::TiePointData::ManualAcquisitionT, and te::dt::RASTER_TYPE.
|
protected |
Definition at line 462 of file TiePointLocatorWidget.cpp.
|
signal |
|
protected |
Definition at line 986 of file TiePointLocatorWidget.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::da::GetFirstPropertyPos(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::TiePointData::m_selected, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, PATTERN_SIZE, te::dt::RASTER_TYPE, te::qt::widgets::Canvas::setWindow(), te::gm::Point::setX(), te::gm::Point::setY(), TE_TRANSPARENT, te::gm::Coord2D::x, and te::gm::Coord2D::y.
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.
|
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.
coordRef | The tie point reference coord. |
Definition at line 252 of file TiePointLocatorWidget.cpp.
const te::qt::widgets::TiePointData::TPContainerT & te::qt::widgets::TiePointLocatorWidget::getTiePointContainer | ( | ) |
Get 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.
tiePoints | The 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.
tiePoints | The current acquired tie-points. |
Definition at line 223 of file TiePointLocatorWidget.cpp.
References te::da::GetFirstPropertyPos(), and te::dt::RASTER_TYPE.
|
protectedslot |
Definition at line 681 of file TiePointLocatorWidget.cpp.
References te::qt::widgets::TiePointData::m_acqType, te::qt::widgets::TiePointData::m_tiePoint, and te::qt::widgets::TiePointData::ManualAcquisitionT.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 720 of file TiePointLocatorWidget.cpp.
|
protectedslot |
Definition at line 732 of file TiePointLocatorWidget.cpp.
|
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().
|
protectedslot |
Definition at line 651 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 710 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 715 of file TiePointLocatorWidget.cpp.
|
protectedslot |
Definition at line 725 of file TiePointLocatorWidget.cpp.
|
protectedslot |
Definition at line 705 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 641 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 744 of file TiePointLocatorWidget.cpp.
References te::qt::widgets::SRSManagerDialog::getSelectedSRS().
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 700 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 739 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protectedslot |
Definition at line 646 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protected |
Definition at line 392 of file TiePointLocatorWidget.cpp.
References te::da::GetFirstPropertyPos(), and te::dt::RASTER_TYPE.
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.
layer | The layer ptr |
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.
layer | The layer ptr |
Definition at line 260 of file TiePointLocatorWidget.cpp.
References te::da::GetFirstPropertyPos(), and te::dt::RASTER_TYPE.
|
protected |
Definition at line 457 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protected |
Definition at line 452 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protected |
Definition at line 447 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protected |
Definition at line 951 of file TiePointLocatorWidget.cpp.
Referenced by TiePointLocatorWidget().
|
protected |
Uptate the tie-points table widget.
Definition at line 759 of file TiePointLocatorWidget.cpp.
References te::gm::GTParameters::m_tiePoints, te::common::AbstractFactory< GeometricTransformation, std::string >::make(), and te::qt::widgets::TiePointData::ManualAcquisitionT.
|
signal |
Referenced by TiePointLocatorWidget().
|
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().
|
private |
Layer with adjust imagem.
Definition at line 231 of file TiePointLocatorWidget.h.
|
private |
Adjust raster navigator.
Definition at line 242 of file TiePointLocatorWidget.h.
|
private |
The current tie-point.
Definition at line 235 of file TiePointLocatorWidget.h.
|
private |
Represents the mark of a reference tie point.
Definition at line 249 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Represents the mark of a selected tie point.
Definition at line 247 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Represents the mark of a unselected tie point.
Definition at line 248 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Layer with reference imagem.
Definition at line 230 of file TiePointLocatorWidget.h.
|
private |
Reference raster navigator.
Definition at line 241 of file TiePointLocatorWidget.h.
|
private |
Represents the pattern of reference tie point.
Definition at line 246 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Represents the pattern of a selected tie point.
Definition at line 244 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Represents the pattern of a unselected tie point.
Definition at line 245 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
true if the tie-point has the first part set;
Definition at line 236 of file TiePointLocatorWidget.h.
|
private |
A ID counter for new tie pointes inserted into m_tiePoints;.
Definition at line 237 of file TiePointLocatorWidget.h.
|
private |
Tie Point parameters widget.
Definition at line 228 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().
|
private |
Internal tie-points container.
Definition at line 233 of file TiePointLocatorWidget.h.
|
private |
List of selected tie points.
Definition at line 239 of file TiePointLocatorWidget.h.
|
private |
Definition at line 226 of file TiePointLocatorWidget.h.
Referenced by TiePointLocatorWidget().