BRL-CAD
debug.h
Go to the documentation of this file.
1 /* D E B U G . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2008-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 ged_debug
21  *
22  * Geometry EDiting Library Database Debugging Related Functions.
23  *
24  */
25 /** @{ */
26 /** @file ged/debug.h */
27 
28 #ifndef GED_DEBUG_H
29 #define GED_DEBUG_H
30 
31 #include "common.h"
32 #include "ged/defines.h"
33 
34 __BEGIN_DECLS
35 
36 /**
37  * Report/Control BRL-CAD library debugging settings
38  */
39 GED_EXPORT extern int ged_debug(struct ged *gedp, int argc, const char *argv[]);
40 
41 /**
42  * Set/get libbu's debug bit vector
43  */
44 GED_EXPORT extern int ged_debugbu(struct ged *gedp, int argc, const char *argv[]);
45 
46 /**
47  * Dump of the database's directory
48  */
49 GED_EXPORT extern int ged_debugdir(struct ged *gedp, int argc, const char *argv[]);
50 
51 /**
52  * Set/get librt's debug bit vector
53  */
54 GED_EXPORT extern int ged_debuglib(struct ged *gedp, int argc, const char *argv[]);
55 
56 /**
57  * Set/get librt's NMG debug bit vector
58  */
59 GED_EXPORT extern int ged_debugnmg(struct ged *gedp, int argc, const char *argv[]);
60 
61 /**
62  * Used to control logging.
63  */
64 GED_EXPORT extern int ged_log(struct ged *gedp, int argc, const char *argv[]);
65 
66 /* defined in trace.c */
67 
68 #define _GED_MAX_LEVELS 12
70  struct ged *gtd_gedp;
76  int gtd_flag;
77 };
78 
79 
80 GED_EXPORT extern void ged_trace(struct directory *dp,
81  int pathpos,
82  const mat_t old_xlate,
83  struct _ged_trace_data *gtdp,
84  int verbose);
85 
86 
87 
88 __END_DECLS
89 
90 #endif /* GED_DEBUG_H */
91 
92 /** @} */
93 
94 /*
95  * Local Variables:
96  * tab-width: 8
97  * mode: C
98  * indent-tabs-mode: t
99  * c-file-style: "stroustrup"
100  * End:
101  * ex: shiftwidth=4 tabstop=8
102  */
Header file for the BRL-CAD common definitions.
int ged_debugbu(struct ged *gedp, int argc, const char *argv[])
void ged_trace(struct directory *dp, int pathpos, const mat_t old_xlate, struct _ged_trace_data *gtdp, int verbose)
int ged_log(struct ged *gedp, int argc, const char *argv[])
int ged_debugnmg(struct ged *gedp, int argc, const char *argv[])
int ged_debug(struct ged *gedp, int argc, const char *argv[])
int ged_debuglib(struct ged *gedp, int argc, const char *argv[])
#define _GED_MAX_LEVELS
Definition: debug.h:68
int ged_debugdir(struct ged *gedp, int argc, const char *argv[])
fastf_t mat_t[ELEMENTS_PER_MAT]
4x4 matrix
Definition: vmath.h:370
struct directory * gtd_obj[_GED_MAX_LEVELS]
Definition: debug.h:72
struct ged * gtd_gedp
Definition: debug.h:70
int gtd_flag
Definition: debug.h:76
mat_t gtd_xform
Definition: debug.h:73
int gtd_prflag
Definition: debug.h:75
int gtd_objpos
Definition: debug.h:74
struct directory * gtd_path[_GED_MAX_LEVELS]
Definition: debug.h:71
Definition: defines.h:205