autoview.c File Reference
#include "common.h"
#include "./ged_private.h"
Include dependency graph for autoview.c:

Go to the source code of this file.


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

Detailed Description

The autoview command.

Definition in file autoview.c.

Function Documentation

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

Auto-adjust the view so that all displayed geometry is in view

Definition at line 39 of file autoview.c.

References bu_vls_printf(), bu_vls_trunc(), dl_bounding_sph(), ged_drawable::gd_headDisplay, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, GED_ERROR, ged::ged_gdp, ged::ged_gvp, GED_OK, ged::ged_result_str, ged_view_update(), bview::gv_center, bview::gv_isize, bview::gv_scale, bview::gv_size, bu_attribute_value_set::max, SQRT_SMALL_FASTF, VSETALL, X, Y, and Z.

Referenced by _ged_drawtrees(), and to_autoview_view().

Here is the call graph for this function: