BRL-CAD
defines.h
Go to the documentation of this file.
1 /* T C L C A D / D E F I N E S . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2004-2024 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 /** @addtogroup libtclcad */
21 /** @{ */
22 /** @file tclcad/defines.h
23  *
24  * @brief
25  * Definitions header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
26  *
27  */
28 
29 #ifndef TCLCAD_DEFINES_H
30 #define TCLCAD_DEFINES_H
31 
32 #include "common.h"
33 
34 __BEGIN_DECLS
35 
36 #ifndef TCLCAD_EXPORT
37 # if defined(TCLCAD_DLL_EXPORTS) && defined(TCLCAD_DLL_IMPORTS)
38 # error "Only TCLCAD_DLL_EXPORTS or TCLCAD_DLL_IMPORTS can be defined, not both."
39 # elif defined(TCLCAD_DLL_EXPORTS)
40 # define TCLCAD_EXPORT COMPILER_DLLEXPORT
41 # elif defined(TCLCAD_DLL_IMPORTS)
42 # define TCLCAD_EXPORT COMPILER_DLLIMPORT
43 # else
44 # define TCLCAD_EXPORT
45 # endif
46 #endif
47 
48 #define TCLCAD_IDLE_MODE 0
49 #define TCLCAD_ROTATE_MODE 1
50 #define TCLCAD_TRANSLATE_MODE 2
51 #define TCLCAD_SCALE_MODE 3
52 #define TCLCAD_CONSTRAINED_ROTATE_MODE 4
53 #define TCLCAD_CONSTRAINED_TRANSLATE_MODE 5
54 #define TCLCAD_OROTATE_MODE 6
55 #define TCLCAD_OSCALE_MODE 7
56 #define TCLCAD_OTRANSLATE_MODE 8
57 #define TCLCAD_MOVE_ARB_EDGE_MODE 9
58 #define TCLCAD_MOVE_ARB_FACE_MODE 10
59 #define TCLCAD_ROTATE_ARB_FACE_MODE 11
60 #define TCLCAD_PROTATE_MODE 12
61 #define TCLCAD_PSCALE_MODE 13
62 #define TCLCAD_PTRANSLATE_MODE 14
63 // TCLCAD_POLY_CIRCLE_MODE replaced by BV_POLY_CIRCLE_MODE
64 // TCLCAD_POLY_CONTOUR_MODE replaced by BV_POLY_CONTOUR_MODE
65 #define TCLCAD_POLY_ELLIPSE_MODE 17
66 #define TCLCAD_POLY_RECTANGLE_MODE 18
67 #define TCLCAD_POLY_SQUARE_MODE 19
68 #define TCLCAD_RECTANGLE_MODE 20
69 #define TCLCAD_MOVE_METABALL_POINT_MODE 21
70 #define TCLCAD_MOVE_PIPE_POINT_MODE 22
71 #define TCLCAD_MOVE_BOT_POINT_MODE 23
72 #define TCLCAD_MOVE_BOT_POINTS_MODE 24
73 #define TCLCAD_DATA_MOVE_OBJECT_MODE 25
74 #define TCLCAD_DATA_MOVE_POINT_MODE 26
75 #define TCLCAD_DATA_SCALE_MODE 27
76 
77 #define TCLCAD_OBJ_FB_MODE_OFF 0
78 #define TCLCAD_OBJ_FB_MODE_UNDERLAY 1
79 #define TCLCAD_OBJ_FB_MODE_INTERLAY 2
80 #define TCLCAD_OBJ_FB_MODE_OVERLAY 3
81 
82 /* Use fbserv */
83 #define USE_FBSERV 1
84 
85 __END_DECLS
86 
87 #endif /* TCLCAD_DEFINES_H */
88 
89 /** @} */
90 /*
91  * Local Variables:
92  * mode: C
93  * tab-width: 8
94  * indent-tabs-mode: t
95  * c-file-style: "stroustrup"
96  * End:
97  * ex: shiftwidth=4 tabstop=8
98  */
Header file for the BRL-CAD common definitions.