Blender  V3.3
Public Member Functions | List of all members
blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode Class Reference
Inheritance diagram for blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode:
blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode

Public Member Functions

voidpaint_new_stroke (bContext *C, wmOperator *op, Object *UNUSED(ob), const float UNUSED(mouse[2]), int mode) override
 
void paint_stroke (bContext *UNUSED(C), void *stroke_handle, float prev_mouse[2], float mouse[2], int eraser, float pressure, float distance, float size) override
 
void paint_stroke_redraw (const bContext *C, void *stroke_handle, bool final) override
 
void paint_stroke_done (void *stroke_handle) override
 
void paint_gradient_fill (const bContext *C, const Scene *UNUSED(scene), Brush *brush, struct PaintStroke *UNUSED(stroke), void *stroke_handle, float mouse_start[2], float mouse_end[2]) override
 
void paint_bucket_fill (const bContext *C, const Scene *scene, Brush *brush, struct PaintStroke *stroke, void *stroke_handle, float mouse_start[2], float mouse_end[2]) override
 
- Public Member Functions inherited from blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode
virtual ~AbstractPaintMode ()=default
 
virtual voidpaint_new_stroke (bContext *C, wmOperator *op, Object *ob, const float mouse[2], int mode)=0
 
virtual void paint_stroke (bContext *C, void *stroke_handle, float prev_mouse[2], float mouse[2], int eraser, float pressure, float distance, float size)=0
 
virtual void paint_gradient_fill (const bContext *C, const Scene *scene, Brush *brush, struct PaintStroke *stroke, void *stroke_handle, float mouse_start[2], float mouse_end[2])=0
 

Detailed Description

Definition at line 79 of file paint_image_ops_paint.cc.

Member Function Documentation

◆ paint_bucket_fill()

void blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_bucket_fill ( const bContext C,
const Scene scene,
Brush brush,
struct PaintStroke stroke,
void stroke_handle,
float  mouse_start[2],
float  mouse_end[2] 
)
inlineoverridevirtual

◆ paint_gradient_fill()

void blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_gradient_fill ( const bContext C,
const Scene UNUSEDscene,
Brush brush,
struct PaintStroke UNUSEDstroke,
void stroke_handle,
float  mouse_start[2],
float  mouse_end[2] 
)
inlineoverride

Definition at line 112 of file paint_image_ops_paint.cc.

References C, and paint_2d_gradient_fill().

◆ paint_new_stroke()

void* blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_new_stroke ( bContext C,
wmOperator op,
Object UNUSEDob,
const float   UNUSEDmouse[2],
int  mode 
)
inlineoverride

Definition at line 81 of file paint_image_ops_paint.cc.

References C, and paint_2d_new_stroke().

◆ paint_stroke()

void blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke ( bContext UNUSEDC,
void stroke_handle,
float  prev_mouse[2],
float  mouse[2],
int  eraser,
float  pressure,
float  distance,
float  size 
)
inlineoverride

Definition at line 90 of file paint_image_ops_paint.cc.

References blender::math::distance(), paint_2d_stroke(), and size().

◆ paint_stroke_done()

void blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_done ( void stroke_handle)
inlineoverridevirtual

◆ paint_stroke_redraw()

void blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_redraw ( const bContext C,
void stroke_handle,
bool  final 
)
inlineoverridevirtual

The documentation for this class was generated from the following file: