Blender V5.3
blender::ed::sculpt_paint::image::ops::paint Namespace Reference

Classes

struct  PaintGradientData
struct  ImagePaintStroke
struct  TexturePaintStroke
struct  TexturePaintData
struct  ExperimentalTexturePaintStroke

Functions

static void gradient_draw_line (bContext *C, const int2 &xy, const float2 &, void *customdata)
static void stroke_cache_update (ViewContext &, Paint &paint, Object &object, const PaintStroke::StrokeStep &stroke_step)
static void do_brush_action (const Depsgraph &depsgraph, const Scene &scene, const Brush &brush, Object &ob, PaintModeData *paint_mode_data)
static PaintStroke * create_paint_stroke (bContext *C, wmOperator *op, const wmEvent *event)
static PaintStroke * get_paint_stroke (bContext *C, wmOperator *op)
static bool should_check_before_stroke_creation (bContext *C, wmOperator *op)
static bool check_preconditions (bContext *C, wmOperator *op)
static wmOperatorStatus paint_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus paint_exec (bContext *C, wmOperator *op)
static wmOperatorStatus paint_modal (bContext *C, wmOperator *op, const wmEvent *event)
static void paint_cancel (bContext *C, wmOperator *op)

Function Documentation

◆ check_preconditions()

◆ create_paint_stroke()

◆ do_brush_action()

void blender::ed::sculpt_paint::image::ops::paint::do_brush_action ( const Depsgraph & depsgraph,
const Scene & scene,
const Brush & brush,
Object & ob,
PaintModeData * paint_mode_data )
static

◆ get_paint_stroke()

◆ gradient_draw_line()

◆ paint_cancel()

◆ paint_exec()

◆ paint_invoke()

◆ paint_modal()

◆ should_check_before_stroke_creation()

◆ stroke_cache_update()

void blender::ed::sculpt_paint::image::ops::paint::stroke_cache_update ( ViewContext & ,
Paint & paint,
Object & object,
const PaintStroke::StrokeStep & stroke_step )
static

Definition at line 567 of file paint_image_ops_paint.cc.

References blender::BKE_brush_unprojected_size_set(), blender::BKE_brush_use_locked_size(), blender::BKE_brush_use_size_pressure(), blender::BKE_curvemapping_evaluateF(), blender::BKE_paint_brush(), blender::BRUSH_HARDNESS_PRESSURE, blender::BRUSH_STROKE_ANCHORED, blender::SculptSession::cache, blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::PaintStroke::StrokeStep::location, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse_event, blender::ed::sculpt_paint::StrokeCache::mouse_event, blender::ed::sculpt_paint::object_space_radius_get(), blender::paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_supports_dynamic_size(), blender::bke::PaintRuntime::pixel_radius, blender::ed::sculpt_paint::PaintStroke::StrokeStep::pressure, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::radius_squared, stroke_cache_update(), blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::Texture3D, blender::ed::sculpt_paint::PaintStroke::StrokeStep::tilt, blender::ed::sculpt_paint::StrokeCache::tilt, and blender::ed::sculpt_paint::StrokeCache::vc.

Referenced by stroke_cache_update(), and blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::update_step().