#include <functab.h>
|
| uint32_t | magic |
| |
| char | ft_name [17] |
| |
| char | ft_label [9] |
| |
| void(* | ft_labels )(int *num_lines, point_t *lines, struct rt_point_labels *pl, int max_pl, const mat_t xform, struct rt_edit *s, struct bn_tol *tol) |
| |
| const char *(* | ft_keypoint )(point_t *pt, const char *keystr, const mat_t mat, struct rt_edit *s, const struct bn_tol *tol) |
| |
| void(* | ft_e_axes_pos )(struct rt_edit *s, const struct rt_db_internal *ip, const struct bn_tol *tol) |
| |
| void(* | ft_write_params )(struct bu_vls *p, const struct rt_db_internal *ip, const struct bn_tol *tol, fastf_t base2local) |
| |
| int(* | ft_read_params )(struct rt_db_internal *ip, const char *fc, const struct bn_tol *tol, fastf_t local2base) |
| |
| int(* | ft_edit )(struct rt_edit *s) |
| |
| int(* | ft_edit_xy )(struct rt_edit *s, const vect_t mousevec) |
| |
| void *(* | ft_prim_edit_create )(struct rt_edit *s) |
| |
| void(* | ft_prim_edit_destroy )(void *) |
| |
| void(* | ft_prim_edit_reset )(struct rt_edit *s) |
| |
| int(* | ft_menu_str )(struct bu_vls *m, const struct rt_db_internal *ip, const struct bn_tol *tol) |
| |
| void(* | ft_set_edit_mode )(struct rt_edit *s, int mode) |
| |
| struct rt_edit_menu_item *(* | ft_menu_item )(const struct bn_tol *tol) |
| |
| const struct rt_edit_prim_desc *(* | ft_edit_desc )(void) |
| |
| int(* | ft_edit_get_params )(struct rt_edit *s, int cmd_id, fastf_t *vals) |
| |
Definition at line 346 of file functab.h.
◆ magic
◆ ft_name
◆ ft_label
◆ ft_labels
◆ ft_keypoint
◆ ft_e_axes_pos
◆ ft_write_params
◆ ft_read_params
◆ ft_edit
◆ ft_edit_xy
◆ ft_prim_edit_create
◆ ft_prim_edit_destroy
◆ ft_prim_edit_reset
◆ ft_menu_str
◆ ft_set_edit_mode
◆ ft_menu_item
◆ ft_edit_desc
Return static metadata describing all edit operations for this primitive. Returns NULL if the primitive does not (yet) provide a structured descriptor (e.g. NMG, BREP, SKETCH for complex ops). Use rt_edit_prim_desc_to_json() to serialise the result to JSON.
Definition at line 423 of file functab.h.
◆ ft_edit_get_params
Pre-read current primitive parameter values into vals[].
For each parameter of cmd_id, writes the current value (in local units) to vals[param.index], following the same index convention as s->e_para[]. For POINT/VECTOR params three consecutive slots starting at param.index are filled. STRING params are not represented here.
- Parameters
-
| s | Active rt_edit session (es_int must be valid). |
| cmd_id | Which command's parameters to read. |
| vals | Caller-provided array; caller must ensure it is at least RT_EDIT_MAXPARA elements long. |
- Returns
- Number of scalar slots written (>= 0), or -1 on error. Returns 0 if cmd_id is not recognised by this primitive.
Definition at line 451 of file functab.h.
The documentation for this struct was generated from the following file: