Blender V5.3
blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke Struct Referencefinal

Inherits blender::ed::sculpt_paint::PaintStroke.

Public Member Functions

 ExperimentalTexturePaintStroke (bContext *C, wmOperator *op, const wmEvent *event)
std::optional< float3 > get_location (float2 mouse, bool force_original) override
bool test_start (wmOperator *op, float2 mouse) override
void update_step (wmOperator *op, const StrokeStep &stroke_step) override
void redraw (bool final) override
bool test_cancel () override
void done (bool is_cancel, bool stroke_started) override
Public Member Functions inherited from blender::ed::sculpt_paint::PaintStroke
 PaintStroke ()=delete
virtual ~PaintStroke ()=default
wmOperatorStatus modal (bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus exec (bContext *C, wmOperator *op)
void cancel (bContext *C)
void finish (bContext *C)
bool stroke_flipped () const
bool stroke_inverted () const
float stroke_distance () const
Public Member Functions inherited from blender::blender::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
NonCopyable & operator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyable & operator= (NonCopyable &&other)=default
Public Member Functions inherited from blender::blender::NonMovable
 NonMovable (NonMovable &&other)=delete
NonMovable & operator= (NonMovable &&other)=delete
 NonMovable ()=default
 NonMovable (const NonMovable &other)=default
NonMovable & operator= (const NonMovable &other)=default

Public Attributes

Base * base_
ImagePaintSettings * settings_
Public Attributes inherited from blender::ed::sculpt_paint::PaintStroke
bContext * evil_C = nullptr
ViewContext vc = {}
Depsgraph * depsgraph = nullptr
Object * object = nullptr
Scene * scene = nullptr
Paint * paint = nullptr
PaintMode paint_mode = PaintMode::Invalid
Brush * brush = nullptr
UnifiedPaintSettings * ups = nullptr
float2 last_mouse_position = float2(0.0f, 0.0f)
bool constrain_line = false
float2 constrained_pos = float2(0.0f, 0.0f)

Additional Inherited Members

Protected Member Functions inherited from blender::ed::sculpt_paint::PaintStroke
 PaintStroke (bContext *C, wmOperator *op, const wmEvent *event, PaintMode mode)
Protected Attributes inherited from blender::ed::sculpt_paint::PaintStroke
std::unique_ptr< PaintModeData > mode_data_ = nullptr

Detailed Description

Definition at line 469 of file paint_image_ops_paint.cc.

Constructor & Destructor Documentation

◆ ExperimentalTexturePaintStroke()

Member Function Documentation

◆ done()

void blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::done ( bool is_cancel,
bool stroke_started )
overridevirtual

◆ get_location()

std::optional< float3 > blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::get_location ( float2 mouse,
bool force_original )
overridevirtual

Callback function to retrieve the object space coordinates based on screen space coordinates.

Returns
whether a value was actually found & the value in location is usable

Implements blender::ed::sculpt_paint::PaintStroke.

Definition at line 523 of file paint_image_ops_paint.cc.

References blender::ed::sculpt_paint::PaintStroke::brush, blender::ed::sculpt_paint::PaintStroke::depsgraph, blender::ed::sculpt_paint::PaintStroke::paint, blender::ed::sculpt_paint::stroke_get_location_bvh(), and blender::ed::sculpt_paint::PaintStroke::vc.

◆ redraw()

void blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::redraw ( bool final)
overridevirtual

Callback function for performing necessary redraw functions based on the stroke.

Implements blender::ed::sculpt_paint::PaintStroke.

Definition at line 717 of file paint_image_ops_paint.cc.

◆ test_cancel()

bool blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::test_cancel ( )
overridevirtual

Callback function for dynamically determining if a stroke can be cancelled.

Implements blender::ed::sculpt_paint::PaintStroke.

Definition at line 718 of file paint_image_ops_paint.cc.

◆ test_start()

◆ update_step()

void blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::update_step ( wmOperator * op,
const StrokeStep & stroke_step )
overridevirtual

Member Data Documentation

◆ base_

Base* blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::base_

Definition at line 470 of file paint_image_ops_paint.cc.

Referenced by ExperimentalTexturePaintStroke(), and test_start().

◆ settings_

ImagePaintSettings* blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::settings_

Definition at line 471 of file paint_image_ops_paint.cc.

Referenced by ExperimentalTexturePaintStroke(), and test_start().


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