center.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "./ged_private.h"
Include dependency graph for center.c:

Go to the source code of this file.


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

Detailed Description

The center command.

Definition in file center.c.

Function Documentation

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

Get or set the view center.

Definition at line 36 of file center.c.

References bn_decode_vect(), bn_encode_vect(), bu_vls_printf(), bu_vls_trunc(), db_i::dbi_base2local, db_i::dbi_local2base, rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_VIEW, GED_ERROR, ged::ged_gvp, GED_OK, ged::ged_result_str, ged_view_update(), ged::ged_wdbp, bview::gv_center, usage(), X, Y, and Z.

Referenced by ged_view_func().

Here is the call graph for this function: