All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IDLLoad.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/idl/IDLLoad.c
22 
23  \brief IDL module entry point.
24  */
25 
26 #include "IDLLoad.h"
27 
28 #include "rp/Segmenter.h"
29 #include "Functions.h"
30 
32 
33 #define TERRALIB_IDL_FUNCTIONS_NUMBER 1
34 
35 int IDL_Load(void)
36 {
37  IDL_ExitRegister( IDL_ExitHandler );
38 
40 
42 
43  static IDL_SYSFUN_DEF2 moduleFunctionsAddrs[ TERRALIB_IDL_FUNCTIONS_NUMBER ];
44 
45  moduleFunctionsAddrs[ 0 ].arg_max =
46  moduleFunctionsAddrs[ 0 ].arg_min = 3;
47  moduleFunctionsAddrs[ 0 ].extra = 0;
48  moduleFunctionsAddrs[ 0 ].flags = 0;
49  moduleFunctionsAddrs[ 0 ].name = (char*)"TERRALIB_RP_SEGMENTER_RG";
50  moduleFunctionsAddrs[ 0 ].funct_addr.fun = te::idl::rp::RegionGrowingSegmenter;
51 
52  int returnValue = IDL_SysRtnAdd( moduleFunctionsAddrs, TRUE,
54 
55  return returnValue;
56 }
57 
58 void IDL_ExitHandler(void)
59 {
61 }
IDL_VPTR RegionGrowingSegmenter(int argc, IDL_VPTR *argv, char *argk)
Raster region growing segmentation.
Definition: Segmenter.cpp:50
An utility class to control the startup and cleanup of the TerraLib Platform and its resources...
#define TERRALIB_IDL_FUNCTIONS_NUMBER
Definition: IDLLoad.cpp:33
IDL module functions.
IDL module entry point.
void finalize()
It finalizes the TerraLib Platform.
Definition: TerraLib.cpp:64
static TerraLib & getInstance()
It returns a reference to the singleton instance.
void loadTerralibModules()
Load the required terralib modules.
Definition: Functions.cpp:192
void initialize()
It initializes the TerraLib Platform.
Definition: TerraLib.cpp:33
int IDL_Load(void)
IDL module entry point.
Definition: IDLLoad.cpp:35
void IDL_ExitHandler(void)
IDL exit handler.
Definition: IDLLoad.cpp:58