BRL-CAD
draw.h
Go to the documentation of this file.
1/* T C L C A D / D R A W. H
2 * BRL-CAD
3 *
4 * Copyright (c) 2004-2023 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/draw.h
23 *
24 * @brief
25 * Drawing header file for the BRL-CAD TclCAD Library, LIBTCLCAD.
26 *
27 */
28
29#ifndef TCLCAD_DRAW_H
30#define TCLCAD_DRAW_H
31
32#include "common.h"
33#include "tcl.h"
34#include "dm.h"
35#include "ged.h"
36#include "tclcad/defines.h"
37
38__BEGIN_DECLS
39
40// Data specific to an individual view rather than the geometry database
41// instance.
43 struct ged *gedp;
49};
50
51TCLCAD_EXPORT extern void go_refresh(struct ged *gedp,
52 struct bview *gdvp);
53TCLCAD_EXPORT extern void go_refresh_draw(struct ged *gedp,
54 struct bview *gdvp,
55 int restore_zbuffer);
56TCLCAD_EXPORT extern int go_view_axes(struct ged *gedp,
57 struct bview *gdvp,
58 int argc,
59 const char *argv[],
60 const char *usage);
61TCLCAD_EXPORT extern int go_data_labels(Tcl_Interp *interp,
62 struct ged *gedp,
63 struct bview *gdvp,
64 int argc,
65 const char *argv[],
66 const char *usage);
67TCLCAD_EXPORT extern int go_data_arrows(Tcl_Interp *interp,
68 struct ged *gedp,
69 struct bview *gdvp,
70 int argc,
71 const char *argv[],
72 const char *usage);
73TCLCAD_EXPORT extern int go_data_pick(struct ged *gedp,
74 struct bview *gdvp,
75 int argc,
76 const char *argv[],
77 const char *usage);
78TCLCAD_EXPORT extern int go_data_axes(Tcl_Interp *interp,
79 struct ged *gedp,
80 struct bview *gdvp,
81 int argc,
82 const char *argv[],
83 const char *usage);
84TCLCAD_EXPORT extern int go_data_lines(Tcl_Interp *interp,
85 struct ged *gedp,
86 struct bview *gdvp,
87 int argc,
88 const char *argv[],
89 const char *usage);
90TCLCAD_EXPORT extern int go_data_move(Tcl_Interp *interp,
91 struct ged *gedp,
92 struct bview *gdvp,
93 int argc,
94 const char *argv[],
95 const char *usage);
96TCLCAD_EXPORT extern int go_data_move_object_mode(Tcl_Interp *interp,
97 struct ged *gedp,
98 struct bview *gdvp,
99 int argc,
100 const char *argv[],
101 const char *usage);
102TCLCAD_EXPORT extern int go_data_move_point_mode(Tcl_Interp *interp,
103 struct ged *gedp,
104 struct bview *gdvp,
105 int argc,
106 const char *argv[],
107 const char *usage);
108TCLCAD_EXPORT extern int go_data_polygons(Tcl_Interp *interp,
109 struct ged *gedp,
110 struct bview *gdvp,
111 int argc,
112 const char *argv[],
113 const char *usage);
114TCLCAD_EXPORT extern int go_mouse_poly_circ(Tcl_Interp *interp,
115 struct ged *gedp,
116 struct bview *gdvp,
117 int argc,
118 const char *argv[],
119 const char *usage);
120TCLCAD_EXPORT extern int go_mouse_poly_cont(Tcl_Interp *interp,
121 struct ged *gedp,
122 struct bview *gdvp,
123 int argc,
124 const char *argv[],
125 const char *usage);
126TCLCAD_EXPORT extern int go_mouse_poly_ell(Tcl_Interp *interp,
127 struct ged *gedp,
128 struct bview *gdvp,
129 int argc,
130 const char *argv[],
131 const char *usage);
132TCLCAD_EXPORT extern int go_mouse_poly_rect(Tcl_Interp *interp,
133 struct ged *gedp,
134 struct bview *gdvp,
135 int argc,
136 const char *argv[],
137 const char *usage);
138TCLCAD_EXPORT extern int go_poly_circ_mode(Tcl_Interp *interp,
139 struct ged *gedp,
140 struct bview *gdvp,
141 int argc,
142 const char *argv[],
143 const char *usage);
144TCLCAD_EXPORT extern int go_poly_ell_mode(Tcl_Interp *interp,
145 struct ged *gedp,
146 struct bview *gdvp,
147 int argc,
148 const char *argv[],
149 const char *usage);
150TCLCAD_EXPORT extern int go_poly_rect_mode(Tcl_Interp *interp,
151 struct ged *gedp,
152 struct bview *gdvp,
153 int argc,
154 const char *argv[],
155 const char *usage);
156TCLCAD_EXPORT extern int go_run_tclscript(Tcl_Interp *interp,
157 const char *tclscript,
158 struct bu_vls *result_str);
159TCLCAD_EXPORT extern int go_poly_cont_build(Tcl_Interp *interp,
160 struct ged *gedp,
161 struct bview *gdvp,
162 int argc,
163 const char *argv[],
164 const char *usage);
165TCLCAD_EXPORT extern int go_poly_cont_build_end(Tcl_Interp *UNUSED(interp),
166 struct ged *gedp,
167 struct bview *gdvp,
168 int argc,
169 const char *argv[],
170 const char *usage);
171
172/* dm_tcl.c */
173/* The presence of Tcl_Interp as an arg prevents giving arg list */
174TCLCAD_EXPORT extern void fb_tcl_setup(void);
175
176__END_DECLS
177
178#endif /* TCLCAD_MISC_H */
179
180/** @} */
181/*
182 * Local Variables:
183 * mode: C
184 * tab-width: 8
185 * indent-tabs-mode: t
186 * c-file-style: "stroustrup"
187 * End:
188 * ex: shiftwidth=4 tabstop=8
189 */
Header file for the BRL-CAD common definitions.
#define UNUSED(parameter)
Definition: common.h:334
int go_poly_cont_build(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_move_object_mode(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_mouse_poly_rect(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_view_axes(struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
void go_refresh_draw(struct ged *gedp, struct bview *gdvp, int restore_zbuffer)
int go_poly_rect_mode(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_poly_cont_build_end(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
void go_refresh(struct ged *gedp, struct bview *gdvp)
int go_data_axes(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
void fb_tcl_setup(void)
int go_poly_ell_mode(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_lines(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_run_tclscript(Tcl_Interp *interp, const char *tclscript, struct bu_vls *result_str)
int go_data_move_point_mode(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_move(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_mouse_poly_cont(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_polygons(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_mouse_poly_ell(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_arrows(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_pick(struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_mouse_poly_circ(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_data_labels(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
int go_poly_circ_mode(Tcl_Interp *interp, struct ged *gedp, struct bview *gdvp, int argc, const char *argv[], const char *usage)
Definition: vls.h:53
Definition: defines.h:476
Definition: defines.h:195
struct fbserv_obj gdv_fbs
Definition: draw.h:48
int gdv_callback_cnt
Definition: draw.h:47
struct ged * gedp
Definition: draw.h:43
struct bu_vls gdv_callback
Definition: draw.h:46
struct bu_vls gdv_edit_motion_delta_callback
Definition: draw.h:44
int gdv_edit_motion_delta_callback_cnt
Definition: draw.h:45
Definitions header file for the BRL-CAD TclCAD Library, LIBTCLCAD.