BRL-CAD
grid.c File Reference
#include "common.h"
#include <math.h>
#include <string.h>
#include "vmath.h"
#include "./ged_private.h"
Include dependency graph for grid.c:

Go to the source code of this file.

Functions

void ged_snap_to_grid (struct ged *gedp, fastf_t *vx, fastf_t *vy)
 
HIDDEN void grid_vsnap (struct ged *gedp)
 
HIDDEN void grid_vls_print (struct ged *gedp)
 
HIDDEN void grid_usage (struct ged *gedp, const char *argv0)
 
int ged_grid (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

Routines that provide the basics for a snap to grid capability.

Definition in file grid.c.

Function Documentation

HIDDEN void grid_vsnap ( struct ged gedp)

Definition at line 92 of file grid.c.

References ged::ged_gvp, ged_snap_to_grid(), ged_view_update(), bview::gv_center, bview::gv_model2view, bview::gv_view2model, X, and Y.

Referenced by ged_grid().

Here is the call graph for this function:

HIDDEN void grid_vls_print ( struct ged gedp)

Definition at line 107 of file grid.c.

References bview_grid_state::anchor, bu_vls_printf(), bview_grid_state::color, db_i::dbi_base2local, rt_wdb::dbip, bview_grid_state::draw, ged::ged_gvp, ged::ged_result_str, ged::ged_wdbp, bview::gv_grid, bview_grid_state::res_h, bview_grid_state::res_major_h, bview_grid_state::res_major_v, bview_grid_state::res_v, and bview_grid_state::snap.

Referenced by ged_grid().

Here is the call graph for this function:

HIDDEN void grid_usage ( struct ged gedp,
const char *  argv0 
)

Definition at line 127 of file grid.c.

References bu_vls_printf(), and ged::ged_result_str.

Referenced by ged_grid().

Here is the call graph for this function:

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