BRL-CAD
Collaboration diagram for View Matrix/Quaternion:

Files

file  matrix.h
 

Functions

void ged_persp_mat (fastf_t *m, fastf_t fovy, fastf_t aspect, fastf_t near1, fastf_t far1, fastf_t backoff)
 
void ged_mike_persp_mat (fastf_t *pmat, const fastf_t *eye)
 
void ged_deering_persp_mat (fastf_t *m, const fastf_t *l, const fastf_t *h, const fastf_t *eye)
 
int ged_perspective (struct ged *gedp, int argc, const char *argv[])
 
int ged_ae2dir (struct ged *gedp, int argc, const char *argv[])
 
int ged_aet (struct ged *gedp, int argc, const char *argv[])
 
int ged_arot_args (struct ged *gedp, int argc, const char *argv[], mat_t rmat)
 
int ged_arot (struct ged *gedp, int argc, const char *argv[])
 
int ged_autoview (struct ged *gedp, int argc, const char *argv[])
 
int ged_center (struct ged *gedp, int argc, const char *argv[])
 
int ged_dir2ae (struct ged *gedp, int argc, const char *argv[])
 
int ged_eye (struct ged *gedp, int argc, const char *argv[])
 
int ged_eye_pos (struct ged *gedp, int argc, const char *argv[])
 
int ged_get_autoview (struct ged *gedp, int argc, const char *argv[])
 
int ged_get_eyemodel (struct ged *gedp, int argc, const char *argv[])
 
int ged_isize (struct ged *gedp, int argc, const char *argv[])
 
int ged_loadview (struct ged *gedp, int argc, const char *argv[])
 
int ged_lookat (struct ged *gedp, int argc, const char *argv[])
 
int ged_m2v_point (struct ged *gedp, int argc, const char *argv[])
 
int ged_model2grid_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_model2view (struct ged *gedp, int argc, const char *argv[])
 
int ged_model2view_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_mrot (struct ged *gedp, int argc, const char *argv[])
 
int ged_orient (struct ged *gedp, int argc, const char *argv[])
 
int ged_pmat (struct ged *gedp, int argc, const char *argv[])
 
int ged_pmodel2view (struct ged *gedp, int argc, const char *argv[])
 
int ged_quat (struct ged *gedp, int argc, const char *argv[])
 
int ged_qvrot (struct ged *gedp, int argc, const char *argv[])
 
int ged_rot_args (struct ged *gedp, int argc, const char *argv[], char *coord, mat_t rmat)
 
int ged_rot (struct ged *gedp, int argc, const char *argv[])
 
int ged_rotate_about (struct ged *gedp, int argc, const char *argv[])
 
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[])
 
int ged_setview (struct ged *gedp, int argc, const char *argv[])
 
int ged_size (struct ged *gedp, int argc, const char *argv[])
 
int ged_view2grid_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_view2model (struct ged *gedp, int argc, const char *argv[])
 
int ged_view2model_lu (struct ged *gedp, int argc, const char *argv[])
 
int ged_view2model_vec (struct ged *gedp, int argc, const char *argv[])
 
int ged_vrot (struct ged *gedp, int argc, const char *argv[])
 
int ged_viewdir (struct ged *gedp, int argc, const char *argv[])
 
int ged_ypr (struct ged *gedp, int argc, const char *argv[])
 
int ged_zoom (struct ged *gedp, int argc, const char *argv[])
 
int ged_clip (fastf_t *xp1, fastf_t *yp1, fastf_t *xp2, fastf_t *yp2)
 
int ged_vclip (vect_t a, vect_t b, fastf_t *min, fastf_t *max)
 
int ged_slew (struct ged *gedp, int argc, const char *argv[])
 
int ged_rmat (struct ged *gedp, int argc, const char *argv[])
 
int ged_tra_args (struct ged *gedp, int argc, const char *argv[], char *coord, vect_t tvec)
 
int ged_tra (struct ged *gedp, int argc, const char *argv[])
 
int ged_v2m_point (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

Geometry EDiting Library Angle Matrix/Quat Functions.

Function Documentation

◆ ged_persp_mat()

void ged_persp_mat ( fastf_t m,
fastf_t  fovy,
fastf_t  aspect,
fastf_t  near1,
fastf_t  far1,
fastf_t  backoff 
)

◆ ged_mike_persp_mat()

void ged_mike_persp_mat ( fastf_t pmat,
const fastf_t eye 
)

◆ ged_deering_persp_mat()

void ged_deering_persp_mat ( fastf_t m,
const fastf_t l,
const fastf_t h,
const fastf_t eye 
)

◆ ged_perspective()

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

Set/get the perspective angle.

◆ ged_ae2dir()

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

Convert az/el to a direction vector.

◆ ged_aet()

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

Get or set the azimuth, elevation and twist.

◆ ged_arot_args()

int ged_arot_args ( struct ged gedp,
int  argc,
const char *  argv[],
mat_t  rmat 
)

Rotate angle degrees about the specified axis

◆ ged_arot()

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

◆ ged_autoview()

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

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

◆ ged_center()

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

Get or set the view center.

◆ ged_dir2ae()

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

Convert a direction vector to az/el.

◆ ged_eye()

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

Set/get the eye point

◆ ged_eye_pos()

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

Set/get the eye position

◆ ged_get_autoview()

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

Get view size and center such that all displayed solids would be in view

◆ ged_get_eyemodel()

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

Get the viewsize, orientation and eye point.

◆ ged_isize()

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

Returns the inverse view size.

◆ ged_loadview()

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

Load the view

◆ ged_lookat()

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

Set the look-at point

◆ ged_m2v_point()

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

Convert the specified model point to a view point.

◆ ged_model2grid_lu()

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

Convert model coordinates to grid coordinates.

◆ ged_model2view()

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

Get the model to view matrix

◆ ged_model2view_lu()

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

Convert model coordinates to view coordinates.

◆ ged_mrot()

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

Rotate the view. Note - x, y and z are rotations in model coordinates.

◆ ged_orient()

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

Set the view orientation using a quaternion.

◆ ged_pmat()

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

Set/get the perspective matrix.

◆ ged_pmodel2view()

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

Get the pmodel2view matrix.

◆ ged_quat()

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

Get/set the view orientation using a quaternion

◆ ged_qvrot()

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

Set the view from a direction vector and twist.

◆ ged_rot_args()

int ged_rot_args ( struct ged gedp,
int  argc,
const char *  argv[],
char *  coord,
mat_t  rmat 
)

Rotate the view.

◆ ged_rot()

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

◆ ged_rotate_about()

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

Set/get the rotate_about point.

◆ ged_scale_args()

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

Scale the view.

◆ ged_scale()

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

◆ ged_setview()

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

Set the view orientation given the angles x, y and z in degrees.

◆ ged_size()

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

Get or set the view size.

◆ ged_view2grid_lu()

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

Convert view coordinates to grid coordinates.

◆ ged_view2model()

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

Get the view2model matrix.

◆ ged_view2model_lu()

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

Convert view coordinates to model coordinates.

◆ ged_view2model_vec()

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

Convert a view vector to a model vector.

◆ ged_vrot()

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

Rotate the view. Note - x, y and z are rotations in view coordinates.

◆ ged_viewdir()

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

Return the view direction.

◆ ged_ypr()

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

Get/set the view orientation using yaw, pitch and roll

◆ ged_zoom()

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

Zoom the view in or out.

◆ ged_clip()

int ged_clip ( fastf_t xp1,
fastf_t yp1,
fastf_t xp2,
fastf_t yp2 
)

◆ ged_vclip()

int ged_vclip ( vect_t  a,
vect_t  b,
fastf_t min,
fastf_t max 
)

◆ ged_slew()

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

Slew the view

◆ ged_rmat()

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

Set/get the rotation matrix.

◆ ged_tra_args()

int ged_tra_args ( struct ged gedp,
int  argc,
const char *  argv[],
char *  coord,
vect_t  tvec 
)

Translate the view.

◆ ged_tra()

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

◆ ged_v2m_point()

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

Convert the specified view point to a model point.