source: trunk/gui/src/RapptureGUI_Init.c @ 4503

Last change on this file since 4503 was 4211, checked in by ldelgass, 7 years ago

More fixes for VTK features. Note that DxToVtk? and PdbToVtk? do not use the
VTK library, and thus can always be built. The DicomToVtk? converter requires
VTK, but does not require the ENABLE_VTK_DICOM option to be set. That option
controls if the external vtkDICOM library is used in addition to VTK.

File size: 2.1 KB
Line 
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
24extern Tcl_AppInitProc Rappturegui_Init;
25extern Tcl_AppInitProc RpCanvHotspot_Init;
26extern Tcl_AppInitProc RpCanvPlacard_Init;
27extern Tcl_AppInitProc RpDiffview_Init;
28extern Tcl_AppInitProc RpListbox_Init;
29extern Tcl_AppInitProc RpReadPoints_Init;
30extern Tcl_AppInitProc RpSqueezer_Init;
31
32extern Tcl_AppInitProc RpDxToVtk_Init;
33extern Tcl_AppInitProc RpPdbToVtk_Init;
34#ifdef ENABLE_VTK
35extern Tcl_AppInitProc RpDicomToVtk_Init;
36#endif
37
38#ifdef BUILD_Rappture
39__declspec( dllexport )
40#endif
41
42int
43Rappturegui_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
Note: See TracBrowser for help on using the repository browser.