📄 mlb_interface.cpp
字号:
///////////////////////////////////////////////////////////
// //
// SAGA //
// //
// System for Automated Geoscientific Analyses //
// //
// Module Library: //
// Grid_Tools //
// //
//-------------------------------------------------------//
// //
// MLB_Interface.cpp //
// //
// Copyright (C) 2003 by //
// Olaf Conrad //
// //
//-------------------------------------------------------//
// //
// 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: oconrad@saga-gis.org //
// //
// contact: Olaf Conrad //
// Institute of Geography //
// University of Goettingen //
// Goldschmidtstr. 5 //
// 37077 Goettingen //
// Germany //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
///////////////////////////////////////////////////////////
// //
// The Module Link Library Interface //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
// 1. Include the appropriate SAGA-API header...
#include "MLB_Interface.h"
//---------------------------------------------------------
// 2. Place general module library informations here...
const SG_Char * Get_Info(int i)
{
switch( i )
{
case MLB_INFO_Name: default:
return( _TL("Grid - Tools") );
case MLB_INFO_Author:
return( _TL("Olaf Conrad, Victor Olaya, Volker Wichmann (c) 2002-5") );
case MLB_INFO_Description:
return( _TL("Tools for the manipulation of gridded data.") );
case MLB_INFO_Version:
return( SG_T("1.0") );
case MLB_INFO_Menu_Path:
return( _TL("Grid|Tools") );
}
}
//---------------------------------------------------------
// 3. Include the headers of your modules here...
#include "Grid_Orientation.h"
#include "Grid_Resample.h"
#include "Grid_Aggregate.h"
#include "Grid_Cut.h"
#include "Grid_Merge.h"
#include "Grid_Completion.h"
#include "Grid_Gaps_OneCell.h"
#include "Grid_Gaps.h"
#include "Grid_CombineGrids.h"
#include "Grid_ConstantGrid.h"
#include "Grid_CropToData.h"
#include "Grid_InvertNoData.h"
#include "GridsFromTableAndGrid.h"
#include "Grid_Value_Type.h"
#include "Grid_Value_Replace.h"
#include "Grid_Value_Replace_Interactive.h"
#include "Grid_Value_Request.h"
#include "Grid_Value_Reclassify.h"
#include "Grid_Buffer.h"
#include "Grid_ThresholdBuffer.h"
#include "Grid_Buffer_Proximity.h"
#include "Grid_SortRaster.h"
#include "Grid_Fill.h"
//---------------------------------------------------------
// 4. Allow your modules to be created here...
CSG_Module * Create_Module(int i)
{
switch( i )
{
case 0: return( new CGrid_Resample );
case 1: return( new CGrid_Aggregate );
case 2: return( new CGrid_Cut );
case 3: return( new CGrid_Merge );
case 4: return( new CConstantGrid );
case 5: return( new CGrid_Completion );
case 6: return( new CGrid_Gaps_OneCell );
case 7: return( new CGrid_Gaps );
case 8: return( new CGrid_Buffer );
case 9: return( new CThresholdBuffer );
case 10: return( new CGrid_Proximity_Buffer );
case 11: return( new CGrid_Value_Type );
case 12: return( new CGrid_Value_Replace );
case 13: return( new CGrid_Value_Replace_Interactive );
case 14: return( new CGrid_Value_Request );
case 15: return( new CGrid_Value_Reclassify );
case 16: return( new CGrid_Fill );
case 17: return( new CCropToData );
case 18: return( new CInvertNoData );
case 19: return( new CGrid_Orientation );
case 20: return( new CCombineGrids );
case 21: return( new CSortRaster );
case 22: return( new CGridsFromTableAndGrid );
}
return( NULL );
}
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
//{{AFX_SAGA
MLB_INTERFACE
//}}AFX_SAGA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -