Blender V5.0
blender::ed::greasepencil::GreasePencilPenToolOperation 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 &memory) 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 &curves, const int curves_index) const
bool can_create_new_curve (wmOperator *op) const
void update_view (bContext *C) const
std::optional< wmOperatorStatusinitialize (bContext *C, wmOperator *op, 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

GreasePencilgrease_pencil
Vector< MutableDrawingInfodrawings
DrawingPlacement placement
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 43 of file grease_pencil_pen.cc.

Member Function Documentation

◆ all_selected_points()

◆ can_create_new_curve()

◆ curves_range()

IndexRange blender::ed::greasepencil::GreasePencilPenToolOperation::curves_range ( ) const
inlinevirtual

◆ editable_curves()

◆ get_curves()

bke::CurvesGeometry & blender::ed::greasepencil::GreasePencilPenToolOperation::get_curves ( const int curves_index) const
inlinevirtual

◆ initialize()

◆ project()

float3 blender::ed::greasepencil::GreasePencilPenToolOperation::project ( const float2 & screen_co) const
inlinevirtual

◆ single_point_attributes()

◆ tag_curve_changed()

void blender::ed::greasepencil::GreasePencilPenToolOperation::tag_curve_changed ( const int curves_index) const
inlinevirtual

◆ update_view()

void blender::ed::greasepencil::GreasePencilPenToolOperation::update_view ( bContext * C) const
inlinevirtual

◆ visible_bezier_handle_points()

Member Data Documentation

◆ drawings

Vector<MutableDrawingInfo> blender::ed::greasepencil::GreasePencilPenToolOperation::drawings

Definition at line 46 of file grease_pencil_pen.cc.

◆ grease_pencil

GreasePencil* blender::ed::greasepencil::GreasePencilPenToolOperation::grease_pencil

Definition at line 45 of file grease_pencil_pen.cc.

Referenced by initialize(), and update_view().

◆ placement

DrawingPlacement blender::ed::greasepencil::GreasePencilPenToolOperation::placement

Definition at line 49 of file grease_pencil_pen.cc.

Referenced by initialize().


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