Blender V4.3
curve_intern.hh File Reference

Go to the source code of this file.

Enumerations

enum  {
  DEL_NEXT_CHAR , DEL_PREV_CHAR , DEL_NEXT_WORD , DEL_PREV_WORD ,
  DEL_SELECTION , DEL_NEXT_SEL , DEL_PREV_SEL
}
 
enum  { CASE_LOWER , CASE_UPPER }
 
enum  {
  LINE_BEGIN , LINE_END , TEXT_BEGIN , TEXT_END ,
  PREV_CHAR , NEXT_CHAR , PREV_WORD , NEXT_WORD ,
  PREV_LINE , NEXT_LINE , PREV_PAGE , NEXT_PAGE
}
 
enum  eVisible_Types { HIDDEN = true , VISIBLE = false }
 
enum  eEndPoint_Types { FIRST = true , LAST = false }
 
enum  eCurveElem_Types { CURVE_VERTEX = 0 , CURVE_SEGMENT }
 

Functions

bool select_beztriple (BezTriple *bezt, bool selstatus, uint8_t flag, eVisible_Types hidden)
 
bool select_bpoint (BPoint *bp, bool selstatus, uint8_t flag, bool hidden)
 
void FONT_OT_text_insert (wmOperatorType *ot)
 
void FONT_OT_line_break (wmOperatorType *ot)
 
void FONT_OT_case_toggle (wmOperatorType *ot)
 
void FONT_OT_case_set (wmOperatorType *ot)
 
void FONT_OT_style_toggle (wmOperatorType *ot)
 
void FONT_OT_style_set (wmOperatorType *ot)
 
void FONT_OT_select_all (wmOperatorType *ot)
 
void FONT_OT_text_copy (wmOperatorType *ot)
 
void FONT_OT_text_cut (wmOperatorType *ot)
 
void FONT_OT_text_paste (wmOperatorType *ot)
 
void FONT_OT_text_paste_from_file (wmOperatorType *ot)
 
void FONT_OT_text_insert_unicode (wmOperatorType *ot)
 
void FONT_OT_selection_set (wmOperatorType *ot)
 
void FONT_OT_select_word (wmOperatorType *ot)
 
void FONT_OT_move (wmOperatorType *ot)
 
void FONT_OT_move_select (wmOperatorType *ot)
 
void FONT_OT_delete (wmOperatorType *ot)
 
void FONT_OT_change_character (wmOperatorType *ot)
 
void FONT_OT_change_spacing (wmOperatorType *ot)
 
void FONT_OT_open (wmOperatorType *ot)
 
void FONT_OT_unlink (wmOperatorType *ot)
 
void FONT_OT_textbox_add (wmOperatorType *ot)
 
void FONT_OT_textbox_remove (wmOperatorType *ot)
 
void CURVE_OT_hide (wmOperatorType *ot)
 
void CURVE_OT_reveal (wmOperatorType *ot)
 
void CURVE_OT_separate (wmOperatorType *ot)
 
void CURVE_OT_split (wmOperatorType *ot)
 
void CURVE_OT_duplicate (wmOperatorType *ot)
 
void CURVE_OT_delete (wmOperatorType *ot)
 
void CURVE_OT_dissolve_verts (wmOperatorType *ot)
 
void CURVE_OT_spline_type_set (wmOperatorType *ot)
 
void CURVE_OT_radius_set (wmOperatorType *ot)
 
void CURVE_OT_spline_weight_set (wmOperatorType *ot)
 
void CURVE_OT_handle_type_set (wmOperatorType *ot)
 
void CURVE_OT_normals_make_consistent (wmOperatorType *ot)
 
void CURVE_OT_decimate (wmOperatorType *ot)
 
void CURVE_OT_shade_smooth (wmOperatorType *ot)
 
void CURVE_OT_shade_flat (wmOperatorType *ot)
 
void CURVE_OT_tilt_clear (wmOperatorType *ot)
 
void CURVE_OT_smooth (wmOperatorType *ot)
 
void CURVE_OT_smooth_weight (wmOperatorType *ot)
 
void CURVE_OT_smooth_radius (wmOperatorType *ot)
 
void CURVE_OT_smooth_tilt (wmOperatorType *ot)
 
void CURVE_OT_switch_direction (wmOperatorType *ot)
 
void CURVE_OT_subdivide (wmOperatorType *ot)
 
void CURVE_OT_make_segment (wmOperatorType *ot)
 
void CURVE_OT_spin (wmOperatorType *ot)
 
void CURVE_OT_vertex_add (wmOperatorType *ot)
 
void CURVE_OT_extrude (wmOperatorType *ot)
 
void CURVE_OT_cyclic_toggle (wmOperatorType *ot)
 
void CURVE_OT_match_texture_space (wmOperatorType *ot)
 
GHashED_curve_keyindex_hash_duplicate (GHash *keyindex)
 
void ED_curve_keyindex_update_nurb (EditNurb *editnurb, Nurb *nu, Nurb *newnu)
 
int ed_editcurve_addvert (Curve *cu, EditNurb *editnurb, View3D *v3d, const float location_init[3])
 
bool curve_toggle_cyclic (View3D *v3d, ListBase *editnurb, int direction)
 
void ed_dissolve_bez_segment (BezTriple *bezt_prev, BezTriple *bezt_next, const Nurb *nu, const Curve *cu, const uint span_len, const uint span_step[2])
 
void ed_editnurb_translate_flag (ListBase *editnurb, uint8_t flag, const float vec[3], bool is_2d)
 
bool ed_editnurb_extrude_flag (EditNurb *editnurb, uint8_t flag)
 
bool ed_editnurb_spin (float viewmat[4][4], View3D *v3d, Object *obedit, const float axis[3], const float cent[3])
 
void CURVE_OT_de_select_first (wmOperatorType *ot)
 
void CURVE_OT_de_select_last (wmOperatorType *ot)
 
void CURVE_OT_select_all (wmOperatorType *ot)
 
void CURVE_OT_select_linked (wmOperatorType *ot)
 
void CURVE_OT_select_linked_pick (wmOperatorType *ot)
 
void CURVE_OT_select_row (wmOperatorType *ot)
 
void CURVE_OT_select_next (wmOperatorType *ot)
 
void CURVE_OT_select_previous (wmOperatorType *ot)
 
void CURVE_OT_select_more (wmOperatorType *ot)
 
void CURVE_OT_select_less (wmOperatorType *ot)
 
void CURVE_OT_select_random (wmOperatorType *ot)
 
void CURVE_OT_select_nth (wmOperatorType *ot)
 
void CURVE_OT_select_similar (wmOperatorType *ot)
 
void CURVE_OT_shortest_path_pick (wmOperatorType *ot)
 
void CURVE_OT_primitive_bezier_curve_add (wmOperatorType *ot)
 
void CURVE_OT_primitive_bezier_circle_add (wmOperatorType *ot)
 
void CURVE_OT_primitive_nurbs_curve_add (wmOperatorType *ot)
 
void CURVE_OT_primitive_nurbs_circle_add (wmOperatorType *ot)
 
void CURVE_OT_primitive_nurbs_path_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_curve_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_circle_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_surface_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_cylinder_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_sphere_add (wmOperatorType *ot)
 
void SURFACE_OT_primitive_nurbs_surface_torus_add (wmOperatorType *ot)
 
bool ED_curve_pick_vert (ViewContext *vc, short sel, Nurb **r_nurb, BezTriple **r_bezt, BPoint **r_bp, short *r_handle, Base **r_base)
 
bool ED_curve_pick_vert_ex (ViewContext *vc, bool select, int dist_px, Nurb **r_nurb, BezTriple **r_bezt, BPoint **r_bp, short *r_handle, Base **r_base)
 
void ED_curve_nurb_vert_selected_find (Curve *cu, View3D *v3d, Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp)
 
void CURVE_OT_draw (wmOperatorType *ot)
 
void CURVE_OT_pen (wmOperatorType *ot)
 
wmKeyMapcurve_pen_modal_keymap (wmKeyConfig *keyconf)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEL_NEXT_CHAR 
DEL_PREV_CHAR 
DEL_NEXT_WORD 
DEL_PREV_WORD 
DEL_SELECTION 
DEL_NEXT_SEL 
DEL_PREV_SEL 

Definition at line 22 of file curve_intern.hh.

◆ anonymous enum

anonymous enum
Enumerator
CASE_LOWER 
CASE_UPPER 

Definition at line 31 of file curve_intern.hh.

◆ anonymous enum

anonymous enum
Enumerator
LINE_BEGIN 
LINE_END 
TEXT_BEGIN 
TEXT_END 
PREV_CHAR 
NEXT_CHAR 
PREV_WORD 
NEXT_WORD 
PREV_LINE 
NEXT_LINE 
PREV_PAGE 
NEXT_PAGE 

Definition at line 32 of file curve_intern.hh.

◆ eCurveElem_Types

Enumerator
CURVE_VERTEX 
CURVE_SEGMENT 

Definition at line 57 of file curve_intern.hh.

◆ eEndPoint_Types

Enumerator
FIRST 
LAST 

Definition at line 52 of file curve_intern.hh.

◆ eVisible_Types

Enumerator
HIDDEN 
VISIBLE 

Definition at line 47 of file curve_intern.hh.

Function Documentation

◆ CURVE_OT_cyclic_toggle()

◆ CURVE_OT_de_select_first()

◆ CURVE_OT_de_select_last()

◆ CURVE_OT_decimate()

◆ CURVE_OT_delete()

◆ CURVE_OT_dissolve_verts()

◆ CURVE_OT_draw()

◆ CURVE_OT_duplicate()

◆ CURVE_OT_extrude()

◆ CURVE_OT_handle_type_set()

◆ CURVE_OT_hide()

◆ CURVE_OT_make_segment()

◆ CURVE_OT_match_texture_space()

◆ CURVE_OT_normals_make_consistent()

◆ CURVE_OT_pen()

◆ CURVE_OT_primitive_bezier_circle_add()

◆ CURVE_OT_primitive_bezier_curve_add()

◆ CURVE_OT_primitive_nurbs_circle_add()

◆ CURVE_OT_primitive_nurbs_curve_add()

◆ CURVE_OT_primitive_nurbs_path_add()

◆ CURVE_OT_radius_set()

◆ CURVE_OT_reveal()

◆ CURVE_OT_select_all()

◆ CURVE_OT_select_less()

◆ CURVE_OT_select_linked()

◆ CURVE_OT_select_linked_pick()

◆ CURVE_OT_select_more()

◆ CURVE_OT_select_next()

◆ CURVE_OT_select_nth()

◆ CURVE_OT_select_previous()

◆ CURVE_OT_select_random()

◆ CURVE_OT_select_row()

◆ CURVE_OT_select_similar()

◆ CURVE_OT_separate()

◆ CURVE_OT_shade_flat()

◆ CURVE_OT_shade_smooth()

◆ CURVE_OT_shortest_path_pick()

◆ CURVE_OT_smooth()

◆ CURVE_OT_smooth_radius()

◆ CURVE_OT_smooth_tilt()

◆ CURVE_OT_smooth_weight()

◆ CURVE_OT_spin()

◆ CURVE_OT_spline_type_set()

◆ CURVE_OT_spline_weight_set()

◆ CURVE_OT_split()

◆ CURVE_OT_subdivide()

◆ CURVE_OT_switch_direction()

◆ CURVE_OT_tilt_clear()

◆ CURVE_OT_vertex_add()

◆ curve_pen_modal_keymap()

◆ curve_toggle_cyclic()

◆ ED_curve_keyindex_hash_duplicate()

◆ ED_curve_keyindex_update_nurb()

void ED_curve_keyindex_update_nurb ( EditNurb * editnurb,
Nurb * nu,
Nurb * newnu )

◆ ED_curve_nurb_vert_selected_find()

void ED_curve_nurb_vert_selected_find ( Curve * cu,
View3D * v3d,
Nurb ** r_nu,
BezTriple ** r_bezt,
BPoint ** r_bp )

◆ ED_curve_pick_vert()

bool ED_curve_pick_vert ( ViewContext * vc,
short sel,
Nurb ** r_nurb,
BezTriple ** r_bezt,
BPoint ** r_bp,
short * r_handle,
Base ** r_base )

◆ ED_curve_pick_vert_ex()

bool ED_curve_pick_vert_ex ( ViewContext * vc,
bool select,
int dist_px,
Nurb ** r_nurb,
BezTriple ** r_bezt,
BPoint ** r_bp,
short * r_handle,
Base ** r_base )

Pick the nearest r_nurb and r_bezt or r_bp.

Parameters
selectselected vertices have a disadvantage.
sel_dist_mulA multiplier on the default select distance.
r_handleFor bezier triples, set the handle index [0, 1, 2].

Definition at line 94 of file editcurve_query.cc.

References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), PickUserData::dist, ED_curve_pick_vert__do_closest(), ED_view3d_init_mats_rv3d(), ED_view3d_viewcontext_init_object(), ViewContext::mval, nurbs_foreachScreenVert(), ViewContext::obedit, ViewContext::rv3d, ViewContext::scene, SELECT, select(), ViewContext::v3d, V3D_PROJ_TEST_CLIP_DEFAULT, and ViewContext::view_layer.

Referenced by ED_curve_editnurb_select_pick(), and ED_curve_pick_vert().

◆ ed_dissolve_bez_segment()

void ed_dissolve_bez_segment ( BezTriple * bezt_prev,
BezTriple * bezt_next,
const Nurb * nu,
const Curve * cu,
const uint span_len,
const uint span_step[2] )

◆ ed_editcurve_addvert()

◆ ed_editnurb_extrude_flag()

◆ ed_editnurb_spin()

◆ ed_editnurb_translate_flag()

void ed_editnurb_translate_flag ( ListBase * editnurb,
uint8_t flag,
const float vec[3],
bool is_2d )

◆ FONT_OT_case_set()

◆ FONT_OT_case_toggle()

◆ FONT_OT_change_character()

◆ FONT_OT_change_spacing()

◆ FONT_OT_delete()

◆ FONT_OT_line_break()

◆ FONT_OT_move()

◆ FONT_OT_move_select()

◆ FONT_OT_open()

◆ FONT_OT_select_all()

◆ FONT_OT_select_word()

◆ FONT_OT_selection_set()

◆ FONT_OT_style_set()

◆ FONT_OT_style_toggle()

◆ FONT_OT_text_copy()

◆ FONT_OT_text_cut()

◆ FONT_OT_text_insert()

◆ FONT_OT_text_insert_unicode()

◆ FONT_OT_text_paste()

◆ FONT_OT_text_paste_from_file()

◆ FONT_OT_textbox_add()

◆ FONT_OT_textbox_remove()

◆ FONT_OT_unlink()

◆ select_beztriple()

◆ select_bpoint()

◆ SURFACE_OT_primitive_nurbs_surface_circle_add()

◆ SURFACE_OT_primitive_nurbs_surface_curve_add()

◆ SURFACE_OT_primitive_nurbs_surface_cylinder_add()

◆ SURFACE_OT_primitive_nurbs_surface_sphere_add()

◆ SURFACE_OT_primitive_nurbs_surface_surface_add()

◆ SURFACE_OT_primitive_nurbs_surface_torus_add()