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

Public Member Functions

 DeleteOperationExecutor (const bContext &C)
 
void execute (DeleteOperation &self, const bContext &C, const StrokeExtension &stroke_extension)
 
void delete_projected_with_symmetry (MutableSpan< bool > curves_to_delete)
 
void delete_projected (const float4x4 &brush_transform, MutableSpan< bool > curves_to_delete)
 
void delete_spherical_with_symmetry (MutableSpan< bool > curves_to_delete)
 
void delete_spherical (const float3 &brush_cu, MutableSpan< bool > curves_to_delete)
 
void initialize_spherical_brush_reference_point ()
 

Public Attributes

DeleteOperationself_ = nullptr
 
CurvesSculptCommonContext ctx_
 
Objectobject_ = nullptr
 
Curvescurves_id_ = nullptr
 
CurvesGeometrycurves_ = nullptr
 
Vector< int64_tselected_curve_indices_
 
IndexMask curve_selection_
 
const CurvesSculptcurves_sculpt_ = nullptr
 
const Brushbrush_ = nullptr
 
float brush_radius_base_re_
 
float brush_radius_factor_
 
float2 brush_pos_re_
 
CurvesSurfaceTransforms transforms_
 

Detailed Description

Definition at line 67 of file curves_sculpt_delete.cc.

Constructor & Destructor Documentation

◆ DeleteOperationExecutor()

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

Definition at line 87 of file curves_sculpt_delete.cc.

References C.

Member Function Documentation

◆ delete_projected()

void blender::ed::sculpt_paint::DeleteOperationExecutor::delete_projected ( const float4x4 brush_transform,
MutableSpan< bool curves_to_delete 
)
inline

◆ delete_projected_with_symmetry()

void blender::ed::sculpt_paint::DeleteOperationExecutor::delete_projected_with_symmetry ( MutableSpan< bool curves_to_delete)
inline

◆ delete_spherical()

void blender::ed::sculpt_paint::DeleteOperationExecutor::delete_spherical ( const float3 brush_cu,
MutableSpan< bool curves_to_delete 
)
inline

Definition at line 230 of file curves_sculpt_delete.cc.

References blender::threading::parallel_for(), and pow2f().

◆ delete_spherical_with_symmetry()

void blender::ed::sculpt_paint::DeleteOperationExecutor::delete_spherical_with_symmetry ( MutableSpan< bool curves_to_delete)
inline

◆ execute()

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

Definition at line 91 of file curves_sculpt_delete.cc.

References BKE_brush_size_get(), BKE_paint_brush_for_read(), BLI_assert_unreachable, brush_, brush_pos_re_, brush_radius_base_re_, blender::ed::sculpt_paint::brush_radius_factor(), brush_radius_factor_, C, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), ctx_, CTX_data_active_object(), curve_selection_, curves_, curves_id_, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), ToolSettings::curves_sculpt, curves_sculpt_, Object::data, DEG_id_tag_update(), delete_projected_with_symmetry(), delete_spherical_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_region_tag_redraw(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), blender::IndexMask::extract_ranges_invert(), Brush::falloff_shape, blender::index_mask_ops::find_indices_based_on_predicate(), Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), Curves::id, ID_RECALC_GEOMETRY, indices, 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_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, blender::bke::CurvesGeometry::points_for_curves(), blender::bke::crazyspace::GeometryDeformation::positions, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::bke::CurvesGeometry::remove_curves(), blender::ed::sculpt_paint::retrieve_selected_curves(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, selected_curve_indices_, 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::DeleteOperationExecutor::initialize_spherical_brush_reference_point ( )
inline

Definition at line 263 of file curves_sculpt_delete.cc.

References blender::ed::sculpt_paint::sample_curves_3d_brush().

Referenced by execute().

Member Data Documentation

◆ brush_

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

Definition at line 79 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ brush_pos_re_

float2 blender::ed::sculpt_paint::DeleteOperationExecutor::brush_pos_re_

Definition at line 83 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ brush_radius_base_re_

float blender::ed::sculpt_paint::DeleteOperationExecutor::brush_radius_base_re_

Definition at line 80 of file curves_sculpt_delete.cc.

Referenced by delete_projected(), and execute().

◆ brush_radius_factor_

float blender::ed::sculpt_paint::DeleteOperationExecutor::brush_radius_factor_

Definition at line 81 of file curves_sculpt_delete.cc.

Referenced by delete_projected(), and execute().

◆ ctx_

CurvesSculptCommonContext blender::ed::sculpt_paint::DeleteOperationExecutor::ctx_

Definition at line 69 of file curves_sculpt_delete.cc.

Referenced by delete_projected(), and execute().

◆ curve_selection_

IndexMask blender::ed::sculpt_paint::DeleteOperationExecutor::curve_selection_

Definition at line 76 of file curves_sculpt_delete.cc.

Referenced by delete_projected(), and execute().

◆ curves_

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

Definition at line 73 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ curves_id_

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

Definition at line 72 of file curves_sculpt_delete.cc.

Referenced by delete_projected_with_symmetry(), and execute().

◆ curves_sculpt_

const CurvesSculpt* blender::ed::sculpt_paint::DeleteOperationExecutor::curves_sculpt_ = nullptr

Definition at line 78 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ object_

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

Definition at line 71 of file curves_sculpt_delete.cc.

Referenced by delete_projected(), and execute().

◆ selected_curve_indices_

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

Definition at line 75 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ self_

DeleteOperation* blender::ed::sculpt_paint::DeleteOperationExecutor::self_ = nullptr

Definition at line 68 of file curves_sculpt_delete.cc.

Referenced by execute().

◆ transforms_

CurvesSurfaceTransforms blender::ed::sculpt_paint::DeleteOperationExecutor::transforms_

Definition at line 85 of file curves_sculpt_delete.cc.

Referenced by execute().


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