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

Go to the source code of this file.

Functions

int ged_scale_args (struct ged *gedp, int argc, const char *argv[], fastf_t *sf1, fastf_t *sf2, fastf_t *sf3)
 
int ged_scale (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

The scale command.

Definition in file scale.c.

Function Documentation

int ged_scale_args ( struct ged gedp,
int  argc,
const char *  argv[],
fastf_t sf1,
fastf_t sf2,
fastf_t sf3 
)

Scale the view.

Definition at line 36 of file scale.c.

References bu_vls_printf(), bu_vls_trunc(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_VIEW, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, and usage().

Referenced by ged_scale().

Here is the call graph for this function:

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

Definition at line 93 of file scale.c.

References bu_vls_printf(), GED_ERROR, ged::ged_gvp, GED_OK, ged::ged_result_str, ged_scale_args(), ged_view_update(), bview::gv_isize, bview::gv_scale, bview::gv_size, RT_MINVIEWSIZE, and SMALL_FASTF.

Here is the call graph for this function: