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

Go to the source code of this file.

Macros

#define MAX_DBNAME   2048
 

Functions

int ged_loadview (struct ged *gedp, int argc, const char *argv[])
 
int _ged_cm_vsize (const int argc, const char **argv)
 
int _ged_cm_eyept (const int argc, const char **argv)
 
int _ged_cm_lookat_pt (const int argc, const char **argv)
 
int _ged_cm_vrot (const int argc, const char **argv)
 
int _ged_cm_orientation (const int argc, const char **argv)
 
int _ged_cm_set (const int argc, const char **argv)
 
int _ged_cm_null (const int argc, const char **argv)
 

Variables

vect_t _ged_eye_model
 
mat_t _ged_viewrot
 
struct ged_ged_current_gedp
 
struct command_tab ged_loadview_cmdtab []
 

Detailed Description

The loadview command.

Definition in file loadview.c.

Macro Definition Documentation

#define MAX_DBNAME   2048

Referenced by ged_loadview().

Function Documentation

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

Definition at line 260 of file loadview.c.

References ged::ged_gvp, bview::gv_isize, bview::gv_scale, and bview::gv_size.

int _ged_cm_eyept ( const int  argc,
const char **  argv 
)

Definition at line 273 of file loadview.c.

References _ged_eye_model, X, Y, and Z.

int _ged_cm_lookat_pt ( const int  argc,
const char **  argv 
)

Definition at line 286 of file loadview.c.

References _ged_eye_model, _ged_viewrot, bn_mat_fromto(), ged::ged_wdbp, rt_wdb::wdb_tol, X, Y, and Z.

Here is the call graph for this function:

int _ged_cm_vrot ( const int  argc,
const char **  argv 
)

Definition at line 319 of file loadview.c.

References _ged_viewrot.

int _ged_cm_orientation ( const int  argc,
const char **  argv 
)

Definition at line 333 of file loadview.c.

References _ged_viewrot, and quat_quat2mat().

Here is the call graph for this function:

int _ged_cm_set ( const int  argc,
const char **  argv 
)

Definition at line 350 of file loadview.c.

int _ged_cm_null ( const int  argc,
const char **  argv 
)

any commands that are not supported or implemented may call this null routine to avoid rt_do_cmd() "command not found" error reporting

Definition at line 361 of file loadview.c.

Variable Documentation

vect_t _ged_eye_model

Definition at line 35 of file loadview.c.

Referenced by _ged_cm_eyept(), _ged_cm_lookat_pt(), ged_cm_end(), ged_loadview(), and ged_preview().

mat_t _ged_viewrot
struct command_tab ged_loadview_cmdtab[]

here we define a minimal table of commands that are supported by the loadview command. unsupported commands are those that have no bearing on view restoration.

Definition at line 44 of file loadview.c.