BRL-CAD
state.h
Go to the documentation of this file.
1/* S T A T E . H
2 * BRL-CAD
3 *
4 * Copyright (c) 2008-2022 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_state
21 *
22 * Geometry EDiting Library Object Selection Functions.
23 *
24 */
25/** @{ */
26/** @file ged/view/state.h */
27
28#ifndef GED_VIEW_STATE_H
29#define GED_VIEW_STATE_H
30
31#include "common.h"
32#include "bn/tol.h"
33#include "rt/db_fullpath.h"
34#include "rt/db_instance.h"
35#include "ged/defines.h"
36
37__BEGIN_DECLS
38
39// TODO - once this settles down, give it a magic number so we can type
40// check it after a void cast
42 struct db_i *dbip;
44 const struct bn_tol *tol;
45 const struct bg_tess_tol *ttol;
46 struct resource *res;
47};
48
49
50/* Defined in view.cpp */
51GED_EXPORT extern int ged_view_update(struct ged *gedp);
52
53/**
54 * Erase all currently displayed geometry and draw the specified object(s)
55 */
56GED_EXPORT extern int ged_blast(struct ged *gedp, int argc, const char *argv[]);
57
58/**
59 * Prepare object(s) for display
60 */
61GED_EXPORT extern int ged_draw(struct ged *gedp, int argc, const char *argv[]);
62
63/**
64 * Prepare object(s) for display
65 */
66GED_EXPORT extern int ged_E(struct ged *gedp, int argc, const char *argv[]);
67
68/**
69 * Prepare all regions with the given air code(s) for display
70 */
71GED_EXPORT extern int ged_eac(struct ged *gedp, int argc, const char *argv[]);
72
73/**
74 * Erase objects from the display.
75 */
76GED_EXPORT extern int ged_erase(struct ged *gedp, int argc, const char *argv[]);
77
78/**
79 * Returns how an object is being displayed
80 */
81GED_EXPORT extern int ged_how(struct ged *gedp, int argc, const char *argv[]);
82
83/**
84 * Illuminate/highlight database object.
85 */
86GED_EXPORT extern int ged_illum(struct ged *gedp, int argc, const char *argv[]);
87
88/**
89 * Configure Level of Detail drawing.
90 */
91GED_EXPORT extern int ged_lod(struct ged *gedp, int argc, const char *argv[]);
92
93/**
94 * Set/get the shaded mode.
95 */
96GED_EXPORT extern int ged_shaded_mode(struct ged *gedp, int argc, const char *argv[]);
97
98
99/**
100 * Recalculate plots for displayed objects.
101 */
102GED_EXPORT extern int ged_redraw(struct ged *gedp, int argc, const char *argv[]);
103
104/**
105 * List the objects currently prepped for drawing
106 */
107GED_EXPORT extern int ged_who(struct ged *gedp, int argc, const char *argv[]);
108
109/**
110 * Erase all currently displayed geometry
111 */
112GED_EXPORT extern int ged_zap(struct ged *gedp, int argc, const char *argv[]);
113
114/**
115 * Rubber band rectangle utility.
116 */
117GED_EXPORT extern int ged_rect(struct ged *gedp, int argc, const char *argv[]);
118
119/**
120 * Set/get the keypoint
121 */
122GED_EXPORT extern int ged_keypoint(struct ged *gedp, int argc, const char *argv[]);
123
124
125GED_EXPORT extern unsigned long long dl_name_hash(struct ged *gedp);
126
127
128__END_DECLS
129
130#endif /* GED_VIEW_STATE_H */
131
132/** @} */
133
134/*
135 * Local Variables:
136 * tab-width: 8
137 * mode: C
138 * indent-tabs-mode: t
139 * c-file-style: "stroustrup"
140 * End:
141 * ex: shiftwidth=4 tabstop=8
142 */
Header file for the BRL-CAD common definitions.
int ged_redraw(struct ged *gedp, int argc, const char *argv[])
int ged_shaded_mode(struct ged *gedp, int argc, const char *argv[])
int ged_keypoint(struct ged *gedp, int argc, const char *argv[])
int ged_erase(struct ged *gedp, int argc, const char *argv[])
int ged_lod(struct ged *gedp, int argc, const char *argv[])
int ged_how(struct ged *gedp, int argc, const char *argv[])
int ged_blast(struct ged *gedp, int argc, const char *argv[])
int ged_zap(struct ged *gedp, int argc, const char *argv[])
int ged_rect(struct ged *gedp, int argc, const char *argv[])
unsigned long long dl_name_hash(struct ged *gedp)
int ged_view_update(struct ged *gedp)
int ged_eac(struct ged *gedp, int argc, const char *argv[])
int ged_illum(struct ged *gedp, int argc, const char *argv[])
int ged_who(struct ged *gedp, int argc, const char *argv[])
int ged_draw(struct ged *gedp, int argc, const char *argv[])
int ged_E(struct ged *gedp, int argc, const char *argv[])
Definition: tol.h:72
const struct bg_tess_tol * ttol
Definition: state.h:45
struct resource * res
Definition: state.h:46
const struct bn_tol * tol
Definition: state.h:44
struct db_i * dbip
Definition: state.h:42
struct db_full_path fp
Definition: state.h:43
Definition: defines.h:184