BRL-CAD
vutil.c File Reference
#include "common.h"
#include "./ged_private.h"
Include dependency graph for vutil.c:

Go to the source code of this file.

Functions

void ged_view_update (struct bview *gvp)
 
void _ged_mat_aet (struct bview *gvp)
 
int _ged_do_rot (struct ged *gedp, char coord, mat_t rmat, int(*func)())
 
int _ged_do_slew (struct ged *gedp, vect_t svec)
 
int _ged_do_tra (struct ged *gedp, char coord, vect_t tvec, int(*func)())
 

Detailed Description

This file contains view related utility functions.

Definition in file vutil.c.

Function Documentation

void _ged_mat_aet ( struct bview gvp)

FIXME: this routine is suspect and needs investigating. if run during view initialization, the shaders regression test fails.

Definition at line 82 of file vutil.c.

References bn_mat_angles(), bn_mat_mul2(), bn_mat_zrot(), bview::gv_aet, and bview::gv_rotation.

Referenced by ged_aet(), and ged_lookat().

Here is the call graph for this function:

int _ged_do_rot ( struct ged gedp,
char  coord,
mat_t  rmat,
int(*)()  func 
)

Definition at line 103 of file vutil.c.

References bn_mat_inv(), bn_mat_mul(), bn_mat_mul2(), bn_mat_xform_about_pt(), GED_ERROR, ged::ged_gvp, GED_OK, ged_view_update(), bview::gv_center, bview::gv_keypoint, bview::gv_model2view, bview::gv_rotate_about, bview::gv_rotation, bview::gv_view2model, and VSET.

Referenced by ged_arot(), and ged_rot().

Here is the call graph for this function:

int _ged_do_slew ( struct ged gedp,
vect_t  svec 
)

Definition at line 168 of file vutil.c.

References ged::ged_gvp, GED_OK, ged_view_update(), bview::gv_center, and bview::gv_view2model.

Referenced by ged_slew().

Here is the call graph for this function:

int _ged_do_tra ( struct ged gedp,
char  coord,
vect_t  tvec,
int(*)()  func 
)

Definition at line 181 of file vutil.c.

References db_i::dbi_base2local, rt_wdb::dbip, delta, ged::ged_gvp, GED_OK, ged_view_update(), ged::ged_wdbp, bview::gv_center, bview::gv_isize, and bview::gv_view2model.

Referenced by ged_tra().

Here is the call graph for this function: