BRL-CAD
Loading...
Searching...
No Matches
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-2026 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
/* Tcl_CreateFileHandler is not implemented by every Tcl notifier. Keep the
35
* platform test here so libtclcad code can select the required event I/O
36
* mechanism by capability instead of scattering OS tests. */
37
#if defined(_WIN32) && !defined(__CYGWIN__)
38
# define USE_TCL_CHAN 1
39
#endif
40
41
__BEGIN_DECLS
42
43
#ifndef TCLCAD_EXPORT
44
# if defined(TCLCAD_DLL_EXPORTS) && defined(TCLCAD_DLL_IMPORTS)
45
# error "Only TCLCAD_DLL_EXPORTS or TCLCAD_DLL_IMPORTS can be defined, not both."
46
# elif defined(TCLCAD_DLL_EXPORTS)
47
# define TCLCAD_EXPORT COMPILER_DLLEXPORT
48
# elif defined(TCLCAD_DLL_IMPORTS)
49
# define TCLCAD_EXPORT COMPILER_DLLIMPORT
50
# else
51
# define TCLCAD_EXPORT
52
# endif
53
#endif
54
55
#define TCLCAD_IDLE_MODE 0
56
#define TCLCAD_ROTATE_MODE 1
57
#define TCLCAD_TRANSLATE_MODE 2
58
#define TCLCAD_SCALE_MODE 3
59
#define TCLCAD_CONSTRAINED_ROTATE_MODE 4
60
#define TCLCAD_CONSTRAINED_TRANSLATE_MODE 5
61
#define TCLCAD_OROTATE_MODE 6
62
#define TCLCAD_OSCALE_MODE 7
63
#define TCLCAD_OTRANSLATE_MODE 8
64
#define TCLCAD_MOVE_ARB_EDGE_MODE 9
65
#define TCLCAD_MOVE_ARB_FACE_MODE 10
66
#define TCLCAD_ROTATE_ARB_FACE_MODE 11
67
#define TCLCAD_PROTATE_MODE 12
68
#define TCLCAD_PSCALE_MODE 13
69
#define TCLCAD_PTRANSLATE_MODE 14
70
// TCLCAD_POLY_CIRCLE_MODE replaced by BV_POLY_CIRCLE_MODE
71
// TCLCAD_POLY_CONTOUR_MODE replaced by BV_POLY_CONTOUR_MODE
72
#define TCLCAD_POLY_ELLIPSE_MODE 17
73
#define TCLCAD_POLY_RECTANGLE_MODE 18
74
#define TCLCAD_POLY_SQUARE_MODE 19
75
#define TCLCAD_RECTANGLE_MODE 20
76
#define TCLCAD_MOVE_METABALL_POINT_MODE 21
77
#define TCLCAD_MOVE_PIPE_POINT_MODE 22
78
#define TCLCAD_MOVE_BOT_POINT_MODE 23
79
#define TCLCAD_MOVE_BOT_POINTS_MODE 24
80
#define TCLCAD_DATA_MOVE_OBJECT_MODE 25
81
#define TCLCAD_DATA_MOVE_POINT_MODE 26
82
#define TCLCAD_DATA_SCALE_MODE 27
83
84
#define TCLCAD_OBJ_FB_MODE_OFF 0
85
#define TCLCAD_OBJ_FB_MODE_UNDERLAY 1
86
#define TCLCAD_OBJ_FB_MODE_INTERLAY 2
87
#define TCLCAD_OBJ_FB_MODE_OVERLAY 3
88
89
/* Use fbserv */
90
#define USE_FBSERV 1
91
92
__END_DECLS
93
94
#endif
/* TCLCAD_DEFINES_H */
95
96
/** @} */
97
/*
98
* Local Variables:
99
* mode: C
100
* tab-width: 8
101
* indent-tabs-mode: t
102
* c-file-style: "stroustrup"
103
* End:
104
* ex: shiftwidth=4 tabstop=8
105
*/
dvec
Definition
dvec.h:74
common.h
Header file for the BRL-CAD common definitions.
include
tclcad
defines.h
Generated on Mon Aug 17 2026 00:59:52 for BRL-CAD by
1.9.8