BRL-CAD
preview.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include "bsocket.h"
#include "bu/cmd.h"
#include "bu/getopt.h"
#include "./ged_private.h"
Include dependency graph for preview.c:

Go to the source code of this file.

Macros

#define MAXARGS   9000
 

Functions

int ged_cm_anim (const int argc, const char **argv)
 
int ged_cm_clean (const int argc, const char **argv)
 
int ged_cm_end (const int argc, const char **argv)
 
int ged_cm_multiview (const int argc, const char **argv)
 
int ged_cm_start (const int argc, const char **argv)
 
int ged_cm_tree (const int argc, const char **argv)
 
int ged_loadframe (struct ged *gedp, FILE *fp)
 
int ged_preview (struct ged *gedp, int argc, const char *argv[])
 

Variables

struct command_tab ged_preview_cmdtab []
 

Detailed Description

The preview command.

Definition in file preview.c.

Macro Definition Documentation

#define MAXARGS   9000

Definition at line 55 of file preview.c.

Referenced by ged_cm_tree().

Function Documentation

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

Definition at line 60 of file preview.c.

References _ged_current_gedp, bu_vls_printf(), db_parse_anim(), DBI_NULL, rt_wdb::dbip, ged::ged_result_str, and ged::ged_wdbp.

Here is the call graph for this function:

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

Definition at line 78 of file preview.c.

References _ged_current_gedp, db_free_anim(), DBI_NULL, rt_wdb::dbip, and ged::ged_wdbp.

Here is the call graph for this function:

int ged_cm_end ( const int  argc,
const char **  argv 
)
int ged_cm_multiview ( const int  argc,
const char **  argv 
)

Definition at line 169 of file preview.c.

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

Definition at line 176 of file preview.c.

int ged_cm_tree ( const int  argc,
const char **  argv 
)
int ged_loadframe ( struct ged gedp,
FILE *  fp 
)

Definition at line 242 of file preview.c.

References bu_free(), bu_strncmp(), bu_vls_printf(), GED_ERROR, GED_OK, ged::ged_result_str, rt_do_cmd(), and rt_read_cmd().

Referenced by ged_preview().

Here is the call graph for this function:

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

Preview a new style RT animation script. Note that the RT command parser code is used, rather than the MGED command parser, because of the differences in format. The RT parser expects command handlers of the form "ged_cm_xxx()", and all communications are done via global variables.

For the moment, the only preview mode is the normal one, moving the eyepoint as directed. However, as a bonus, the eye path is left behind as a vector plot.

Definition at line 285 of file preview.c.

References _ged_current_gedp, _ged_cvt_vlblock_to_solids(), _ged_eye_model, _ged_viewrot, bu_calloc(), bu_getopt(), bu_optarg, bu_optind, bu_strdup, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_sprintf(), bu_vls_strcpy(), bu_vls_strncpy(), bu_vls_trunc(), db_free_anim(), rt_wdb::dbip, ged_drawable::gd_rt_cmd, ged_drawable::gd_rt_cmd_len, ged_build_tops(), GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, ged_count_tops(), GED_ERROR, ged::ged_gdp, ged::ged_gvp, GED_HELP, ged_loadframe(), GED_OK, ged::ged_result_str, ged_screen_grab(), ged::ged_wdbp, bview::gv_rotation, bview::gv_view2model, rt_vlblock_free(), rt_vlblock_init(), usage(), and VSET.

Here is the call graph for this function:

Variable Documentation

struct command_tab ged_preview_cmdtab[]

Definition at line 207 of file preview.c.