BRL-CAD
bn_tcl.h
Go to the documentation of this file.
1 /* B N _ T C L . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2004-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 
21 /*----------------------------------------------------------------------*/
22 /* @file bn_tcl.h */
23 /** @addtogroup bntcl */
24 /** @{ */
25 
26 /**
27  * @brief
28  * Tcl interfaces to all the LIBBN math routines.
29  *
30  */
31 
32 #ifndef BN_TCL_H
33 #define BN_TCL_H
34 
35 #include "common.h"
36 #include "vmath.h"
37 #include "bn/defines.h"
38 #include "bu/bu_tcl.h"
39 
41 
42 #include "tcl_encode.h"
43 
44 /**
45  *@brief
46  * Add all the supported Tcl interfaces to LIBBN routines to
47  * the list of commands known by the given interpreter.
48  */
49 BN_EXPORT extern void bn_tcl_setup(Tcl_Interp *interp);
50 
51 /**
52  *@brief
53  * Allows LIBBN to be dynamically loaded to a vanilla tclsh/wish with
54  * "load /usr/brlcad/lib/libbn.so"
55  *
56  * The name of this function is specified by TCL.
57  */
58 BN_EXPORT extern int Bn_Init(Tcl_Interp *interp);
59 
60 BN_EXPORT extern void bn_tcl_mat_print(Tcl_Interp *interp, const char *title, const mat_t m);
61 
63 
64 #endif /* BN_TCL_H */
65 /** @} */
66 /*
67  * Local Variables:
68  * mode: C
69  * tab-width: 8
70  * indent-tabs-mode: t
71  * c-file-style: "stroustrup"
72  * End:
73  * ex: shiftwidth=4 tabstop=8
74  */
void bn_tcl_setup(Tcl_Interp *interp)
Tcl interfaces to all the LIBBN math routines.
Definition: tcl.c:1009
ustring interp
Header file for the BRL-CAD common definitions.
void bn_tcl_mat_print(Tcl_Interp *interp, const char *title, const mat_t m)
Definition: tcl.c:997
#define __BEGIN_DECLS
Definition: common.h:73
#define __END_DECLS
Definition: common.h:74
int Bn_Init(Tcl_Interp *interp)
Allows LIBBN to be dynamically loaded to a vanilla tclsh/wish with "load /usr/brlcad/lib/libbn.so".
Definition: tcl.c:1043