BRL-CAD
Loading...
Searching...
No Matches
edit.h File Reference
#include "common.h"
#include "vmath.h"
#include "bn/mat.h"
#include "bv/defines.h"
#include "rt/defines.h"
#include "rt/db_internal.h"
#include "rt/resource.h"
Include dependency graph for edit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rt_edit
 
struct  rt_edit_menu_item
 

Macros

#define RT_EDIT_DEFAULT   -1
 
#define RT_EDIT_IDLE   0
 
#define RT_PARAMS_EDIT_TRANS   1
 
#define RT_PARAMS_EDIT_SCALE   2
 
#define RT_PARAMS_EDIT_ROT   3
 
#define RT_PARAMS_EDIT_PICK   5
 
#define RT_MATRIX_EDIT_ROT   6
 
#define RT_MATRIX_EDIT_TRANS_VIEW_XY   7
 
#define RT_MATRIX_EDIT_TRANS_VIEW_X   8
 
#define RT_MATRIX_EDIT_TRANS_VIEW_Y   9
 
#define RT_MATRIX_EDIT_SCALE   10
 
#define RT_MATRIX_EDIT_SCALE_X   11
 
#define RT_MATRIX_EDIT_SCALE_Y   12
 
#define RT_MATRIX_EDIT_SCALE_Z   13
 
#define ECMD_CLEAR_CLBKS   0
 
#define ECMD_PRINT_STR   10
 
#define ECMD_PRINT_RESULTS   20
 
#define ECMD_EAXES_POS   30
 
#define ECMD_REPLOT_EDITING_SOLID   40
 
#define ECMD_VIEW_UPDATE   50
 
#define ECMD_VIEW_SET_FLAG   60
 
#define ECMD_MENU_SET   70
 
#define ECMD_GET_FILENAME   80
 

Functions

struct rt_editrt_edit_create (struct db_full_path *dfp, struct db_i *dbip, struct bn_tol *, struct bview *v)
 
void rt_edit_destroy (struct rt_edit *s)
 
struct rt_edit_maprt_edit_map_create (void)
 
void rt_edit_map_destroy (struct rt_edit_map *)
 
int rt_edit_map_clbk_set (struct rt_edit_map *em, int ed_cmd, int mode, bu_clbk_t f, void *d)
 
int rt_edit_map_clbk_get (bu_clbk_t *f, void **d, struct rt_edit_map *em, int ed_cmd, int mode)
 
int rt_edit_map_clear (struct rt_edit_map *m)
 
int rt_edit_map_copy (struct rt_edit_map *om, struct rt_edit_map *im)
 
void rt_get_solid_keypoint (struct rt_edit *s, point_t *pt, const char **strp, fastf_t *mat)
 
void rt_edit_set_edflag (struct rt_edit *s, int edflag)
 
int rt_edit_knob_cmd_process (struct rt_edit *s, vect_t *rvec, int *do_rot, vect_t *tvec, int *do_tran, int *do_sca, struct bview *v, const char *cmd, fastf_t f, char origin, int incr_flag, void *u_data)
 
void rt_knob_edit_rot (struct rt_edit *s, char coords, char rotate_about, int matrix_edit, mat_t newrot)
 
void rt_knob_edit_tran (struct rt_edit *s, char coords, int matrix_edit, vect_t tvec)
 
void rt_knob_edit_sca (struct rt_edit *s, int matrix_edit)
 
void rt_edit_process (struct rt_edit *s)
 

Detailed Description

NOTE!!! This API is a work in progress as we migrate and consolidate editing code from MGED, libged and other codes to a unified common implementation in LIBRT. Until this notice is removed, there are NO guarantees of API stability with this code!

Definition in file edit.h.

Macro Definition Documentation

◆ RT_EDIT_DEFAULT

#define RT_EDIT_DEFAULT   -1

Definition at line 42 of file edit.h.

◆ RT_EDIT_IDLE

#define RT_EDIT_IDLE   0

Definition at line 43 of file edit.h.

◆ RT_PARAMS_EDIT_TRANS

#define RT_PARAMS_EDIT_TRANS   1

Definition at line 53 of file edit.h.

◆ RT_PARAMS_EDIT_SCALE

#define RT_PARAMS_EDIT_SCALE   2

Definition at line 54 of file edit.h.

◆ RT_PARAMS_EDIT_ROT

#define RT_PARAMS_EDIT_ROT   3

Definition at line 55 of file edit.h.

◆ RT_PARAMS_EDIT_PICK

#define RT_PARAMS_EDIT_PICK   5

Definition at line 66 of file edit.h.

◆ RT_MATRIX_EDIT_ROT

#define RT_MATRIX_EDIT_ROT   6

Definition at line 73 of file edit.h.

◆ RT_MATRIX_EDIT_TRANS_VIEW_XY

#define RT_MATRIX_EDIT_TRANS_VIEW_XY   7

Definition at line 91 of file edit.h.

◆ RT_MATRIX_EDIT_TRANS_VIEW_X

#define RT_MATRIX_EDIT_TRANS_VIEW_X   8

Definition at line 92 of file edit.h.

◆ RT_MATRIX_EDIT_TRANS_VIEW_Y

#define RT_MATRIX_EDIT_TRANS_VIEW_Y   9

Definition at line 93 of file edit.h.

◆ RT_MATRIX_EDIT_SCALE

#define RT_MATRIX_EDIT_SCALE   10

Definition at line 108 of file edit.h.

◆ RT_MATRIX_EDIT_SCALE_X

#define RT_MATRIX_EDIT_SCALE_X   11

Definition at line 109 of file edit.h.

◆ RT_MATRIX_EDIT_SCALE_Y

#define RT_MATRIX_EDIT_SCALE_Y   12

Definition at line 110 of file edit.h.

◆ RT_MATRIX_EDIT_SCALE_Z

#define RT_MATRIX_EDIT_SCALE_Z   13

Definition at line 111 of file edit.h.

◆ ECMD_CLEAR_CLBKS

#define ECMD_CLEAR_CLBKS   0

Definition at line 287 of file edit.h.

◆ ECMD_PRINT_STR

#define ECMD_PRINT_STR   10

Definition at line 288 of file edit.h.

◆ ECMD_PRINT_RESULTS

#define ECMD_PRINT_RESULTS   20

Definition at line 289 of file edit.h.

◆ ECMD_EAXES_POS

#define ECMD_EAXES_POS   30

Definition at line 290 of file edit.h.

◆ ECMD_REPLOT_EDITING_SOLID

#define ECMD_REPLOT_EDITING_SOLID   40

Definition at line 291 of file edit.h.

◆ ECMD_VIEW_UPDATE

#define ECMD_VIEW_UPDATE   50

Definition at line 292 of file edit.h.

◆ ECMD_VIEW_SET_FLAG

#define ECMD_VIEW_SET_FLAG   60

Definition at line 293 of file edit.h.

◆ ECMD_MENU_SET

#define ECMD_MENU_SET   70

Definition at line 294 of file edit.h.

◆ ECMD_GET_FILENAME

#define ECMD_GET_FILENAME   80

Definition at line 295 of file edit.h.

Function Documentation

◆ rt_edit_create()

struct rt_edit * rt_edit_create ( struct db_full_path dfp,
struct db_i dbip,
struct bn_tol ,
struct bview v 
)
extern

Create and initialize an rt_edit struct

◆ rt_edit_destroy()

void rt_edit_destroy ( struct rt_edit s)
extern

Free a rt_edit struct

◆ rt_edit_map_create()

struct rt_edit_map * rt_edit_map_create ( void  )
extern

◆ rt_edit_map_destroy()

void rt_edit_map_destroy ( struct rt_edit_map )
extern

◆ rt_edit_map_clbk_set()

int rt_edit_map_clbk_set ( struct rt_edit_map em,
int  ed_cmd,
int  mode,
bu_clbk_t  f,
void d 
)
extern

◆ rt_edit_map_clbk_get()

int rt_edit_map_clbk_get ( bu_clbk_t f,
void **  d,
struct rt_edit_map em,
int  ed_cmd,
int  mode 
)
extern

◆ rt_edit_map_clear()

int rt_edit_map_clear ( struct rt_edit_map m)
extern

◆ rt_edit_map_copy()

int rt_edit_map_copy ( struct rt_edit_map om,
struct rt_edit_map im 
)
extern

◆ rt_get_solid_keypoint()

void rt_get_solid_keypoint ( struct rt_edit s,
point_t pt,
const char **  strp,
fastf_t mat 
)
extern

◆ rt_edit_set_edflag()

void rt_edit_set_edflag ( struct rt_edit s,
int  edflag 
)
extern

◆ rt_edit_knob_cmd_process()

int rt_edit_knob_cmd_process ( struct rt_edit s,
vect_t rvec,
int *  do_rot,
vect_t tvec,
int *  do_tran,
int *  do_sca,
struct bview v,
const char cmd,
fastf_t  f,
char  origin,
int  incr_flag,
void u_data 
)
extern

◆ rt_knob_edit_rot()

void rt_knob_edit_rot ( struct rt_edit s,
char  coords,
char  rotate_about,
int  matrix_edit,
mat_t  newrot 
)
extern

◆ rt_knob_edit_tran()

void rt_knob_edit_tran ( struct rt_edit s,
char  coords,
int  matrix_edit,
vect_t  tvec 
)
extern

◆ rt_knob_edit_sca()

void rt_knob_edit_sca ( struct rt_edit s,
int  matrix_edit 
)
extern

◆ rt_edit_process()

void rt_edit_process ( struct rt_edit s)
extern