Blender V5.3
paint_curve.cc File Reference
#include <climits>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_brush_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BLI_math_vector_c.hh"
#include "BLT_translation.hh"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_lib_id.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "ED_paint.hh"
#include "ED_view3d.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "UI_view2d.hh"
#include "paint_intern.hh"

Go to the source code of this file.

Classes

struct  blender::PointSlideData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PAINT_CURVE_SELECT_THRESHOLD   40.0f
#define PAINT_CURVE_POINT_SELECT(pcp, i)
#define SEL_F1   (1 << 0)
#define SEL_F2   (1 << 1)
#define SEL_F3   (1 << 2)
#define DELETE_TAG   2

Functions

bool blender::paint_curve_poll (bContext *C)
static PaintCurvePoint * blender::paintcurve_point_get_closest (PaintCurve *pc, const float pos[2], bool ignore_pivot, const float threshold, char *point)
static int blender::paintcurve_point_co_index (char sel)
static char blender::paintcurve_point_side_index (const BezTriple *bezt, const bool is_first, const char fallback)
static PaintCurve * blender::paintcurve_for_brush_add (Main *bmain, const char *name, const Brush *brush)
static wmOperatorStatus blender::paintcurve_new_exec (bContext *C, wmOperator *)
void blender::PAINTCURVE_OT_new (wmOperatorType *ot)
static void blender::paintcurve_point_add (bContext *C, wmOperator *op, const int loc[2])
static wmOperatorStatus blender::paintcurve_add_point_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::paintcurve_add_point_exec (bContext *C, wmOperator *op)
void blender::PAINTCURVE_OT_add_point (wmOperatorType *ot)
static wmOperatorStatus blender::paintcurve_delete_point_exec (bContext *C, wmOperator *op)
void blender::PAINTCURVE_OT_delete_point (wmOperatorType *ot)
static bool blender::paintcurve_point_select (bContext *C, wmOperator *op, const int loc[2], bool toggle, bool extend)
static wmOperatorStatus blender::paintcurve_select_point_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::paintcurve_select_point_exec (bContext *C, wmOperator *op)
void blender::PAINTCURVE_OT_select (wmOperatorType *ot)
static wmOperatorStatus blender::paintcurve_slide_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::paintcurve_slide_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::PAINTCURVE_OT_slide (wmOperatorType *ot)
static wmOperatorStatus blender::paintcurve_draw_exec (bContext *C, wmOperator *)
void blender::PAINTCURVE_OT_draw (wmOperatorType *ot)
static wmOperatorStatus blender::paintcurve_cursor_invoke (bContext *C, wmOperator *, const wmEvent *event)
void blender::PAINTCURVE_OT_cursor (wmOperatorType *ot)

Macro Definition Documentation

◆ DELETE_TAG

#define DELETE_TAG   2

◆ PAINT_CURVE_POINT_SELECT

#define PAINT_CURVE_POINT_SELECT ( pcp,
i )
Value:
(*(&pcp->bez.f1 + i) = BEZT_FLAG_SELECT)

Definition at line 46 of file paint_curve.cc.

Referenced by blender::paintcurve_point_select(), and blender::paintcurve_slide_invoke().

◆ PAINT_CURVE_SELECT_THRESHOLD

#define PAINT_CURVE_SELECT_THRESHOLD   40.0f

◆ SEL_F1

#define SEL_F1   (1 << 0)

Definition at line 74 of file paint_curve.cc.

◆ SEL_F2

#define SEL_F2   (1 << 1)

Definition at line 75 of file paint_curve.cc.

◆ SEL_F3

#define SEL_F3   (1 << 2)

Definition at line 76 of file paint_curve.cc.