#include <MapItem.h>
Public Member Functions | |
| virtual void | changeCurrentTool (LayoutMode mode) |
| void | clearCurrentTool () |
| virtual ItemController * | getController () |
| virtual Observable * | getModel () |
| virtual std::string | getName () |
| virtual te::layout::Properties * | getProperties () const |
| virtual bool | isPrintable () |
| MapItem (ItemController *controller, Observable *o) | |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| virtual void | redraw (const double &scaleFactor=1.) |
| virtual void | refresh () |
| void | setPixmap (const QPixmap &pixmap) |
| virtual void | setPos (const QPointF &pos) |
| virtual void | setPPI (const double &ppi) |
| virtual void | setPrintable (bool print) |
| virtual void | setRect (QRectF rect) |
| void | setZValue (qreal z) |
| virtual void | updateObserver (ContextItem context) |
| virtual void | updateProperties (te::layout::Properties *properties) |
| virtual | ~MapItem () |
Protected Slots | |
| void | onDrawLayersFinished (const QMap< QString, QString > &errors) |
Protected Member Functions | |
| virtual void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
| virtual void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
| virtual void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) |
| virtual void | drawSelection (QPainter *painter) |
| virtual void | dropEvent (QGraphicsSceneDragDropEvent *event) |
| te::map::AbstractLayerPtr | getLayer () |
| virtual void | getMimeData (const QMimeData *mime) |
| virtual te::gm::Coord2D | getPosition () |
| std::list < te::map::AbstractLayerPtr > | getVisibleLayers () |
| virtual int | getZValueItem () |
| virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| virtual void | resizeEvent (QGraphicsSceneResizeEvent *event) |
| void | setCurrentTool (te::qt::widgets::AbstractTool *tool) |
| virtual void | setZValueItem (int z) |
Protected Attributes | |
| te::layout::ItemController * | m_controller |
| bool | m_grabbedByWidget |
| te::qt::widgets::MultiThreadMapDisplay * | m_mapDisplay |
| QMimeData * | m_mime |
| te::layout::Observable * | m_model |
| QPixmap | m_pixmap |
| double | m_ppi |
| bool | m_printable |
| QRectF | m_rect |
| te::qt::widgets::AbstractTool * | m_tool |
| te::qt::widgets::AbstractTreeItem * | m_treeItem |
| te::layout::MapItem::MapItem | ( | ItemController * | controller, |
| Observable * | o | ||
| ) |
Definition at line 75 of file MapItem.cpp.
References te::layout::Observable::getBox(), te::gm::Envelope::getHeight(), te::layout::Context::getInstance(), te::layout::Context::getScene(), te::layout::Context::getUtils(), te::gm::Envelope::getWidth(), te::layout::AbstractScene::insertItem(), m_mapDisplay, te::layout::ItemObserver::m_model, onDrawLayersFinished(), te::qt::widgets::MapDisplay::setBackgroundColor(), te::qt::widgets::MapDisplay::setResizeInterval(), and te::layout::Utils::viewportBox().
|
virtual |
Definition at line 113 of file MapItem.cpp.
|
virtual |
Definition at line 459 of file MapItem.cpp.
References te::qt::widgets::Zoom::Out, te::layout::TypeMapPan, te::layout::TypeMapZoomIn, and te::layout::TypeMapZoomOut.
Referenced by te::layout::Scene::setCurrentToolInSelectedMapItems().
| void te::layout::MapItem::clearCurrentTool | ( | ) |
Definition at line 446 of file MapItem.cpp.
|
protectedvirtual |
Definition at line 224 of file MapItem.cpp.
|
protectedvirtual |
Definition at line 234 of file MapItem.cpp.
|
protectedvirtual |
Definition at line 238 of file MapItem.cpp.
|
protectedvirtual |
Definition at line 188 of file MapItem.cpp.
References te::map::DashLine, and te::map::SolidLine.
|
protectedvirtual |
Definition at line 210 of file MapItem.cpp.
|
virtualinherited |
Definition at line 94 of file ItemObserver.cpp.
|
protected |
Definition at line 387 of file MapItem.cpp.
|
protectedvirtual |
Definition at line 346 of file MapItem.cpp.
|
virtualinherited |
Definition at line 99 of file ItemObserver.cpp.
Referenced by te::layout::changeMapVisitable(), te::layout::PropertiesOutside::changeMapVisitable(), te::layout::countType(), te::layout::PropertiesOutside::getMapModel(), and te::layout::maxTypeId().
|
virtualinherited |
Definition at line 104 of file ItemObserver.cpp.
Referenced by te::layout::getMapItem(), and te::layout::mapNameList().
|
protectedvirtual |
Implements te::layout::ItemObserver.
Definition at line 271 of file MapItem.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
virtualinherited |
Implements te::layout::Observer.
Definition at line 52 of file ItemObserver.cpp.
References te::layout::Properties::getProperties().
Referenced by te::layout::PropertiesOutside::getAllProperties(), te::layout::Scene::getItemsProperties(), te::layout::PropertiesOutside::intersection(), te::layout::ObjectInspectorOutside::itemsInspector(), te::layout::PropertiesOutside::onChangePropertyValue(), and te::layout::PropertiesOutside::sameProperties().
|
protected |
Definition at line 358 of file MapItem.cpp.
References te::map::GetVisibleLayers().
|
protectedvirtual |
Implements te::layout::ItemObserver.
Definition at line 427 of file MapItem.cpp.
|
virtualinherited |
Definition at line 89 of file ItemObserver.cpp.
Referenced by te::layout::Scene::changePrintVisibility(), and te::layout::Scene::getItemsProperties().
|
protectedvirtual |
Definition at line 291 of file MapItem.cpp.
References te::layout::isCurrentMapTools().
|
protectedvirtual |
Definition at line 307 of file MapItem.cpp.
References te::layout::isCurrentMapTools().
|
protectedvirtual |
Definition at line 323 of file MapItem.cpp.
References te::layout::isCurrentMapTools().
|
protectedslot |
Definition at line 399 of file MapItem.cpp.
References te::layout::MapController::refreshLayer().
Referenced by MapItem().
|
virtual |
Definition at line 166 of file MapItem.cpp.
|
virtualinherited |
Definition at line 57 of file ItemObserver.cpp.
Referenced by te::layout::VisualizationArea::createHorizontalRuler(), te::layout::BuildGraphicsItem::createItemGroup(), te::layout::View::createItemGroup(), te::layout::BuildGraphicsItem::createLegend(), te::layout::BuildGraphicsItem::createMap(), te::layout::BuildGraphicsItem::createMapGrid(), te::layout::VisualizationArea::createPaper(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createRectangle(), te::layout::BuildGraphicsItem::createScale(), te::layout::VisualizationArea::createVerticalRuler(), and te::layout::Scene::redrawItems().
|
virtualinherited |
Definition at line 63 of file ItemObserver.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::layout::Scene::insertItem().
|
protectedvirtual |
Definition at line 341 of file MapItem.cpp.
|
protected |
Definition at line 432 of file MapItem.cpp.
| void te::layout::MapItem::setPixmap | ( | const QPixmap & | pixmap | ) |
Definition at line 243 of file MapItem.cpp.
References te::layout::ItemModelObservable::getBox(), te::gm::Envelope::getHeight(), te::layout::Context::getInstance(), te::layout::Context::getUtils(), and te::gm::Envelope::getWidth().
|
virtual |
Definition at line 284 of file MapItem.cpp.
Referenced by te::layout::BuildGraphicsItem::createMap(), and te::layout::BuildGraphicsItem::createMapGrid().
|
virtualinherited |
Definition at line 70 of file ItemObserver.cpp.
Referenced by te::layout::VisualizationArea::createHorizontalRuler(), and te::layout::VisualizationArea::createVerticalRuler().
|
virtualinherited |
Definition at line 84 of file ItemObserver.cpp.
|
virtual |
Definition at line 262 of file MapItem.cpp.
| void te::layout::MapItem::setZValue | ( | qreal | z | ) |
Definition at line 420 of file MapItem.cpp.
Referenced by te::layout::BuildGraphicsItem::createMap(), and te::layout::BuildGraphicsItem::createMapGrid().
|
protectedvirtualinherited |
Definition at line 109 of file ItemObserver.cpp.
|
virtual |
Implements te::layout::ItemObserver.
Definition at line 129 of file MapItem.cpp.
References te::common::Free(), te::gm::Envelope::getHeight(), te::qt::widgets::GetImage(), te::layout::Context::getInstance(), te::layout::ContextItem::getPixmap(), te::layout::Context::getUtils(), te::gm::Envelope::getWidth(), te::gm::Envelope::isValid(), and te::layout::Utils::viewportBox().
|
virtualinherited |
Definition at line 75 of file ItemObserver.cpp.
Referenced by te::layout::PropertiesOutside::onChangePropertyValue().
|
protectedinherited |
Definition at line 81 of file ItemObserver.h.
|
protected |
Definition at line 116 of file MapItem.h.
Referenced by te::layout::MapGridItem::MapGridItem(), and MapItem().
|
protectedinherited |
Definition at line 82 of file ItemObserver.h.
Referenced by te::layout::ItemObserver::ItemObserver(), and MapItem().
|
protectedinherited |
Definition at line 83 of file ItemObserver.h.
|
protectedinherited |
Definition at line 84 of file ItemObserver.h.
Referenced by te::layout::HorizontalRulerItem::HorizontalRulerItem(), and te::layout::VerticalRulerItem::VerticalRulerItem().
|
protected |
|
protected |