1 
2 ///////////////////////////////////////////////////////////
3 //                                                       //
4 //                         SAGA                          //
5 //                                                       //
6 //      System for Automated Geoscientific Analyses      //
7 //                                                       //
8 //                     Tool Library                      //
9 //                  Grid_Visualisation                   //
10 //                                                       //
11 //-------------------------------------------------------//
12 //                                                       //
13 //                   TLB_Interface.cpp                   //
14 //                                                       //
15 //                 Copyright (C) 2003 by                 //
16 //                      Olaf Conrad                      //
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 Goettingen               //
44 //                Goldschmidtstr. 5                      //
45 //                37077 Goettingen                       //
46 //                Germany                                //
47 //                                                       //
48 ///////////////////////////////////////////////////////////
49 
50 //---------------------------------------------------------
51 
52 
53 ///////////////////////////////////////////////////////////
54 //														 //
55 //           The Tool Link Library Interface             //
56 //														 //
57 ///////////////////////////////////////////////////////////
58 
59 //---------------------------------------------------------
60 // 1. Include the appropriate SAGA-API header...
61 
62 #include <saga_api/saga_api.h>
63 
64 
65 //---------------------------------------------------------
66 // 2. Place general tool library informations here...
67 
Get_Info(int i)68 CSG_String Get_Info(int i)
69 {
70 	switch( i )
71 	{
72 	case TLB_INFO_Name:	default:
73 		return( _TL("Grids") );
74 
75 	case TLB_INFO_Category:
76 		return( _TL("Visualization") );
77 
78 	case TLB_INFO_Author:
79 		return( SG_T("O. Conrad, V. Wichmann (c) 2002-2014") );
80 
81 	case TLB_INFO_Description:
82 		return( _TL("Visualization tools for grids.") );
83 
84 	case TLB_INFO_Version:
85 		return( SG_T("1.0") );
86 
87 	case TLB_INFO_Menu_Path:
88 		return( _TL("Visualization|Grid") );
89 	}
90 }
91 
92 
93 //---------------------------------------------------------
94 // 3. Include the headers of your tools here...
95 
96 #include "Grid_Color_Rotate.h"
97 #include "Grid_Color_Blend.h"
98 #include "Grid_Colors_Fit.h"
99 #include "Grid_RGB_Composite.h"
100 #include "Grid_3D_Image.h"
101 #include "Grid_Color_Triangle.h"
102 #include "Grid_Histogram_Surface.h"
103 #include "Grid_Aspect_Slope_Map.h"
104 #include "Grid_Terrain_Map.h"
105 #include "Grid_LUT_Assign.h"
106 
107 
108 //---------------------------------------------------------
109 // 4. Allow your tools to be created here...
110 
Create_Tool(int i)111 CSG_Tool *		Create_Tool(int i)
112 {
113 	switch( i )
114 	{
115 	case  0:	return( new CGrid_Color_Rotate );
116 	case  1:	return( new CGrid_Color_Blend );
117 	case  2:	return( new CGrid_Colors_Fit );
118 	case  3:	return( new CGrid_RGB_Composite );
119 	case  4:	return( new CGrid_3D_Image );
120 	case  5:	return( new CGrid_Color_Triangle );
121 	case  6:	return( new CGrid_Histogram_Surface );
122 	case  7:	return( new CGrid_Aspect_Slope_Map );
123 	case  8:	return( new CGrid_Terrain_Map );
124 	case  9:	return( new CGrid_RGB_Split );
125 	case 10:	return( new CGrid_LUT_Assign );
126 	case 11:	return( new CLUT_Create );
127 
128 	case 12:	return( NULL );
129 	default:	return( TLB_INTERFACE_SKIP_TOOL );
130 	}
131 
132 	return( NULL );
133 }
134 
135 
136 ///////////////////////////////////////////////////////////
137 //														 //
138 //														 //
139 //														 //
140 ///////////////////////////////////////////////////////////
141 
142 //---------------------------------------------------------
143 //{{AFX_SAGA
144 
145 	TLB_INTERFACE
146 
147 //}}AFX_SAGA
148