BRL-CAD

Types and definitions related to display lists, angle distance cursor, and other generic view constructs. More...

Collaboration diagram for Definitions:

Files

file  bv.h
 

Data Structures

struct  bv_label
 
struct  bv_axes
 
struct  bv_obj_settings
 
struct  bv_scene_obj
 
struct  bv_mesh_lod
 
struct  bview_settings
 
struct  bview_objs
 
struct  bview
 
struct  bview_set
 

Macros

#define BV_MINVIEWSIZE   0.0001
 
#define BV_MINVIEWSCALE   0.00005
 
#define UP   0
 
#define DOWN   1
 
#define BV_ANCHOR_AUTO   0
 
#define BV_ANCHOR_BOTTOM_LEFT   1
 
#define BV_ANCHOR_BOTTOM_CENTER   2
 
#define BV_ANCHOR_BOTTOM_RIGHT   3
 
#define BV_ANCHOR_MIDDLE_LEFT   4
 
#define BV_ANCHOR_MIDDLE_CENTER   5
 
#define BV_ANCHOR_MIDDLE_RIGHT   6
 
#define BV_ANCHOR_TOP_LEFT   7
 
#define BV_ANCHOR_TOP_CENTER   8
 
#define BV_ANCHOR_TOP_RIGHT   9
 
#define BV_OBJ_SETTINGS_INIT   {0, 0, 1.0, 0, {255, 0, 0}, 1, 0.0, 0.0, 0, 0}
 
#define BV_DBOBJ_BASED   0x01
 
#define BV_VIEWONLY   0x02
 
#define BV_LINES   0x04
 
#define BV_LABELS   0x08
 
#define BV_AXES   0x10
 
#define BV_POLYGONS   0x20
 
#define BV_MESH_LOD   0x40
 
#define BV_CSG_LOD   0x80
 
#define BV_DB_OBJS   0x01
 
#define BV_VIEW_OBJS   0x02
 
#define BV_LOCAL_OBJS   0x04
 
#define BV_CHILD_OBJS   0x08
 
#define bv_scene_group   bv_scene_obj
 
#define BV_SNAP_SHARED   0x1
 
#define BV_SNAP_LOCAL   0x2
 
#define BV_SNAP_DB   0x4
 
#define BV_SNAP_VIEW   0x8
 
#define BV_SNAP_TCL   0x10
 

Variables

todo once this settles down
 

Detailed Description

Types and definitions related to display lists, angle distance cursor, and other generic view constructs.

This header is intended to be independent of any one BRL-CAD library and is specifically intended to allow the easy definition of common display list types between otherwise independent libraries (libdm and libged, for example).

NEXT STEPS: get a selection set for the view organized, add commands that allow the view2 command to create(view) and select (view or solid) objects, and figure out how to allow per-object xy handling callbacks. (The latter will probably in the end be how we implement primitive editing as well...)

Test case will be the polygon circle - create and resize. May want to switch the container being used from a raw array to a bu_ptbl... eventually would probably be better to have polygons be first class view scene objects...

Macro Definition Documentation

◆ BV_MINVIEWSIZE

#define BV_MINVIEWSIZE   0.0001

Definition at line 69 of file defines.h.

◆ BV_MINVIEWSCALE

#define BV_MINVIEWSCALE   0.00005

Definition at line 70 of file defines.h.

◆ UP

#define UP   0

Definition at line 73 of file defines.h.

◆ DOWN

#define DOWN   1

Definition at line 76 of file defines.h.

◆ BV_ANCHOR_AUTO

#define BV_ANCHOR_AUTO   0

Definition at line 79 of file defines.h.

◆ BV_ANCHOR_BOTTOM_LEFT

#define BV_ANCHOR_BOTTOM_LEFT   1

Definition at line 80 of file defines.h.

◆ BV_ANCHOR_BOTTOM_CENTER

#define BV_ANCHOR_BOTTOM_CENTER   2

Definition at line 81 of file defines.h.

◆ BV_ANCHOR_BOTTOM_RIGHT

#define BV_ANCHOR_BOTTOM_RIGHT   3

Definition at line 82 of file defines.h.

◆ BV_ANCHOR_MIDDLE_LEFT

#define BV_ANCHOR_MIDDLE_LEFT   4

Definition at line 83 of file defines.h.

◆ BV_ANCHOR_MIDDLE_CENTER

#define BV_ANCHOR_MIDDLE_CENTER   5

Definition at line 84 of file defines.h.

◆ BV_ANCHOR_MIDDLE_RIGHT

#define BV_ANCHOR_MIDDLE_RIGHT   6

Definition at line 85 of file defines.h.

◆ BV_ANCHOR_TOP_LEFT

#define BV_ANCHOR_TOP_LEFT   7

Definition at line 86 of file defines.h.

◆ BV_ANCHOR_TOP_CENTER

#define BV_ANCHOR_TOP_CENTER   8

Definition at line 87 of file defines.h.

◆ BV_ANCHOR_TOP_RIGHT

#define BV_ANCHOR_TOP_RIGHT   9

Definition at line 88 of file defines.h.

◆ BV_OBJ_SETTINGS_INIT

#define BV_OBJ_SETTINGS_INIT   {0, 0, 1.0, 0, {255, 0, 0}, 1, 0.0, 0.0, 0, 0}

Definition at line 153 of file defines.h.

◆ BV_DBOBJ_BASED

#define BV_DBOBJ_BASED   0x01

Definition at line 174 of file defines.h.

◆ BV_VIEWONLY

#define BV_VIEWONLY   0x02

Definition at line 175 of file defines.h.

◆ BV_LINES

#define BV_LINES   0x04

Definition at line 176 of file defines.h.

◆ BV_LABELS

#define BV_LABELS   0x08

Definition at line 177 of file defines.h.

◆ BV_AXES

#define BV_AXES   0x10

Definition at line 178 of file defines.h.

◆ BV_POLYGONS

#define BV_POLYGONS   0x20

Definition at line 179 of file defines.h.

◆ BV_MESH_LOD

#define BV_MESH_LOD   0x40

Definition at line 180 of file defines.h.

◆ BV_CSG_LOD

#define BV_CSG_LOD   0x80

Definition at line 181 of file defines.h.

◆ BV_DB_OBJS

#define BV_DB_OBJS   0x01

Definition at line 185 of file defines.h.

◆ BV_VIEW_OBJS

#define BV_VIEW_OBJS   0x02

Definition at line 186 of file defines.h.

◆ BV_LOCAL_OBJS

#define BV_LOCAL_OBJS   0x04

Definition at line 187 of file defines.h.

◆ BV_CHILD_OBJS

#define BV_CHILD_OBJS   0x08

Definition at line 188 of file defines.h.

◆ bv_scene_group

#define bv_scene_group   bv_scene_obj

Definition at line 360 of file defines.h.

◆ BV_SNAP_SHARED

#define BV_SNAP_SHARED   0x1

Definition at line 402 of file defines.h.

◆ BV_SNAP_LOCAL

#define BV_SNAP_LOCAL   0x2

Definition at line 403 of file defines.h.

◆ BV_SNAP_DB

#define BV_SNAP_DB   0x4

Definition at line 404 of file defines.h.

◆ BV_SNAP_VIEW

#define BV_SNAP_VIEW   0x8

Definition at line 405 of file defines.h.

◆ BV_SNAP_TCL

#define BV_SNAP_TCL   0x10

Definition at line 406 of file defines.h.

Variable Documentation

◆ down

todo once this settles down

Definition at line 131 of file defines.h.