BRL-CAD
ged_private.h
Go to the documentation of this file.
1 /* G E D _ P R I V A T E . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2008-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 /** @file ged_private.h
21  *
22  * Private header for libged.
23  *
24  */
25 
26 #ifndef LIBGED_GED_PRIVATE_H
27 #define LIBGED_GED_PRIVATE_H
28 
29 #include "common.h"
30 
31 #include <time.h>
32 
33 #include "db.h"
34 #include "mater.h"
35 #include "rtgeom.h"
36 #include "ged.h"
37 
39 
40 #ifndef FALSE
41 # define FALSE 0
42 #endif
43 
44 #ifndef TRUE
45 # define TRUE 1
46 #endif
47 
48 #define _GED_V4_MAXNAME NAMESIZE
49 #define _GED_TERMINAL_WIDTH 80
50 #define _GED_COLUMNS ((_GED_TERMINAL_WIDTH + _GED_V4_MAXNAME - 1) / _GED_V4_MAXNAME)
51 
52 #define _GED_CPEVAL 0
53 #define _GED_LISTPATH 1
54 #define _GED_LISTEVAL 2
55 #define _GED_EVAL_ONLY 3
56 
57 #define _GED_SHADED_MODE_UNSET -1
58 #define _GED_WIREFRAME 0
59 #define _GED_SHADED_MODE_BOTS 1
60 #define _GED_SHADED_MODE_ALL 2
61 #define _GED_BOOL_EVAL 3
62 #define _GED_HIDDEN_LINE 4
63 #define _GED_SHADED_MODE_EVAL 5
64 
65 #define _GED_DRAW_WIREFRAME 1
66 #define _GED_DRAW_NMG_POLY 3
67 
68 #define _GED_TREE_AFLAG 0x01
69 #define _GED_TREE_CFLAG 0x02
70 
71 /* Container for defining sub-command structures */
72 #define _GED_FUNTAB_UNLIMITED -1
73 
74 #define DG_GED_MAX 2047.0
75 #define DG_GED_MIN -2048.0
76 
77 struct _ged_funtab {
78  char *ft_name;
79  char *ft_parms;
80  char *ft_comment;
81  int (*ft_func)();
82  int ft_min;
83  int ft_max;
85 };
86 
87 
88 struct _ged_id_names {
89  struct bu_list l;
90  struct bu_vls name; /**< name associated with region id */
91 };
92 
93 
95  struct bu_list l;
96  int id; /**< starting id (i.e. region id or air code) */
97  struct _ged_id_names headName; /**< head of list of names */
98 };
99 
100 
102  struct ged *gedp;
114  int fastpath_count; /* statistics */
119  int dmode;
121  struct solid *freesolid;
122  /* bigE related members */
123  struct application *ap;
125  struct rt_i *rtip;
126  time_t start_time;
127  time_t etime;
128  long nvectors;
131  int autoview;
132 };
133 
134 
135 void vls_col_item(struct bu_vls *str, const char *cp);
136 void vls_col_eol(struct bu_vls *str);
137 
138 /* defined in facedef.c */
139 extern int edarb_facedef(void *data, int argc, const char *argv[]);
140 
141 /* defined in ged.c */
142 extern void _ged_print_node(struct ged *gedp,
143  struct directory *dp,
144  size_t pathpos,
145  int indentSize,
146  char prefix,
147  unsigned flags,
148  int displayDepth,
149  int currdisplayDepth);
150 extern struct db_i *_ged_open_dbip(const char *filename,
151  int existing_only);
152 
153 /* defined in comb.c */
154 extern struct directory *_ged_combadd(struct ged *gedp,
155  struct directory *objp,
156  char *combname,
157  int region_flag,
158  db_op_t relation,
159  int ident,
160  int air);
161 extern int _ged_combadd2(struct ged *gedp,
162  char *combname,
163  int argc,
164  const char *argv[],
165  int region_flag,
166  db_op_t relation,
167  int ident,
168  int air);
169 
170 /* defined in display_list.c */
171 extern void _dl_eraseAllNamesFromDisplay(struct bu_list *hdlp, struct db_i *dbip,
172  void (*callback)(unsigned int, int),
173  const char *name,
174  const int skip_first, struct solid *freesolid);
175 extern void _dl_eraseAllPathsFromDisplay(struct bu_list *hdlp, struct db_i *dbip,
176  void (*callback)(unsigned int, int),
177  const char *path,
178  const int skip_first, struct solid *freesolid);
179 extern void _dl_freeDisplayListItem(struct db_i *dbip,
180  void (*callback)(unsigned int, int),
181  struct display_list *gdlp, struct solid *freesolid);
182 extern int headsolid_splitGDL(struct bu_list *hdlp, struct db_i *dbip, struct display_list *gdlp, struct db_full_path *path);
183 extern int dl_bounding_sph(struct bu_list *hdlp, vect_t *min, vect_t *max, int pflag);
184 /* Returns a bu_ptbl of all solids referenced by the display list */
185 extern struct bu_ptbl *dl_get_solids(struct display_list *gdlp);
186 
187 extern void dl_add_path(struct display_list *gdlp, int dashflag, int transparency, int dmode, int hiddenLine, struct bu_list *vhead, const struct db_full_path *pathp, struct db_tree_state *tsp, unsigned char *wireframe_color_override, void (*callback)(struct display_list *), struct solid *freesolid);
188 
189 extern int dl_redraw(struct display_list *gdlp, struct db_i *dbip, struct db_tree_state *tsp, struct bview *gvp, void (*callback)(struct display_list *));
190 extern union tree * append_solid_to_display_list(struct db_tree_state *tsp, const struct db_full_path *pathp, struct rt_db_internal *ip, void *client_data);
191 int dl_set_illum(struct display_list *gdlp, const char *obj, int illum);
192 void dl_set_flag(struct bu_list *hdlp, int flag);
193 void dl_set_wflag(struct bu_list *hdlp, int wflag);
194 void dl_zap(struct bu_list *hdlp, struct db_i *dbip, void (*callback)(unsigned int, int), struct solid *freesolid);
195 int dl_how(struct bu_list *hdlp, struct bu_vls *vls, struct directory **dpp, int both);
196 void dl_plot(struct bu_list *hdlp, FILE *fp, mat_t model2view, int floating, mat_t center, fastf_t scale, int Three_D, int Z_clip);
197 void dl_png(struct bu_list *hdlp, mat_t model2view, fastf_t perspective, vect_t eye_pos, size_t size, size_t half_size, unsigned char **image);
198 
199 #define PS_COORD(_x) ((int)((_x)+2048))
200 #define PS_COLOR(_c) ((_c)*(1.0/255.0))
201 void dl_ps(struct bu_list *hdlp, FILE *fp, int border, char *font, char *title, char *creator, int linewidth, fastf_t scale, int xoffset, int yoffset, mat_t model2view, fastf_t perspective, vect_t eye_pos, float red, float green, float blue);
202 
203 
204 void dl_print_schain(struct bu_list *hdlp, struct db_i *dbip, int lvl, int vlcmds, struct bu_vls *vls);
205 
206 void dl_bitwise_and_fullpath(struct bu_list *hdlp, int flag);
207 
208 void dl_write_animate(struct bu_list *hdlp, FILE *fp);
209 
210 int dl_select(struct bu_list *hdlp, mat_t model2view, struct bu_vls *vls, double vx, double vy, double vwidth, double vheight, int rflag);
211 int dl_select_partial(struct bu_list *hdlp, mat_t model2view, struct bu_vls *vls, double vx, double vy, double vwidth, double vheight, int rflag);
212 void dl_set_transparency(struct bu_list *hdlp, struct directory **dpp, double transparency, void (*callback)(struct display_list *));
213 
214 enum otype {
219 };
220 void _ged_bot_dump(struct directory *dp, struct rt_bot_internal *bot, FILE *fp, int fd, const char *file_ext, const char *db_name);
221 void dl_botdump(struct bu_list *hdlp, struct db_i *dbip, FILE *fp, int fd, char *file_ext, int output_type, int *red, int *green, int *blue, fastf_t *alpha);
222 
223 
224 /* defined in draw.c */
225 extern void _ged_cvt_vlblock_to_solids(struct ged *gedp,
226  struct bn_vlblock *vbp,
227  const char *name,
228  int copy);
229 extern int _ged_drawtrees(struct ged *gedp,
230  int argc,
231  const char *argv[],
232  int kind,
233  struct _ged_client_data *_dgcdp);
234 extern void _ged_drawH_part2(int dashflag,
235  struct bu_list *vhead,
236  const struct db_full_path *pathp,
237  struct db_tree_state *tsp,
238  struct _ged_client_data *dgcdp);
239 
240 /* defined in edbot.c */
241 extern int _ged_select_botpts(struct ged *gedp,
242  struct rt_bot_internal *botip,
243  double vx,
244  double vy,
245  double vwidth,
246  double vheight,
247  double vminz,
248  int rflag);
249 
250 
251 /* defined in editit.c */
252 extern int _ged_editit(const char *editstring,
253  const char *file);
254 
255 /* defined in erase.c */
256 extern void _ged_eraseobjpath(struct ged *gedp,
257  int argc,
258  const char *argv[],
259  const int noisy,
260  const int all,
261  const int skip_first);
262 extern void _ged_eraseobjall(struct ged *gedp,
263  struct directory **dpp,
264  int skip_first);
265 extern void _ged_eraseobj(struct ged *gedp,
266  struct directory **dpp,
267  int skip_first);
268 
269 /* defined in get_comb.c */
270 extern void _ged_vls_print_matrix(struct bu_vls *vls,
271  matp_t matrix);
272 
273 extern int _ged_get_obj_bounds2(struct ged *gedp,
274  int argc,
275  const char *argv[],
276  struct _ged_trace_data *gtdp,
277  point_t rpp_min,
278  point_t rpp_max);
279 
280 /* defined in get_solid_kp.c */
281 extern int _ged_get_solid_keypoint(struct ged *const gedp,
282  fastf_t *const pt,
283  const struct rt_db_internal *const ip,
284  const fastf_t *const mat);
285 
286 /* defined in how.c */
287 extern struct directory **_ged_build_dpp(struct ged *gedp,
288  const char *path);
289 
290 /* defined in list.c */
291 extern void _ged_do_list(struct ged *gedp,
292  struct directory *dp,
293  int verbose);
294 
295 /* defined in loadview.c */
296 extern vect_t _ged_eye_model;
297 extern mat_t _ged_viewrot;
298 extern struct ged *_ged_current_gedp;
299 extern int _ged_cm_vsize(const int argc,
300  const char **argv);
301 extern int _ged_cm_eyept(const int argc,
302  const char **argv);
303 extern int _ged_cm_lookat_pt(const int argc,
304  const char **argv);
305 extern int _ged_cm_vrot(const int argc,
306  const char **argv);
307 extern int _ged_cm_orientation(const int argc,
308  const char **argv);
309 extern int _ged_cm_set(const int argc,
310  const char **argv);
311 extern int _ged_cm_null(const int argc,
312  const char **argv);
313 
314 
315 /* defined in ls.c */
316 extern void _ged_vls_col_pr4v(struct bu_vls *vls,
317  struct directory **list_of_names,
318  size_t num_in_list,
319  int no_decorate);
320 extern struct directory ** _ged_getspace(struct db_i *dbip,
321  size_t num_entries);
322 
323 /* defined in preview.c */
324 extern void _ged_setup_rt(struct ged *gedp,
325  char **vp,
326  int printcmd);
327 
328 /* defined in red.c */
329 
330 extern char _ged_tmpfil[MAXPATHLEN];
331 
332 
333 /* defined in rt.c */
334 extern void _ged_rt_set_eye_model(struct ged *gedp,
335  vect_t eye_model);
336 extern int _ged_run_rt(struct ged *gdp);
337 extern void _ged_rt_write(struct ged *gedp,
338  FILE *fp,
339  vect_t eye_model);
340 extern void _ged_rt_output_handler(ClientData clientData,
341  int mask);
342 
343 /* defined in rtcheck.c */
344 extern void _ged_wait_status(struct bu_vls *logstr,
345  int status);
346 
347 /* defined in rotate_eto.c */
348 extern int _ged_rotate_eto(struct ged *gedp,
349  struct rt_eto_internal *eto,
350  const char *attribute,
351  matp_t rmat);
352 
353 /* defined in rotate_extrude.c */
354 extern int _ged_rotate_extrude(struct ged *gedp,
355  struct rt_extrude_internal *extrude,
356  const char *attribute,
357  matp_t rmat);
358 
359 /* defined in rotate_hyp.c */
360 extern int _ged_rotate_hyp(struct ged *gedp,
361  struct rt_hyp_internal *hyp,
362  const char *attribute,
363  matp_t rmat);
364 
365 /* defined in rotate_tgc.c */
366 extern int _ged_rotate_tgc(struct ged *gedp,
367  struct rt_tgc_internal *tgc,
368  const char *attribute,
369  matp_t rmat);
370 
371 /* defined in scale_ehy.c */
372 extern int _ged_scale_ehy(struct ged *gedp,
373  struct rt_ehy_internal *ehy,
374  const char *attribute,
375  fastf_t sf,
376  int rflag);
377 
378 /* defined in scale_ell.c */
379 extern int _ged_scale_ell(struct ged *gedp,
380  struct rt_ell_internal *ell,
381  const char *attribute,
382  fastf_t sf,
383  int rflag);
384 
385 /* defined in scale_epa.c */
386 extern int _ged_scale_epa(struct ged *gedp,
387  struct rt_epa_internal *epa,
388  const char *attribute,
389  fastf_t sf,
390  int rflag);
391 
392 /* defined in scale_eto.c */
393 extern int _ged_scale_eto(struct ged *gedp,
394  struct rt_eto_internal *eto,
395  const char *attribute,
396  fastf_t sf,
397  int rflag);
398 
399 /* defined in scale_extrude.c */
400 extern int _ged_scale_extrude(struct ged *gedp,
401  struct rt_extrude_internal *extrude,
402  const char *attribute,
403  fastf_t sf,
404  int rflag);
405 
406 /* defined in scale_hyp.c */
407 extern int _ged_scale_hyp(struct ged *gedp,
408  struct rt_hyp_internal *hyp,
409  const char *attribute,
410  fastf_t sf,
411  int rflag);
412 
413 /* defined in edit_metaball.c */
414 extern int _ged_scale_metaball(struct ged *gedp,
415  struct rt_metaball_internal *mbip,
416  const char *attribute,
417  fastf_t sf,
418  int rflag);
419 extern int _ged_set_metaball(struct ged *gedp,
420  struct rt_metaball_internal *mbip,
421  const char *attribute,
422  fastf_t sf);
423 
424 /* defined in scale_part.c */
425 extern int _ged_scale_part(struct ged *gedp,
426  struct rt_part_internal *part,
427  const char *attribute,
428  fastf_t sf,
429  int rflag);
430 
431 /* defined in edpipe.c */
432 extern int _ged_scale_pipe(struct ged *gedp,
433  struct rt_pipe_internal *pipe_internal,
434  const char *attribute,
435  fastf_t sf,
436  int rflag);
437 
438 /* defined in scale_rhc.c */
439 extern int _ged_scale_rhc(struct ged *gedp,
440  struct rt_rhc_internal *rhc,
441  const char *attribute,
442  fastf_t sf,
443  int rflag);
444 
445 /* defined in scale_rpc.c */
446 extern int _ged_scale_rpc(struct ged *gedp,
447  struct rt_rpc_internal *rpc,
448  const char *attribute,
449  fastf_t sf,
450  int rflag);
451 
452 /* defined in scale_superell.c */
453 extern int _ged_scale_superell(struct ged *gedp,
454  struct rt_superell_internal *superell,
455  const char *attribute,
456  fastf_t sf,
457  int rflag);
458 
459 /* defined in scale_tgc.c */
460 extern int _ged_scale_tgc(struct ged *gedp,
461  struct rt_tgc_internal *tgc,
462  const char *attribute,
463  fastf_t sf,
464  int rflag);
465 
466 /* defined in scale_tor.c */
467 extern int _ged_scale_tor(struct ged *gedp,
468  struct rt_tor_internal *tor,
469  const char *attribute,
470  fastf_t sf,
471  int rflag);
472 
473 /* defined in tops.c */
474 struct directory **
475 _ged_dir_getspace(struct db_i *dbip,
476  int num_entries);
477 
478 /* defined in translate_extrude.c */
479 extern int _ged_translate_extrude(struct ged *gedp,
480  struct rt_extrude_internal *extrude,
481  const char *attribute,
482  vect_t tvec,
483  int rflag);
484 
485 /* defined in translate_tgc.c */
486 extern int _ged_translate_tgc(struct ged *gedp,
487  struct rt_tgc_internal *tgc,
488  const char *attribute,
489  vect_t tvec,
490  int rflag);
491 
492 /* defined in vutil.c */
493 extern void _ged_mat_aet(struct bview *gvp);
494 extern int _ged_do_rot(struct ged *gedp,
495  char coord,
496  mat_t rmat,
497  int (*func)());
498 extern int _ged_do_slew(struct ged *gedp,
499  vect_t svec);
500 extern int _ged_do_tra(struct ged *gedp,
501  char coord,
502  vect_t tvec,
503  int (*func)());
504 
505 /* Internal implementation of ged_results - since the
506  * details of the struct are not for public access,
507  * the real definition of the struct goes here. The public
508  * header has only the notion of a ged_results structure.*/
509 struct ged_results {
511 };
512 
513 /* defined in ged_util.c */
514 
515 /* Called by ged_init */
516 extern int _ged_results_init(struct ged_results *results);
517 
518 /* This function adds a copy of result_string into the results container.
519  * To duplicate a VLS string, use bu_vls_addr to wrap the vls before
520  * passing it to _ged_results_add, e.g.:
521  *
522  * _ged_results_add(gedp->ged_results, bu_vls_addr(my_vls_ptr));
523  *
524  */
525 extern int _ged_results_add(struct ged_results *results, const char *result_string);
526 
528 
529 #endif /* LIBGED_GED_PRIVATE_H */
530 
531 /** @} */
532 /*
533  * Local Variables:
534  * mode: C
535  * tab-width: 8
536  * indent-tabs-mode: t
537  * c-file-style: "stroustrup"
538  * End:
539  * ex: shiftwidth=4 tabstop=8
540  */
int _ged_cm_orientation(const int argc, const char **argv)
Definition: loadview.c:333
void _ged_vls_col_pr4v(struct bu_vls *vls, struct directory **list_of_names, size_t num_in_list, int no_decorate)
Definition: ls.c:84
int wireframe_color_override
Definition: ged_private.h:104
int _ged_cm_vrot(const int argc, const char **argv)
Definition: loadview.c:319
int _ged_scale_metaball(struct ged *gedp, struct rt_metaball_internal *mbip, const char *attribute, fastf_t sf, int rflag)
struct rt_i * rtip
Definition: ged_private.h:125
char filename[MAXLENGTH]
Definition: human.c:105
Definition: raytrace.h:800
int _ged_translate_extrude(struct ged *gedp, struct rt_extrude_internal *extrude, const char *attribute, vect_t tvec, int rflag)
struct directory ** _ged_getspace(struct db_i *dbip, size_t num_entries)
Definition: ls.c:49
union tree * append_solid_to_display_list(struct db_tree_state *tsp, const struct db_full_path *pathp, struct rt_db_internal *ip, void *client_data)
Definition: display_list.c:946
struct bu_list l
Definition: ged_private.h:89
Definition: list.h:118
int _ged_rotate_tgc(struct ged *gedp, struct rt_tgc_internal *tgc, const char *attribute, matp_t rmat)
Definition: rotate_tgc.c:38
int _ged_scale_rhc(struct ged *gedp, struct rt_rhc_internal *rhc, const char *attribute, fastf_t sf, int rflag)
Definition: scale_rhc.c:36
int _ged_scale_superell(struct ged *gedp, struct rt_superell_internal *superell, const char *attribute, fastf_t sf, int rflag)
void _dl_eraseAllNamesFromDisplay(struct bu_list *hdlp, struct db_i *dbip, void(*callback)(unsigned int, int), const char *name, const int skip_first, struct solid *freesolid)
Definition: display_list.c:332
int _ged_set_metaball(struct ged *gedp, struct rt_metaball_internal *mbip, const char *attribute, fastf_t sf)
Definition: edit_metaball.c:87
void dl_ps(struct bu_list *hdlp, FILE *fp, int border, char *font, char *title, char *creator, int linewidth, fastf_t scale, int xoffset, int yoffset, mat_t model2view, fastf_t perspective, vect_t eye_pos, float red, float green, float blue)
Definition: ged.h:338
int _ged_scale_extrude(struct ged *gedp, struct rt_extrude_internal *extrude, const char *attribute, fastf_t sf, int rflag)
Definition: scale_extrude.c:38
Definition: clone.c:90
void dl_bitwise_and_fullpath(struct bu_list *hdlp, int flag)
struct bu_ptbl * results_tbl
Definition: ged_private.h:510
void _ged_rt_set_eye_model(struct ged *gedp, vect_t eye_model)
Definition: rt.c:88
void dl_print_schain(struct bu_list *hdlp, struct db_i *dbip, int lvl, int vlcmds, struct bu_vls *vls)
void _ged_eraseobjall(struct ged *gedp, struct directory **dpp, int skip_first)
int _ged_do_tra(struct ged *gedp, char coord, vect_t tvec, int(*func)())
Definition: vutil.c:181
void dl_set_wflag(struct bu_list *hdlp, int wflag)
struct solid * freesolid
Definition: ged_private.h:121
void dl_botdump(struct bu_list *hdlp, struct db_i *dbip, FILE *fp, int fd, char *file_ext, int output_type, int *red, int *green, int *blue, fastf_t *alpha)
int _ged_cm_null(const int argc, const char **argv)
Definition: loadview.c:361
int shade_per_vertex_normals
Definition: ged_private.h:112
Definition: bview.h:209
int _ged_rotate_extrude(struct ged *gedp, struct rt_extrude_internal *extrude, const char *attribute, matp_t rmat)
Header file for the BRL-CAD common definitions.
void _ged_setup_rt(struct ged *gedp, char **vp, int printcmd)
int wireframe_color[3]
Definition: ged_private.h:105
void _ged_bot_dump(struct directory *dp, struct rt_bot_internal *bot, FILE *fp, int fd, const char *file_ext, const char *db_name)
Definition: bot_dump.c:598
void _ged_mat_aet(struct bview *gvp)
Definition: vutil.c:82
struct bu_list l
Definition: ged_private.h:95
void _dl_eraseAllPathsFromDisplay(struct bu_list *hdlp, struct db_i *dbip, void(*callback)(unsigned int, int), const char *path, const int skip_first, struct solid *freesolid)
Definition: display_list.c:437
void dl_png(struct bu_list *hdlp, mat_t model2view, fastf_t perspective, vect_t eye_pos, size_t size, size_t half_size, unsigned char **image)
char _ged_tmpfil[MAXPATHLEN]
Definition: red.c:40
void _ged_rt_write(struct ged *gedp, FILE *fp, vect_t eye_model)
Definition: rt.c:54
void _ged_vls_print_matrix(struct bu_vls *vls, matp_t matrix)
Definition: get_comb.c:167
void dl_set_flag(struct bu_list *hdlp, int flag)
int _ged_scale_eto(struct ged *gedp, struct rt_eto_internal *eto, const char *attribute, fastf_t sf, int rflag)
Definition: scale_eto.c:38
Definition: ptbl.h:62
int _ged_scale_ehy(struct ged *gedp, struct rt_ehy_internal *ehy, const char *attribute, fastf_t sf, int rflag)
Definition: scale_ehy.c:36
void _ged_eraseobj(struct ged *gedp, struct directory **dpp, int skip_first)
int tcl_converted
Definition: ged_private.h:84
struct db_i * _ged_open_dbip(const char *filename, int existing_only)
Open/Create the database and build the in memory directory.
Definition: ged.c:420
COMPLEX data[64]
Definition: fftest.c:34
void _ged_eraseobjpath(struct ged *gedp, int argc, const char *argv[], const int noisy, const int all, const int skip_first)
int _ged_cm_lookat_pt(const int argc, const char **argv)
Definition: loadview.c:286
int headsolid_splitGDL(struct bu_list *hdlp, struct db_i *dbip, struct display_list *gdlp, struct db_full_path *path)
Definition: display_list.c:125
struct ged * gedp
Definition: ged_private.h:102
int _ged_do_slew(struct ged *gedp, vect_t svec)
Definition: vutil.c:168
void dl_zap(struct bu_list *hdlp, struct db_i *dbip, void(*callback)(unsigned int, int), struct solid *freesolid)
int _ged_editit(const char *editstring, const char *file)
db_op_t
Definition: op.h:33
int dl_how(struct bu_list *hdlp, struct bu_vls *vls, struct directory **dpp, int both)
int dl_set_illum(struct display_list *gdlp, const char *obj, int illum)
struct bu_ptbl * dl_get_solids(struct display_list *gdlp)
int dl_select(struct bu_list *hdlp, mat_t model2view, struct bu_vls *vls, double vx, double vy, double vwidth, double vheight, int rflag)
void vls_col_eol(struct bu_vls *str)
Definition: columns.c:73
int _ged_select_botpts(struct ged *gedp, struct rt_bot_internal *botip, double vx, double vy, double vwidth, double vheight, double vminz, int rflag)
Definition: edbot.c:688
vect_t _ged_eye_model
Definition: loadview.c:35
int _ged_translate_tgc(struct ged *gedp, struct rt_tgc_internal *tgc, const char *attribute, vect_t tvec, int rflag)
Definition: translate_tgc.c:38
#define __BEGIN_DECLS
Definition: common.h:73
void _ged_rt_output_handler(ClientData clientData, int mask)
Definition: rt.c:132
int _ged_cm_vsize(const int argc, const char **argv)
Definition: loadview.c:260
int _ged_get_solid_keypoint(struct ged *const gedp, fastf_t *const pt, const struct rt_db_internal *const ip, const fastf_t *const mat)
Definition: get_solid_kp.c:41
int edarb_facedef(void *data, int argc, const char *argv[])
Definition: facedef.c:173
void dl_set_transparency(struct bu_list *hdlp, struct directory **dpp, double transparency, void(*callback)(struct display_list *))
struct display_list * gdlp
Definition: ged_private.h:103
void _ged_drawH_part2(int dashflag, struct bu_list *vhead, const struct db_full_path *pathp, struct db_tree_state *tsp, struct _ged_client_data *dgcdp)
Definition: draw.c:164
void dl_plot(struct bu_list *hdlp, FILE *fp, mat_t model2view, int floating, mat_t center, fastf_t scale, int Three_D, int Z_clip)
void _ged_print_node(struct ged *gedp, struct directory *dp, size_t pathpos, int indentSize, char prefix, unsigned flags, int displayDepth, int currdisplayDepth)
Definition: ged.c:464
int do_not_draw_nmg_solids_during_debugging
Definition: ged_private.h:115
int _ged_cm_set(const int argc, const char **argv)
Definition: loadview.c:350
void _ged_cvt_vlblock_to_solids(struct ged *gedp, struct bn_vlblock *vbp, const char *name, int copy)
Definition: draw.c:554
int(* ft_func)()
Definition: ged_private.h:81
void _ged_wait_status(struct bu_vls *logstr, int status)
Definition: rtcheck.c:80
void _ged_do_list(struct ged *gedp, struct directory *dp, int verbose)
Definition: list.c:39
int _ged_rotate_hyp(struct ged *gedp, struct rt_hyp_internal *hyp, const char *attribute, matp_t rmat)
Definition: rotate_hyp.c:38
int _ged_do_rot(struct ged *gedp, char coord, mat_t rmat, int(*func)())
Definition: vutil.c:103
struct ged * _ged_current_gedp
Definition: loadview.c:37
struct directory ** _ged_build_dpp(struct ged *gedp, const char *path)
Definition: how.c:96
ustring alpha
int _ged_cm_eyept(const int argc, const char **argv)
Definition: loadview.c:273
mat_t _ged_viewrot
Definition: loadview.c:36
int _ged_scale_part(struct ged *gedp, struct rt_part_internal *part, const char *attribute, fastf_t sf, int rflag)
Definition: scale_part.c:36
int _ged_scale_pipe(struct ged *gedp, struct rt_pipe_internal *pipe_internal, const char *attribute, fastf_t sf, int rflag)
Definition: edpipe.c:516
int _ged_run_rt(struct ged *gdp)
Definition: rt.c:244
fastf_t transparency
Definition: ged_private.h:118
int dl_bounding_sph(struct bu_list *hdlp, vect_t *min, vect_t *max, int pflag)
Definition: display_list.c:157
int _ged_scale_rpc(struct ged *gedp, struct rt_rpc_internal *rpc, const char *attribute, fastf_t sf, int rflag)
Definition: scale_rpc.c:36
char * ft_comment
Definition: ged_private.h:80
int dl_redraw(struct display_list *gdlp, struct db_i *dbip, struct db_tree_state *tsp, struct bview *gvp, void(*callback)(struct display_list *))
Definition: display_list.c:933
int dl_select_partial(struct bu_list *hdlp, mat_t model2view, struct bu_vls *vls, double vx, double vy, double vwidth, double vheight, int rflag)
void dl_write_animate(struct bu_list *hdlp, FILE *fp)
char * ft_parms
Definition: ged_private.h:79
int _ged_scale_hyp(struct ged *gedp, struct rt_hyp_internal *hyp, const char *attribute, fastf_t sf, int rflag)
Definition: scale_hyp.c:38
int _ged_scale_ell(struct ged *gedp, struct rt_ell_internal *ell, const char *attribute, fastf_t sf, int rflag)
Definition: scale_ell.c:36
int _ged_results_add(struct ged_results *results, const char *result_string)
Definition: ged_util.c:47
int _ged_scale_tor(struct ged *gedp, struct rt_tor_internal *tor, const char *attribute, fastf_t sf, int rflag)
Definition: scale_tor.c:38
void _dl_freeDisplayListItem(struct db_i *dbip, void(*callback)(unsigned int, int), struct display_list *gdlp, struct solid *freesolid)
Definition: display_list.c:488
int _ged_drawtrees(struct ged *gedp, int argc, const char *argv[], int kind, struct _ged_client_data *_dgcdp)
Definition: draw.c:581
char * ft_name
Definition: ged_private.h:78
#define __END_DECLS
Definition: common.h:74
int _ged_rotate_eto(struct ged *gedp, struct rt_eto_internal *eto, const char *attribute, matp_t rmat)
Definition: rotate_eto.c:38
ustring both
int _ged_results_init(struct ged_results *results)
Definition: ged_util.c:36
struct directory ** _ged_dir_getspace(struct db_i *dbip, int num_entries)
Definition: tops.c:140
struct bn_vlblock * draw_edge_uses_vbp
Definition: ged_private.h:116
struct _ged_id_names headName
Definition: ged_private.h:97
HIDDEN void verbose(struct human_data_t *dude)
Definition: human.c:2008
struct application * ap
Definition: ged_private.h:123
Definition: vls.h:56
int _ged_scale_tgc(struct ged *gedp, struct rt_tgc_internal *tgc, const char *attribute, fastf_t sf, int rflag)
Definition: scale_tgc.c:38
struct directory * _ged_combadd(struct ged *gedp, struct directory *objp, char *combname, int region_flag, db_op_t relation, int ident, int air)
Definition: comb.c:680
double fastf_t
Definition: defines.h:300
void dl_add_path(struct display_list *gdlp, int dashflag, int transparency, int dmode, int hiddenLine, struct bu_list *vhead, const struct db_full_path *pathp, struct db_tree_state *tsp, unsigned char *wireframe_color_override, void(*callback)(struct display_list *), struct solid *freesolid)
Definition: display_list.c:670
otype
Definition: ged_private.h:214
struct bu_ptbl leaf_list
Definition: ged_private.h:124
int _ged_combadd2(struct ged *gedp, char *combname, int argc, const char *argv[], int region_flag, db_op_t relation, int ident, int air)
Definition: comb.c:709
int _ged_get_obj_bounds2(struct ged *gedp, int argc, const char *argv[], struct _ged_trace_data *gtdp, point_t rpp_min, point_t rpp_max)
This version works if the last member of the path is a primitive.
void vls_col_item(struct bu_vls *str, const char *cp)
Definition: columns.c:45
int _ged_scale_epa(struct ged *gedp, struct rt_epa_internal *epa, const char *attribute, fastf_t sf, int rflag)
Definition: scale_epa.c:36
#define MAXPATHLEN
Definition: defines.h:113