A dialog used to check geometries validity. More...
#include <CheckGeomValidityDialog.h>
Public Member Functions | |
| CheckGeomValidityDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers, te::map::AbstractLayerPtr selectedLayer=0) |
| void | setMapDisplay (te::qt::widgets::MapDisplay *md) |
| ~CheckGeomValidityDialog () | |
| Destructor. More... | |
Protected Slots | |
| void | onDisplayPaintEvent (QPainter *painter) |
| void | onExtentChanged () |
| void | onFixPushButtonClicked () |
| void | onTableWidgetItemDoubleClicked (QTableWidgetItem *item) |
| void | onVerifyPushButtonClicked () |
Private Member Functions | |
| void | drawMark () |
Private Attributes | |
| std::unique_ptr< te::gm::Point > | m_currentCoord |
| te::map::AbstractLayerPtr | m_currentLayer |
| bool | m_drawMark |
| te::qt::widgets::MapDisplay * | m_mapDisplay |
| std::unique_ptr< QPixmap > | m_markPixmap |
| std::unique_ptr< te::da::ObjectIdSet > | m_oidSet |
| std::unique_ptr< Ui::CheckGeomValidityDialogForm > | m_ui |
A dialog used to check geometries validity.
Definition at line 58 of file CheckGeomValidityDialog.h.
| te::vp::CheckGeomValidityDialog::CheckGeomValidityDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| te::vp::CheckGeomValidityDialog::~CheckGeomValidityDialog | ( | ) |
Destructor.
Definition at line 71 of file CheckGeomValidityDialog.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), and m_mapDisplay.
|
private |
Definition at line 327 of file CheckGeomValidityDialog.cpp.
References te::qt::widgets::Config2DrawPolygons(), te::qt::widgets::Canvas::draw(), te::map::MapDisplay::getExtent(), te::gm::GetGeomFromEnvelope(), te::qt::widgets::Canvas::getMatrix(), m_currentCoord, m_currentLayer, m_drawMark, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_markPixmap, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::Canvas::setDevice(), and te::qt::widgets::Canvas::setWindow().
Referenced by onExtentChanged().
|
protectedslot |
Definition at line 371 of file CheckGeomValidityDialog.cpp.
References te::map::MapDisplay::getExtent(), m_drawMark, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_markPixmap, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
Referenced by setMapDisplay().
|
protectedslot |
Definition at line 322 of file CheckGeomValidityDialog.cpp.
References drawMark().
Referenced by setMapDisplay().
|
protectedslot |
Definition at line 212 of file CheckGeomValidityDialog.cpp.
References te::da::GetDataSource(), m_currentLayer, m_oidSet, m_ui, and te::vp::MakeGeometryValid::makeValid().
|
protectedslot |
Definition at line 270 of file CheckGeomValidityDialog.cpp.
References te::map::MapDisplay::getExtent(), te::map::MapDisplay::getSRID(), te::gm::TopologyValidationError::m_coordinate, m_currentCoord, m_currentLayer, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_ui, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::MapDisplay::setExtent(), te::qt::widgets::MapDisplay::setSRID(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protectedslot |
Definition at line 91 of file CheckGeomValidityDialog.cpp.
References te::da::ObjectId::addValue(), te::gm::CheckValidity(), te::da::GetFirstSpatialPropertyPos(), te::da::PrimaryKey::getProperties(), te::common::TaskProgress::isActive(), m_currentLayer, te::gm::TopologyValidationError::m_message, m_oidSet, m_ui, ObjectId(), te::common::TaskProgress::pulse(), te::common::TaskProgress::setTotalSteps(), and te::common::Exception::what().
| void te::vp::CheckGeomValidityDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers, |
| te::map::AbstractLayerPtr | selectedLayer = 0 |
||
| ) |
Definition at line 76 of file CheckGeomValidityDialog.cpp.
References m_ui.
Referenced by te::qt::plugins::vp::CheckGeomValidityAction::onActionActivated().
| void te::vp::CheckGeomValidityDialog::setMapDisplay | ( | te::qt::widgets::MapDisplay * | md | ) |
Definition at line 314 of file CheckGeomValidityDialog.cpp.
References m_mapDisplay, onDisplayPaintEvent(), and onExtentChanged().
Referenced by te::qt::plugins::vp::CheckGeomValidityAction::onActionActivated().
|
private |
Definition at line 97 of file CheckGeomValidityDialog.h.
Referenced by drawMark(), and onTableWidgetItemDoubleClicked().
|
private |
Definition at line 95 of file CheckGeomValidityDialog.h.
Referenced by drawMark(), onFixPushButtonClicked(), onTableWidgetItemDoubleClicked(), and onVerifyPushButtonClicked().
|
private |
Definition at line 103 of file CheckGeomValidityDialog.h.
Referenced by drawMark(), and onDisplayPaintEvent().
|
private |
Definition at line 93 of file CheckGeomValidityDialog.h.
Referenced by drawMark(), onDisplayPaintEvent(), onTableWidgetItemDoubleClicked(), setMapDisplay(), and ~CheckGeomValidityDialog().
|
private |
Definition at line 101 of file CheckGeomValidityDialog.h.
Referenced by drawMark(), and onDisplayPaintEvent().
|
private |
Definition at line 99 of file CheckGeomValidityDialog.h.
Referenced by onFixPushButtonClicked(), and onVerifyPushButtonClicked().
|
private |
Definition at line 91 of file CheckGeomValidityDialog.h.
Referenced by onFixPushButtonClicked(), onTableWidgetItemDoubleClicked(), onVerifyPushButtonClicked(), and setLayers().