Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::ed::sculpt_paint::SelectionPaintOperationExecutor Struct Reference

Public Member Functions

 SelectionPaintOperationExecutor (const bContext &C)
 
void execute (SelectionPaintOperation &self, const bContext &C, const StrokeExtension &stroke_extension)
 
void paint_point_selection_projected_with_symmetry (MutableSpan< float > selection)
 
void paint_point_selection_projected (const float4x4 &brush_transform, MutableSpan< float > selection)
 
void paint_point_selection_spherical_with_symmetry (MutableSpan< float > selection)
 
void paint_point_selection_spherical (MutableSpan< float > selection, const float3 &brush_cu)
 
void paint_curve_selection_projected_with_symmetry (MutableSpan< float > selection)
 
void paint_curve_selection_projected (const float4x4 &brush_transform, MutableSpan< float > selection)
 
void paint_curve_selection_spherical_with_symmetry (MutableSpan< float > selection)
 
void paint_curve_selection_spherical (MutableSpan< float > selection, const float3 &brush_cu)
 
void initialize_spherical_brush_reference_point ()
 

Public Attributes

SelectionPaintOperationself_ = nullptr
 
CurvesSculptCommonContext ctx_
 
Objectobject_ = nullptr
 
Curvescurves_id_ = nullptr
 
CurvesGeometrycurves_ = nullptr
 
const Brushbrush_ = nullptr
 
float brush_radius_base_re_
 
float brush_radius_factor_
 
float brush_strength_
 
float selection_goal_
 
float2 brush_pos_re_
 
CurvesSurfaceTransforms transforms_
 

Detailed Description

Definition at line 52 of file curves_sculpt_selection_paint.cc.

Constructor & Destructor Documentation

◆ SelectionPaintOperationExecutor()

blender::ed::sculpt_paint::SelectionPaintOperationExecutor::SelectionPaintOperationExecutor ( const bContext C)
inline

Definition at line 71 of file curves_sculpt_selection_paint.cc.

References C.

Member Function Documentation

◆ execute()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute ( SelectionPaintOperation self,
const bContext C,
const StrokeExtension stroke_extension 
)
inline

Definition at line 75 of file curves_sculpt_selection_paint.cc.

References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, BKE_brush_alpha_get(), BKE_brush_size_get(), BKE_paint_brush_for_read(), brush_, brush_pos_re_, brush_radius_base_re_, blender::ed::sculpt_paint::brush_radius_factor(), brush_radius_factor_, brush_strength_, C, ctx_, CTX_data_active_object(), curves_, curves_id_, blender::bke::CurvesGeometry::curves_num(), ToolSettings::curves_sculpt, CV_SCULPT_SELECTION_ENABLED, Object::data, DEG_id_tag_update(), ED_region_tag_redraw(), Brush::falloff_shape, Curves::flag, Curves::geometry, Curves::id, ID_RECALC_GEOMETRY, initialize_spherical_brush_reference_point(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, object_, CurvesSculpt::paint, paint_curve_selection_projected_with_symmetry(), paint_curve_selection_spherical_with_symmetry(), PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, paint_point_selection_projected_with_symmetry(), paint_point_selection_spherical_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, RegionView3D::rflag, blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, RV3D_PAINTING, blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, blender::bke::CurvesGeometry::selection_curve_float_for_write(), Curves::selection_domain, selection_goal_, blender::bke::CurvesGeometry::selection_point_float_for_write(), self_, Curves::surface, Scene::toolsettings, transforms_, WM_main_add_notifier(), and blender::bke::CurvesGeometry::wrap().

◆ initialize_spherical_brush_reference_point()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::initialize_spherical_brush_reference_point ( )
inline

◆ paint_curve_selection_projected()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_projected ( const float4x4 brush_transform,
MutableSpan< float selection 
)
inline

◆ paint_curve_selection_projected_with_symmetry()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_projected_with_symmetry ( MutableSpan< float selection)
inline

◆ paint_curve_selection_spherical()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_spherical ( MutableSpan< float selection,
const float3 brush_cu 
)
inline

◆ paint_curve_selection_spherical_with_symmetry()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_spherical_with_symmetry ( MutableSpan< float selection)
inline

◆ paint_point_selection_projected()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_projected ( const float4x4 brush_transform,
MutableSpan< float selection 
)
inline

◆ paint_point_selection_projected_with_symmetry()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_projected_with_symmetry ( MutableSpan< float selection)
inline

◆ paint_point_selection_spherical()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_spherical ( MutableSpan< float selection,
const float3 brush_cu 
)
inline

◆ paint_point_selection_spherical_with_symmetry()

void blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_spherical_with_symmetry ( MutableSpan< float selection)
inline

Member Data Documentation

◆ brush_

const Brush* blender::ed::sculpt_paint::SelectionPaintOperationExecutor::brush_ = nullptr

Definition at line 60 of file curves_sculpt_selection_paint.cc.

Referenced by execute().

◆ brush_pos_re_

float2 blender::ed::sculpt_paint::SelectionPaintOperationExecutor::brush_pos_re_

Definition at line 67 of file curves_sculpt_selection_paint.cc.

Referenced by execute().

◆ brush_radius_base_re_

float blender::ed::sculpt_paint::SelectionPaintOperationExecutor::brush_radius_base_re_

Definition at line 61 of file curves_sculpt_selection_paint.cc.

Referenced by execute(), and paint_point_selection_projected().

◆ brush_radius_factor_

float blender::ed::sculpt_paint::SelectionPaintOperationExecutor::brush_radius_factor_

Definition at line 62 of file curves_sculpt_selection_paint.cc.

Referenced by execute(), and paint_point_selection_projected().

◆ brush_strength_

float blender::ed::sculpt_paint::SelectionPaintOperationExecutor::brush_strength_

Definition at line 63 of file curves_sculpt_selection_paint.cc.

Referenced by execute().

◆ ctx_

CurvesSculptCommonContext blender::ed::sculpt_paint::SelectionPaintOperationExecutor::ctx_

Definition at line 54 of file curves_sculpt_selection_paint.cc.

Referenced by execute(), and paint_point_selection_projected().

◆ curves_

CurvesGeometry* blender::ed::sculpt_paint::SelectionPaintOperationExecutor::curves_ = nullptr

Definition at line 58 of file curves_sculpt_selection_paint.cc.

Referenced by execute(), and paint_point_selection_projected().

◆ curves_id_

Curves* blender::ed::sculpt_paint::SelectionPaintOperationExecutor::curves_id_ = nullptr

◆ object_

Object* blender::ed::sculpt_paint::SelectionPaintOperationExecutor::object_ = nullptr

Definition at line 56 of file curves_sculpt_selection_paint.cc.

Referenced by execute(), and paint_point_selection_projected().

◆ selection_goal_

float blender::ed::sculpt_paint::SelectionPaintOperationExecutor::selection_goal_

Definition at line 65 of file curves_sculpt_selection_paint.cc.

Referenced by execute().

◆ self_

SelectionPaintOperation* blender::ed::sculpt_paint::SelectionPaintOperationExecutor::self_ = nullptr

Definition at line 53 of file curves_sculpt_selection_paint.cc.

Referenced by execute().

◆ transforms_

CurvesSurfaceTransforms blender::ed::sculpt_paint::SelectionPaintOperationExecutor::transforms_

Definition at line 69 of file curves_sculpt_selection_paint.cc.

Referenced by execute().


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