BRL-CAD
|
#include "common.h"
#include "bu/list.h"
#include "bu/ptbl.h"
#include "rt/db_instance.h"
#include "rt/defines.h"
Go to the source code of this file.
Data Structures | |
struct | db_search_context |
Macros | |
#define | DB_SEARCH_TREE 0x0 |
Do a hierarchy-aware search. This is the default. | |
#define | DB_SEARCH_FLAT 0x1 |
Do a flat search without hierarchy. | |
#define | DB_SEARCH_HIDDEN 0x2 |
Search using hidden objects. | |
#define | DB_SEARCH_RETURN_UNIQ_DP 0x4 |
Return the set of unique directory pointers instead of full paths. | |
#define | DB_SEARCH_QUIET 0x8 |
Silence all warnings. | |
#define | DB_SEARCH_PRINT_TOTAL 0x10 |
Print total number of items found in search. | |
#define | DB_LS_PRIM 0x1 |
filter for primitives (solids) | |
#define | DB_LS_COMB 0x2 |
filter for combinations | |
#define | DB_LS_REGION 0x4 |
filter for regions | |
#define | DB_LS_HIDDEN 0x8 |
include hidden objects in results | |
#define | DB_LS_NON_GEOM 0x10 |
filter for non-geometry objects | |
#define | DB_LS_TOPS 0x20 |
filter for objects un-referenced by other objects | |
#define | DB_LS_CYCLIC 0x40 |
filter for objects with a cyclic reference in subtrees | |
#define | DB_LS_PHONY 0x80 |
enable and filter for objects such as the nirt display list entries | |
Typedefs | |
typedef int(* | db_search_callback_t) (int, const char *[], void *) |
Functions | |
int | db_search (struct bu_ptbl *results, int flags, const char *filter, int path_c, struct directory **path_v, struct db_i *dbip, bu_clbk_t clbk, void *u1, void *u2) |
Search for objects in a geometry database using filters. | |
void | db_search_free (struct bu_ptbl *search_results) |
size_t | db_ls (const struct db_i *dbip, int flags, const char *pattern, struct directory ***dpv) |
int | db_cyclic_paths (struct bu_ptbl *cyclic_paths, const struct db_i *dbip, struct directory *sdp) |
struct db_search_context * | db_search_context_create (void) |
void | db_search_context_destroy (struct db_search_context *ctx) |
void | db_search_register_exec (struct db_search_context *, db_search_callback_t) |
void | db_search_register_data (struct db_search_context *, void *) |
int | db_search_old (struct bu_ptbl *results, int flags, const char *filter, int path_c, struct directory **path_v, struct db_i *dbip, struct db_search_context *ctx) |