Blender V5.0
blender::ed::sculpt_paint::SnakeHookOperatorExecutor Struct Reference

Public Member Functions

 SnakeHookOperatorExecutor (const bContext &C)
void execute (SnakeHookOperation &self, const bContext &C, const StrokeExtension &stroke_extension)
void projected_snake_hook_with_symmetry ()
void projected_snake_hook (const float4x4 &brush_transform)
void spherical_snake_hook_with_symmetry ()
void spherical_snake_hook (const float3 &brush_start_cu, const float3 &brush_end_cu, const float brush_radius_cu)

Public Attributes

SnakeHookOperationself_ = nullptr
CurvesSculptCommonContext ctx_
CurvesSculptcurves_sculpt_ = nullptr
const Brushbrush_ = nullptr
float brush_radius_base_re_
float brush_radius_factor_
float brush_strength_
Objectobject_ = nullptr
Curvescurves_id_ = nullptr
CurvesGeometrycurves_ = nullptr
VArray< floatcurve_factors_
IndexMaskMemory selected_curve_memory_
IndexMask curve_selection_
CurvesSurfaceTransforms transforms_
float2 brush_pos_prev_re_
float2 brush_pos_re_
float2 brush_pos_diff_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 63 of file curves_sculpt_snake_hook.cc.

Constructor & Destructor Documentation

◆ SnakeHookOperatorExecutor()

blender::ed::sculpt_paint::SnakeHookOperatorExecutor::SnakeHookOperatorExecutor ( const bContext & C)
inline

Definition at line 87 of file curves_sculpt_snake_hook.cc.

References C, and ctx_.

Member Function Documentation

◆ execute()

◆ projected_snake_hook()

◆ projected_snake_hook_with_symmetry()

void blender::ed::sculpt_paint::SnakeHookOperatorExecutor::projected_snake_hook_with_symmetry ( )
inline

◆ spherical_snake_hook()

◆ spherical_snake_hook_with_symmetry()

void blender::ed::sculpt_paint::SnakeHookOperatorExecutor::spherical_snake_hook_with_symmetry ( )
inline

Member Data Documentation

◆ brush_

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

Definition at line 68 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ brush_pos_diff_re_

float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_diff_re_

Definition at line 85 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), and projected_snake_hook().

◆ brush_pos_prev_re_

float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_prev_re_

◆ brush_pos_re_

float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_re_

Definition at line 84 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), and spherical_snake_hook_with_symmetry().

◆ brush_radius_base_re_

float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_base_re_

Definition at line 69 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), and projected_snake_hook().

◆ brush_radius_factor_

float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_factor_

◆ brush_strength_

float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_strength_

Definition at line 71 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ ctx_

CurvesSculptCommonContext blender::ed::sculpt_paint::SnakeHookOperatorExecutor::ctx_

◆ curve_factors_

VArray<float> blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curve_factors_

Definition at line 77 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ curve_selection_

IndexMask blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curve_selection_

Definition at line 79 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ curves_

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

Definition at line 75 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ curves_id_

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

◆ curves_sculpt_

CurvesSculpt* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_sculpt_ = nullptr

Definition at line 67 of file curves_sculpt_snake_hook.cc.

Referenced by execute().

◆ object_

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

Definition at line 73 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().

◆ selected_curve_memory_

IndexMaskMemory blender::ed::sculpt_paint::SnakeHookOperatorExecutor::selected_curve_memory_

Definition at line 78 of file curves_sculpt_snake_hook.cc.

Referenced by execute().

◆ self_

SnakeHookOperation* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::self_ = nullptr

Definition at line 64 of file curves_sculpt_snake_hook.cc.

Referenced by execute(), and spherical_snake_hook_with_symmetry().

◆ transforms_

CurvesSurfaceTransforms blender::ed::sculpt_paint::SnakeHookOperatorExecutor::transforms_

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