📄 lakeflood.h
字号:
///////////////////////////////////////////////////////////
// //
// SAGA //
// //
// System for Automated Geoscientific Analyses //
// //
// Module Library: //
// ta_hydrology //
// //
//-------------------------------------------------------//
// //
// LakeFlood.h //
// //
// Copyright (C) 2005-6 by //
// Volker Wichmann //
// //
//-------------------------------------------------------//
// //
// This file is part of 'SAGA - System for Automated //
// Geoscientific Analyses'. SAGA is free software; you //
// can redistribute it and/or modify it under the terms //
// of the GNU General Public License as published by the //
// Free Software Foundation; version 2 of the License. //
// //
// SAGA is distributed in the hope that it will be //
// useful, but WITHOUT ANY WARRANTY; without even the //
// implied warranty of MERCHANTABILITY or FITNESS FOR A //
// PARTICULAR PURPOSE. See the GNU General Public //
// License for more details. //
// //
// You should have received a copy of the GNU General //
// Public License along with this program; if not, //
// write to the Free Software Foundation, Inc., //
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, //
// USA. //
// //
//-------------------------------------------------------//
// //
// e-mail: volkerwichmann@ku-eichstaett.de //
// //
// contact: Volker Wichmann //
// Research Associate //
// Chair of Physical Geography //
// KU Eichst鋞t-Ingolstadt //
// Ostenstr. 18 //
// 85072 Eichst鋞t //
// Germany //
// //
///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#ifndef HEADER_INCLUDED__LakeFlood_H
#define HEADER_INCLUDED__LakeFlood_H
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#include "MLB_Interface.h"
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
class CTraceOrder
{
public:
CTraceOrder(void)
{
x = y = 0;
prev = NULL;
next = NULL;
};
~CTraceOrder(void)
{
if(next != NULL)
delete (next);
next = NULL;
};
int x;
int y;
CTraceOrder *prev;
CTraceOrder *next;
};
//---------------------------------------------------------
class ta_hydrology_EXPORT CLakeFlood : public CSG_Module_Grid
{
public:
CLakeFlood(void);
virtual ~CLakeFlood(void);
virtual const SG_Char * Get_MenuPath (void) { return( _TL("R:Lakes") ); }
protected:
virtual bool On_Execute (void);
private:
};
//---------------------------------------------------------
class ta_hydrology_EXPORT CLakeFloodInteractive : public CSG_Module_Grid_Interactive
{
public:
CLakeFloodInteractive(void);
virtual ~CLakeFloodInteractive(void);
virtual const SG_Char * Get_MenuPath (void) { return( _TL("R:Lakes") ); }
protected:
virtual bool On_Execute (void);
virtual bool On_Execute_Finish (void);
virtual bool On_Execute_Position (CSG_Point ptWorld, TSG_Module_Interactive_Mode Mode);
private:
CSG_Grid *pElev, *pOdepth;
CTraceOrder *newCell, *firstCell, *iterCell, *lastCell;
double wzSeed;
};
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#endif // #ifndef HEADER_INCLUDED__LakeFlood_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -