BRL-CAD
rt.c File Reference
#include "common.h"
#include <stdlib.h>
#include <string.h>
#include "tcl.h"
#include "bu/cmd.h"
#include "./ged_private.h"
Include dependency graph for rt.c:

Go to the source code of this file.

Data Structures

struct  _ged_rt_client_data
 

Functions

void _ged_rt_write (struct ged *gedp, FILE *fp, vect_t eye_model)
 
void _ged_rt_set_eye_model (struct ged *gedp, vect_t eye_model)
 
void _ged_rt_output_handler (ClientData clientData, int mask)
 
int _ged_run_rt (struct ged *gedp)
 
size_t ged_count_tops (struct ged *gedp)
 
int ged_build_tops (struct ged *gedp, char **start, char **end)
 
int ged_rt (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

The rt command.

Definition in file rt.c.

Function Documentation

void _ged_rt_write ( struct ged gedp,
FILE *  fp,
vect_t  eye_model 
)

Definition at line 54 of file rt.c.

References dl_bitwise_and_fullpath(), dl_write_animate(), ged_drawable::gd_headDisplay, ged::ged_gdp, ged::ged_gvp, bview::gv_rotation, bview::gv_size, quat_mat2quat(), RT_DIR_USED, X, Y, and Z.

Referenced by _ged_run_rt(), ged_rtcheck(), and ged_saveview().

Here is the call graph for this function:

void _ged_rt_set_eye_model ( struct ged gedp,
vect_t  eye_model 
)

Definition at line 88 of file rt.c.

References dl_bounding_sph(), ged_drawable::gd_headDisplay, ged::ged_gdp, ged::ged_gvp, bview::gv_center, bview::gv_perspective, bview::gv_rotation, bview::gv_view2model, bview::gv_zclip, NEAR_ZERO, and VSET.

Referenced by _ged_run_rt(), ged_get_eyemodel(), ged_rtcheck(), ged_rtwizard(), and ged_saveview().

Here is the call graph for this function:

void _ged_rt_output_handler ( ClientData  clientData,
int  mask 
)

Definition at line 132 of file rt.c.

References ged_run_rt::aborted, brlcad_interp, BU_LIST_DEQUEUE, bu_log(), BU_PUT, bu_vls_printf(), ged_run_rt::fd, ged::ged_output_handler, ged::ged_result_str, _ged_rt_client_data::gedp, ged_run_rt::l, ged_run_rt::pid, _ged_rt_client_data::rrtp, and RT_MAXLINE.

Referenced by _ged_run_rt(), and _ged_run_rtwizard().

Here is the call graph for this function:

int _ged_run_rt ( struct ged gedp)
size_t ged_count_tops ( struct ged gedp)
int ged_build_tops ( struct ged gedp,
char **  start,
char **  end 
)

Build a command line vector of the tops of all objects in view.

Definition at line 424 of file rt.c.

References BU_LIST_FOR, bu_strdup, bu_vls_addr(), bu_vls_printf(), display_list::dl_dp, display_list::dl_path, ged_drawable::gd_headDisplay, ged::ged_gdp, ged::ged_result_str, and RT_DIR_PHONY_ADDR.

Referenced by ged_nirt(), ged_preview(), ged_rrt(), ged_rt(), ged_rtcheck(), and ged_solids_on_ray().

Here is the call graph for this function:

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

Run the raytracing application.

Definition at line 450 of file rt.c.

References _ged_run_rt(), bin(), bu_brlcad_root(), bu_calloc(), bu_free(), BU_STR_EQUAL, bu_vls_printf(), bu_vls_trunc(), db_i::dbi_filename, rt_wdb::dbip, ged_drawable::gd_rt_cmd, ged_drawable::gd_rt_cmd_len, ged_build_tops(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, ged_count_tops(), GED_ERROR, ged::ged_gdp, ged::ged_gvp, GED_OK, ged::ged_result_str, ged::ged_wdbp, and bview::gv_perspective.

Here is the call graph for this function: