1 2 /////////////////////////////////////////////////////////// 3 // // 4 // SAGA // 5 // // 6 // System for Automated Geoscientific Analyses // 7 // // 8 // Tool Library // 9 // grid analysis // 10 // // 11 //-------------------------------------------------------// 12 // // 13 // TLB_Interface.cpp // 14 // // 15 // Copyright (C) 2004 by // 16 // Victor Olaya // 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, see // 35 // <http://www.gnu.org/licenses/>. // 36 // // 37 //-------------------------------------------------------// 38 // // 39 // e-mail: oconrad@saga-gis.org // 40 // // 41 // contact: Olaf Conrad // 42 // Institute of Geography // 43 // University of Hamburg // 44 // Germany // 45 // // 46 /////////////////////////////////////////////////////////// 47 48 //--------------------------------------------------------- 49 // 1. Include the appropriate SAGA-API header... 50 51 #include <saga_api/saga_api.h> 52 53 54 //--------------------------------------------------------- 55 // 2. Place general tool library informations here... 56 Get_Info(int i)57CSG_String Get_Info(int i) 58 { 59 switch( i ) 60 { 61 case TLB_INFO_Name: default: 62 return( _TL("Analysis") ); 63 64 case TLB_INFO_Category: 65 return( _TL("Grid") ); 66 67 case TLB_INFO_Author: 68 return( _TL("Various authors.") ); 69 70 case TLB_INFO_Description: 71 return( _TL("Some Grid Analysis Tools.") ); 72 73 case TLB_INFO_Version: 74 return( "1.0" ); 75 76 case TLB_INFO_Menu_Path: 77 return( _TL("Grid|Analysis") ); 78 } 79 } 80 81 82 //--------------------------------------------------------- 83 // 3. Include the headers of your tools here... 84 85 #include "Cost_Isotropic.h" 86 #include "LeastCostPathProfile.h" 87 #include "LeastCostPathProfile_Points.h" 88 89 #include "Grid_CVA.h" 90 #include "CoveredDistance.h" 91 #include "Grid_Pattern.h" 92 #include "Grid_LayerOfMaximumValue.h" 93 #include "Grid_AHP.h" 94 #include "owa.h" 95 #include "Grid_AggregationIndex.h" 96 #include "CrossClassification.h" 97 98 #include "Soil_Texture.h" 99 #include "soil_water_capacity.h" 100 101 #include "fragmentation_standard.h" 102 #include "fragmentation_resampling.h" 103 #include "fragmentation_classify.h" 104 105 #include "Grid_Accumulation_Functions.h" 106 #include "Grid_IMCORR.h" 107 #include "Grid_Iterative_Truncation.h" 108 109 #include "diversity_analysis.h" 110 #include "diversity_shannon.h" 111 #include "diversity_simpson.h" 112 #include "diversity_raos_q.h" 113 114 #include "coverage_of_categories.h" 115 116 117 //--------------------------------------------------------- 118 // 4. Allow your tools to be created here... 119 Create_Tool(int i)120CSG_Tool * Create_Tool(int i) 121 { 122 switch( i ) 123 { 124 case 0: return( new CCost_Accumulated ); 125 case 4: return( new CLeastCostPathProfile ); 126 case 5: return( new CLeastCostPathProfile_Points ); 127 128 case 6: return( new CGrid_CVA ); 129 case 7: return( new CCoveredDistance ); 130 case 8: return( new CGrid_Pattern ); 131 case 9: return( new CLayerOfMaximumValue ); 132 case 10: return( new CAHP ); 133 case 11: return( new COWA ); 134 case 12: return( new CAggregationIndex ); 135 case 13: return( new CCrossClassification ); 136 137 case 14: return( new CSoil_Texture ); 138 case 20: return( new CSoil_Texture_Table ); 139 case 27: return( new CSoil_Water_Capacity(false) ); 140 case 28: return( new CSoil_Water_Capacity( true) ); 141 142 case 15: return( new CFragmentation_Standard ); 143 case 16: return( new CFragmentation_Resampling ); 144 case 17: return( new CFragmentation_Classify ); 145 146 case 18: return( new CGrid_Accumulation_Functions ); 147 148 case 19: return( new CGrid_IMCORR ); 149 150 case 21: return( new CDiversity_Analysis ); 151 case 22: return( new CDiversity_Shannon ); 152 case 23: return( new CDiversity_Simpson ); 153 case 24: return( new CDiversity_Raos_Q_Classic ); 154 case 25: return( new CDiversity_Raos_Q ); 155 156 case 26: return( new CCoverage_of_Categories ); 157 158 case 29: return( new CGrid_Iterative_Truncation ); 159 160 case 30: return( NULL ); 161 default: return( TLB_INTERFACE_SKIP_TOOL ); 162 } 163 } 164 165 166 /////////////////////////////////////////////////////////// 167 // // 168 // // 169 // // 170 /////////////////////////////////////////////////////////// 171 172 //--------------------------------------------------------- 173 //{{AFX_SAGA 174 175 TLB_INTERFACE 176 177 //}}AFX_SAGA 178