Version: 0.6.0
rasterpropertypage.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISRasterPropertyPage class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2011,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/catalogui/catalogui.h"
24 #include "wxgis/catalog/gxdataset.h"
25 #include "wxgis/datasource/rasterdataset.h"
26 #include "wxgis/geoprocessing/geoprocessing.h"
27 #include "wxgis/geoprocessingui/geoprocessingui.h"
28 #include "wxgis/core/event.h"
29 
30 #include "wx/wxfreechartdefs.h"
31 #include "wx/chartpanel.h"
32 #include "wx/propgrid/propgrid.h"
33 
41 class WXDLLIMPEXP_GIS_CLU wxGISRasterPropertyPage :
42  public wxPanel
43 {
44  DECLARE_DYNAMIC_CLASS(wxGISRasterPropertyPage)
45  enum
46  {
47  ID_PPCTRL = wxID_HIGHEST + 4504
48  };
49 
50 public:
52  wxGISRasterPropertyPage(wxGxRasterDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Raster"));
54  virtual bool Create(wxGxRasterDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Raster"));
55  virtual wxString GetPageName(void) const {return wxString(_("Raster"));};
56  wxPGProperty* AppendProperty(wxPGProperty* pProp);
57  wxPGProperty* AppendProperty(wxPGProperty* pid, wxPGProperty* pProp);
58  wxPGProperty* AppendMetadataProperty(wxPGProperty* pid, wxString sMeta);
59  wxPGProperty* GetSubProperty(wxPGProperty* pid, const wxString &sName, wxString &sResultName);
60  void FillGrid(void);
61  //events
62  void OnPropertyGridButtonClick ( wxCommandEvent& );
63  void OnFinish(wxGISProcessEvent& event);
64 protected:
65  wxGISRasterDataset* m_pDataset;
66  wxGxRasterDataset* m_pGxDataset;
67  wxPropertyGrid* m_pg;
68  long m_nCounter;
69 private:
70  DECLARE_EVENT_TABLE()
71 };
72 
73 
81 class WXDLLIMPEXP_GIS_CLU wxGISRasterHistogramPropertyPage :
82  public wxPanel
83 {
84  DECLARE_DYNAMIC_CLASS(wxGISRasterHistogramPropertyPage)
85 public:
87  wxGISRasterHistogramPropertyPage(wxGxRasterDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Raster"));
89  virtual bool Create(wxGxRasterDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Raster"));
90  virtual wxString GetPageName(void) const { return wxString(_("Histogram")); };
91  virtual void FillHistogram();
92 protected:
93  wxGISRasterDataset* m_pDataset;
94  wxGxRasterDataset* m_pGxDataset;
95  wxChartPanel *m_pChartPanel;
96 private:
97  DECLARE_EVENT_TABLE()
98 };
99 
Definition: chartpanel.h:51
Definition: rasterdataset.h:32
Definition: rasterpropertypage.h:41
Definition: rasterpropertypage.h:81
The wxGISProcess class event.
Definition: event.h:36
Definition: gxdataset.h:177