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);
68 m_inputExt = inputExt;
70 m_mapDisplay->setMouseTracking(
true);
71 m_mapDisplay->setLayerList(layerList);
72 m_mapDisplay->setSRID(srid,
false);
75 m_mapDisplay->setExtent(m_inputExt,
false);
85 m_mapDisplay->setExtent(e,
true);
88 m_panExtent->setCurrentExtent(e);
95 recompose(m_inputExt);
107 m_parentMapDisplay->setExtent(e);
121 m_panExtent->setCurrentExtent(e);
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.
An Envelope defines a 2D rectangular region.
bool isValid() const
It tells if the rectangle is valid or not.