This class controls how a set of layers are displayed.
More...
#include <MapDisplay.h>
|
Methods to configure the MapDisplay.
|
bool | m_cancel |
|
virtual void | refresh (bool redraw=false)=0 |
| It updates the contents in the map display.
|
|
virtual unsigned int | getWidth () const =0 |
| It returns the MapDisplay current width in pixels.
|
|
virtual unsigned int | getHeight () const =0 |
| It returns the MapDisplay current height in pixels.
|
|
virtual double | getWidthMM () const =0 |
| It returns the MapDisplay current width in millimeters.
|
|
virtual double | getHeightMM () const =0 |
| It returns the MapDisplay current height in millimeters.
|
|
This class controls how a set of layers are displayed.
- See also
- AbstractMapDisplay, AbstractLayer
Definition at line 45 of file MapDisplay.h.
◆ MapDisplay()
te::map::MapDisplay::MapDisplay |
( |
| ) |
|
◆ ~MapDisplay()
virtual te::map::MapDisplay::~MapDisplay |
( |
| ) |
|
|
virtual |
◆ getExtent()
◆ getHAlign()
◆ getHeight()
virtual unsigned int te::map::AbstractMapDisplay::getHeight |
( |
| ) |
const |
|
pure virtualinherited |
◆ getHeightMM()
virtual double te::map::AbstractMapDisplay::getHeightMM |
( |
| ) |
const |
|
pure virtualinherited |
◆ getLayerList()
virtual std::list< AbstractLayerPtr > te::map::MapDisplay::getLayerList |
( |
| ) |
const |
|
virtual |
◆ getSRID()
virtual int te::map::MapDisplay::getSRID |
( |
| ) |
const |
|
virtual |
It return the Spatial Reference System used by the Map Display.
- Returns
- The Spatial Reference System used by the Map Display.
Implements te::map::AbstractMapDisplay.
◆ getVAlign()
◆ getWidth()
virtual unsigned int te::map::AbstractMapDisplay::getWidth |
( |
| ) |
const |
|
pure virtualinherited |
◆ getWidthMM()
virtual double te::map::AbstractMapDisplay::getWidthMM |
( |
| ) |
const |
|
pure virtualinherited |
◆ refresh()
virtual void te::map::AbstractMapDisplay::refresh |
( |
bool |
redraw = false | ) |
|
|
pure virtualinherited |
◆ setAlign()
It will set the align rendering of objects into the map display. Just successive drawings will be affected by this modification.
- Parameters
-
h | The new horizontal align. |
v | The new vertical align. |
- Note
- It will not automatically redraw the objects, you must explicit call the setExtent method.
Implements te::map::AbstractMapDisplay.
◆ setExtent()
virtual void te::map::MapDisplay::setExtent |
( |
te::gm::Envelope & |
e, |
|
|
bool |
doRefresh = true |
|
) |
| |
|
virtual |
◆ setLayerList()
◆ setSRID()
virtual void te::map::MapDisplay::setSRID |
( |
const int & |
srid, |
|
|
bool |
doRefresh = true |
|
) |
| |
|
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.
- Parameters
-
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.
◆ m_cancel
bool te::map::AbstractMapDisplay::m_cancel |
|
protectedinherited |
◆ m_extent
◆ m_hAlign
The display horizontal align.
Definition at line 78 of file MapDisplay.h.
◆ m_layerList
The layer list to be displayed.
Definition at line 76 of file MapDisplay.h.
◆ m_srid
int te::map::MapDisplay::m_srid |
|
protected |
◆ m_vAlign
The display vertical align.
Definition at line 79 of file MapDisplay.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/maptools/MapDisplay.h