BRL-CAD

Utility routines for manipulating libbv data structures. More...

Collaboration diagram for Utilities:

Files

file  util.h
 

Macros

#define BV_IDLE   0x0
 
#define BV_ROT   0x1
 
#define BV_TRANS   0x2
 
#define BV_SCALE   0x4
 
#define BV_CON_X   0x8
 
#define BV_CON_Y   0x10
 
#define BV_CON_Z   0x20
 
#define BV_CON_GRID   0x40
 
#define BV_CON_LINES   0x80
 

Functions

void bv_init (struct bview *v)
 
void bv_free (struct bview *v)
 
void bv_mat_aet (struct bview *v)
 
void bv_settings_init (struct bview_settings *s)
 
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)
 
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)
 
void bv_scene_obj_init (struct bv_scene_obj *s, struct bv_scene_obj *free_scene_obj)
 
void bv_scene_obj_free (struct bv_scene_obj *s, struct bv_scene_obj *free_scene_obj)
 
void bv_scene_obj_bound (struct bv_scene_obj *s)
 
fastf_t bv_vZ_calc (struct bv_scene_obj *s, struct bview *v, int mode)
 

Detailed Description

Utility routines for manipulating libbv data structures.

Macro Definition Documentation

◆ BV_IDLE

#define BV_IDLE   0x0

Definition at line 77 of file util.h.

◆ BV_ROT

#define BV_ROT   0x1

Definition at line 78 of file util.h.

◆ BV_TRANS

#define BV_TRANS   0x2

Definition at line 79 of file util.h.

◆ BV_SCALE

#define BV_SCALE   0x4

Definition at line 80 of file util.h.

◆ BV_CON_X

#define BV_CON_X   0x8

Definition at line 81 of file util.h.

◆ BV_CON_Y

#define BV_CON_Y   0x10

Definition at line 82 of file util.h.

◆ BV_CON_Z

#define BV_CON_Z   0x20

Definition at line 83 of file util.h.

◆ BV_CON_GRID

#define BV_CON_GRID   0x40

Definition at line 84 of file util.h.

◆ BV_CON_LINES

#define BV_CON_LINES   0x80

Definition at line 85 of file util.h.

Function Documentation

◆ bv_init()

void bv_init ( struct bview v)

◆ bv_free()

void bv_free ( struct bview v)

◆ bv_mat_aet()

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.

◆ bv_settings_init()

void bv_settings_init ( struct bview_settings s)

◆ bv_sync()

void bv_sync ( struct bview dest,
struct bview src 
)

◆ bv_obj_settings_sync()

void bv_obj_settings_sync ( struct bv_obj_settings dest,
struct bv_obj_settings src 
)

◆ bv_update()

void bv_update ( struct bview gvp)

◆ bv_update_selected()

int bv_update_selected ( struct bview gvp)

◆ bv_differ()

int bv_differ ( struct bview v1,
struct bview v2 
)

◆ bv_hash()

unsigned long long bv_hash ( struct bview v)

◆ bv_dl_hash()

unsigned long long bv_dl_hash ( struct display_list dl)

◆ bv_adjust()

int bv_adjust ( struct bview v,
int  dx,
int  dy,
point_t  keypoint,
int  mode,
unsigned long long  flags 
)

◆ bv_screen_to_view()

int bv_screen_to_view ( struct bview v,
fastf_t fx,
fastf_t fy,
fastf_t  x,
fastf_t  y 
)

◆ bv_scene_obj_init()

void bv_scene_obj_init ( struct bv_scene_obj s,
struct bv_scene_obj free_scene_obj 
)

◆ bv_scene_obj_free()

void bv_scene_obj_free ( struct bv_scene_obj s,
struct bv_scene_obj free_scene_obj 
)

◆ bv_scene_obj_bound()

void bv_scene_obj_bound ( struct bv_scene_obj s)

◆ bv_vZ_calc()

fastf_t bv_vZ_calc ( struct bv_scene_obj s,
struct bview v,
int  mode 
)