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

Classes

struct  Influences
 

Public Member Functions

 CurvesEffectOperationExecutor (const bContext &C)
 
void execute (CurvesEffectOperation &self, const bContext &C, const StrokeExtension &stroke_extension)
 
void gather_influences_projected (threading::EnumerableThreadSpecific< Influences > &influences_for_thread)
 
void gather_influences_spherical (threading::EnumerableThreadSpecific< Influences > &influences_for_thread)
 

Public Attributes

CurvesEffectOperationself_ = nullptr
 
CurvesSculptCommonContext ctx_
 
Objectobject_ = nullptr
 
Curvescurves_id_ = nullptr
 
CurvesGeometrycurves_ = nullptr
 
VArray< floatcurve_selection_factors_
 
Vector< int64_tselected_curve_indices_
 
IndexMask curve_selection_
 
const Brushbrush_ = nullptr
 
float brush_radius_base_re_
 
float brush_radius_factor_
 
float brush_strength_
 
eBrushFalloffShape falloff_shape_
 
CurvesSurfaceTransforms transforms_
 
float2 brush_pos_start_re_
 
float2 brush_pos_end_re_
 

Detailed Description

Utility class that actually executes the update when the stroke is updated. That's useful because it avoids passing a very large number of parameters between functions.

Definition at line 239 of file curves_sculpt_grow_shrink.cc.

Constructor & Destructor Documentation

◆ CurvesEffectOperationExecutor()

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

Definition at line 268 of file curves_sculpt_grow_shrink.cc.

Member Function Documentation

◆ execute()

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

Definition at line 272 of file curves_sculpt_grow_shrink.cc.

References BKE_brush_size_get(), BKE_paint_brush_for_read(), BLI_assert, BLI_SCOPED_DEFER, blender::ed::sculpt_paint::brush_radius_factor(), blender::ed::sculpt_paint::brush_strength_get(), C, CTX_data_active_object(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::Influences::curve_indices, blender::bke::CurvesGeometry::curves_num(), ToolSettings::curves_sculpt, Object::data, DEG_id_tag_update(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_region_tag_redraw(), Brush::falloff_shape, Curves::geometry, blender::ed::sculpt_paint::get_curves_selection(), Curves::id, ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::StrokeExtension::is_first, blender::ed::sculpt_paint::StrokeExtension::mouse_position, blender::ed::sculpt_paint::CurvesEffectOperationExecutor::Influences::move_distances_cu, NC_GEOM, ND_DATA, CurvesSculpt::paint, PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, blender::threading::parallel_for_each(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::retrieve_selected_curves(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::ed::sculpt_paint::sample_curves_3d_brush(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), Curves::surface, blender::bke::CurvesGeometry::tag_positions_changed(), Scene::toolsettings, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, WM_main_add_notifier(), and blender::bke::image::partial_update::wrap().

◆ gather_influences_projected()

void blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_projected ( threading::EnumerableThreadSpecific< Influences > &  influences_for_thread)
inline

◆ gather_influences_spherical()

void blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_spherical ( threading::EnumerableThreadSpecific< Influences > &  influences_for_thread)
inline

Member Data Documentation

◆ brush_

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

Definition at line 251 of file curves_sculpt_grow_shrink.cc.

◆ brush_pos_end_re_

float2 blender::ed::sculpt_paint::CurvesEffectOperationExecutor::brush_pos_end_re_

Definition at line 261 of file curves_sculpt_grow_shrink.cc.

◆ brush_pos_start_re_

float2 blender::ed::sculpt_paint::CurvesEffectOperationExecutor::brush_pos_start_re_

Definition at line 260 of file curves_sculpt_grow_shrink.cc.

◆ brush_radius_base_re_

float blender::ed::sculpt_paint::CurvesEffectOperationExecutor::brush_radius_base_re_

Definition at line 252 of file curves_sculpt_grow_shrink.cc.

◆ brush_radius_factor_

float blender::ed::sculpt_paint::CurvesEffectOperationExecutor::brush_radius_factor_

Definition at line 253 of file curves_sculpt_grow_shrink.cc.

◆ brush_strength_

float blender::ed::sculpt_paint::CurvesEffectOperationExecutor::brush_strength_

Definition at line 254 of file curves_sculpt_grow_shrink.cc.

◆ ctx_

CurvesSculptCommonContext blender::ed::sculpt_paint::CurvesEffectOperationExecutor::ctx_

Definition at line 241 of file curves_sculpt_grow_shrink.cc.

◆ curve_selection_

IndexMask blender::ed::sculpt_paint::CurvesEffectOperationExecutor::curve_selection_

Definition at line 249 of file curves_sculpt_grow_shrink.cc.

◆ curve_selection_factors_

VArray<float> blender::ed::sculpt_paint::CurvesEffectOperationExecutor::curve_selection_factors_

Definition at line 247 of file curves_sculpt_grow_shrink.cc.

◆ curves_

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

Definition at line 245 of file curves_sculpt_grow_shrink.cc.

◆ curves_id_

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

Definition at line 244 of file curves_sculpt_grow_shrink.cc.

◆ falloff_shape_

eBrushFalloffShape blender::ed::sculpt_paint::CurvesEffectOperationExecutor::falloff_shape_

Definition at line 256 of file curves_sculpt_grow_shrink.cc.

◆ object_

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

Definition at line 243 of file curves_sculpt_grow_shrink.cc.

◆ selected_curve_indices_

Vector<int64_t> blender::ed::sculpt_paint::CurvesEffectOperationExecutor::selected_curve_indices_

Definition at line 248 of file curves_sculpt_grow_shrink.cc.

◆ self_

CurvesEffectOperation* blender::ed::sculpt_paint::CurvesEffectOperationExecutor::self_ = nullptr

Definition at line 240 of file curves_sculpt_grow_shrink.cc.

◆ transforms_

CurvesSurfaceTransforms blender::ed::sculpt_paint::CurvesEffectOperationExecutor::transforms_

Definition at line 258 of file curves_sculpt_grow_shrink.cc.


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