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 59 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(), and PATTERN_SIZE.
|
protected |
Definition at line 194 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::getCenter(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
| void te::qt::widgets::ZoomInMapDisplayWidget::drawCursorPosition | ( | double | x, |
| double | y | ||
| ) |
Definition at line 112 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, PATTERN_SIZE, te::qt::widgets::Canvas::setWindow(), and TE_TRANSPARENT.
| te::gm::Envelope te::qt::widgets::ZoomInMapDisplayWidget::getCurrentExtent | ( | ) |
Definition at line 107 of file ZoomInMapDisplayWidget.cpp.
|
protectedslot |
Definition at line 138 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by ZoomInMapDisplayWidget().
|
protectedslot |
Definition at line 163 of file ZoomInMapDisplayWidget.cpp.
References te::gm::Envelope::isValid().
Referenced by ZoomInMapDisplayWidget().
|
protectedslot |
Definition at line 183 of file ZoomInMapDisplayWidget.cpp.
Referenced by ZoomInMapDisplayWidget().
| void te::qt::widgets::ZoomInMapDisplayWidget::setEnabled | ( | bool | status | ) |
Definition at line 131 of file ZoomInMapDisplayWidget.cpp.
| 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.
|
private |
Definition at line 108 of file ZoomInMapDisplayWidget.h.
|
private |
Definition at line 107 of file ZoomInMapDisplayWidget.h.
|
private |
Definition at line 100 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget().
|
private |
Represents the mark of a cursor point.
Definition at line 105 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget().
|
private |
Definition at line 102 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget().
|
private |
Represents the pattern of cursor point.
Definition at line 104 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget().
|
private |
Definition at line 110 of file ZoomInMapDisplayWidget.h.
Referenced by ZoomInMapDisplayWidget().