It defines the concept of a map display responsible for controlling how a set of layers are displayed. More...
#include <AbstractMapDisplay.h>
Public Member Functions | |
AbstractMapDisplay () | |
It initializes a new MapDisplay. More... | |
virtual | ~AbstractMapDisplay () |
Virtual destructor. More... | |
Map Display Virtual Methods | |
Methods to configure the MapDisplay. | |
bool | m_cancel |
virtual void | setLayerList (const std::list< te::map::AbstractLayerPtr > &layers)=0 |
It sets the layer list to be showed in the Map Display. More... | |
virtual te::map::AlignType | getHAlign () const =0 |
It returns the MapDisplay current horizontal align. More... | |
virtual te::map::AlignType | getVAlign () const =0 |
It returns the MapDisplay current vertical align. More... | |
virtual void | setAlign (te::map::AlignType h, te::map::AlignType v)=0 |
It will set the align rendering of objects into the map display. Just successive drawings will be affected by this modification. More... | |
virtual const te::gm::Envelope & | getExtent () const =0 |
It returns the world extent showned by the MapDisplay. More... | |
virtual void | setExtent (te::gm::Envelope &e, bool doRefresh=true)=0 |
It sets the world visible area and refreshes the contents in the map display. More... | |
virtual int | getSRID () const =0 |
It return the Spatial Reference System used by the Map Display. More... | |
virtual void | setSRID (const int &srid, bool doRefresh=true)=0 |
It sets a new Spatial Reference System to be used by the Map Display. More... | |
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... | |
It defines the concept of a map display responsible for controlling how a set of layers are displayed.
Definition at line 52 of file AbstractMapDisplay.h.
|
inline |
It initializes a new MapDisplay.
Definition at line 57 of file AbstractMapDisplay.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 60 of file AbstractMapDisplay.h.
|
pure virtual |
It returns the world extent showned by the MapDisplay.
Implemented in te::map::MapDisplay.
|
pure virtual |
It returns the MapDisplay current horizontal align.
Implemented in te::map::MapDisplay.
|
pure virtual |
It returns the MapDisplay current height in pixels.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtual |
It returns the MapDisplay current height in millimeters.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtual |
It return the Spatial Reference System used by the Map Display.
Implemented in te::map::MapDisplay.
|
pure virtual |
It returns the MapDisplay current vertical align.
Implemented in te::map::MapDisplay.
|
pure virtual |
It returns the MapDisplay current width in pixels.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtual |
It returns the MapDisplay current width in millimeters.
Implemented in te::qt::widgets::MapDisplay.
|
pure virtual |
It updates the contents in the map display.
Implemented in te::qt::widgets::MapDisplay, and te::qt::widgets::MultiThreadMapDisplay.
|
pure 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. |
Implemented in te::map::MapDisplay.
|
pure 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. |
Implemented in te::qt::widgets::MapDisplay, te::qt::widgets::MultiThreadMapDisplay, and te::map::MapDisplay.
|
pure virtual |
It sets the layer list to be showed in the Map Display.
layers | The layer list. |
Implemented in te::map::MapDisplay.
|
pure 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. |
Implemented in te::qt::widgets::MapDisplay, and te::map::MapDisplay.
|
protected |
Definition at line 172 of file AbstractMapDisplay.h.