BRL-CAD
tclcad_obj.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <assert.h>
#include <zlib.h>
#include <png.h>
#include "tcl.h"
#include "bn.h"
#include "bu/cmd.h"
#include "bu/units.h"
#include "vmath.h"
#include "db.h"
#include "rtgeom.h"
#include "wdb.h"
#include "mater.h"
#include "tclcad.h"
#include "solid.h"
#include "dm.h"
#include "dm/bview.h"
#include "obj.h"
#include "ged.h"
#include "fb.h"
#include "dm/dm_xvars.h"
#include "tclcad_private.h"
#include "brlcad_version.h"
Include dependency graph for tclcad_obj.c:

Go to the source code of this file.

Data Structures

struct  path_edit_params
 
struct  to_cmdtab
 
struct  redraw_edited_path_data
 
struct  path_match_data
 

Macros

#define TO_UNLIMITED   -1
 
#define CLIPPER_MAX   1518500249
 
#define TO_WRAPPER_FUNC_PTR_NULL   (to_wrapper_func_ptr)0
 
#define TO_COMMON_MOUSE_SCALE(_gdvp, _zoom_vls, _argc, _argv, _usage)
 
#define GO_DM_DRAW_POLY(_dmp, _gdpsp, _i, _last_poly, _mode)
 

Typedefs

typedef int(* to_wrapper_func_ptr) (struct ged *, int, const char *[], ged_func_ptr, const char *, int)
 

Functions

HIDDEN int to_autoview (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_axes (struct ged *gedp, struct ged_dm_view *gdvp, struct bview_axes_state *gasp, int argc, const char *argv[], const char *usage)
 
HIDDEN int to_base2local (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_bg (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_blast (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_bounds (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_configure (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_constrain_rmode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_constrain_tmode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_copy (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_arrows (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_axes (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_labels (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_lines (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_polygons (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_move (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_move_object_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_move_point_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_pick (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_vZ (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_dlist_on (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_bot_edge_split (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_bot_face_split (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_fontsize (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_get_prev_mouse (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_init_view_bindings (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_delete_view (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_faceplate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_handle_expose (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_handle_refresh (struct ged *gedp, const char *name)
 
HIDDEN int to_hide_view (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_idle_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_is_viewable (struct ged_dm_view *gdvp)
 
HIDDEN int to_light (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_list_views (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_listen (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_local2base (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_lod (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_make (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mirror (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_model_axes (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_edit_motion_delta_callback (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_more_args_callback (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_append_pt_common (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_brep_selection_append (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_brep_selection_translate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_constrain_rot (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_constrain_trans (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_find_arb_edge (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_find_bot_edge (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_find_botpt (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_find_metaballpt (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_find_pipept (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_joint_select (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_joint_selection_translate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_move_arb_edge (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_move_arb_face (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_move_botpt (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_move_botpts (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_move_pt_common (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_orotate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_oscale (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_otranslate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_poly_circ (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_poly_cont (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_poly_ell (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_poly_rect (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_ray (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_rect (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_rot (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_rotate_arb_face (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_data_scale (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_scale (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_protate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_pscale (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_ptranslate (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_mouse_trans (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_arb_edge_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_arb_face_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_botpt (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_botpts (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_botpt_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_botpts_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_metaballpt_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_pipept_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_move_pt_common (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_new_view (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_orotate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_oscale_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_otranslate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_paint_rect_area (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_poly_circ_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_poly_cont_build (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_poly_cont_build_end (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_poly_ell_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_poly_rect_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_prim_label (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_redraw (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_rect_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_refresh (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_refresh_all (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_refresh_on (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_rotate_arb_face_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_rotate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_rt_end_callback (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_rt_gettrees (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 Given an instance of a database and the name of some treetops, create a named "ray-tracing" object (proc) which will respond to subsequent operations. Returns new proc name as result. More...
 
HIDDEN int to_protate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_pscale_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_ptranslate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_data_scale_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_scale_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_screen2model (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_screen2view (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_set_coord (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_set_fb_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_snap_view (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_translate_mode (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_transparency (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_axes (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_callback (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_win_size (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view2screen (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_vmake (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_vslew (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_zbuffer (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_zclip (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_autoview_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_more_args_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_pass_through_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_pass_through_and_refresh_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_func_common (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs, int cflag, int rflag)
 
HIDDEN int to_view_func_less (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_view_func_plus (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_dm_func (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN int to_close_fbs (struct ged_dm_view *gdvp)
 
HIDDEN void to_dm_get_display_image (struct ged *gedp, unsigned char **idata)
 
HIDDEN void to_fbs_callback ()
 
HIDDEN int to_open_fbs (struct ged_dm_view *gdvp, Tcl_Interp *interp)
 
HIDDEN void to_create_vlist_callback (struct display_list *gdlp)
 
HIDDEN void to_free_vlist_callback (unsigned int dlist, int range)
 
HIDDEN void to_refresh_all_views (struct tclcad_obj *top)
 
HIDDEN void to_refresh_view (struct ged_dm_view *gdvp)
 
HIDDEN void to_refresh_handler (void *clientdata)
 
HIDDEN void to_autoview_view (struct ged_dm_view *gdvp, const char *scale)
 
HIDDEN void to_autoview_all_views (struct tclcad_obj *top)
 
HIDDEN void to_rt_end_callback_internal (int aborted)
 
HIDDEN void to_output_handler (struct ged *gedp, char *line)
 
HIDDEN int to_log_output_handler (void *client_data, void *vpstr)
 
HIDDEN int to_edit_redraw (struct ged *gedp, int argc, const char *argv[])
 
int dm_list_tcl (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 A TCL interface to dm_list_types()). More...
 
int Go_Init (Tcl_Interp *interp)
 create the Tcl command for to_open More...
 
HIDDEN int to_cmd (ClientData clientData, Tcl_Interp *interp, int argc, char **argv)
 Generic interface for database commands. More...
 
HIDDEN int free_path_edit_params_entry (struct bu_hash_entry *entry, void *udata)
 
void to_deleteProc (ClientData clientData)
 Called by Tcl when the object is destroyed. More...
 
int to_create_cmd (Tcl_Interp *interp, struct tclcad_obj *top, const char *oname)
 Create a command named "oname" in "interp" using "gedp" as its state. More...
 
int to_open_tcl (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 A TCL interface to wdb_fopen() and wdb_dbopen(). More...
 
HIDDEN void to_polygon_free (bview_polygon *gpp)
 
HIDDEN void to_polygons_free (bview_polygons *gpp)
 
HIDDEN int to_extract_contours_av (struct ged *gedp, struct ged_dm_view *gdvp, bview_polygon *gpp, size_t contour_ac, const char **contour_av, int mode, int vflag)
 
HIDDEN int to_extract_polygons_av (struct ged *gedp, struct ged_dm_view *gdvp, bview_polygons *gpp, size_t polygon_ac, const char **polygon_av, int mode, int vflag)
 
HIDDEN int to_data_scale (struct ged *gedp, int argc, const char *argv[], ged_func_ptr func, const char *usage, int maxargs)
 
HIDDEN void to_deleteViewProc (ClientData clientData)
 
HIDDEN void to_init_default_bindings (struct ged_dm_view *gdvp)
 
HIDDEN int redraw_edited_path (struct bu_hash_entry *entry, void *udata)
 
HIDDEN int to_view_cmd (ClientData clientData, Tcl_Interp *interp, int argc, char **argv)
 
HIDDEN void to_deleteProc_rt (ClientData clientData)
 
HIDDEN void to_fbs_callback (void *clientData)
 
HIDDEN void to_create_vlist_callback_solid (struct solid *sp)
 
HIDDEN void go_dm_draw_arrows (dm *dmp, struct bview_data_arrow_state *gdasp, fastf_t sf)
 
HIDDEN void go_dm_draw_labels (dm *dmp, struct bview_data_label_state *gdlsp, matp_t m2vmat)
 
HIDDEN void go_dm_draw_lines (dm *dmp, struct bview_data_line_state *gdlsp)
 
HIDDEN void go_dm_draw_polys (dm *dmp, bview_data_polygon_state *gdpsp, int mode)
 
HIDDEN void go_draw (struct ged_dm_view *gdvp)
 
HIDDEN int go_draw_dlist (struct ged_dm_view *gdvp)
 
HIDDEN void go_draw_faceplate (struct ged_obj *gop, struct ged_dm_view *gdvp)
 
HIDDEN void go_draw_solid (struct ged_dm_view *gdvp, struct solid *sp)
 
HIDDEN int key_matches_path (struct bu_hash_entry *entry, void *udata)
 
HIDDEN void go_draw_other (struct ged_obj *gop, struct ged_dm_view *gdvp)
 
void go_refresh (struct ged_obj *gop, struct ged_dm_view *gdvp)
 
void go_refresh_draw (struct ged_obj *gop, struct ged_dm_view *gdvp, int restore_zbuffer)
 
struct applicationto_rt_gettrees_application (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

A quasi-object-oriented database interface.

A GED object contains the attributes and methods for controlling a BRL-CAD geometry edit object.

Definition in file tclcad_obj.c.

Macro Definition Documentation

#define TO_UNLIMITED   -1

Definition at line 110 of file tclcad_obj.c.

Referenced by to_dm_func(), to_make(), to_mirror(), to_view_func_common(), and to_vmake().

#define CLIPPER_MAX   1518500249

Definition at line 116 of file tclcad_obj.c.

Referenced by to_data_polygons().

#define TO_WRAPPER_FUNC_PTR_NULL   (to_wrapper_func_ptr)0

Definition at line 961 of file tclcad_obj.c.

#define TO_COMMON_MOUSE_SCALE (   _gdvp,
  _zoom_vls,
  _argc,
  _argv,
  _usage 
)

Definition at line 9559 of file tclcad_obj.c.

Referenced by to_mouse_data_scale(), and to_mouse_scale().

#define GO_DM_DRAW_POLY (   _dmp,
  _gdpsp,
  _i,
  _last_poly,
  _mode 
)
Value:
{ \
size_t _j; \
\
/* set color */ \
(void)dm_set_fg((_dmp), \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_color[0], \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_color[1], \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_color[2], \
1, 1.0); \
\
/* set the linewidth and linestyle for polygon i */ \
(void)dm_set_line_attr((_dmp), \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_line_width, \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_line_style); \
\
for (_j = 0; _j < (_gdpsp)->gdps_polygons.gp_polygon[_i].gp_num_contours; ++_j) { \
size_t _last = (_gdpsp)->gdps_polygons.gp_polygon[_i].gp_contour[_j].gpc_num_points-1; \
\
(void)dm_draw_lines_3d((_dmp), \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_contour[_j].gpc_num_points, \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_contour[_j].gpc_point, 1); \
if (_mode != TCLCAD_POLY_CONTOUR_MODE || _i != _last_poly || (_gdpsp)->gdps_cflag == 0) { \
(void)dm_draw_line_3d((_dmp), \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_contour[_j].gpc_point[_last], \
(_gdpsp)->gdps_polygons.gp_polygon[_i].gp_contour[_j].gpc_point[0]); \
} \
}}
#define TCLCAD_POLY_CONTOUR_MODE
Definition: tclcad.h:73
int dm_draw_line_3d(dm *dmp, point_t pt1, point_t pt2)
Definition: dm-generic.c:747
int dm_draw_lines_3d(dm *dmp, int npoints, point_t *points, int sflag)
Definition: dm-generic.c:754
if(share_geom)
Definition: nmg_mod.c:3829
int dm_set_fg(dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
Definition: dm-generic.c:441
int dm_set_line_attr(dm *dmp, int width, int style)
Definition: dm-generic.c:617

Definition at line 14222 of file tclcad_obj.c.

Referenced by go_dm_draw_polys().

Typedef Documentation

typedef int(* to_wrapper_func_ptr) (struct ged *, int, const char *[], ged_func_ptr, const char *, int)

Definition at line 960 of file tclcad_obj.c.

Function Documentation

HIDDEN int to_autoview ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 1713 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, GED_ERROR, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, to_autoview_view(), and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_base2local ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 2159 of file tclcad_obj.c.

References bu_vls_printf(), bu_vls_trunc(), db_i::dbi_base2local, rt_wdb::dbip, GED_OK, ged::ged_result_str, ged::ged_wdbp, ged_obj::go_gedp, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_bg ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 2176 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_bg(), dm_make_current(), dm_set_bg(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_blast ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 2248 of file tclcad_obj.c.

References ged_blast(), GED_OK, and to_autoview_all_views().

Here is the call graph for this function:

HIDDEN int to_bounds ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 2269 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_clipmax(), dm_get_clipmin(), dm_make_current(), dm_set_bound(), dm_set_win_bounds(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_MAX, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, X, Y, and Z.

Here is the call graph for this function:

HIDDEN int to_configure ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_constrain_rmode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_constrain_tmode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_copy ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 2548 of file tclcad_obj.c.

References BU_LIST_FOR, BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_strcpy(), bu_vls_strlen(), bu_vls_strncpy(), bu_vls_trunc(), ged_dbcopy(), GED_ERROR, GED_HELP, GED_NULL, GED_OK, ged::ged_result_str, ged_obj::go_gedp, ged_obj::go_name, tclcad_obj::l, strchr(), tclcad_obj::to_gop, and top().

Here is the call graph for this function:

HIDDEN int to_data_axes ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_data_lines ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_data_polygons ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 3660 of file tclcad_obj.c.

References bu_free(), BU_LIST_FOR, BU_LIST_IS_HEAD, bu_realloc(), bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), CLIPPER_MAX, gctXor, bview_data_polygon_state::gdps_clip_type, bview_data_polygon_state::gdps_color, bview_data_polygon_state::gdps_data_vZ, bview_data_polygon_state::gdps_draw, bview_data_polygon_state::gdps_line_style, bview_data_polygon_state::gdps_line_width, bview_data_polygon_state::gdps_model2view, bview_data_polygon_state::gdps_origin, bview_data_polygon_state::gdps_polygons, bview_data_polygon_state::gdps_rotation, bview_data_polygon_state::gdps_scale, bview_data_polygon_state::gdps_target_polygon_i, bview_data_polygon_state::gdps_view2model, ged_dm_view::gdv_name, ged_dm_view::gdv_view, ged_clip_polygon(), GED_ERROR, ged_export_polygon(), ged_find_polygon_area(), GED_HELP, ged_import_polygon(), GED_OK, ged_polygons_overlap(), ged::ged_result_str, ged_obj::go_head_views, bview_polygon::gp_color, bview_polygon::gp_contour, bview_polygon::gp_hole, bview_polygon::gp_line_style, bview_polygon::gp_line_width, bview_polygon::gp_num_contours, bview_polygons::gp_num_polygons, bview_polygons::gp_polygon, bview_poly_contour::gpc_num_points, bview_poly_contour::gpc_point, bview::gv_center, bview::gv_data_polygons, bview::gv_data_vZ, bview::gv_mode, bview::gv_model2view, bview::gv_rotation, bview::gv_scale, bview::gv_sdata_polygons, bview::gv_view2model, ged_dm_view::l, to_extract_contours_av(), to_extract_polygons_av(), tclcad_obj::to_gop, tclcad_obj::to_interp, to_polygon_free(), to_polygons_free(), to_refresh_view(), V3ARGS, VSET, X, Y, and Z.

Referenced by to_mouse_poly_circ(), to_mouse_poly_cont(), to_mouse_poly_ell(), to_mouse_poly_rect(), to_poly_circ_mode(), to_poly_cont_build(), to_poly_ell_mode(), and to_poly_rect_mode().

Here is the call graph for this function:

HIDDEN int to_data_move ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_data_move_object_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 4876 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_mode, bview::gv_prevMouseX, bview::gv_prevMouseY, ged_dm_view::l, TCLCAD_DATA_MOVE_OBJECT_MODE, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_data_move_point_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 4928 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_mode, bview::gv_prevMouseX, bview::gv_prevMouseY, ged_dm_view::l, TCLCAD_DATA_MOVE_POINT_MODE, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_data_pick ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 4980 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_height(), dm_get_width(), bview_data_axes_state::draw, bview_data_arrow_state::gdas_draw, bview_data_arrow_state::gdas_num_points, bview_data_arrow_state::gdas_points, bview_data_label_state::gdls_draw, bview_data_line_state::gdls_draw, bview_data_label_state::gdls_labels, bview_data_label_state::gdls_num_labels, bview_data_line_state::gdls_num_points, bview_data_label_state::gdls_points, bview_data_line_state::gdls_points, bview_data_polygon_state::gdps_draw, bview_data_polygon_state::gdps_polygons, ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview_polygon::gp_contour, bview_polygon::gp_num_contours, bview_polygons::gp_num_polygons, bview_polygons::gp_polygon, bview_poly_contour::gpc_num_points, bview_poly_contour::gpc_point, bview::gv_data_arrows, bview::gv_data_axes, bview::gv_data_labels, bview::gv_data_lines, bview::gv_data_polygons, bview::gv_model2view, bview::gv_sdata_arrows, bview::gv_sdata_axes, bview::gv_sdata_labels, bview::gv_sdata_lines, ged_dm_view::l, MAX_FASTF, bview_data_axes_state::num_points, bview_data_axes_state::points, tclcad_obj::to_gop, V3ARGS, OSL::Strings::width, X, Y, and Z.

Here is the call graph for this function:

HIDDEN int to_data_vZ ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5365 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_data_vZ, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_dlist_on ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5701 of file tclcad_obj.c.

References bu_sscanf(), bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_OK, ged::ged_result_str, ged_obj::go_dlist_on, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_bot_edge_split ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12720 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_free(), bu_vls_init(), bu_vls_printf(), bu_vls_trunc(), ged_bot_edge_split(), GED_OK, ged::ged_result_str, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_bot_face_split ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12752 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_free(), bu_vls_init(), bu_vls_printf(), bu_vls_trunc(), ged_bot_face_split(), GED_OK, ged::ged_result_str, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_fontsize ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5737 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_configure_win(), dm_get_fontsize(), dm_set_fontsize(), DM_VALID_FONT_SIZE, ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_get_prev_mouse ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5795 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_prevMouseX, bview::gv_prevMouseY, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_init_view_bindings ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5834 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_init_default_bindings().

Here is the call graph for this function:

HIDDEN int to_delete_view ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 5874 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, to_deleteViewProc(), and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_faceplate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_handle_expose ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6113 of file tclcad_obj.c.

References bu_sscanf(), bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, and to_handle_refresh().

Here is the call graph for this function:

HIDDEN int to_handle_refresh ( struct ged gedp,
const char *  name 
)

Definition at line 6146 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), ged_dm_view::gdv_name, GED_ERROR, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Referenced by to_handle_expose(), and to_refresh().

Here is the call graph for this function:

HIDDEN int to_hide_view ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6168 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_hide_view, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_is_viewable ( struct ged_dm_view gdvp)

Definition at line 6400 of file tclcad_obj.c.

References bu_vls_addr(), dm_get_pathname(), ged_dm_view::gdv_dmp, tclcad_eval(), and tclcad_obj::to_interp.

Referenced by to_autoview_func(), to_create_vlist_callback_solid(), to_free_vlist_callback(), and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_light ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6431 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_light_flag(), dm_make_current(), dm_set_light(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Referenced by brdf_render(), cook_render(), and phong_render().

Here is the call graph for this function:

HIDDEN int to_list_views ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6489 of file tclcad_obj.c.

References BU_LIST_FOR, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, GED_ERROR, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_listen ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6514 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), FB_NULL, fbs_close(), fbs_open(), ged_dm_view::gdv_fbs, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_local2base ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6581 of file tclcad_obj.c.

References bu_vls_printf(), bu_vls_trunc(), db_i::dbi_local2base, rt_wdb::dbip, GED_OK, ged::ged_result_str, ged::ged_wdbp, ged_obj::go_gedp, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_lod ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_make ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6617 of file tclcad_obj.c.

References ged_draw(), ged_make(), GED_OK, to_autoview_func(), and TO_UNLIMITED.

Here is the call graph for this function:

HIDDEN int to_mirror ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6641 of file tclcad_obj.c.

References ged_draw(), ged_mirror(), GED_OK, to_autoview_func(), and TO_UNLIMITED.

Here is the call graph for this function:

HIDDEN int to_model_axes ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6665 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, ged::ged_result_str, ged_obj::go_head_views, bview::gv_model_axes, ged_dm_view::l, to_axes(), and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_edit_motion_delta_callback ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6703 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_edit_motion_delta_callback, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_more_args_callback ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 6749 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), GED_OK, ged::ged_result_str, ged_obj::go_more_args_callback, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_mouse_append_pt_common ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_brep_selection_append ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_brep_selection_translate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_constrain_rot ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_find_arb_edge ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 7288 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged_find_arb_edge_nearest_pt(), ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, VSET, X, Y, and Z.

Here is the call graph for this function:

HIDDEN int to_mouse_find_bot_edge ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 7354 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged_find_bot_edge_nearest_pt(), ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, VSET, X, Y, and Z.

Here is the call graph for this function:

HIDDEN int to_mouse_find_botpt ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 7419 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged_find_botpt_nearest_pt(), ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, VSET, X, Y, and Z.

Here is the call graph for this function:

HIDDEN int to_mouse_find_metaballpt ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_find_pipept ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_joint_select ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_joint_selection_translate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_move_arb_edge ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_move_arb_face ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_move_botpts ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_move_pt_common ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_orotate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_ray ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 9289 of file tclcad_obj.c.

References GED_OK.

HIDDEN int to_mouse_rect ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_rot ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_rotate_arb_face ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_data_scale ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 9629 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, ged_dm_view::gdv_view, ged::ged_gvp, TO_COMMON_MOUSE_SCALE, and to_data_scale().

Here is the call graph for this function:

HIDDEN int to_mouse_scale ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 9658 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_strlen(), ged_dm_view::gdv_callback, ged_dm_view::gdv_view, ged::ged_gvp, GED_OK, ged_zoom(), TO_COMMON_MOUSE_SCALE, tclcad_obj::to_interp, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_mouse_protate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_pscale ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_mouse_ptranslate ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_arb_edge_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_arb_face_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_botpt ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 10217 of file tclcad_obj.c.

References ged_move_botpt(), GED_OK, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_move_botpts ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 10248 of file tclcad_obj.c.

References ged_move_botpts(), GED_OK, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_move_botpt_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_botpts_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_metaballpt_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_pipept_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_move_pt_common ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 10529 of file tclcad_obj.c.

References GED_OK, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_orotate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_oscale_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_otranslate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_paint_rect_area ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_poly_circ_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_poly_cont_build ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_poly_cont_build_end ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_poly_ell_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_poly_rect_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_prim_label ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 11663 of file tclcad_obj.c.

References bu_calloc(), bu_free(), bu_vls_free(), bu_vls_init(), bu_vls_printf(), bu_vls_trunc(), GED_OK, ged::ged_result_str, ged_obj::go_prim_label_list, ged_obj::go_prim_label_list_size, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_redraw ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 11791 of file tclcad_obj.c.

References bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_HELP, ged::ged_result_str, and to_edit_redraw().

Here is the call graph for this function:

HIDDEN int to_rect_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_refresh ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 11817 of file tclcad_obj.c.

References bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_HELP, ged::ged_result_str, and to_handle_refresh().

Here is the call graph for this function:

HIDDEN int to_refresh_all ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 11843 of file tclcad_obj.c.

References bu_vls_printf(), GED_ERROR, GED_OK, ged::ged_result_str, and to_refresh_all_views().

Here is the call graph for this function:

HIDDEN int to_refresh_on ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 11862 of file tclcad_obj.c.

References bu_sscanf(), bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_OK, ged::ged_result_str, ged_obj::go_refresh_on, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_rotate_arb_face_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_rotate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_rt_end_callback ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12043 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), GED_OK, ged::ged_result_str, ged_obj::go_rt_end_callback, and tclcad_obj::to_gop.

Here is the call graph for this function:

int to_rt_gettrees ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Given an instance of a database and the name of some treetops, create a named "ray-tracing" object (proc) which will respond to subsequent operations. Returns new proc name as result.

Example:
.inmem rt_gettrees .rt all.g light.r

Definition at line 12081 of file tclcad_obj.c.

References bu_vls_printf(), bu_vls_trunc(), GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, RT_APPLICATION_NULL, rt_tcl_rt(), to_deleteProc_rt(), tclcad_obj::to_interp, and to_rt_gettrees_application().

Here is the call graph for this function:

HIDDEN int to_protate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_pscale_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_ptranslate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_data_scale_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_scale_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_screen2model ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12439 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_view2model, ged_dm_view::l, tclcad_obj::to_gop, V3ARGS, and VSET.

Here is the call graph for this function:

HIDDEN int to_screen2view ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12495 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, V3ARGS, and VSET.

Here is the call graph for this function:

HIDDEN int to_set_coord ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12549 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_coord, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_set_fb_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12601 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_fbs, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, TCLCAD_OBJ_FB_MODE_OVERLAY, tclcad_obj::to_gop, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_snap_view ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12660 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, ged::ged_gvp, GED_HELP, GED_OK, ged::ged_result_str, ged_snap_to_grid(), ged_obj::go_head_views, bview::gv_grid, ged_dm_view::l, bview_grid_state::snap, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_translate_mode ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_transparency ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12845 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_transparency(), dm_make_current(), dm_set_transparency(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_view_axes ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12902 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, ged::ged_result_str, ged_obj::go_head_views, bview::gv_view_axes, ged_dm_view::l, to_axes(), and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_view_callback ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12940 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_callback, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, and tclcad_obj::to_gop.

Here is the call graph for this function:

HIDDEN int to_view_win_size ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 12986 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_height(), dm_get_public_vars(), dm_get_width(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN int to_view2screen ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13058 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_height(), dm_get_width(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, OSL::Strings::width, X, and Y.

Here is the call graph for this function:

HIDDEN int to_vmake ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13115 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), ged_dm_view::gdv_name, ged_dm_view::gdv_view, ged_draw(), GED_ERROR, GED_HELP, ged_make(), GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_center, bview::gv_scale, ged_dm_view::l, to_autoview_func(), tclcad_obj::to_gop, and TO_UNLIMITED.

Here is the call graph for this function:

HIDDEN int to_vslew ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_zbuffer ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13271 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_get_zbuffer(), dm_make_current(), dm_set_zbuffer(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_zclip ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13331 of file tclcad_obj.c.

References BU_LIST_FOR, BU_LIST_IS_HEAD, bu_sscanf(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_printf(), bu_vls_trunc(), dm_set_zclip(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_dm_view::gdv_view, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged_obj::go_head_views, bview::gv_zclip, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Here is the call graph for this function:

HIDDEN int to_autoview_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13392 of file tclcad_obj.c.

References BU_LIST_FOR, bu_vls_addr(), dm_get_height(), dm_get_width(), ged_dm_view::gdv_dmp, ged::ged_gvp, GED_OK, ged::ged_result_str, ged_who(), ged_obj::go_head_views, bview::gv_x_samples, bview::gv_y_samples, ged_dm_view::l, to_autoview_all_views(), tclcad_obj::to_gop, to_is_viewable(), and to_refresh_all_views().

Referenced by to_make(), to_mirror(), and to_vmake().

Here is the call graph for this function:

HIDDEN int to_more_args_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13536 of file tclcad_obj.c.

References bu_free(), bu_log(), bu_strdup, bu_vls_addr(), bu_vls_free(), bu_vls_gets(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_strlen(), bu_vls_trunc(), GED_ERROR, GED_MORE, ged::ged_result_str, ged_obj::go_more_args_callback, tclcad_obj::to_gop, and tclcad_obj::to_interp.

Here is the call graph for this function:

HIDDEN int to_pass_through_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13629 of file tclcad_obj.c.

HIDDEN int to_pass_through_and_refresh_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13641 of file tclcad_obj.c.

References GED_OK, and to_refresh_all_views().

Here is the call graph for this function:

HIDDEN int to_view_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13660 of file tclcad_obj.c.

References to_view_func_common().

Here is the call graph for this function:

HIDDEN int to_view_func_less ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13759 of file tclcad_obj.c.

References to_view_func_common().

Here is the call graph for this function:

HIDDEN int to_view_func_plus ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)

Definition at line 13771 of file tclcad_obj.c.

References to_view_func_common().

Here is the call graph for this function:

HIDDEN int to_dm_func ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN int to_close_fbs ( struct ged_dm_view gdvp)

Definition at line 13857 of file tclcad_obj.c.

References fb_close_existing(), fb_flush(), FB_NULL, and ged_dm_view::gdv_fbs.

Referenced by to_deleteProc().

Here is the call graph for this function:

HIDDEN void to_dm_get_display_image ( struct ged gedp,
unsigned char **  idata 
)

Definition at line 13870 of file tclcad_obj.c.

References dm_get_display_image(), and ged::ged_dmp.

Referenced by to_dm_func().

Here is the call graph for this function:

HIDDEN void to_fbs_callback ( )

Referenced by to_new_view().

HIDDEN int to_open_fbs ( struct ged_dm_view gdvp,
Tcl_Interp *  interp 
)

Definition at line 13882 of file tclcad_obj.c.

References dm_get_fb(), FB_NULL, ged_dm_view::gdv_dmp, and ged_dm_view::gdv_fbs.

Referenced by to_new_view().

Here is the call graph for this function:

HIDDEN void to_create_vlist_callback ( struct display_list gdlp)

Definition at line 13945 of file tclcad_obj.c.

References display_list::dl_headSolid, and to_create_vlist_callback_solid().

Referenced by to_open_tcl().

Here is the call graph for this function:

HIDDEN void to_free_vlist_callback ( unsigned int  dlist,
int  range 
)

Definition at line 13955 of file tclcad_obj.c.

References BU_LIST_FOR, dm_free_dlists(), dm_make_current(), ged_dm_view::gdv_dmp, ged_obj::go_dlist_on, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_is_viewable().

Referenced by to_open_tcl().

Here is the call graph for this function:

HIDDEN void to_refresh_all_views ( struct tclcad_obj top)

Definition at line 13969 of file tclcad_obj.c.

References BU_LIST_FOR, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, and to_refresh_view().

Referenced by to_autoview_func(), to_edit_redraw(), to_idle_mode(), to_mouse_joint_selection_translate(), to_pass_through_and_refresh_func(), and to_refresh_all().

Here is the call graph for this function:

HIDDEN void to_refresh_handler ( void *  clientdata)

Definition at line 13991 of file tclcad_obj.c.

References to_refresh_view().

Referenced by to_open_tcl().

Here is the call graph for this function:

HIDDEN void to_autoview_view ( struct ged_dm_view gdvp,
const char *  scale 
)

Definition at line 14002 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_strlen(), ged_dm_view::gdv_callback, ged_dm_view::gdv_gop, ged_dm_view::gdv_view, ged_autoview(), ged::ged_gvp, GED_OK, ged_obj::go_gedp, tclcad_obj::to_interp, and to_refresh_view().

Referenced by to_autoview(), and to_autoview_all_views().

Here is the call graph for this function:

HIDDEN void to_autoview_all_views ( struct tclcad_obj top)

Definition at line 14028 of file tclcad_obj.c.

References BU_LIST_FOR, ged_obj::go_head_views, ged_dm_view::l, to_autoview_view(), and tclcad_obj::to_gop.

Referenced by to_autoview_func(), and to_blast().

Here is the call graph for this function:

HIDDEN void to_rt_end_callback_internal ( int  aborted)

Definition at line 14039 of file tclcad_obj.c.

References bu_vls_addr(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_strlen(), ged_obj::go_rt_end_callback, tclcad_obj::to_gop, and tclcad_obj::to_interp.

Referenced by to_open_tcl().

Here is the call graph for this function:

HIDDEN void to_output_handler ( struct ged gedp,
char *  line 
)

Definition at line 14053 of file tclcad_obj.c.

References ged::ged_output_script, tclcad_eval_noresult(), and tclcad_obj::to_interp.

Referenced by to_log_output_handler(), and to_open_tcl().

Here is the call graph for this function:

HIDDEN int to_log_output_handler ( void *  client_data,
void *  vpstr 
)

Definition at line 14066 of file tclcad_obj.c.

References to_output_handler().

Here is the call graph for this function:

int dm_list_tcl ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

A TCL interface to dm_list_types()).

Returns
a list of available dm types.

Definition at line 1404 of file tclcad_obj.c.

References BU_PUT, bu_vls_addr(), bu_vls_free(), and dm_list_types().

Referenced by Go_Init().

Here is the call graph for this function:

HIDDEN int to_cmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
char **  argv 
)

Generic interface for database commands.

Usage:
procname cmd ?args?
Returns
result of ged command.

Definition at line 1457 of file tclcad_obj.c.

References BU_STR_EQUAL, bu_vls_addr(), GED_ERROR, ged::ged_result_str, ged_obj::go_gedp, to_cmdtab::to_func, tclcad_obj::to_gop, to_cmdtab::to_maxargs, to_cmdtab::to_name, to_cmdtab::to_usage, to_cmdtab::to_wrapper_func, and top().

Referenced by to_create_cmd().

Here is the call graph for this function:

HIDDEN int free_path_edit_params_entry ( struct bu_hash_entry entry,
void *  udata 
)

Definition at line 1527 of file tclcad_obj.c.

References bu_get_hash_value(), and BU_PUT.

Referenced by to_deleteProc(), and to_idle_mode().

Here is the call graph for this function:

void to_deleteProc ( ClientData  clientData)
int to_create_cmd ( Tcl_Interp *  interp,
struct tclcad_obj top,
const char *  oname 
)

Create a command named "oname" in "interp" using "gedp" as its state.

Definition at line 1580 of file tclcad_obj.c.

References TCLCAD_OBJ_NULL, to_cmd(), and to_deleteProc().

Referenced by to_open_tcl().

Here is the call graph for this function:

HIDDEN void to_polygon_free ( bview_polygon gpp)

Definition at line 3521 of file tclcad_obj.c.

References bu_free(), bview_polygon::gp_contour, bview_polygon::gp_hole, bview_polygon::gp_num_contours, and bview_poly_contour::gpc_point.

Referenced by to_data_polygons(), and to_polygons_free().

Here is the call graph for this function:

HIDDEN void to_polygons_free ( bview_polygons gpp)

Definition at line 3538 of file tclcad_obj.c.

References bu_free(), bview_polygons::gp_num_polygons, bview_polygons::gp_polygon, and to_polygon_free().

Referenced by to_data_polygons().

Here is the call graph for this function:

HIDDEN int to_extract_contours_av ( struct ged gedp,
struct ged_dm_view gdvp,
bview_polygon gpp,
size_t  contour_ac,
const char **  contour_av,
int  mode,
int  vflag 
)

Definition at line 3556 of file tclcad_obj.c.

References bu_calloc(), bu_sscanf(), bu_vls_printf(), ged_dm_view::gdv_view, GED_ERROR, GED_OK, ged::ged_result_str, bview_polygon::gp_contour, bview_polygon::gp_hole, bview_polygon::gp_num_contours, bview_poly_contour::gpc_num_points, bview_poly_contour::gpc_point, bview::gv_view2model, TCLCAD_POLY_CONTOUR_MODE, tclcad_obj::to_interp, X, Y, and Z.

Referenced by to_data_polygons(), and to_extract_polygons_av().

Here is the call graph for this function:

HIDDEN int to_extract_polygons_av ( struct ged gedp,
struct ged_dm_view gdvp,
bview_polygons gpp,
size_t  polygon_ac,
const char **  polygon_av,
int  mode,
int  vflag 
)

Definition at line 3627 of file tclcad_obj.c.

References bu_calloc(), bu_vls_printf(), GED_ERROR, GED_OK, ged::ged_result_str, bview_polygons::gp_num_polygons, bview_polygons::gp_polygon, to_extract_contours_av(), and tclcad_obj::to_interp.

Referenced by to_data_polygons().

Here is the call graph for this function:

HIDDEN int to_data_scale ( struct ged gedp,
int  argc,
const char *  argv[],
ged_func_ptr  func,
const char *  usage,
int  maxargs 
)
HIDDEN void to_deleteViewProc ( ClientData  clientData)

Definition at line 5420 of file tclcad_obj.c.

References bu_free(), BU_LIST_DEQUEUE, bu_vls_free(), dm_close(), ged_dm_view::gdv_callback, ged_dm_view::gdv_dmp, ged_dm_view::gdv_edit_motion_delta_callback, ged_dm_view::gdv_name, ged_dm_view::gdv_view, and ged_dm_view::l.

Referenced by to_delete_view(), and to_new_view().

Here is the call graph for this function:

HIDDEN void to_init_default_bindings ( struct ged_dm_view gdvp)

Definition at line 5435 of file tclcad_obj.c.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), dm_get_pathname(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_name, ged_obj::go_name, tclcad_obj::to_gop, and tclcad_obj::to_interp.

Referenced by to_init_view_bindings(), and to_new_view().

Here is the call graph for this function:

HIDDEN int to_view_cmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
char **  argv 
)

Definition at line 10081 of file tclcad_obj.c.

Referenced by to_new_view().

HIDDEN void to_deleteProc_rt ( ClientData  clientData)

Called when the named proc created by rt_gettrees() is destroyed.

Definition at line 12026 of file tclcad_obj.c.

References application::a_rt_i, bu_free(), RT_AP_CHECK, RT_CK_RTI, and rt_free_rti().

Referenced by to_rt_gettrees().

Here is the call graph for this function:

HIDDEN void to_fbs_callback ( void *  clientData)

Definition at line 13848 of file tclcad_obj.c.

References to_refresh_view().

Here is the call graph for this function:

HIDDEN void to_create_vlist_callback_solid ( struct solid *  sp)

Definition at line 13907 of file tclcad_obj.c.

References BU_LIST_FOR, dm_begin_dlist(), dm_draw_vlist(), dm_draw_vlist_hidden_line(), dm_end_dlist(), dm_gen_dlists(), dm_make_current(), dm_set_fg(), ged_dm_view::gdv_dmp, ged_obj::go_dlist_on, ged_obj::go_head_views, ged_dm_view::l, tclcad_obj::to_gop, to_is_viewable(), and UP.

Referenced by to_create_vlist_callback().

Here is the call graph for this function:

HIDDEN void go_dm_draw_arrows ( dm dmp,
struct bview_data_arrow_state gdasp,
fastf_t  sf 
)
HIDDEN void go_dm_draw_labels ( dm dmp,
struct bview_data_label_state gdlsp,
matp_t  m2vmat 
)

Definition at line 14171 of file tclcad_obj.c.

References dm_draw_string_2d(), dm_set_fg(), bview_data_label_state::gdls_color, bview_data_label_state::gdls_labels, bview_data_label_state::gdls_num_labels, bview_data_label_state::gdls_points, X, and Y.

Referenced by go_draw_other().

Here is the call graph for this function:

HIDDEN void go_dm_draw_lines ( dm dmp,
struct bview_data_line_state gdlsp 
)

Definition at line 14193 of file tclcad_obj.c.

References dm_draw_lines_3d(), dm_get_linestyle(), dm_get_linewidth(), dm_set_fg(), dm_set_line_attr(), bview_data_line_state::gdls_color, bview_data_line_state::gdls_line_width, bview_data_line_state::gdls_num_points, and bview_data_line_state::gdls_points.

Referenced by go_draw_other().

Here is the call graph for this function:

HIDDEN void go_dm_draw_polys ( dm dmp,
bview_data_polygon_state gdpsp,
int  mode 
)

Definition at line 14253 of file tclcad_obj.c.

References dm_get_linestyle(), dm_get_linewidth(), dm_set_line_attr(), bview_data_polygon_state::gdps_polygons, bview_data_polygon_state::gdps_target_polygon_i, GO_DM_DRAW_POLY, and bview_polygons::gp_num_polygons.

Referenced by go_draw_other().

Here is the call graph for this function:

HIDDEN void go_draw ( struct ged_dm_view gdvp)

Definition at line 14282 of file tclcad_obj.c.

References dm_loadmatrix(), dm_loadpmatrix(), ged_dm_view::gdv_dmp, ged_dm_view::gdv_view, go_draw_dlist(), bview::gv_model2view, and bview::gv_pmat.

Referenced by go_refresh_draw().

Here is the call graph for this function:

HIDDEN int go_draw_dlist ( struct ged_dm_view gdvp)

Definition at line 14297 of file tclcad_obj.c.

References BU_LIST_NEXT, BU_LIST_NOT_HEAD, BU_LIST_PNEXT, display_list::dl_headSolid, dm_get_linewidth(), dm_get_transparency(), dm_set_depth_mask(), dm_set_line_attr(), ged_drawable::gd_headDisplay, ged_dm_view::gdv_dmp, ged_dm_view::gdv_gop, ged::ged_gdp, GED_OK, go_draw_solid(), ged_obj::go_gedp, and ZERO.

Referenced by go_draw().

Here is the call graph for this function:

HIDDEN void go_draw_solid ( struct ged_dm_view gdvp,
struct solid *  sp 
)
HIDDEN int key_matches_path ( struct bu_hash_entry entry,
void *  udata 
)

Definition at line 14477 of file tclcad_obj.c.

References bu_get_hash_key(), data, db_free_full_path(), db_full_path_match_top(), db_string_to_path(), path_match_data::dbip, and path_match_data::s_fpath.

Referenced by go_draw_solid().

Here is the call graph for this function: