BRL-CAD
select.h
Go to the documentation of this file.
1 /* S E L E C T . 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_select
21  *
22  * Geometry EDiting Library Object Selection Functions.
23  *
24  */
25 /** @{ */
26 /** @file ged/view/select.h */
27 
28 #ifndef GED_VIEW_SELECT_H
29 #define GED_VIEW_SELECT_H
30 
31 #include "common.h"
32 #include "ged/defines.h"
33 
34 __BEGIN_DECLS
35 
36 
37 /**
38  * Returns a list of items within the previously defined rectangle.
39  */
40 GED_EXPORT extern int ged_rselect(struct ged *gedp, int argc, const char *argv[]);
41 
42 /**
43  * Returns a list of items within the specified rectangle or circle.
44  */
45 GED_EXPORT extern int ged_select(struct ged *gedp, int argc, const char *argv[]);
46 
47 /**
48  * Return ged selections for specified object. Created if it doesn't
49  * exist.
50  */
51 GED_EXPORT struct rt_object_selections *ged_get_object_selections(struct ged *gedp,
52  const char *object_name);
53 
54 /**
55  * Return ged selections of specified kind for specified object.
56  * Created if it doesn't exist.
57  */
58 GED_EXPORT struct rt_selection_set *ged_get_selection_set(struct ged *gedp,
59  const char *object_name,
60  const char *selection_name);
61 
62 
63 __END_DECLS
64 
65 #endif /* GED_VIEW_SELECT_H */
66 
67 /** @} */
68 
69 /*
70  * Local Variables:
71  * tab-width: 8
72  * mode: C
73  * indent-tabs-mode: t
74  * c-file-style: "stroustrup"
75  * End:
76  * ex: shiftwidth=4 tabstop=8
77  */
Header file for the BRL-CAD common definitions.
int ged_rselect(struct ged *gedp, int argc, const char *argv[])
struct rt_selection_set * ged_get_selection_set(struct ged *gedp, const char *object_name, const char *selection_name)
struct rt_object_selections * ged_get_object_selections(struct ged *gedp, const char *object_name)
int ged_select(struct ged *gedp, int argc, const char *argv[])
Definition: defines.h:205