BRL-CAD
select.c File Reference
#include "common.h"
#include <string.h>
#include "bu/getopt.h"
#include "./ged_private.h"
Include dependency graph for select.c:

Go to the source code of this file.

Functions

int ged_select (struct ged *gedp, int argc, const char *argv[])
 
int ged_rselect (struct ged *gedp, int argc, const char *argv[])
 
struct rt_object_selectionsged_get_object_selections (struct ged *gedp, const char *object_name)
 
struct rt_selection_setged_get_selection_set (struct ged *gedp, const char *object_name, const char *selection_name)
 

Detailed Description

The select command.

Definition in file select.c.

Function Documentation

int ged_select ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Returns a list of items within the specified rectangle or circle.

Definition at line 44 of file select.c.

References _ged_select_botpts(), bu_getopt(), bu_optarg, bu_optind, bu_vls_printf(), bu_vls_trunc(), dl_select(), dl_select_partial(), ged_drawable::gd_headDisplay, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, GED_ERROR, ged::ged_gdp, ged::ged_gvp, ged::ged_result_str, ged::ged_wdbp, bview::gv_model2view, rt_db_internal::idb_major_type, rt_db_internal::idb_minor_type, rt_db_internal::idb_ptr, rt_db_free_internal(), usage(), and wdb_import_from_path2().

Here is the call graph for this function:

struct rt_object_selections* ged_get_object_selections ( struct ged gedp,
const char *  object_name 
)

Return ged selections for specified object. Created if it doesn't exist.

Definition at line 279 of file select.c.

References BU_ALLOC, bu_get_hash_value(), bu_hash_tbl_add(), bu_hash_tbl_create(), bu_set_hash_value(), ged::ged_selections, and rt_object_selections::sets.

Referenced by ged_get_selection_set().

Here is the call graph for this function:

struct rt_selection_set* ged_get_selection_set ( struct ged gedp,
const char *  object_name,
const char *  selection_name 
)

Return ged selections of specified kind for specified object. Created if it doesn't exist.

Definition at line 298 of file select.c.

References BU_ALLOC, bu_get_hash_value(), bu_hash_tbl_add(), BU_PTBL_INIT, bu_set_hash_value(), ged_get_object_selections(), rt_selection_set::selections, and rt_object_selections::sets.

Referenced by joint_selection().

Here is the call graph for this function: