BRL-CAD
Loading...
Searching...
No Matches
rt_edit_functab Struct Reference

#include <functab.h>

Collaboration diagram for rt_edit_functab:
[legend]

Data Fields

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)
 

Detailed Description

Definition at line 346 of file functab.h.

Field Documentation

◆ magic

uint32_t magic

Definition at line 347 of file functab.h.

◆ ft_name

char ft_name[17]

Definition at line 348 of file functab.h.

◆ ft_label

char ft_label[9]

Definition at line 349 of file functab.h.

◆ ft_labels

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)

Definition at line 351 of file functab.h.

◆ ft_keypoint

const char *(* ft_keypoint) (point_t *pt, const char *keystr, const mat_t mat, struct rt_edit *s, const struct bn_tol *tol)

Definition at line 360 of file functab.h.

◆ ft_e_axes_pos

void(* ft_e_axes_pos) (struct rt_edit *s, const struct rt_db_internal *ip, const struct bn_tol *tol)

Definition at line 367 of file functab.h.

◆ ft_write_params

void(* ft_write_params) (struct bu_vls *p, const struct rt_db_internal *ip, const struct bn_tol *tol, fastf_t base2local)

Definition at line 379 of file functab.h.

◆ ft_read_params

int(* ft_read_params) (struct rt_db_internal *ip, const char *fc, const struct bn_tol *tol, fastf_t local2base)

Definition at line 387 of file functab.h.

◆ ft_edit

int(* ft_edit) (struct rt_edit *s)

Definition at line 394 of file functab.h.

◆ ft_edit_xy

int(* ft_edit_xy) (struct rt_edit *s, const vect_t mousevec)

Definition at line 403 of file functab.h.

◆ ft_prim_edit_create

void *(* ft_prim_edit_create) (struct rt_edit *s)

Definition at line 407 of file functab.h.

◆ ft_prim_edit_destroy

void(* ft_prim_edit_destroy) (void *)

Definition at line 411 of file functab.h.

◆ ft_prim_edit_reset

void(* ft_prim_edit_reset) (struct rt_edit *s)

Definition at line 415 of file functab.h.

◆ ft_menu_str

int(* ft_menu_str) (struct bu_vls *m, const struct rt_db_internal *ip, const struct bn_tol *tol)

Definition at line 418 of file functab.h.

◆ ft_set_edit_mode

void(* ft_set_edit_mode) (struct rt_edit *s, int mode)

Definition at line 423 of file functab.h.

◆ ft_menu_item

struct rt_edit_menu_item *(* ft_menu_item) (const struct bn_tol *tol)

Definition at line 423 of file functab.h.

◆ ft_edit_desc

const struct rt_edit_prim_desc *(* ft_edit_desc) (void)

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

int(* ft_edit_get_params) (struct rt_edit *s, int cmd_id, fastf_t *vals)

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
sActive rt_edit session (es_int must be valid).
cmd_idWhich command's parameters to read.
valsCaller-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: