BRL-CAD
|
Utility routines for manipulating libbv data structures. More...
Files | |
file | util.h |
file | view_sets.h |
Macros | |
#define | BV_AUTOVIEW_SCALE_DEFAULT -1 |
#define | BV_IDLE 0x000 |
#define | BV_ROT 0x001 |
#define | BV_TRANS 0x002 |
#define | BV_SCALE 0x004 |
#define | BV_CENTER 0x008 |
#define | BV_CON_X 0x010 |
#define | BV_CON_Y 0x020 |
#define | BV_CON_Z 0x040 |
#define | BV_CON_GRID 0x080 |
#define | BV_CON_LINES 0x100 |
Functions | |
void | bv_init (struct bview *v, struct bview_set *s) |
void | bv_free (struct bview *v) |
void | bv_mat_aet (struct bview *v) |
void | bv_settings_init (struct bview_settings *s) |
void | bv_autoview (struct bview *v, fastf_t scale, int all_view_objs) |
void | bv_sync (struct bview *dest, struct bview *src) |
void | bv_obj_settings_sync (struct bv_obj_settings *dest, struct bv_obj_settings *src) |
void | bv_update (struct bview *gvp) |
int | bv_update_selected (struct bview *gvp) |
int | bv_differ (struct bview *v1, struct bview *v2) |
unsigned long long | bv_hash (struct bview *v) |
unsigned long long | bv_dl_hash (struct display_list *dl) |
size_t | bv_clear (struct bview *v, int flags) |
int | bv_adjust (struct bview *v, int dx, int dy, point_t keypoint, int mode, unsigned long long flags) |
int | bv_screen_to_view (struct bview *v, fastf_t *fx, fastf_t *fy, fastf_t x, fastf_t y) |
int | bv_scene_obj_bound (struct bv_scene_obj *s, struct bview *v) |
fastf_t | bv_vZ_calc (struct bv_scene_obj *s, struct bview *v, int mode) |
void | bv_obj_sync (struct bv_scene_obj *dest, struct bv_scene_obj *src) |
void | bv_obj_stale (struct bv_scene_obj *s) |
struct bv_scene_obj * | bv_obj_create (struct bview *v, int type) |
struct bv_scene_obj * | bv_obj_get (struct bview *v, int type) |
struct bv_scene_obj * | bv_obj_get_child (struct bv_scene_obj *s) |
void | bv_obj_reset (struct bv_scene_obj *s) |
void | bv_obj_put (struct bv_scene_obj *o) |
struct bv_scene_obj * | bv_find_child (struct bv_scene_obj *s, const char *vname) |
struct bv_scene_obj * | bv_find_obj (struct bview *v, const char *vname) |
struct bv_scene_obj * | bv_obj_for_view (struct bv_scene_obj *s, struct bview *v) |
void | bv_set_view_obj (struct bv_scene_obj *s, struct bview *v, struct bv_scene_obj *vobj) |
struct bu_ptbl * | bv_view_objs (struct bview *v, int type) |
void | bv_set_init (struct bview_set *s) |
void | bv_set_free (struct bview_set *s) |
void | bv_set_add_view (struct bview_set *s, struct bview *v) |
void | bv_set_rm_view (struct bview_set *s, struct bview *v) |
struct bu_ptbl * | bv_set_views (struct bview_set *s) |
struct bview * | bv_set_find_view (struct bview_set *s, const char *vname) |
struct bv_scene_obj * | bv_set_fsos (struct bview_set *s) |
Utility routines for manipulating libbv data structures.
In applications with multiple views, those views typically share common scene objects and memory. To manage this sharing, we define view sets.
void bv_free | ( | struct bview * | v | ) |
void bv_mat_aet | ( | struct bview * | v | ) |
FIXME: this routine is suspect and needs investigating. if run during view initialization, the shaders regression test fails.
void bv_settings_init | ( | struct bview_settings * | s | ) |
Automatically set up the view to make the scene objects visible
void bv_obj_settings_sync | ( | struct bv_obj_settings * | dest, |
struct bv_obj_settings * | src | ||
) |
void bv_update | ( | struct bview * | gvp | ) |
int bv_update_selected | ( | struct bview * | gvp | ) |
unsigned long long bv_hash | ( | struct bview * | v | ) |
unsigned long long bv_dl_hash | ( | struct display_list * | dl | ) |
size_t bv_clear | ( | struct bview * | v, |
int | flags | ||
) |
int bv_adjust | ( | struct bview * | v, |
int | dx, | ||
int | dy, | ||
point_t | keypoint, | ||
int | mode, | ||
unsigned long long | flags | ||
) |
int bv_scene_obj_bound | ( | struct bv_scene_obj * | s, |
struct bview * | v | ||
) |
fastf_t bv_vZ_calc | ( | struct bv_scene_obj * | s, |
struct bview * | v, | ||
int | mode | ||
) |
void bv_obj_sync | ( | struct bv_scene_obj * | dest, |
struct bv_scene_obj * | src | ||
) |
void bv_obj_stale | ( | struct bv_scene_obj * | s | ) |
struct bv_scene_obj * bv_obj_create | ( | struct bview * | v, |
int | type | ||
) |
struct bv_scene_obj * bv_obj_get | ( | struct bview * | v, |
int | type | ||
) |
struct bv_scene_obj * bv_obj_get_child | ( | struct bv_scene_obj * | s | ) |
void bv_obj_reset | ( | struct bv_scene_obj * | s | ) |
void bv_obj_put | ( | struct bv_scene_obj * | o | ) |
struct bv_scene_obj * bv_find_child | ( | struct bv_scene_obj * | s, |
const char * | vname | ||
) |
struct bv_scene_obj * bv_find_obj | ( | struct bview * | v, |
const char * | vname | ||
) |
struct bv_scene_obj * bv_obj_for_view | ( | struct bv_scene_obj * | s, |
struct bview * | v | ||
) |
void bv_set_view_obj | ( | struct bv_scene_obj * | s, |
struct bview * | v, | ||
struct bv_scene_obj * | vobj | ||
) |
void bv_set_init | ( | struct bview_set * | s | ) |
Initialize an empty view set
void bv_set_free | ( | struct bview_set * | s | ) |
Free view set
Add view v to set s, handling shared memory assignments.
Return a bu_ptbl holding pointers to all views in set s
Return a pointer to the view with name vname, if it is present in s. If not found, returns NULL
struct bv_scene_obj * bv_set_fsos | ( | struct bview_set * | s | ) |