27 #include "../../../geometry/Coord2D.h" 
   28 #include "../../../geometry/Envelope.h" 
   29 #include "../canvas/MapDisplay.h" 
   34     m_zoomFactor(zoomFactor),
 
   56   double factor = m_zoomFactor;
 
   65   double w = currentExtent.
getWidth() * factor * 0.5;
 
   66   double h = currentExtent.
getHeight() * factor * 0.5;
 
   71   m_display->setExtent(e);
 
This is a utility class to geographic zoom operation. 
 
double getWidth() const 
It returns the envelope width. 
 
An utility struct for representing 2D coordinates. 
 
Coord2D getCenter() const 
It returns the rectangle's center coordinate. 
 
An Envelope defines a 2D rectangular region. 
 
double getHeight() const 
It returns the envelope height. 
 
bool isValid() const 
It tells if the rectangle is valid or not.