BRL-CAD
Collaboration diagram for View Manipulation:

Modules

 Angle-Distance Cursor
 
 View Matrix/Quaternion
 
 Object Selection
 
 State (Objects displayed, refresh, etc.)
 

Files

file  view.h
 

Data Structures

struct  ged_bv_data
 

Macros

#define GED_CHECK_DRAWABLE(_gedp, _flags)
 
#define GED_CHECK_VIEW(_gedp, _flags)
 

Functions

unsigned long long ged_dl_hash (struct display_list *dl)
 
void dl_set_iflag (struct bu_list *hdlp, int iflag)
 
void dl_color_soltab (struct bu_list *hdlp)
 
void dl_erasePathFromDisplay (struct ged *gedp, const char *path, int allow_split)
 
struct display_listdl_addToDisplay (struct bu_list *hdlp, struct db_i *dbip, const char *name)
 
int invent_solid (struct ged *gedp, char *name, struct bu_list *vhead, long int rgb, int copy, fastf_t transparency, int dmode, int csoltab)
 
int ged_grid (struct ged *gedp, int argc, const char *argv[])
 
int ged_grid2model_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_grid2view_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_overlay (struct ged *gedp, int argc, const char *argv[])
 
int ged_plot (struct ged *gedp, int argc, const char *argv[])
 
int ged_png (struct ged *gedp, int argc, const char *argv[])
 
int ged_screen_grab (struct ged *gedp, int argc, const char *argv[])
 
int ged_ps (struct ged *gedp, int argc, const char *argv[])
 
int ged_solid_report (struct ged *gedp, int argc, const char *argv[])
 
int ged_saveview (struct ged *gedp, int argc, const char *argv[])
 
int ged_tree (struct ged *gedp, int argc, const char *argv[])
 
int ged_vdraw (struct ged *gedp, int argc, const char *argv[])
 
int ged_view_func (struct ged *gedp, int argc, const char *argv[])
 
int ged_set_uplotOutputMode (struct ged *gedp, int argc, const char *argv[])
 
int ged_export_polygon (struct ged *gedp, bv_data_polygon_state *gdpsp, size_t polygon_i, const char *sname)
 
struct bg_polygonged_import_polygon (struct ged *gedp, const char *sname)
 
int ged_polygons_overlap (struct ged *gedp, struct bg_polygon *polyA, struct bg_polygon *polyB)
 
void ged_polygon_fill_segments (struct ged *gedp, struct bg_polygon *poly, vect2d_t vfilldir, fastf_t vfilldelta)
 

Detailed Description

Geometry EDiting Library Database View Related Functions.

Macro Definition Documentation

◆ GED_CHECK_DRAWABLE

#define GED_CHECK_DRAWABLE (   _gedp,
  _flags 
)
Value:
if (_gedp->ged_gdp == GED_DRAWABLE_NULL) { \
int ged_check_drawable_quiet = (_flags) & GED_QUIET; \
if (!ged_check_drawable_quiet) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "A drawable does not exist."); \
} \
return (_flags); \
}
#define GED_DRAWABLE_NULL
Definition: defines.h:64
#define GED_QUIET
Definition: defines.h:73

Check if a drawable exists

Definition at line 43 of file view.h.

◆ GED_CHECK_VIEW

#define GED_CHECK_VIEW (   _gedp,
  _flags 
)
Value:
if (_gedp->ged_gvp == GED_VIEW_NULL) { \
int ged_check_view_quiet = (_flags) & GED_QUIET; \
if (!ged_check_view_quiet) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "A view does not exist."); \
} \
return (_flags); \
}
#define GED_VIEW_NULL
Definition: defines.h:65

Check if a view exists

Definition at line 54 of file view.h.

Function Documentation

◆ ged_dl_hash()

unsigned long long ged_dl_hash ( struct display_list dl)

◆ dl_set_iflag()

void dl_set_iflag ( struct bu_list hdlp,
int  iflag 
)

◆ dl_color_soltab()

void dl_color_soltab ( struct bu_list hdlp)

◆ dl_erasePathFromDisplay()

void dl_erasePathFromDisplay ( struct ged gedp,
const char *  path,
int  allow_split 
)

◆ dl_addToDisplay()

struct display_list * dl_addToDisplay ( struct bu_list hdlp,
struct db_i dbip,
const char *  name 
)

◆ invent_solid()

int invent_solid ( struct ged gedp,
char *  name,
struct bu_list vhead,
long int  rgb,
int  copy,
fastf_t  transparency,
int  dmode,
int  csoltab 
)

◆ ged_grid()

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

Grid utility command.

◆ ged_grid2model_lu()

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

Convert grid coordinates to model coordinates.

◆ ged_grid2view_lu()

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

Convert grid coordinates to view coordinates.

◆ ged_overlay()

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

Overlay the specified 2D/3D UNIX plot file

◆ ged_plot()

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

Create a unix plot file of the currently displayed objects.

◆ ged_png()

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

Create a png file of the view.

◆ ged_screen_grab()

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

◆ ged_ps()

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

Create a postscript file of the view.

◆ ged_solid_report()

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

Returns the solid table & vector list as a string

◆ ged_saveview()

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

Save the view

◆ ged_tree()

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

Return the object hierarchy for all object(s) specified or for all currently displayed

◆ ged_vdraw()

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

Vector drawing utility.

◆ ged_view_func()

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

Get/set view attributes

◆ ged_set_uplotOutputMode()

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

Get/set the unix plot output mode

◆ ged_export_polygon()

int ged_export_polygon ( struct ged gedp,
bv_data_polygon_state gdpsp,
size_t  polygon_i,
const char *  sname 
)

◆ ged_import_polygon()

struct bg_polygon * ged_import_polygon ( struct ged gedp,
const char *  sname 
)

◆ ged_polygons_overlap()

int ged_polygons_overlap ( struct ged gedp,
struct bg_polygon polyA,
struct bg_polygon polyB 
)

◆ ged_polygon_fill_segments()

void ged_polygon_fill_segments ( struct ged gedp,
struct bg_polygon poly,
vect2d_t  vfilldir,
fastf_t  vfilldelta 
)