27 #include "../srs/Config.h" te::map::AlignType m_hAlign
The display horizontal align.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
virtual std::list< AbstractLayerPtr > getLayerList() const
virtual ~MapDisplay()
Virtual destructor.
te::map::AlignType m_vAlign
The display vertical align.
virtual te::map::AlignType getHAlign() const
It returns the MapDisplay current horizontal align.
virtual void setExtent(te::gm::Envelope &e, bool doRefresh=true)
It sets the world visible area and refreshes the contents in the map display.
AlignType
This enum contains values to control the alignment of components (like Canvas and MapDisplay)...
virtual void setLayerList(const std::list< te::map::AbstractLayerPtr > &layers)
It sets the layer list to be showed in the Map Display.
MapDisplay()
It initializes a new MapDisplay.
An Envelope defines a 2D rectangular region.
virtual void setSRID(const int &srid, bool doRefresh=true)
It sets a new Spatial Reference System to be used by the Map Display.
virtual int getSRID() const
It return the Spatial Reference System used by the Map Display.
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
int m_srid
The display SRS.
te::gm::Envelope m_extent
The display extent.
std::list< te::map::AbstractLayerPtr > m_layerList
The layer list to be displayed.
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 aff...
void transform(int oldsrid, int newsrid)
It will transform the coordinates of the Envelope from the old SRS to the new one.
bool isValid() const
It tells if the rectangle is valid or not.
virtual te::map::AlignType getVAlign() const
It returns the MapDisplay current vertical align.