|
Blender V5.0
|
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::CurvesGeometry & | get_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< wmOperatorStatus > | initialize (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 | |
| GreasePencil * | grease_pencil |
| Vector< MutableDrawingInfo > | drawings |
| 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< float4x4 > | layer_to_world_per_curves |
| Vector< float4x4 > | layer_to_object_per_curves |
Definition at line 43 of file grease_pencil_pen.cc.
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 56 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::greasepencil::retrieve_editable_and_all_selected_points(), and blender::ed::curves::pen_tool::PenToolOperation::vc.
|
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 123 of file grease_pencil_pen.cc.
References blender::ed::curves::pen_tool::PenToolOperation::active_drawing_index, BKE_object_material_get(), BKE_report(), BLI_assert, blender::ed::greasepencil::ensure_active_keyframe(), MaterialGPencilStyle::flag, GP_MATERIAL_HIDE, GP_MATERIAL_LOCKED, Material::gp_style, wmOperator::reports, RPT_ERROR, and blender::ed::curves::pen_tool::PenToolOperation::vc.
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 97 of file grease_pencil_pen.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::index_range().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 78 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::greasepencil::retrieve_editable_strokes(), and blender::ed::curves::pen_tool::PenToolOperation::vc.
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 91 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::MutableDrawingInfo::drawing, and blender::bke::greasepencil::Drawing::strokes_for_write().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 173 of file grease_pencil_pen.cc.
References blender::ed::curves::pen_tool::PenToolOperation::active_drawing_index, BKE_report(), BLI_assert, C, CTX_data_depsgraph_pointer(), CTX_wm_view3d(), blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::ensure_active_keyframe(), GP_SELECTMODE_POINT, grease_pencil, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::curves::pen_tool::PenToolOperation::layer_to_object_per_curves, blender::ed::curves::pen_tool::PenToolOperation::layer_to_world_per_curves, blender::bke::greasepencil::Layer::local_transform(), NA_EDITED, NC_GPENCIL, OPERATOR_CANCELLED, placement, wmOperator::reports, blender::ed::greasepencil::retrieve_editable_drawings(), RPT_ERROR, blender::bke::greasepencil::Layer::to_world_space(), blender::ed::curves::pen_tool::PenToolOperation::vc, and WM_event_add_notifier().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 51 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::DrawingPlacement::project().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 102 of file grease_pencil_pen.cc.
References blender::bke::Curve, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::bke::SpanAttributeWriter< T >::finish(), blender::VArray< T >::from_single(), MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::greasepencil::Drawing::opacities_for_write(), and blender::bke::SpanAttributeWriter< T >::span.
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 85 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::MutableDrawingInfo::drawing, and blender::bke::greasepencil::Drawing::tag_topology_changed().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 163 of file grease_pencil_pen.cc.
References C, DEG_id_tag_update(), ED_region_tag_redraw(), grease_pencil, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::ed::curves::pen_tool::PenToolOperation::vc, and WM_event_add_notifier().
Referenced by blender::ed::greasepencil::grease_pencil_pen_exit().
|
inlinevirtual |
Implements blender::ed::curves::pen_tool::PenToolOperation.
Definition at line 67 of file grease_pencil_pen.cc.
References blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::greasepencil::retrieve_visible_bezier_handle_points(), and blender::ed::curves::pen_tool::PenToolOperation::vc.
| Vector<MutableDrawingInfo> blender::ed::greasepencil::GreasePencilPenToolOperation::drawings |
Definition at line 46 of file grease_pencil_pen.cc.
| GreasePencil* blender::ed::greasepencil::GreasePencilPenToolOperation::grease_pencil |
Definition at line 45 of file grease_pencil_pen.cc.
Referenced by initialize(), and update_view().
| DrawingPlacement blender::ed::greasepencil::GreasePencilPenToolOperation::placement |
Definition at line 49 of file grease_pencil_pen.cc.
Referenced by initialize().