1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * RapptureGUI_Init |
---|
4 | * |
---|
5 | * This file contains the function that initializes all of the various |
---|
6 | * extensions in this package. |
---|
7 | * ====================================================================== |
---|
8 | * AUTHOR: Michael McLennan, Purdue University |
---|
9 | * Copyright (c) 2004-2012 HUBzero Foundation, LLC |
---|
10 | * |
---|
11 | * See the file "license.terms" for information on usage and |
---|
12 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
13 | * ====================================================================== |
---|
14 | */ |
---|
15 | |
---|
16 | #include <tcl.h> |
---|
17 | #include <tk.h> |
---|
18 | |
---|
19 | #ifdef BUILD_rappture |
---|
20 | #undef TCL_STORAGE_CLASS |
---|
21 | #define TCL_STORAGE_CLASS DLLEXPORT |
---|
22 | #endif |
---|
23 | |
---|
24 | extern Tcl_AppInitProc Rappturegui_Init; |
---|
25 | extern Tcl_AppInitProc RpCanvHotspot_Init; |
---|
26 | extern Tcl_AppInitProc RpCanvPlacard_Init; |
---|
27 | extern Tcl_AppInitProc RpDiffview_Init; |
---|
28 | extern Tcl_AppInitProc RpListbox_Init; |
---|
29 | extern Tcl_AppInitProc RpReadPoints_Init; |
---|
30 | extern Tcl_AppInitProc RpSqueezer_Init; |
---|
31 | |
---|
32 | extern Tcl_AppInitProc RpDxToVtk_Init; |
---|
33 | extern Tcl_AppInitProc RpPdbToVtk_Init; |
---|
34 | #ifdef ENABLE_VTK |
---|
35 | extern Tcl_AppInitProc RpDicomToVtk_Init; |
---|
36 | #endif |
---|
37 | |
---|
38 | #ifdef BUILD_Rappture |
---|
39 | __declspec( dllexport ) |
---|
40 | #endif |
---|
41 | |
---|
42 | int |
---|
43 | Rappturegui_Init( Tcl_Interp * interp) |
---|
44 | { |
---|
45 | if (Tcl_InitStubs(interp, "8.4", 0) == NULL) { |
---|
46 | return TCL_ERROR; |
---|
47 | } |
---|
48 | if (Tk_InitStubs(interp, "8.4", 0) == NULL) { |
---|
49 | return TCL_ERROR; |
---|
50 | } |
---|
51 | if (RpDiffview_Init(interp) != TCL_OK) { |
---|
52 | return TCL_ERROR; |
---|
53 | } |
---|
54 | if (RpCanvPlacard_Init(interp) != TCL_OK) { |
---|
55 | return TCL_ERROR; |
---|
56 | } |
---|
57 | if (RpListbox_Init(interp) != TCL_OK) { |
---|
58 | return TCL_ERROR; |
---|
59 | } |
---|
60 | if (RpReadPoints_Init(interp) != TCL_OK) { |
---|
61 | return TCL_ERROR; |
---|
62 | } |
---|
63 | if (RpSqueezer_Init(interp) != TCL_OK) { |
---|
64 | return TCL_ERROR; |
---|
65 | } |
---|
66 | if (RpCanvHotspot_Init(interp) != TCL_OK) { |
---|
67 | return TCL_ERROR; |
---|
68 | } |
---|
69 | if (RpDxToVtk_Init(interp) != TCL_OK) { |
---|
70 | return TCL_ERROR; |
---|
71 | } |
---|
72 | if (RpPdbToVtk_Init(interp) != TCL_OK) { |
---|
73 | return TCL_ERROR; |
---|
74 | } |
---|
75 | #ifdef ENABLE_VTK |
---|
76 | if (RpDicomToVtk_Init(interp) != TCL_OK) { |
---|
77 | return TCL_ERROR; |
---|
78 | } |
---|
79 | #endif |
---|
80 | return TCL_OK; |
---|
81 | } |
---|
82 | |
---|