1 /********************************************************** 2 * Version $Id$ 3 *********************************************************/ 4 5 /////////////////////////////////////////////////////////// 6 // // 7 // SAGA // 8 // // 9 // System for Automated Geoscientific Analyses // 10 // // 11 // Tool Library // 12 // CreateGridSystem // 13 // // 14 //-------------------------------------------------------// 15 // // 16 // CreateGridSystem.h // 17 // // 18 // Copyright (C) 2007 by // 19 // Volker Wichmann // 20 // // 21 //-------------------------------------------------------// 22 // // 23 // This file is part of 'SAGA - System for Automated // 24 // Geoscientific Analyses'. SAGA is free software; you // 25 // can redistribute it and/or modify it under the terms // 26 // of the GNU General Public License as published by the // 27 // Free Software Foundation, either version 2 of the // 28 // License, or (at your option) any later version. // 29 // // 30 // SAGA is distributed in the hope that it will be // 31 // useful, but WITHOUT ANY WARRANTY; without even the // 32 // implied warranty of MERCHANTABILITY or FITNESS FOR A // 33 // PARTICULAR PURPOSE. See the GNU General Public // 34 // License for more details. // 35 // // 36 // You should have received a copy of the GNU General // 37 // Public License along with this program; if not, see // 38 // <http://www.gnu.org/licenses/>. // 39 // // 40 //-------------------------------------------------------// 41 // // 42 // e-mail: wichmann@laserdata.at // 43 // // 44 // // 45 /////////////////////////////////////////////////////////// 46 47 48 49 /////////////////////////////////////////////////////////// 50 // // 51 // // 52 // // 53 /////////////////////////////////////////////////////////// 54 55 //--------------------------------------------------------- 56 #ifndef HEADER_INCLUDED__CreateGridSystem_H 57 #define HEADER_INCLUDED__CreateGridSystem_H 58 59 60 /////////////////////////////////////////////////////////// 61 // // 62 // // 63 // // 64 /////////////////////////////////////////////////////////// 65 66 //--------------------------------------------------------- 67 #include "MLB_Interface.h" 68 69 /////////////////////////////////////////////////////////// 70 // // 71 // // 72 // // 73 /////////////////////////////////////////////////////////// 74 75 76 //--------------------------------------------------------- 77 class CCreateGridSystem : public CSG_Tool 78 { 79 public: 80 CCreateGridSystem(void); 81 Get_MenuPath(void)82 virtual CSG_String Get_MenuPath (void) { return( _TL("A:Grid|Grid System") ); } 83 84 85 protected: 86 87 virtual int On_Parameter_Changed (CSG_Parameters *pParameters, CSG_Parameter *pParameter); 88 virtual int On_Parameters_Enable (CSG_Parameters *pParameters, CSG_Parameter *pParameter); 89 90 virtual bool On_Execute (void); 91 92 93 private: 94 95 CSG_Grid_System Get_Adjusted (double Cellsize, TSG_Rect Extent); 96 97 }; 98 99 100 /////////////////////////////////////////////////////////// 101 // // 102 // // 103 // // 104 /////////////////////////////////////////////////////////// 105 106 //--------------------------------------------------------- 107 #endif // #ifndef HEADER_INCLUDED__CreateGridSystem_H 108