A multi thread Qt4 widget to control the display of a set of layers. More...
#include <MultiThreadMapDisplay.h>
Public Types | |
| enum | ResizePolicy { Fixed, Cut, Center } |
| Defines the resize policy for map display. More... | |
Public Slots | |
| void | showGraphicScale (bool visible) |
| Shows / hides the graphic scale. More... | |
| void | showGrid (bool visible) |
Signals | |
| void | displayPaintEvent (QPainter *) |
| void | displaySridChanged () |
| void | drawLayersFinished (const QMap< QString, QString > &errors) |
| This signal is emitted when the draw process ends. i.e. when all layers have been drawn. More... | |
| void | extentChanged () |
Public Member Functions | |
| virtual QColor | getBackgroundColor () |
| Gets the map display background color. More... | |
| virtual double | getDigitalization () const |
| Gets the digitalization factor. More... | |
| virtual QPixmap * | getDisplayPixmap () const |
| It returns the map display pixmap. More... | |
| virtual void | getDPI (int &dpiX, int &dpiY) const |
| Returns the current values of the DPI in X-axis and in Y-axis. More... | |
| virtual QPixmap * | getDraftPixmap () const |
| It returns the map display draft pixmap. More... | |
| virtual const te::gm::Envelope & | getExtent () const |
| It returns the world extent showned by the MapDisplay. More... | |
| ScaleWidget * | getGraphicScale () const |
| Returns the pointer for the graphic scale object;. More... | |
| Grid * | getGrid () const |
| virtual te::map::AlignType | getHAlign () const |
| It returns the MapDisplay current horizontal align. More... | |
| virtual std::list< AbstractLayerPtr > | getLayerList () const |
| virtual double | getScale () const |
| Calculates and return the current scale. More... | |
| virtual int | getSRID () const |
| It return the Spatial Reference System used by the Map Display. More... | |
| virtual te::map::AlignType | getVAlign () const |
| It returns the MapDisplay current vertical align. More... | |
| bool | isDrawing () const |
| Returns if the map display is drawing. More... | |
| void | resizeEvent (QResizeEvent *e) |
| This event handler receives widget resize events wich are passed in the event parameter. More... | |
| virtual void | restoreDPI () |
| Returns the default value of the DPI. In this case, the values from the device will be acquired. More... | |
| virtual void | setAlign (te::map::AlignType h, te::map::AlignType v) |
| It will set the align rendering of objects into the map display. Just successive drawings will be affected by this modification. More... | |
| virtual void | setBackgroundColor (const QColor &color) |
| Sets the map display background color. More... | |
| virtual void | setCurrentTool (te::qt::widgets::AbstractTool *tool, const bool &delPrevious=true) |
| Updates the current tool being used on te::qt::widgets::MapDisplay. More... | |
| virtual void | setDigitalization (double digitalization) |
| Sets the digitalization factor. More... | |
| virtual void | setLayerList (const std::list< te::map::AbstractLayerPtr > &layers) |
| It sets the layer list to be showed in the Map Display. More... | |
| virtual void | setLimitScale (double minScale, double maxScale) |
| Defines the min scale and max scale. More... | |
| virtual void | setOverrideDPI (int dpiX, int dpiY) |
| Overrides the values of the DPI that had been acquired from the device. This is done in order to make the scale be correctly computed and allows the correct computation of sizes in millimeters. More... | |
| virtual void | setResizeInterval (int msec) |
| Sets the timeout interval in milliseconds to redraw on resize event. More... | |
| virtual void | setResizePolicy (const ResizePolicy &policy) |
| Sets the resize policy to this map display. More... | |
| virtual bool | setScale (const double &scale) |
| Defines the scale and calculates envelope based on the requested scale. More... | |
| void | setSynchronous (bool on) |
| virtual QPointF | transform (const QPointF &p) |
| Transforms the given point, in screen coordinates, to a point in world coordinates. More... | |
| void | updateLayer (te::map::AbstractLayerPtr layer, bool redraw=true) |
| void | updateLayer (std::vector< te::map::AbstractLayerPtr > layers, bool redraw=true) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| MultiThreadMapDisplay (const QSize &size, const bool &showFeedback=true, QWidget *parent=0, Qt::WindowFlags f=0) | |
| It constructs an empty multi thread map display with the given dimensions which is a child of parent, with widget flags set to f. More... | |
| MultiThreadMapDisplay (QWidget *parent=0, const bool &showFeedback=true, Qt::WindowFlags f=0) | |
| ~MultiThreadMapDisplay () | |
| Destructor. More... | |
AbstractMapDisplay Methods | |
| void | setLayerList (const std::list< te::map::AbstractLayerPtr > &layers) |
| void | setExtent (te::gm::Envelope &e, bool doRefresh=true) |
| It sets the world visible area and refreshes the contents in the map display. More... | |
| void | refresh (bool redraw=false) |
| It updates the contents in the map display. More... | |
AbstractMapDisplay Methods | |
| virtual void | changeData (te::map::AbstractLayerPtr, int nsrid=TE_UNKNOWN_SRS) |
| unsigned int | getWidth () const |
| It returns the MapDisplay current width in pixels. More... | |
| unsigned int | getHeight () const |
| It returns the MapDisplay current height in pixels. More... | |
| double | getWidthMM () const |
| It returns the MapDisplay current width in millimeters. More... | |
| double | getHeightMM () const |
| It returns the MapDisplay current height in millimeters. More... | |
| virtual void | setSRID (const int &srid, bool doRefresh=true) |
| It sets a new Spatial Reference System to be used by the Map Display. More... | |
Protected Slots | |
| void | onDrawCanceled () |
| void | onDrawLayerFinished (const int &index, const QImage &image) |
| void | onRenderingFinished () |
| virtual void | onResizeTimeout () |
| void | showFeedback (const QImage &) |
| void | showFeedback () |
Protected Member Functions | |
| virtual void | adjustExtent (const QSize &oldSize, const QSize &size) |
| It adjusts the map display extent based on resize policy. More... | |
| virtual void | draw (te::map::AbstractLayer *layer, QPainter &painter) |
| It displays the given layer. More... | |
| virtual te::qt::widgets::Canvas * | getCanvas (te::map::AbstractLayer *layer, int type=QInternal::Pixmap) |
| It retrieves an associated canvas to the given layer. More... | |
| virtual void | paintEvent (QPaintEvent *e) |
| It assembles the final image and draws the widget. More... | |
| virtual void | resizeAllCanvas () |
| It resizes all canvas of map display. More... | |
Protected Attributes | |
| QColor | m_backgroundColor |
| Background color. More... | |
| double | m_digitalization |
| Factor used in digitalization. More... | |
| QPixmap * | m_displayPixmap |
| This pixmap will be the result of all canvas pixmap drawing, i. e., the result of drawing all visible layers. More... | |
| QPixmap * | m_draftPixmap |
| The draft pixmap can be used to draw some feedback on map display. More... | |
| te::gm::Envelope | m_extent |
| The display extent. More... | |
| ScaleWidget * | m_graphicScale |
| Graphic scale pointer. More... | |
| Grid * | m_grid |
| Planar grid pointer. More... | |
| te::map::AlignType | m_hAlign |
| The display horizontal align. More... | |
| std::map< std::string, QImage * > | m_images |
| The set of images built by each thread. It will be used to compose the final result, keeping the layer list order. More... | |
| int | m_interval |
| Timeout interval in milliseconds to redraw. More... | |
| bool | m_isDrawing |
| A flag that indicates if the map display is drawing. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layerList |
| The layer list to be displayed. More... | |
| QMatrix | m_matrix |
| Used to convert screen coordinates to world coordinates. More... | |
| double | m_maxScale |
| The maximum scale. More... | |
| double | m_minScale |
| The minimun scale. More... | |
| QCursor | m_oldCursor |
| QSize | m_oldSize |
| Stores the last size of map display on start resize event. More... | |
| int | m_overridedDpiX |
| Overrided value of the DPI in the X-axis, so the scale can be correctly computed. More... | |
| int | m_overridedDpiY |
| Overrided value of the DPI in the X-axis, so the scale can be correctly computed. More... | |
| ResizePolicy | m_resizePolicy |
| Resize policy for this map display. More... | |
| double | m_scale |
| Current calculated scale. More... | |
| bool | m_showFeedback |
| A flag that indicates if the map display will show drawing feedback. More... | |
| int | m_srid |
| The display SRS. More... | |
| bool | m_synchronous |
| A flag that indicates if the map display is synchronous or asynchronous. More... | |
| std::vector< QRunnable * > | m_threads |
| The set of threads used to draw the layer list. More... | |
| QTimer * | m_timer |
| Timer to execute redraw on resize action. More... | |
| ThreadManager * | m_tmger |
| te::qt::widgets::AbstractTool * | m_tool |
| Pointer to the current tool being used. More... | |
| te::map::AlignType | m_vAlign |
| The display vertical align. More... | |
| std::list< te::map::AbstractLayerPtr > | m_visibleLayers |
| The set of visible layers. More... | |
Map Display Virtual Methods | |
Methods to configure the MapDisplay. | |
| bool | m_cancel |
Private Member Functions | |
| void | updateTransform () |
Copy Constructor and Assignment Operator | |
Copy constructor and assignment operator not allowed. | |
| MultiThreadMapDisplay (const MultiThreadMapDisplay &rhs) | |
| Copy constructor not allowed. More... | |
| MultiThreadMapDisplay & | operator= (const MultiThreadMapDisplay &rhs) |
| Assignment operator not allowed. More... | |
A multi thread Qt4 widget to control the display of a set of layers.
Definition at line 62 of file MultiThreadMapDisplay.h.
|
inherited |
Defines the resize policy for map display.
| Enumerator | |
|---|---|
| Fixed |
Document-me! |
| Cut |
Document-me! |
| Center |
Document-me! |
Definition at line 82 of file qt/widgets/canvas/MapDisplay.h.
| te::qt::widgets::MultiThreadMapDisplay::MultiThreadMapDisplay | ( | const QSize & | size, |
| const bool & | showFeedback = true, |
||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
It constructs an empty multi thread map display with the given dimensions which is a child of parent, with widget flags set to f.
| size | The map display size. |
| showFeedback | A flag that indicates if the map display will show drawing feedback. |
| parent | The widget's parent. |
| f | Widget window flags. |
Definition at line 60 of file MultiThreadMapDisplay.cpp.
| te::qt::widgets::MultiThreadMapDisplay::MultiThreadMapDisplay | ( | QWidget * | parent = 0, |
| const bool & | showFeedback = true, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 69 of file MultiThreadMapDisplay.cpp.
| te::qt::widgets::MultiThreadMapDisplay::~MultiThreadMapDisplay | ( | ) |
Destructor.
Definition at line 78 of file MultiThreadMapDisplay.cpp.
References te::common::FreeContents(), m_images, te::qt::widgets::MapDisplay::m_isDrawing, and onDrawCanceled().
|
private |
Copy constructor not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
|
protectedvirtualinherited |
It adjusts the map display extent based on resize policy.
| oldSize | The size before the resize. |
| size | The size after the resize. |
Definition at line 411 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::Center, te::qt::widgets::MapDisplay::Cut, te::qt::widgets::MapDisplay::Fixed, te::gm::Envelope::getCenter(), te::gm::Envelope::isValid(), te::map::MapDisplay::m_extent, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::qt::widgets::MapDisplay::m_resizePolicy, 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 te::qt::widgets::MapDisplay::onResizeTimeout().
|
virtualinherited |
Definition at line 117 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::map::GetVisibleLayers(), te::map::MapDisplay::m_srid, te::qt::widgets::MapDisplay::setExtent(), te::map::MapDisplay::setLayerList(), TE_UNKNOWN_SRS, te::gm::Envelope::transform(), and te::gm::Envelope::Union().
|
signalinherited |
this signal is issued to others draw on this display.
Referenced by te::qt::widgets::MapDisplay::paintEvent().
|
signalinherited |
This signal is sent to others know that the projection was changed.
Referenced by te::qt::widgets::MapDisplay::setSRID().
|
protectedvirtualinherited |
It displays the given layer.
| layer | The layer that will be drawn. |
| painter | The painter that will composed the draw result. |
Definition at line 278 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::map::AbstractLayer::draw(), te::qt::widgets::MapDisplay::getCanvas(), te::common::TreeItem::getChild(), te::common::TreeItem::getChildrenCount(), te::qt::widgets::Canvas::getDevice(), te::qt::widgets::MapDisplay::getScale(), te::map::AbstractLayer::getVisibility(), te::map::AbstractMapDisplay::m_cancel, te::map::MapDisplay::m_extent, te::map::MapDisplay::m_srid, and te::map::NOT_VISIBLE.
|
signal |
This signal is emitted when the draw process ends. i.e. when all layers have been drawn.
| errors | A map that indicates the errors that could be occurred during the draw process. i.e layer id -> error message |
Referenced by onRenderingFinished().
|
signalinherited |
This signal is emitted when the map display extent changed.
Referenced by setExtent(), and te::qt::widgets::MapDisplay::setExtent().
|
virtualinherited |
Gets the map display background color.
Definition at line 375 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_backgroundColor.
|
protectedvirtualinherited |
It retrieves an associated canvas to the given layer.
| layer | The layer for wich we want to get an associated canvas. |
Definition at line 312 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::Canvas::calcAspectRatio(), te::qt::widgets::Canvas::clear(), te::qt::widgets::MapDisplay::m_displayPixmap, te::map::MapDisplay::m_extent, te::map::MapDisplay::m_hAlign, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::map::MapDisplay::m_vAlign, and te::qt::widgets::Canvas::setWindow().
Referenced by te::qt::widgets::MapDisplay::draw().
|
virtualinherited |
Gets the digitalization factor.
Definition at line 673 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_digitalization.
Referenced by te::edit::CreatePolygonTool::mouseMoveEvent().
|
virtualinherited |
It returns the map display pixmap.
Definition at line 258 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_displayPixmap.
Referenced by te::qt::widgets::TrajectoryItem::draw(), te::qt::af::MapDisplay::drawDataSet(), te::mnt::ProfileDialog::DrawSelected(), te::qt::widgets::PanMiddleClick::mouseMoveEvent(), te::qt::widgets::Pan::mouseMoveEvent(), te::mnt::ProfileTools::mouseReleaseEvent(), te::qt::af::MapDisplay::onApplicationTriggered(), te::qt::af::MapDisplay::onDrawLayersFinished(), DisplayWindow::onPNGTriggered(), and te::qt::widgets::AnimationView::setMatrix().
Returns the current values of the DPI in X-axis and in Y-axis.
Definition at line 564 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_overridedDpiX, and te::qt::widgets::MapDisplay::m_overridedDpiY.
|
virtualinherited |
It returns the map display draft pixmap.
Definition at line 263 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_draftPixmap.
Referenced by te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::widgets::PolygonAcquire::clear(), te::qt::widgets::Measure::clear(), te::qt::widgets::ROIManagerWidget::clearCanvas(), te::qt::widgets::ClippingWizardPage::clearCanvas(), te::qt::widgets::ContrastDialogForm::clearCanvas(), te::qt::widgets::FilterDialogForm::clearCanvas(), te::qt::plugins::wtss::WtssDialog::clearCanvas(), te::qt::widgets::CloudDetectionDialog::clearCanvas(), te::qt::widgets::RasterSlicingWizardPage::clearCanvas(), te::qt::widgets::ColorTransformDialog::clearCanvas(), te::qt::widgets::MixtureModelWizardPage::clearCanvas(), te::edit::MergeGeometriesTool::draw(), te::edit::EditInfoTool::draw(), te::edit::AddCommand::draw(), te::edit::SubtractAreaTool::draw(), te::qt::widgets::PointMove::draw(), te::edit::AggregateAreaTool::draw(), te::edit::RotateGeometryTool::draw(), te::edit::CreatePointTool::draw(), te::edit::DeleteGeometryByAreaTool::draw(), te::edit::CreateLineTool::draw(), te::edit::CreatePolygonTool::draw(), te::edit::MoveGeometryTool::draw(), te::edit::SplitPolygonTool::draw(), te::edit::VertexTool::draw(), te::qt::widgets::PanExtent::drawCurrentExtent(), te::qt::widgets::ZoomInMapDisplayWidget::drawCursorPosition(), te::qt::widgets::ContrastDialogForm::drawGeom(), te::qt::widgets::ClippingWizardPage::drawGeom(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::ColorTransformDialog::drawGeom(), SelectionTool::drawGeometries(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::qt::widgets::PolygonAcquire::drawGeometry(), te::qt::widgets::Measure::drawGeometry(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::qt::widgets::RasterNavigatorWidget::drawOverlay(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::ROIManagerWidget::drawROISet(), te::qt::plugins::edit::Plugin::drawStashed(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::qt::widgets::ZoomWheel::eventFilter(), te::qt::widgets::PanMiddleClick::mouseMoveEvent(), te::qt::widgets::Pan::mouseMoveEvent(), te::qt::widgets::RubberBand::mouseMoveEvent(), te::qt::widgets::PanMiddleClick::mouseReleaseEvent(), te::qt::widgets::Pan::mouseReleaseEvent(), te::qt::widgets::RubberBand::mouseReleaseEvent(), te::qt::widgets::Info::mouseReleaseEvent(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::plugins::edit::ToolBar::onEditActivated(), te::qt::widgets::OverlayWidget::onMapDisplayExtentChanged(), te::qt::plugins::edit::ToolBar::onResetVisualizationToolActivated(), te::qt::widgets::ROIManagerWidget::onROITreItemClicked(), te::qt::widgets::ClippingWizardPage::onSelectRoiItem(), te::mnt::ImageGenerationDialog::setMapDisplay(), te::vp::CheckGeomValidityDialog::~CheckGeomValidityDialog(), te::qt::widgets::Info::~Info(), te::qt::widgets::Measure::~Measure(), te::qt::widgets::PolygonAcquire::~PolygonAcquire(), and SelectionTool::~SelectionTool().
|
virtualinherited |
It returns the world extent showned by the MapDisplay.
Implements te::map::AbstractMapDisplay.
Definition at line 65 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_extent.
Referenced by te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::widgets::Zoom::applyZoom(), te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent(), te::edit::MergeGeometriesTool::draw(), te::edit::EditInfoTool::draw(), te::edit::AddCommand::draw(), te::edit::SubtractAreaTool::draw(), te::qt::widgets::PointMove::draw(), te::qt::widgets::TrajectoryItem::draw(), te::edit::AggregateAreaTool::draw(), te::edit::RotateGeometryTool::draw(), te::edit::CreatePointTool::draw(), te::edit::DeleteGeometryByAreaTool::draw(), te::edit::CreateLineTool::draw(), te::edit::CreatePolygonTool::draw(), te::qt::af::MapDisplay::draw(), te::edit::MoveGeometryTool::draw(), te::edit::SplitPolygonTool::draw(), te::edit::VertexTool::draw(), te::qt::widgets::PanExtent::drawCurrentExtent(), te::qt::widgets::ZoomInMapDisplayWidget::drawCursorPosition(), te::qt::af::MapDisplay::drawDataSet(), te::qt::widgets::ContrastDialogForm::drawGeom(), te::qt::widgets::ClippingWizardPage::drawGeom(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::ColorTransformDialog::drawGeom(), SelectionTool::drawGeometries(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::qt::widgets::PolygonAcquire::drawGeometry(), te::qt::widgets::Measure::drawGeometry(), te::vp::CheckGeomValidityDialog::drawMark(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::mnt::ImageGenerationDialog::drawPreview(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::ROIManagerWidget::drawROISet(), te::mnt::ProfileDialog::DrawSelected(), te::qt::plugins::edit::Plugin::drawStashed(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::qt::widgets::ZoomInMapDisplayWidget::getCurrentExtent(), te::qt::widgets::RasterNavigatorWidget::getCurrentExtent(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::ws::ogc::wms::qt::WMSGetFeatureInfoMaker::getInfo(), te::qt::widgets::MapDisplay::getScale(), GetScale(), te::qt::widgets::Grid::initialize(), te::qt::widgets::Grid::makeGeographicGrid(), te::qt::widgets::Grid::makePlanarGrid(), te::qt::widgets::ZoomLeftAndRightClick::mousePressEvent(), te::mnt::ProfileTools::mouseReleaseEvent(), te::qt::widgets::PanMiddleClick::mouseReleaseEvent(), te::qt::widgets::Pan::mouseReleaseEvent(), te::qt::widgets::InputCoordinateDialog::ok_triggered(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::plugins::terramobile::GeoPackageBuilderAction::onActionActivated(), te::qt::plugins::rp::RasterSlicingAction::onActionActivated(), te::qt::plugins::wtss::WtssDialog::onAddCoordToList(), te::qt::widgets::TiePointLocatorWidget::onAddToolButtonClicked(), te::qt::widgets::ContrastDialogForm::onAllImageRadioButtonToggled(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::widgets::RasterSymbolizerWidget::onCalcRasterSummaryClicked(), te::vp::CheckGeomValidityDialog::onDisplayPaintEvent(), te::qt::af::MapDisplay::onExtentChanged(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::qt::af::BaseApplication::onLayerPanToSelectedOnMapDisplayTriggered(), te::qt::widgets::OverlayWidget::onMapDisplayExtentChanged(), te::qt::widgets::ZoomInMapDisplayWidget::onMapDisplayExtentChanged(), te::qt::widgets::RasterNavigatorWidget::onMapDisplayExtentChanged(), te::edit::SnapOptionsDialog::onOkPushButtonPressed(), te::qt::widgets::EyeBirdMapDisplayWidget::onParentMapDisplayExtentChanged(), te::qt::widgets::ZoomInMapDisplayWidget::onParentMapDisplayExtentChanged(), te::qt::widgets::ROIManagerWidget::onROITreItemClicked(), te::qt::widgets::ClippingWizardPage::onSelectRoiItem(), te::vp::CheckGeomValidityDialog::onTableWidgetItemDoubleClicked(), te::qt::widgets::ContrastDialogForm::onVisibleAreaRadioButtonToggled(), te::qt::widgets::ZoomInMapDisplayWidget::onZoomFactorChanged(), te::qt::widgets::TrajectoryItem::paint(), te::qt::af::MapDisplay::pan(), te::qt::widgets::Grid::redraw(), te::qt::widgets::TiePointsLocatorDialog::refreshMapDisplay1(), te::qt::widgets::TiePointsLocatorDialog::refreshMapDisplay2(), te::qt::widgets::RasterNavigatorWidget::removeVectorial(), te::qt::widgets::ImageItem::setImagePosition(), te::qt::widgets::ZoomInMapDisplayWidget::setList(), te::mnt::ImageGenerationDialog::setMapDisplay(), te::qt::widgets::AnimationView::setMatrix(), te::qt::widgets::MapDisplay::setScale(), te::qt::widgets::RasterNavigatorWidget::setVectorial(), te::qt::widgets::TimeSliderWidget::TimeSliderWidget(), and te::qt::widgets::MixtureModelDialog::updateComponentsGrid().
|
inherited |
Returns the pointer for the graphic scale object;.
Definition at line 624 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_graphicScale.
Referenced by te::qt::af::BaseApplication::onEditGraphicScaleTriggered().
|
inherited |
Definition at line 629 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_grid.
Referenced by te::qt::af::BaseApplication::onEditGridTriggered().
|
virtualinherited |
It returns the MapDisplay current horizontal align.
Implements te::map::AbstractMapDisplay.
Definition at line 49 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_hAlign.
|
virtualinherited |
It returns the MapDisplay current height in pixels.
Implements te::map::AbstractMapDisplay.
Definition at line 219 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
Referenced by te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::plugins::edit::Plugin::drawStashed(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::qt::widgets::MapDisplay::getHeightMM(), te::qt::widgets::MapDisplay::getScale(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::edit::SnapOptionsDialog::onOkPushButtonPressed(), te::qt::widgets::RasterNavigatorWidget::set(), and te::qt::widgets::OverlayWidget::updateSliderBarSize().
|
virtualinherited |
It returns the MapDisplay current height in millimeters.
Implements te::map::AbstractMapDisplay.
Definition at line 238 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::getHeight(), te::qt::widgets::MapDisplay::m_overridedDpiX, and te::qt::widgets::MapDisplay::m_overridedDpiY.
|
virtualinherited |
Definition at line 39 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_layerList.
Referenced by te::qt::plugins::gdal::GeoFileDragAndDropHandler::eventFilter(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::eventFilter(), te::qt::widgets::Info::mouseReleaseEvent(), and te::qt::af::BaseApplication::onLayerFitOnMapDisplayTriggered().
|
virtualinherited |
Calculates and return the current scale.
Definition at line 459 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References dx, te::map::MapDisplay::getExtent(), te::qt::widgets::MapDisplay::getHeight(), te::gm::Envelope::getHeight(), te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::qt::widgets::MapDisplay::getWidth(), te::gm::Envelope::getWidth(), te::qt::widgets::MapDisplay::getWidthMM(), te::map::GetWorldBoxInPlanar(), te::qt::widgets::MapDisplay::m_scale, and te::map::MapDisplay::m_srid.
Referenced by te::qt::widgets::MapDisplay::draw(), te::mnt::ImageGenerationDialog::drawPreview(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::widgets::OverlayWidget::onMapDisplayExtentChanged(), te::qt::af::BaseApplication::onScaleDisplayChanged(), refresh(), setExtent(), and te::qt::widgets::MapDisplay::setScale().
|
virtualinherited |
It return the Spatial Reference System used by the Map Display.
Implements te::map::AbstractMapDisplay.
Definition at line 75 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_srid.
Referenced by te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::MixtureModelWizardPage::addPointComponent(), te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::edit::CreateLineTool::buildLine(), te::edit::CreatePointTool::buildPoint(), te::edit::SubtractAreaTool::buildPolygon(), te::edit::AggregateAreaTool::buildPolygon(), te::edit::DeleteGeometryByAreaTool::buildPolygon(), te::edit::CreatePolygonTool::buildPolygon(), te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent(), te::qt::plugins::gdal::GeoFileDragAndDropHandler::configSRS(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::configSRS(), te::qt::af::MapDisplay::configSRS(), te::edit::MergeGeometriesTool::draw(), te::edit::EditInfoTool::draw(), te::edit::AddCommand::draw(), te::edit::SubtractAreaTool::draw(), te::edit::AggregateAreaTool::draw(), te::edit::RotateGeometryTool::draw(), te::edit::CreatePointTool::draw(), te::edit::DeleteGeometryByAreaTool::draw(), te::edit::CreateLineTool::draw(), te::edit::CreatePolygonTool::draw(), te::qt::af::MapDisplay::draw(), te::edit::MoveGeometryTool::draw(), te::edit::SplitPolygonTool::draw(), te::edit::VertexTool::draw(), te::qt::widgets::PanExtent::drawCurrentExtent(), te::qt::af::MapDisplay::drawDataSet(), te::qt::widgets::ContrastDialogForm::drawGeom(), te::qt::widgets::ClippingWizardPage::drawGeom(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::mnt::ImageGenerationDialog::drawPreview(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::ROIManagerWidget::drawROISet(), te::mnt::ProfileDialog::DrawSelected(), te::qt::plugins::edit::Plugin::drawStashed(), te::edit::MergeGeometriesTool::editingFinished(), te::qt::plugins::gdal::GeoFileDragAndDropHandler::eventFilter(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::eventFilter(), te::qt::widgets::Selection::executeSelection(), te::edit::DeleteGeometryByAreaTool::executeSelection(), te::qt::af::MapDisplay::fit(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::qt::widgets::DefaultFeatureInfoMaker::getGeometryInfo(), te::qt::widgets::DefaultFeatureInfoMaker::getInfo(), te::ws::ogc::wms::qt::WMSGetFeatureInfoMaker::getInfo(), te::qt::widgets::AnimationItem::getPosInDeviceCoordinate(), te::qt::widgets::FilterDialogForm::getRasterFromROI(), te::qt::widgets::CloudDetectionDialog::getRasterFromROI(), te::qt::widgets::ColorTransformDialog::getRasterFromROI(), te::qt::widgets::RasterSlicingWizardPage::getRasterFromROI(), te::qt::widgets::ImageItem::getRect(), te::edit::MergeGeometriesTool::getRefEnvelope(), GetScale(), te::qt::widgets::Grid::initialize(), te::qt::af::BaseApplication::initStatusBar(), te::qt::widgets::Grid::makeGeographicGrid(), te::qt::widgets::Grid::makePlanarGrid(), te::qt::widgets::Measure::Measure(), te::qt::widgets::PolygonAcquire::mouseDoubleClickEvent(), te::edit::VertexTool::mouseDoubleClickEvent(), te::qt::plugins::mnt::ShowValuesTool::mouseMoveEvent(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::DeleteGeometryByAreaTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::edit::EditInfoTool::mousePressEvent(), te::edit::CreateLineTool::mousePressEvent(), te::edit::CreatePointTool::mousePressEvent(), te::edit::DeletePartTool::mousePressEvent(), te::edit::DeleteGeometryTool::mousePressEvent(), te::edit::CreatePolygonTool::mousePressEvent(), te::edit::DeleteGeometryByAreaTool::mousePressEvent(), te::qt::widgets::InputCoordinateDialog::ok_triggered(), te::qt::plugins::terramobile::GeoPackageBuilderAction::onActionActivated(), te::qt::plugins::rp::RasterSlicingAction::onActionActivated(), te::qt::plugins::wtss::WtssDialog::onAddCoordToList(), te::mnt::ProfileDialog::onaddPointMouseToggled(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::widgets::RasterSymbolizerWidget::onCalcRasterSummaryClicked(), te::qt::widgets::ColorTransformDialog::onEnvelopeAcquired(), te::qt::widgets::FilterDialogForm::onEnvelopeAcquired(), te::qt::widgets::CloudDetectionDialog::onEnvelopeAcquired(), te::qt::widgets::ClippingWizardPage::onEnvelopeAcquired(), te::qt::widgets::ROIManagerWidget::onEnvelopeAcquired(), te::qt::widgets::ContrastDialogForm::onEnvelopeAcquired(), te::qt::widgets::RasterSlicingWizardPage::onEnvelopeAcquired(), te::qt::widgets::MixtureModelWizardPage::onEnvelopeAcquired(), te::qt::widgets::ROIManagerWidget::onExportROISetToolButtonClicked(), te::qt::widgets::Measure::onExtentChanged(), te::qt::widgets::ClippingWizardPage::onGeomAquired(), te::qt::widgets::ROIManagerWidget::onGeomAquired(), te::qt::widgets::MixtureModelWizardPage::onGeomAquired(), te::qt::plugins::wtss::WtssDialog::onGetPointCoordinate(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::qt::af::BaseApplication::onLayerFitOnMapDisplayTriggered(), te::qt::af::BaseApplication::onLayerFitSelectedOnMapDisplayTriggered(), te::qt::af::BaseApplication::onLayerPanToSelectedOnMapDisplayTriggered(), te::qt::widgets::OverlayWidget::onMapDisplayExtentChanged(), te::qt::widgets::MixtureModelWizardPage::onPointPicked(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::vp::CheckGeomValidityDialog::onTableWidgetItemDoubleClicked(), te::qt::widgets::ContrastDialogForm::onVisibleAreaRadioButtonToggled(), te::qt::af::MapDisplay::pan(), te::edit::MergeGeometriesTool::pickFeature(), te::edit::EditInfoTool::pickFeature(), te::edit::SubtractAreaTool::pickFeature(), te::edit::RotateGeometryTool::pickFeature(), te::edit::AggregateAreaTool::pickFeature(), te::edit::MoveGeometryTool::pickFeature(), te::edit::VertexTool::pickFeature(), te::qt::widgets::Grid::redraw(), te::qt::widgets::ContrastDialogForm::resetWindow(), te::qt::widgets::AnimationView::setMatrix(), te::qt::widgets::MapDisplay::showGraphicScale(), te::edit::SplitPolygonTool::splitPolygon(), te::qt::widgets::TimeSliderWidget::TimeSliderWidget(), te::qt::widgets::TrajectoryItem::transformToDisplayProjection(), and te::qt::widgets::ImageItem::tryDoReprojectionUsingAffineTransform().
|
virtualinherited |
It returns the MapDisplay current vertical align.
Implements te::map::AbstractMapDisplay.
Definition at line 54 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_vAlign.
|
virtualinherited |
It returns the MapDisplay current width in pixels.
Implements te::map::AbstractMapDisplay.
Definition at line 214 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
Referenced by te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::plugins::edit::Plugin::drawStashed(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::qt::widgets::MapDisplay::getScale(), te::qt::widgets::MapDisplay::getWidthMM(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::edit::SnapOptionsDialog::onOkPushButtonPressed(), te::qt::widgets::RasterNavigatorWidget::set(), and te::qt::widgets::OverlayWidget::updateSliderBarSize().
|
virtualinherited |
It returns the MapDisplay current width in millimeters.
Implements te::map::AbstractMapDisplay.
Definition at line 224 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::getWidth(), te::qt::widgets::MapDisplay::m_overridedDpiX, and te::qt::widgets::MapDisplay::m_overridedDpiY.
Referenced by te::qt::widgets::MapDisplay::getScale().
|
inherited |
Returns if the map display is drawing.
Definition at line 385 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_isDrawing.
|
protectedslot |
Definition at line 371 of file MultiThreadMapDisplay.cpp.
References te::map::AbstractMapDisplay::m_cancel, m_tmger, and te::qt::widgets::ThreadManager::stopProccess().
Referenced by resizeEvent(), updateLayer(), and ~MultiThreadMapDisplay().
|
protectedslot |
Definition at line 331 of file MultiThreadMapDisplay.cpp.
|
protectedslot |
Definition at line 336 of file MultiThreadMapDisplay.cpp.
References drawLayersFinished(), te::qt::widgets::DrawThread::errorMessage(), te::common::FreeContents(), te::qt::widgets::DrawThread::hasFinished(), te::qt::widgets::DrawThread::layerId(), m_images, te::qt::widgets::MapDisplay::m_isDrawing, m_threads, RemoveImage(), and showFeedback().
Referenced by refresh().
|
protectedvirtualslotinherited |
Definition at line 390 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::adjustExtent(), te::qt::widgets::MapDisplay::m_backgroundColor, te::qt::widgets::MapDisplay::m_displayPixmap, te::qt::widgets::MapDisplay::m_draftPixmap, te::qt::widgets::MapDisplay::m_oldSize, and te::qt::widgets::MapDisplay::resizeAllCanvas().
Referenced by te::qt::widgets::MapDisplay::MapDisplay(), and te::qt::widgets::MapDisplay::resizeEvent().
|
private |
Assignment operator not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
|
protectedvirtualinherited |
It assembles the final image and draws the widget.
| e | The event received by this widget. |
Definition at line 333 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::displayPaintEvent(), te::qt::widgets::MapDisplay::m_displayPixmap, and te::qt::widgets::MapDisplay::m_draftPixmap.
|
virtual |
It updates the contents in the map display.
Reimplemented from te::qt::widgets::MapDisplay.
Definition at line 129 of file MultiThreadMapDisplay.cpp.
References te::common::FreeContents(), te::qt::widgets::MapDisplay::getScale(), te::map::GetVisibleLayers(), te::qt::widgets::MapDisplay::m_backgroundColor, te::map::AbstractMapDisplay::m_cancel, te::qt::widgets::MapDisplay::m_displayPixmap, te::qt::widgets::MapDisplay::m_draftPixmap, te::map::MapDisplay::m_extent, te::map::MapDisplay::m_hAlign, m_images, te::qt::widgets::MapDisplay::m_isDrawing, te::map::MapDisplay::m_layerList, m_showFeedback, te::map::MapDisplay::m_srid, m_threads, m_tmger, te::map::MapDisplay::m_vAlign, m_visibleLayers, onRenderingFinished(), te::qt::widgets::ThreadManager::run(), and showFeedback().
Referenced by te::qt::plugins::gdal::GeoFileDragAndDropHandler::eventFilter(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::eventFilter(), setExtent(), and updateLayer().
|
protectedvirtualinherited |
It resizes all canvas of map display.
Definition at line 326 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
Referenced by te::qt::widgets::MapDisplay::onResizeTimeout().
|
virtual |
This event handler receives widget resize events wich are passed in the event parameter.
| e | The resize event. |
Reimplemented from te::qt::widgets::MapDisplay.
Definition at line 259 of file MultiThreadMapDisplay.cpp.
References te::common::FreeContents(), m_images, te::qt::widgets::MapDisplay::m_isDrawing, onDrawCanceled(), and te::qt::widgets::MapDisplay::resizeEvent().
|
virtualinherited |
Returns the default value of the DPI. In this case, the values from the device will be acquired.
Definition at line 584 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_overridedDpiX, and te::qt::widgets::MapDisplay::m_overridedDpiY.
|
virtualinherited |
It will set the align rendering of objects into the map display. Just successive drawings will be affected by this modification.
| h | The new horizontal align. |
| v | The new vertical align. |
Implements te::map::AbstractMapDisplay.
Definition at line 59 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_hAlign, and te::map::MapDisplay::m_vAlign.
|
virtualinherited |
Sets the map display background color.
| color | The color. |
Definition at line 380 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_backgroundColor.
Referenced by te::qt::af::MapDisplay::MapDisplay(), and te::qt::af::MapDisplay::onApplicationTriggered().
|
virtualinherited |
Updates the current tool being used on te::qt::widgets::MapDisplay.
| tool | The new te::qt::widgets::AbstractTool. |
| delPrevious | True for delete the old tool. |
Definition at line 590 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_tool.
Referenced by te::qt::plugins::wtss::WtssDialog::closeEvent(), te::qt::plugins::edit::ToolBar::enableCurrentTool(), te::mnt::ProfileDialog::onaddPointMouseToggled(), te::qt::widgets::RpToolsWidget::onBoxToggled(), te::qt::widgets::RpToolsWidget::onDisableToolbar(), te::qt::widgets::RpToolsWidget::onGeomToggled(), te::qt::af::BaseApplication::onInfoToggled(), te::qt::af::BaseApplication::onMeasureAngleToggled(), te::qt::af::BaseApplication::onMeasureAreaToggled(), te::qt::af::BaseApplication::onMeasureDistanceToggled(), te::qt::widgets::ColorTransformDialog::onNewROIPushButtonClicked(), te::qt::af::BaseApplication::onPanToggled(), te::qt::widgets::RpToolsWidget::onPointPickerToggled(), te::qt::plugins::wtss::WtssDialog::onPointPickerToggled(), te::qt::af::BaseApplication::onSelectionToggled(), te::qt::af::BaseApplication::onZoomInToggled(), te::qt::af::BaseApplication::onZoomOutToggled(), te::mnt::ProfileDialog::release(), te::qt::plugins::edit::ToolBar::setCurrentTool(), te::mnt::ProfileDialog::setVertexEdition(), and te::qt::plugins::edit::ToolBar::~ToolBar().
|
virtualinherited |
Sets the digitalization factor.
Definition at line 619 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_digitalization.
Referenced by te::qt::plugins::edit::ToolBar::onDigitStepComboBoxChanged().
|
virtual |
It sets the world visible area and refreshes the contents in the map display.
If the given area is not proportional to the device width and height, the MapDisplay will change it in order to preserve the aspect ratio.
| e | The world visible area. |
| doRefresh | If true the display will refresh its contents. |
Reimplemented from te::qt::widgets::MapDisplay.
Definition at line 94 of file MultiThreadMapDisplay.cpp.
References te::qt::widgets::MapDisplay::extentChanged(), te::qt::widgets::MapDisplay::getScale(), te::map::MapDisplay::m_extent, te::qt::widgets::MapDisplay::m_graphicScale, te::qt::widgets::MapDisplay::m_isDrawing, te::qt::widgets::MapDisplay::m_maxScale, te::qt::widgets::MapDisplay::m_minScale, refresh(), te::qt::widgets::MapDisplay::setScale(), te::qt::widgets::ScaleWidget::updateScaleFactor(), and updateTransform().
Referenced by te::qt::plugins::gdal::GeoFileDragAndDropHandler::eventFilter(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::eventFilter(), and te::qt::widgets::OverlayWidget::onApplyToolButtonClicked().
|
virtualinherited |
It sets the layer list to be showed in the Map Display.
| layers | The layer list. |
Implements te::map::AbstractMapDisplay.
Definition at line 44 of file src/terralib/maptools/MapDisplay.cpp.
References te::map::MapDisplay::m_layerList.
Referenced by MainWindow::addDataSetLayer(), DisplayWindow::addGraph(), DisplayWindow::addVectorialLayer(), te::qt::widgets::MapDisplay::changeData(), te::qt::af::MapDisplay::clear(), te::qt::af::MapDisplay::draw(), te::qt::af::MapDisplay::fit(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), TerraView::onApplicationTriggered(), te::qt::af::MapDisplay::onApplicationTriggered(), te::qt::plugins::tv::TimeViewerDockWidget::onApplyButtonClicked(), te::qt::af::BaseApplication::onLayerFitOnMapDisplayTriggered(), te::qt::af::BaseApplication::onLayerRemoveTriggered(), te::qt::widgets::RasterNavigatorWidget::removeVectorial(), TerraView::resetComponents(), te::qt::widgets::ContrastDialogForm::resetWindow(), te::qt::widgets::RasterNavigatorWidget::set(), te::qt::widgets::EyeBirdMapDisplayWidget::setList(), te::qt::widgets::ZoomInMapDisplayWidget::setList(), te::qt::widgets::RasterNavigatorWidget::setVectorial(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), and te::qt::plugins::tv::TimeViewerDockWidget::~TimeViewerDockWidget().
| void te::qt::widgets::MultiThreadMapDisplay::setLayerList | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) |
Definition at line 87 of file MultiThreadMapDisplay.cpp.
References te::map::MapDisplay::m_layerList, and m_visibleLayers.
Referenced by te::qt::plugins::gdal::GeoFileDragAndDropHandler::eventFilter(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::eventFilter(), and te::qt::widgets::OverlayWidget::onApplyToolButtonClicked().
|
virtualinherited |
Defines the min scale and max scale.
Definition at line 606 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_maxScale, and te::qt::widgets::MapDisplay::m_minScale.
Overrides the values of the DPI that had been acquired from the device. This is done in order to make the scale be correctly computed and allows the correct computation of sizes in millimeters.
Definition at line 578 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_overridedDpiX, and te::qt::widgets::MapDisplay::m_overridedDpiY.
Referenced by te::qt::af::MapDisplay::MapDisplay(), te::qt::af::DisplayWidget::onApplyScreenSizeButtonClicked(), and te::qt::af::DisplayWidget::onRestoreScreenSizeButtonClicked().
|
virtualinherited |
Sets the timeout interval in milliseconds to redraw on resize event.
| msec | The timeout interval in milliseconds. |
Definition at line 273 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_interval.
|
virtualinherited |
Sets the resize policy to this map display.
| policy | The resize policy. |
Definition at line 268 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::m_resizePolicy.
Referenced by DisplayWindow::DisplayWindow(), te::qt::widgets::EyeBirdMapDisplayWidget::EyeBirdMapDisplayWidget(), te::qt::af::BaseApplication::makeDialog(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::qt::widgets::RasterNavigatorWidget::RasterNavigatorWidget(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), and te::qt::widgets::ZoomInMapDisplayWidget::ZoomInMapDisplayWidget().
|
virtualinherited |
Defines the scale and calculates envelope based on the requested scale.
Definition at line 525 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References dx, te::map::MapDisplay::getExtent(), te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::qt::widgets::MapDisplay::getScale(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::getWidth(), te::qt::widgets::MapDisplay::m_graphicScale, te::qt::widgets::MapDisplay::setExtent(), and te::qt::widgets::ScaleWidget::updateScaleFactor().
Referenced by te::qt::af::BaseApplication::onScaleComboBoxActivated(), and setExtent().
|
virtualinherited |
It sets a new Spatial Reference System to be used by the Map Display.
It will also convert the current envelope coordinates to the new SRS. This may cause changes to the world visible area. In this case, the extent will be updated and new internal transformation function will be calculated.
| srid | The new Spatial Reference System to be used by the Map Display. |
| doRefresh | If true the display will refresh its contents. |
Reimplemented from te::map::MapDisplay.
Definition at line 252 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::displaySridChanged(), and te::map::MapDisplay::setSRID().
Referenced by MainWindow::addDataSetLayer(), DisplayWindow::addGraph(), DisplayWindow::addVectorialLayer(), te::qt::plugins::ogr::GeoFileDragAndDropHandler::configSRS(), te::qt::plugins::gdal::GeoFileDragAndDropHandler::configSRS(), te::qt::af::MapDisplay::configSRS(), te::qt::plugins::tv::TimeViewerDockWidget::drawLayer(), te::qt::af::MapDisplay::MapDisplay(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::af::BaseApplication::onLayerFitOnMapDisplayTriggered(), te::qt::af::BaseApplication::onMapSetUnknwonSRIDTriggered(), te::qt::af::BaseApplication::onMapSRIDTriggered(), te::vp::CheckGeomValidityDialog::onTableWidgetItemDoubleClicked(), TerraView::resetComponents(), te::qt::widgets::RasterNavigatorWidget::set(), te::qt::widgets::EyeBirdMapDisplayWidget::setList(), te::qt::widgets::ZoomInMapDisplayWidget::setList(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), and te::qt::widgets::TimeSliderWidget::TimeSliderWidget().
| void te::qt::widgets::MultiThreadMapDisplay::setSynchronous | ( | bool | on | ) |
Definition at line 229 of file MultiThreadMapDisplay.cpp.
References m_synchronous.
|
inlineprotectedslot |
Definition at line 127 of file MultiThreadMapDisplay.h.
|
protectedslot |
Definition at line 308 of file MultiThreadMapDisplay.cpp.
References te::map::AbstractLayer::getCompositionMode(), te::map::AbstractLayer::getId(), te::qt::widgets::MapDisplay::m_backgroundColor, te::qt::widgets::MapDisplay::m_displayPixmap, m_images, and m_visibleLayers.
Referenced by onRenderingFinished(), and refresh().
|
slotinherited |
Shows / hides the graphic scale.
| visible | True shows the graphic scale, false hides it. |
Definition at line 634 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::map::MapDisplay::getSRID(), te::qt::widgets::MapDisplay::m_backgroundColor, te::qt::widgets::MapDisplay::m_graphicScale, te::qt::widgets::ScaleWidget::setBackgroundColor(), te::qt::widgets::ScaleWidget::setUnit(), and te::qt::widgets::ScaleWidget::updateScalePosition().
|
slotinherited |
Definition at line 656 of file src/terralib/qt/widgets/canvas/MapDisplay.cpp.
References te::sa::Grid, and te::qt::widgets::MapDisplay::m_grid.
Referenced by te::qt::af::BaseApplication::onMapShowGeographicGridToggled().
|
virtual |
Transforms the given point, in screen coordinates, to a point in world coordinates.
| p | A point in screen coordinates. |
Reimplemented from te::qt::widgets::MapDisplay.
Definition at line 221 of file MultiThreadMapDisplay.cpp.
References te::gm::Envelope::isValid(), te::map::MapDisplay::m_extent, and m_matrix.
|
virtual |
Reimplemented from te::qt::widgets::MapDisplay.
Definition at line 234 of file MultiThreadMapDisplay.cpp.
References m_images, te::qt::widgets::MapDisplay::m_isDrawing, onDrawCanceled(), refresh(), and RemoveImage().
Referenced by te::qt::plugins::edit::ToolBar::onSaveActivated().
| void te::qt::widgets::MultiThreadMapDisplay::updateLayer | ( | std::vector< te::map::AbstractLayerPtr > | layers, |
| bool | redraw = true |
||
| ) |
Definition at line 245 of file MultiThreadMapDisplay.cpp.
References m_images, te::qt::widgets::MapDisplay::m_isDrawing, onDrawCanceled(), refresh(), and RemoveImage().
|
private |
Definition at line 274 of file MultiThreadMapDisplay.cpp.
References te::gm::Envelope::isValid(), te::map::MapDisplay::m_extent, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_matrix, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
Referenced by setExtent().
|
protectedinherited |
Background color.
Definition at line 369 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getBackgroundColor(), te::qt::widgets::MapDisplay::MapDisplay(), te::qt::widgets::MapDisplay::onResizeTimeout(), refresh(), te::qt::widgets::MapDisplay::setBackgroundColor(), showFeedback(), and te::qt::widgets::MapDisplay::showGraphicScale().
|
protectedinherited |
Definition at line 172 of file AbstractMapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::draw(), onDrawCanceled(), and refresh().
|
protectedinherited |
Factor used in digitalization.
Definition at line 381 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getDigitalization(), and te::qt::widgets::MapDisplay::setDigitalization().
|
protectedinherited |
This pixmap will be the result of all canvas pixmap drawing, i. e., the result of drawing all visible layers.
Definition at line 367 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getCanvas(), te::qt::widgets::MapDisplay::getDisplayPixmap(), te::qt::widgets::MapDisplay::MapDisplay(), te::qt::widgets::MapDisplay::onResizeTimeout(), te::qt::widgets::MapDisplay::paintEvent(), refresh(), showFeedback(), and te::qt::widgets::MapDisplay::~MapDisplay().
|
protectedinherited |
The draft pixmap can be used to draw some feedback on map display.
Definition at line 368 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getDraftPixmap(), te::qt::widgets::MapDisplay::MapDisplay(), te::qt::widgets::MapDisplay::onResizeTimeout(), te::qt::widgets::MapDisplay::paintEvent(), refresh(), and te::qt::widgets::MapDisplay::~MapDisplay().
|
protectedinherited |
The display extent.
Definition at line 75 of file maptools/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::adjustExtent(), te::qt::widgets::MapDisplay::draw(), te::qt::widgets::MapDisplay::getCanvas(), te::map::MapDisplay::getExtent(), refresh(), te::map::MapDisplay::setExtent(), setExtent(), te::map::MapDisplay::setSRID(), transform(), and updateTransform().
|
protectedinherited |
Graphic scale pointer.
Definition at line 385 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getGraphicScale(), te::qt::widgets::MapDisplay::resizeEvent(), setExtent(), te::qt::widgets::MapDisplay::setExtent(), te::qt::widgets::MapDisplay::setScale(), and te::qt::widgets::MapDisplay::showGraphicScale().
|
protectedinherited |
Planar grid pointer.
Definition at line 386 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getGrid(), and te::qt::widgets::MapDisplay::showGrid().
|
protectedinherited |
The display horizontal align.
Definition at line 78 of file maptools/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getCanvas(), te::map::MapDisplay::getHAlign(), refresh(), and te::map::MapDisplay::setAlign().
|
protected |
The set of images built by each thread. It will be used to compose the final result, keeping the layer list order.
Definition at line 179 of file MultiThreadMapDisplay.h.
Referenced by onRenderingFinished(), refresh(), resizeEvent(), showFeedback(), updateLayer(), and ~MultiThreadMapDisplay().
|
protectedinherited |
Timeout interval in milliseconds to redraw.
Definition at line 373 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::resizeEvent(), and te::qt::widgets::MapDisplay::setResizeInterval().
|
protectedinherited |
A flag that indicates if the map display is drawing.
Definition at line 374 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::isDrawing(), onRenderingFinished(), refresh(), resizeEvent(), setExtent(), updateLayer(), and ~MultiThreadMapDisplay().
|
protectedinherited |
The layer list to be displayed.
Definition at line 76 of file maptools/MapDisplay.h.
Referenced by te::map::MapDisplay::getLayerList(), refresh(), te::map::MapDisplay::setLayerList(), and setLayerList().
|
protected |
Used to convert screen coordinates to world coordinates.
Definition at line 181 of file MultiThreadMapDisplay.h.
Referenced by transform(), and updateTransform().
|
protectedinherited |
The maximum scale.
Definition at line 380 of file qt/widgets/canvas/MapDisplay.h.
Referenced by setExtent(), and te::qt::widgets::MapDisplay::setLimitScale().
|
protectedinherited |
The minimun scale.
Definition at line 379 of file qt/widgets/canvas/MapDisplay.h.
Referenced by setExtent(), and te::qt::widgets::MapDisplay::setLimitScale().
|
protected |
Definition at line 185 of file MultiThreadMapDisplay.h.
|
protectedinherited |
Stores the last size of map display on start resize event.
Definition at line 371 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::onResizeTimeout(), and te::qt::widgets::MapDisplay::resizeEvent().
|
protectedinherited |
Overrided value of the DPI in the X-axis, so the scale can be correctly computed.
Definition at line 377 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getDPI(), te::qt::widgets::MapDisplay::getHeightMM(), te::qt::widgets::MapDisplay::getWidthMM(), te::qt::widgets::MapDisplay::restoreDPI(), and te::qt::widgets::MapDisplay::setOverrideDPI().
|
protectedinherited |
Overrided value of the DPI in the X-axis, so the scale can be correctly computed.
Definition at line 378 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getDPI(), te::qt::widgets::MapDisplay::getHeightMM(), te::qt::widgets::MapDisplay::getWidthMM(), te::qt::widgets::MapDisplay::restoreDPI(), and te::qt::widgets::MapDisplay::setOverrideDPI().
|
protectedinherited |
Resize policy for this map display.
Definition at line 370 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::adjustExtent(), and te::qt::widgets::MapDisplay::setResizePolicy().
|
mutableprotectedinherited |
Current calculated scale.
Definition at line 376 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getScale().
|
protected |
A flag that indicates if the map display will show drawing feedback.
Definition at line 180 of file MultiThreadMapDisplay.h.
Referenced by refresh().
|
protectedinherited |
The display SRS.
Definition at line 77 of file maptools/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::changeData(), te::qt::widgets::MapDisplay::draw(), te::qt::widgets::MapDisplay::getScale(), te::map::MapDisplay::getSRID(), refresh(), and te::map::MapDisplay::setSRID().
|
protected |
A flag that indicates if the map display is synchronous or asynchronous.
Definition at line 182 of file MultiThreadMapDisplay.h.
Referenced by setSynchronous().
|
protected |
The set of threads used to draw the layer list.
Definition at line 178 of file MultiThreadMapDisplay.h.
Referenced by onRenderingFinished(), and refresh().
|
protectedinherited |
Timer to execute redraw on resize action.
Definition at line 372 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::MapDisplay(), and te::qt::widgets::MapDisplay::resizeEvent().
|
protected |
Definition at line 184 of file MultiThreadMapDisplay.h.
Referenced by onDrawCanceled(), and refresh().
|
protectedinherited |
Pointer to the current tool being used.
Definition at line 383 of file qt/widgets/canvas/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::setCurrentTool(), and te::qt::widgets::MapDisplay::~MapDisplay().
|
protectedinherited |
The display vertical align.
Definition at line 79 of file maptools/MapDisplay.h.
Referenced by te::qt::widgets::MapDisplay::getCanvas(), te::map::MapDisplay::getVAlign(), refresh(), and te::map::MapDisplay::setAlign().
|
protected |
The set of visible layers.
Definition at line 177 of file MultiThreadMapDisplay.h.
Referenced by refresh(), setLayerList(), and showFeedback().