Blender V5.0
blender::ed::curves::pen_tool::CurvesPenToolOperation Class Reference

Inherits blender::ed::curves::pen_tool::PenToolOperation.

Public Member Functions

float3 project (const float2 &screen_co) const
IndexMask all_selected_points (const int curves_index, IndexMaskMemory &memory) const
IndexMask visible_bezier_handle_points (const int curves_index, IndexMaskMemory &memory) const
IndexMask editable_curves (const int curves_index, IndexMaskMemory &) const
void tag_curve_changed (const int curves_index) const
bke::CurvesGeometryget_curves (const int curves_index) const
IndexRange curves_range () const
void single_point_attributes (bke::CurvesGeometry &, const int) const
bool can_create_new_curve (wmOperator *op) const
void update_view (bContext *C) const
std::optional< wmOperatorStatusinitialize (bContext *C, wmOperator *, const wmEvent *)
Public Member Functions inherited from blender::ed::curves::pen_tool::PenToolOperation
virtual ~PenToolOperation ()=default
float2 layer_to_screen (const float4x4 &layer_to_object, const float3 &point) const
float3 screen_to_layer (const float4x4 &layer_to_world, const float2 &screen_co, const float3 &depth_point_layer) const
wmOperatorStatus invoke (bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus modal (bContext *C, wmOperator *op, const wmEvent *event)

Public Attributes

Vector< Curves * > all_curves
Public Attributes inherited from blender::ed::curves::pen_tool::PenToolOperation
ViewContext vc
float threshold_distance
float threshold_distance_edge
bool extrude_point
bool delete_point
bool insert_point
bool move_seg
bool select_point
bool move_point
bool cycle_handle_type
int extrude_handle
float radius
bool move_entire
bool snap_angle
bool move_handle
bool point_added
bool point_removed
bool handle_moved
float4x4 projection
float2 mouse_co
float2 xy
float2 prev_xy
float2 center_of_mass_co
ClosestElement closest_element
std::optional< int > active_drawing_index
Vector< float4x4layer_to_world_per_curves
Vector< float4x4layer_to_object_per_curves

Detailed Description

Definition at line 1277 of file curves_pen.cc.

Member Function Documentation

◆ all_selected_points()

IndexMask blender::ed::curves::pen_tool::CurvesPenToolOperation::all_selected_points ( const int curves_index,
IndexMaskMemory & memory ) const
inlinevirtual

◆ can_create_new_curve()

bool blender::ed::curves::pen_tool::CurvesPenToolOperation::can_create_new_curve ( wmOperator * op) const
inlinevirtual

Will return true if a new curve can be created, and report any errors.

Implements blender::ed::curves::pen_tool::PenToolOperation.

Definition at line 1332 of file curves_pen.cc.

References blender::ed::curves::pen_tool::PenToolOperation::active_drawing_index, BKE_report(), wmOperator::reports, and RPT_ERROR.

◆ curves_range()

IndexRange blender::ed::curves::pen_tool::CurvesPenToolOperation::curves_range ( ) const
inlinevirtual

◆ editable_curves()

IndexMask blender::ed::curves::pen_tool::CurvesPenToolOperation::editable_curves ( const int curves_index,
IndexMaskMemory &  ) const
inlinevirtual

Implements blender::ed::curves::pen_tool::PenToolOperation.

Definition at line 1302 of file curves_pen.cc.

References Curves::geometry.

◆ get_curves()

bke::CurvesGeometry & blender::ed::curves::pen_tool::CurvesPenToolOperation::get_curves ( const int curves_index) const
inlinevirtual

Implements blender::ed::curves::pen_tool::PenToolOperation.

Definition at line 1316 of file curves_pen.cc.

References Curves::geometry.

◆ initialize()

◆ project()

◆ single_point_attributes()

void blender::ed::curves::pen_tool::CurvesPenToolOperation::single_point_attributes ( bke::CurvesGeometry & ,
const int  ) const
inlinevirtual

Implements blender::ed::curves::pen_tool::PenToolOperation.

Definition at line 1327 of file curves_pen.cc.

◆ tag_curve_changed()

void blender::ed::curves::pen_tool::CurvesPenToolOperation::tag_curve_changed ( const int curves_index) const
inlinevirtual

Implements blender::ed::curves::pen_tool::PenToolOperation.

Definition at line 1309 of file curves_pen.cc.

References Curves::geometry.

◆ update_view()

void blender::ed::curves::pen_tool::CurvesPenToolOperation::update_view ( bContext * C) const
inlinevirtual

◆ visible_bezier_handle_points()

IndexMask blender::ed::curves::pen_tool::CurvesPenToolOperation::visible_bezier_handle_points ( const int curves_index,
IndexMaskMemory & memory ) const
inlinevirtual

Member Data Documentation

◆ all_curves

Vector<Curves *> blender::ed::curves::pen_tool::CurvesPenToolOperation::all_curves

Definition at line 1279 of file curves_pen.cc.


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