27 #include "../../../geometry/Envelope.h" 28 #include "../../../maptools/Utils.h" 29 #include "../canvas/MultiThreadMapDisplay.h" 30 #include "../tools/PanExtent.h" 34 #include <QGridLayout> 37 #define PATTERN_SIZE 14 40 :
QWidget(parent, f), m_parentMapDisplay(mapParent), m_itsMe(false), m_isEnabled(true)
43 QGridLayout* displayLayout =
new QGridLayout(
this);
49 displayLayout->setContentsMargins(0,0,0,0);
TEMAPEXPORT te::gm::Envelope GetExtent(const std::list< te::map::AbstractLayerPtr > &layers, int srid, bool onlyVisibles)
It calculates the extent of the given layers in the given SRID.
virtual void setLayerList(const std::list< te::map::AbstractLayerPtr > &layers)
It sets the layer list to be showed in the Map Display.
An Envelope defines a 2D rectangular region.
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
bool isValid() const
It tells if the rectangle is valid or not.