|
Blender V5.3
|
#include "DNA_curve_types.h"#include "DNA_windowmanager_types.h"#include "MEM_guardedalloc.h"#include "BLI_listbase.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector_c.hh"#include "BKE_context.hh"#include "BKE_curve.hh"#include "DEG_depsgraph.hh"#include "WM_api.hh"#include "ED_curve.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "ED_view3d.hh"#include "curve_intern.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include <cfloat>Go to the source code of this file.
Classes | |
| struct | blender::CutData |
| struct | blender::MoveSegmentData |
| struct | blender::CurvePenData |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | FOREACH_SELECTED_BEZT_BEGIN(bezt, nurbs) |
| #define | FOREACH_SELECTED_BEZT_END |
| #define | SEL_DIST_FACTOR 0.2f |
Enumerations | |
| enum | blender::eClose_opt { blender::OFF = 0 , blender::ON_PRESS = 1 , blender::ON_CLICK = 2 } |
| enum | { blender::PEN_MODAL_FREE_ALIGN_TOGGLE = 1 , blender::PEN_MODAL_MOVE_ADJACENT , blender::PEN_MODAL_MOVE_ENTIRE , blender::PEN_MODAL_LINK_HANDLES , blender::PEN_MODAL_LOCK_ANGLE } |
Functions | |
| static void | blender::update_location_for_2d_curve (const ViewContext *vc, float location[3]) |
| static void | blender::screenspace_to_worldspace (const ViewContext *vc, const float pos_2d[2], const float depth[3], float r_pos_3d[3]) |
| static void | blender::screenspace_to_worldspace_int (const ViewContext *vc, const int pos_2d[2], const float depth[3], float r_pos_3d[3]) |
| static bool | blender::worldspace_to_screenspace (const ViewContext *vc, const float pos_3d[3], float r_pos_2d[2]) |
| static void | blender::move_bezt_by_displacement (BezTriple *bezt, const float disp_3d[3]) |
| static void | blender::move_bezt_to_location (BezTriple *bezt, const float location[3]) |
| static void | blender::remove_handle_movement_constraints (BezTriple *bezt, const bool f1, const bool f3) |
| static void | blender::move_bezt_handle_or_vertex_by_displacement (const ViewContext *vc, BezTriple *bezt, const int bezt_idx, const float disp_2d[2], const float distance, const bool link_handles, const bool lock_angle) |
| static void | blender::move_bp_to_location (const ViewContext *vc, BPoint *bp, const float mval[2]) |
| static bool | blender::get_selected_center (const ListBaseT< Nurb > *nurbs, const bool mid_only, const bool bezt_only, float r_center[3]) |
| static void | blender::move_all_selected_points (const ViewContext *vc, const wmEvent *event, CurvePenData *cpd, ListBaseT< Nurb > *nurbs, const bool bezt_only) |
| static int | blender::get_nurb_index (const ListBaseT< Nurb > *nurbs, const Nurb *nurb) |
| static void | blender::delete_nurb (Curve *cu, Nurb *nu) |
| static void | blender::delete_bezt_from_nurb (const BezTriple *bezt, Nurb *nu, EditNurb *editnurb) |
| static void | blender::delete_bp_from_nurb (const BPoint *bp, Nurb *nu, EditNurb *editnurb) |
| static bool | blender::get_closest_vertex_to_point_in_nurbs (const ViewContext *vc, const ListBaseT< Nurb > *nurbs, const float point[2], Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp, int *r_bezt_idx) |
| static void | blender::get_bezier_interpolated_point (const BezTriple *bezt1, const BezTriple *bezt2, const float parameter, float r_point[3]) |
| static void | blender::calculate_new_bezier_point (const float point_prev[3], float handle_prev[3], float new_left_handle[3], float new_right_handle[3], float handle_next[3], const float point_next[3], const float parameter) |
| static bool | blender::is_cyclic (const Nurb *nu) |
| static void | blender::insert_bezt_to_nurb (Nurb *nu, const CutData *data, Curve *cu) |
| static void | blender::insert_bp_to_nurb (Nurb *nu, const CutData *data, Curve *cu) |
| static void | blender::get_updated_data_for_edge (const float point[2], const float point1[2], const float point2[2], const int point_idx, const int resolu_idx, float *r_min_dist, int *r_min_i, float *r_param) |
| static void | blender::update_cut_data_for_nurb (const ViewContext *vc, CutData *cd, Nurb *nu, const int resolu, const float point[2]) |
| static bool | blender::update_cut_data_for_all_nurbs (const ViewContext *vc, const ListBaseT< Nurb > *nurbs, const float point[2], const float sel_dist, CutData *cd) |
| static CutData | blender::init_cut_data (const wmEvent *event) |
| static bool | blender::insert_point_to_segment (const ViewContext *vc, const wmEvent *event) |
| static void | blender::get_first_selected_point (Curve *cu, View3D *v3d, Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp) |
| static void | blender::extrude_vertices_from_selected_endpoints (EditNurb *editnurb, ListBaseT< Nurb > *nurbs, Curve *cu, const float disp_3d[3]) |
| static void | blender::deselect_all_center_vertices (ListBaseT< Nurb > *nurbs) |
| static bool | blender::is_last_bezt (const Nurb *nu, const BezTriple *bezt) |
| static void | blender::extrude_points_from_selected_vertices (const ViewContext *vc, const wmEvent *event, const eBezTriple_Handle extrude_handle) |
| static bool | blender::is_spline_nearby (ViewContext *vc, wmOperator *op, const wmEvent *event, const float sel_dist) |
| static void | blender::move_segment (const ViewContext *vc, MoveSegmentData *seg_data, const wmEvent *event) |
| static void | blender::toggle_bezt_free_align_handles (BezTriple *bezt) |
| static void | blender::toggle_sel_bezt_free_align_handles (ListBaseT< Nurb > *nurbs) |
| static bool | blender::delete_point_under_mouse (const ViewContext *vc, const wmEvent *event) |
| static void | blender::move_adjacent_handle (const ViewContext *vc, const wmEvent *event, ListBaseT< Nurb > *nurbs) |
| static bool | blender::make_cyclic_if_endpoints (const ViewContext *vc, Nurb *sel_nu, BezTriple *sel_bezt, BPoint *sel_bp) |
| static void | blender::init_selected_bezt_handles (ListBaseT< Nurb > *nurbs) |
| static void | blender::toggle_select_bezt (BezTriple *bezt, const int bezt_idx, Curve *cu, Nurb *nu) |
| static void | blender::toggle_select_bp (BPoint *bp, Curve *cu, Nurb *nu) |
| static void | blender::toggle_handle_types (BezTriple *bezt, int bezt_idx, CurvePenData *cpd) |
| static void | blender::cycle_handles (BezTriple *bezt) |
| wmKeyMap * | blender::curve_pen_modal_keymap (wmKeyConfig *keyconf) |
| static wmOperatorStatus | blender::curve_pen_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | blender::curve_pen_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | blender::CURVE_OT_pen (wmOperatorType *ot) |
Variables | |
| static const EnumPropertyItem | blender::prop_handle_types [] |
| static const EnumPropertyItem | blender::prop_close_spline_method [] |
| #define FOREACH_SELECTED_BEZT_BEGIN | ( | bezt, | |
| nurbs ) |
Definition at line 40 of file editcurve_pen.cc.
Referenced by blender::extrude_points_from_selected_vertices(), blender::init_selected_bezt_handles(), blender::move_adjacent_handle(), and blender::toggle_sel_bezt_free_align_handles().
| #define FOREACH_SELECTED_BEZT_END |
Definition at line 47 of file editcurve_pen.cc.
Referenced by blender::extrude_points_from_selected_vertices(), blender::init_selected_bezt_handles(), blender::move_adjacent_handle(), and blender::toggle_sel_bezt_free_align_handles().
| #define SEL_DIST_FACTOR 0.2f |
Definition at line 56 of file editcurve_pen.cc.
Referenced by blender::curve_pen_invoke(), blender::curve_pen_modal(), blender::get_closest_vertex_to_point_in_nurbs(), and blender::insert_point_to_segment().