This class controls how a set of layers are displayed. More...
#include <MapDisplay.h>
Public Member Functions | |
virtual const te::gm::Envelope & | getExtent () const |
It returns the world extent showned by the MapDisplay. More... | |
virtual te::map::AlignType | getHAlign () const |
It returns the MapDisplay current horizontal align. More... | |
virtual std::list< AbstractLayerPtr > | getLayerList () const |
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... | |
MapDisplay () | |
It initializes a new MapDisplay. 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 | setExtent (te::gm::Envelope &e, bool doRefresh=true) |
It sets the world visible area and refreshes the contents in the map display. 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 | setSRID (const int &srid, bool doRefresh=true) |
It sets a new Spatial Reference System to be used by the Map Display. More... | |
virtual | ~MapDisplay () |
Virtual destructor. More... | |
Protected Attributes | |
te::gm::Envelope | m_extent |
The display extent. More... | |
te::map::AlignType | m_hAlign |
The display horizontal align. More... | |
std::list< te::map::AbstractLayerPtr > | m_layerList |
The layer list to be displayed. More... | |
int | m_srid |
The display SRS. More... | |
te::map::AlignType | m_vAlign |
The display vertical align. More... | |
Map Display Virtual Methods | |
Methods to configure the MapDisplay. | |
bool | m_cancel |
virtual void | refresh (bool redraw=false)=0 |
It updates the contents in the map display. More... | |
virtual unsigned int | getWidth () const =0 |
It returns the MapDisplay current width in pixels. More... | |
virtual unsigned int | getHeight () const =0 |
It returns the MapDisplay current height in pixels. More... | |
virtual double | getWidthMM () const =0 |
It returns the MapDisplay current width in millimeters. More... | |
virtual double | getHeightMM () const =0 |
It returns the MapDisplay current height in millimeters. More... | |
This class controls how a set of layers are displayed.
Definition at line 45 of file MapDisplay.h.
te::map::MapDisplay::MapDisplay | ( | ) |
It initializes a new MapDisplay.
|
virtual |
Virtual destructor.
Reimplemented in te::qt::widgets::MapDisplay.
|
virtual |
It returns the world extent showned by the MapDisplay.
Implements te::map::AbstractMapDisplay.
|
virtual |
It returns the MapDisplay current horizontal align.
Implements te::map::AbstractMapDisplay.
|
pure virtualinherited |
It returns the MapDisplay current height in pixels.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtualinherited |
It returns the MapDisplay current height in millimeters.
Implemented in te::qt::widgets::MapDisplay.
|
virtual |
|
virtual |
It return the Spatial Reference System used by the Map Display.
Implements te::map::AbstractMapDisplay.
|
virtual |
It returns the MapDisplay current vertical align.
Implements te::map::AbstractMapDisplay.
|
pure virtualinherited |
It returns the MapDisplay current width in pixels.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtualinherited |
It returns the MapDisplay current width in millimeters.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtualinherited |
It updates the contents in the map display.
Implemented in te::qt::widgets::MapDisplay, and te::qt::widgets::MultiThreadMapDisplay.
|
virtual |
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.
|
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. |
Implements te::map::AbstractMapDisplay.
Reimplemented in te::qt::widgets::MapDisplay, and te::qt::widgets::MultiThreadMapDisplay.
|
virtual |
It sets the layer list to be showed in the Map Display.
layers | The layer list. |
Implements te::map::AbstractMapDisplay.
|
virtual |
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. |
Implements te::map::AbstractMapDisplay.
Reimplemented in te::qt::widgets::MapDisplay.
|
protectedinherited |
Definition at line 172 of file AbstractMapDisplay.h.
|
protected |
The display extent.
Definition at line 75 of file MapDisplay.h.
|
protected |
The display horizontal align.
Definition at line 78 of file MapDisplay.h.
|
protected |
The layer list to be displayed.
Definition at line 76 of file MapDisplay.h.
|
protected |
The display SRS.
Definition at line 77 of file MapDisplay.h.
|
protected |
The display vertical align.
Definition at line 79 of file MapDisplay.h.