This class defines the map display ZoomIn, this component is only a specific map that shows the current extent in a larger scale. More...
#include <ZoomInMapDisplayWidget.h>
Public Member Functions | |
| void | drawCursorPosition (double x, double y) |
| te::gm::Envelope | getCurrentExtent () |
| void | setEnabled (bool status) |
| void | setList (std::list< te::map::AbstractLayerPtr > &layerList, int srid) |
| This method is used to set the selected layer for mixture model operation. More... | |
| ZoomInMapDisplayWidget (te::qt::widgets::MapDisplay *mapParent, QWidget *parent=0, Qt::WindowFlags f=0) | |
| ~ZoomInMapDisplayWidget () | |
Protected Slots | |
| void | onMapDisplayExtentChanged () |
| void | onParentMapDisplayExtentChanged () |
| void | onZoomFactorChanged () |
Protected Member Functions | |
| te::gm::Envelope | calculateExtent (te::gm::Envelope &e) |
Private Attributes | |
| bool | m_isEnabled |
| bool | m_itsMe |
| te::qt::widgets::MapDisplay * | m_mapDisplay |
| te::se::Mark * | m_mark |
| Represents the mark of a cursor point. More... | |
| te::qt::widgets::MapDisplay * | m_parentMapDisplay |
| te::color::RGBAColor ** | m_rgbaMark |
| Represents the pattern of cursor point. More... | |
| QSlider * | m_sliderZoomFactor |
This class defines the map display ZoomIn, this component is only a specific map that shows the current extent in a larger scale.
Definition at line 61 of file ZoomInMapDisplayWidget.h.
| te::qt::widgets::ZoomInMapDisplayWidget::ZoomInMapDisplayWidget | ( | te::qt::widgets::MapDisplay * | mapParent, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 48 of file ZoomInMapDisplayWidget.cpp.
References te::qt::widgets::MapDisplay::Center, te::se::CreateFill(), te::se::CreateMark(), te::se::CreateStroke(), te::common::Singleton< MarkRendererManager >::getInstance(), m_mapDisplay, m_mark, m_parentMapDisplay, m_rgbaMark, m_sliderZoomFactor, onMapDisplayExtentChanged(), onParentMapDisplayExtentChanged(), onZoomFactorChanged(), PATTERN_SIZE, and te::qt::widgets::MapDisplay::setResizePolicy().
| te::qt::widgets::ZoomInMapDisplayWidget::~ZoomInMapDisplayWidget | ( | ) |
Definition at line 86 of file ZoomInMapDisplayWidget.cpp.
References te::common::Free(), m_mark, m_rgbaMark, and PATTERN_SIZE.
|
protected |
Definition at line 194 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::getCenter(), te::qt::widgets::MapDisplay::getHeight(), te::gm::Envelope::getHeight(), te::qt::widgets::MapDisplay::getWidth(), te::gm::Envelope::getWidth(), m_mapDisplay, m_parentMapDisplay, m_sliderZoomFactor, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by onParentMapDisplayExtentChanged(), onZoomFactorChanged(), and setList().
| void te::qt::widgets::ZoomInMapDisplayWidget::drawCursorPosition | ( | double | x, |
| double | y | ||
| ) |
Definition at line 112 of file ZoomInMapDisplayWidget.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), m_isEnabled, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_rgbaMark, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, PATTERN_SIZE, te::qt::widgets::Canvas::setWindow(), and TE_TRANSPARENT.
Referenced by te::qt::af::MapDisplay::onCoordTracked(), and te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged().
| te::gm::Envelope te::qt::widgets::ZoomInMapDisplayWidget::getCurrentExtent | ( | ) |
Definition at line 107 of file ZoomInMapDisplayWidget.cpp.
References te::map::MapDisplay::getExtent(), and m_mapDisplay.
|
protectedslot |
Definition at line 138 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::getCenter(), te::map::MapDisplay::getExtent(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), m_isEnabled, m_itsMe, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_parentMapDisplay, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::MapDisplay::setExtent(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by ZoomInMapDisplayWidget().
|
protectedslot |
Definition at line 163 of file ZoomInMapDisplayWidget.cpp.
References calculateExtent(), te::map::MapDisplay::getExtent(), te::gm::Envelope::isValid(), m_isEnabled, m_itsMe, m_mapDisplay, m_parentMapDisplay, and te::qt::widgets::MapDisplay::setExtent().
Referenced by setEnabled(), and ZoomInMapDisplayWidget().
|
protectedslot |
Definition at line 183 of file ZoomInMapDisplayWidget.cpp.
References calculateExtent(), te::map::MapDisplay::getExtent(), m_itsMe, m_mapDisplay, m_parentMapDisplay, and te::qt::widgets::MapDisplay::setExtent().
Referenced by ZoomInMapDisplayWidget().
| void te::qt::widgets::ZoomInMapDisplayWidget::setEnabled | ( | bool | status | ) |
Definition at line 131 of file ZoomInMapDisplayWidget.cpp.
References m_isEnabled, and onParentMapDisplayExtentChanged().
Referenced by te::qt::widgets::RasterNavigatorWidget::onExtraDisplaysToggled().
| void te::qt::widgets::ZoomInMapDisplayWidget::setList | ( | std::list< te::map::AbstractLayerPtr > & | layerList, |
| int | srid | ||
| ) |
This method is used to set the selected layer for mixture model operation.
| layer | The layer ptr |
Definition at line 92 of file ZoomInMapDisplayWidget.cpp.
References calculateExtent(), te::map::MapDisplay::getExtent(), m_mapDisplay, m_parentMapDisplay, te::qt::widgets::MapDisplay::setExtent(), te::map::MapDisplay::setLayerList(), and te::qt::widgets::MapDisplay::setSRID().
Referenced by te::qt::af::MapDisplay::draw(), te::qt::af::MapDisplay::fit(), te::qt::widgets::RasterNavigatorWidget::removeVectorial(), te::qt::widgets::RasterNavigatorWidget::set(), and te::qt::widgets::RasterNavigatorWidget::setVectorial().
|
private |
Definition at line 110 of file ZoomInMapDisplayWidget.h.
Referenced by drawCursorPosition(), onMapDisplayExtentChanged(), onParentMapDisplayExtentChanged(), and setEnabled().
|
private |
Definition at line 109 of file ZoomInMapDisplayWidget.h.
Referenced by onMapDisplayExtentChanged(), onParentMapDisplayExtentChanged(), and onZoomFactorChanged().
|
private |
Definition at line 102 of file ZoomInMapDisplayWidget.h.
Referenced by calculateExtent(), drawCursorPosition(), getCurrentExtent(), onMapDisplayExtentChanged(), onParentMapDisplayExtentChanged(), onZoomFactorChanged(), setList(), and ZoomInMapDisplayWidget().
|
private |
Represents the mark of a cursor point.
Definition at line 107 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget(), and ~ZoomInMapDisplayWidget().
|
private |
Definition at line 104 of file ZoomInMapDisplayWidget.h.
Referenced by calculateExtent(), onMapDisplayExtentChanged(), onParentMapDisplayExtentChanged(), onZoomFactorChanged(), setList(), and ZoomInMapDisplayWidget().
|
private |
Represents the pattern of cursor point.
Definition at line 106 of file ZoomInMapDisplayWidget.h.
Referenced by drawCursorPosition(), ZoomInMapDisplayWidget(), and ~ZoomInMapDisplayWidget().
|
private |
Definition at line 112 of file ZoomInMapDisplayWidget.h.
Referenced by calculateExtent(), and ZoomInMapDisplayWidget().