1 
2 ///////////////////////////////////////////////////////////
3 //                                                       //
4 //                         SAGA                          //
5 //                                                       //
6 //      System for Automated Geoscientific Analyses      //
7 //                                                       //
8 //                     Tool Library                      //
9 //                       RivFlow                         //
10 //                                                       //
11 //-------------------------------------------------------//
12 //                                                       //
13 //                    RivGridPrep.h                      //
14 //                                                       //
15 //                 Copyright (C) 2014 by                 //
16 //                   Christian Alwardt                   //
17 //                                                       //
18 //-------------------------------------------------------//
19 //                                                       //
20 // This file is part of 'SAGA - System for Automated     //
21 // Geoscientific Analyses'. SAGA is free software; you   //
22 // can redistribute it and/or modify it under the terms  //
23 // of the GNU General Public License as published by the //
24 // Free Software Foundation, either version 2 of the     //
25 // License, or (at your option) any later version.       //
26 //                                                       //
27 // SAGA is distributed in the hope that it will be       //
28 // useful, but WITHOUT ANY WARRANTY; without even the    //
29 // implied warranty of MERCHANTABILITY or FITNESS FOR A  //
30 // PARTICULAR PURPOSE. See the GNU General Public        //
31 // License for more details.                             //
32 //                                                       //
33 // You should have received a copy of the GNU General    //
34 // Public License along with this program; if not,       //
35 // write to the Free Software Foundation, Inc.,          //
36 // 59 Temple Place - Suite 330, Boston, MA 02111-1307,   //
37 // USA.                                                  //
38 //                                                       //
39 //-------------------------------------------------------//
40 //                                                       //
41 //    e-mail:     alwardt@ifsh.de                        //
42 //                                                       //
43 //    contact:    Christian Alwardt                      //
44 //                Institute for Peace Research           //
45 //                and Security Policy (IFSH)             //
46 //                University of Hamburg                  //
47 //                Germany                                //
48 //                                                       //
49 ///////////////////////////////////////////////////////////
50 
51 ///////////////////////////////////////////////////////////
52 //														 //
53 //		RivTool 0.1										 //
54 //														 //
55 ///////////////////////////////////////////////////////////
56 
57 //---------------------------------------------------------
58 #ifndef HEADER_INCLUDED__RivGridPrep_H
59 #define HEADER_INCLUDED__RivGridPrep_H
60 
61 //---------------------------------------------------------
62 #include <saga_api/saga_api.h>
63 
64 //---------------------------------------------------------
65 //#########################################################
66 
67 class CRivGridPrep : public CSG_Tool_Grid
68 {
69 public: ////// public members and functions: //////////////
70 
71 	CRivGridPrep(void);							// constructor
72 
73 
74 protected: /// protected members and functions: ///////////
75 
76 	virtual bool		On_Execute	(void);		// always overwrite this function
77 
78 
79 private: ///// private members and functions: /////////////
80 	CSG_Grid *m_pDTM, *m_pRivGridCells;
81 	int m_pSX, m_pSY, m_pMX, m_pMY;
82 
83 	bool Set_RivGridCells(int sx, int sy, int mx, int my );
84 
85 };
86 
87 
88 ///////////////////////////////////////////////////////////
89 //                                                       //
90 //                                                       //
91 //                                                       //
92 ///////////////////////////////////////////////////////////
93 
94 //---------------------------------------------------------
95 #endif // #ifndef HEADER_INCLUDED__RivGrids_H
96