Blender V5.3
editcurve_paint.cc File Reference
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_mempool.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_fcurve.hh"
#include "BKE_object_types.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "DEG_depsgraph.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_curve.hh"
#include "ED_screen.hh"
#include "ED_space_api.hh"
#include "ED_view3d.hh"
#include "GPU_batch.hh"
#include "GPU_batch_presets.hh"
#include "GPU_immediate.hh"
#include "GPU_immediate_util.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "curve_intern.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "RNA_enum_types.hh"
#include "curve_fit_nd.h"

Go to the source code of this file.

Classes

struct  blender::StrokeElem
struct  blender::CurveDrawData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_SPLINE_FIT
#define STROKE_SAMPLE_DIST_MIN_PX   1
#define STROKE_SAMPLE_DIST_MAX_PX   3
#define STROKE_CYCLIC_DIST_PX   8

Functions

Operator/Stroke Conversion
static void blender::curve_draw_stroke_to_operator_elem (wmOperator *op, const StrokeElem *selem)
static void blender::curve_draw_stroke_from_operator_elem (wmOperator *op, PointerRNA *itemptr)
static void blender::curve_draw_stroke_to_operator (wmOperator *op)
static void blender::curve_draw_stroke_from_operator (wmOperator *op)
Operator Callbacks & Helpers
static void blender::curve_draw_stroke_3d (const bContext *, ARegion *, void *arg)
static void blender::curve_draw_event_add (wmOperator *op, const wmEvent *event)
static void blender::curve_draw_event_add_first (wmOperator *op, const wmEvent *event)
static bool blender::curve_draw_init (bContext *C, wmOperator *op, bool is_invoke)
static void blender::curve_draw_exit (wmOperator *op)
static void blender::curve_draw_exec_precalc (wmOperator *op)
static wmOperatorStatus blender::curve_draw_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::curve_draw_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::curve_draw_cancel (bContext *, wmOperator *op)
static wmOperatorStatus blender::curve_draw_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::CURVE_OT_draw (wmOperatorType *ot)

StrokeElem / #RNA_OperatorStrokeElement Conversion Functions

enum  blender::CurveDrawState { blender::CURVE_DRAW_IDLE = 0 , blender::CURVE_DRAW_PAINTING = 1 }
static float blender::stroke_elem_radius_from_pressure (const CurveDrawData *cdd, const float pressure)
static float blender::stroke_elem_radius (const CurveDrawData *cdd, const StrokeElem *selem)
static void blender::stroke_elem_pressure_set (const CurveDrawData *cdd, StrokeElem *selem, float pressure)
static void blender::stroke_elem_interp (StrokeElem *selem_out, const StrokeElem *selem_a, const StrokeElem *selem_b, float t)
static bool blender::stroke_elem_project (const CurveDrawData *cdd, const int mval_i[2], const float mval_fl[2], float surface_offset, const float radius, float r_location_world[3], float r_normal_world[3])
static bool blender::stroke_elem_project_fallback (const CurveDrawData *cdd, const int mval_i[2], const float mval_fl[2], const float surface_offset, const float radius, const float location_fallback_depth[3], float r_location_world[3], float r_location_local[3], float r_normal_world[3], float r_normal_local[3])
static bool blender::stroke_elem_project_fallback_elem (const CurveDrawData *cdd, const float location_fallback_depth[3], StrokeElem *selem)

Macro Definition Documentation

◆ STROKE_CYCLIC_DIST_PX

#define STROKE_CYCLIC_DIST_PX   8

◆ STROKE_SAMPLE_DIST_MAX_PX

#define STROKE_SAMPLE_DIST_MAX_PX   3

◆ STROKE_SAMPLE_DIST_MIN_PX

#define STROKE_SAMPLE_DIST_MIN_PX   1

◆ USE_SPLINE_FIT

#define USE_SPLINE_FIT

Definition at line 58 of file editcurve_paint.cc.