Version: 0.6.0
mapbitmap.h
1 /******************************************************************************
2  * Project: wxGIS
3  * Purpose: wxGISMapBitmap class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2013 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/cartoui/cartoui.h"
24 #include "wxgis/display/symbol.h"
25 #include "wxgis/carto/map.h"
26 #include "wxgis/cartoui/mxeventui.h"
27 #include "wxgis/carto/mxevent.h"
28 
36 class WXDLLIMPEXP_GIS_CTU wxGISMapBitmap :
37  public wxGISExtentStack
38 {
39 public:
40  wxGISMapBitmap(int nWidth, int nHeight);
41  virtual ~wxGISMapBitmap(void);
42  virtual void SetTrackCancel(ITrackCancel* pTrackCancel);
43  virtual wxGISDisplay* GetDisplay(void){return m_pGISDisplay;};
44  //wxGISExtentStack
45  virtual bool AddLayer(wxGISLayer* pLayer);
46  virtual void Clear(void);
47  virtual void SetSpatialReference(const wxGISSpatialReference &SpatialReference);
48  virtual void SetExtent(const OGREnvelope& Env);
49  virtual void SetFullExtent(void);
50  virtual OGREnvelope GetFullExtent(void);
51  virtual void SetRotate(double dfAngleRad);
52  virtual double GetRotate(void) const;
53  virtual void DrawGeometry(const wxGISGeometry &Geometry, wxGISSymbol* const pSymbol);
54  //
55  virtual bool SaveAsBitmap(const CPLString &szPath, wxGISEnumRasterDatasetType eType, char **papszOptions, bool bAddMetadata = true);
56 protected:
57  ITrackCancel *m_pTrackCancel;
58  double m_nFactor;
59  double m_dfCurrentAngleRad;
60  int m_nWidth, m_nHeight;
61 };
Definition: mapbitmap.h:36
Definition: symbol.h:35
Definition: gdalinh.h:333
Definition: gisdisplay.h:43
A TrackCancel interface class.
Definition: core.h:144
Definition: layer.h:35
Definition: gdalinh.h:57
Definition: map.h:68