|
Blender V4.3
|
Public Attributes | |
| Scene * | scene_ |
| GreasePencil * | grease_pencil_ |
| Brush * | brush_ |
| BrushGpencilSettings * | settings_ |
| ColorGeometry4f | vertex_color_ = ColorGeometry4f(0.0f, 0.0f, 0.0f, 0.0f) |
| ColorGeometry4f | fill_color_ = ColorGeometry4f(0.0f, 0.0f, 0.0f, 0.0f) |
| float | softness_ |
| bool | use_vertex_color_ |
| bool | use_settings_random_ |
| bke::greasepencil::Drawing * | drawing_ |
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 291 of file grease_pencil_paint.cc.
|
inline |
Definition at line 307 of file grease_pencil_paint.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, BKE_paint_brush(), BLI_assert, brush_, blender::ed::sculpt_paint::greasepencil::brush_using_vertex_color(), C, CTX_data_active_object(), CTX_data_scene(), drawing_, ELEM, fill_color_, GP_BRUSH_GROUP_RANDOM, GPPAINT_MODE_BOTH, GPPAINT_MODE_FILL, GPPAINT_MODE_STROKE, scene_, settings_, softness_, srgb_to_linearrgb_v3_v3(), use_settings_random_, use_vertex_color_, and vertex_color_.
|
inline |
Definition at line 712 of file grease_pencil_paint.cc.
References BKE_curvemapping_evaluateF(), GP_BRUSH_USE_JITTER_PRESSURE, blender::IndexRange::index_range(), blender::math::normalize(), self, settings_, and blender::MutableSpan< T >::slice().
Referenced by process_extension_sample().
|
inline |
Definition at line 633 of file grease_pencil_paint.cc.
References blender::ed::sculpt_paint::greasepencil::arithmetic_mean(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::math::distance(), blender::Span< T >::drop_back(), blender::Span< T >::drop_front(), blender::VArray< T >::ForSingle(), blender::geometry::gaussian_blur_1D(), blender::IndexRange::index_range(), blender::ed::sculpt_paint::greasepencil::morph_points_to_curve(), blender::ed::greasepencil::polyline_detect_corners(), blender::ed::greasepencil::polyline_fit_curve(), blender::ed::sculpt_paint::greasepencil::sample_curve_2d(), self, settings_, blender::IndexRange::size(), and blender::Span< T >::size().
Referenced by process_extension_sample().
|
inline |
Definition at line 992 of file grease_pencil_paint.cc.
References C, CTX_data_scene(), drawing_, blender::IndexRange::from_single(), GP_TOOL_FLAG_PAINT_ONBACK, ToolSettings::gpencil_flags, process_extension_sample(), self, and Scene::toolsettings.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_extended().
|
inline |
Definition at line 743 of file grease_pencil_paint.cc.
References blender::math::abs(), active_jitter(), active_smoothing(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_multiple(), angle(), blender::bke::attribute_filter_from_skip_ref(), BLI_time_now_seconds(), brush_, blender::ed::sculpt_paint::greasepencil::brush_radius_to_pixel_radius(), C, blender::bke::AttributeAccessor::contains(), blender::MutableSpan< T >::copy_from(), blender::math::cos(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), blender::math::distance(), blender::math::dot(), drawing_, blender::ed::sculpt_paint::greasepencil::extend_curve(), blender::bke::fill_attribute_range_default(), blender::bke::SpanAttributeWriter< T >::finish(), blender::math::floor(), IndexRange::from_single(), GP_TOOL_FLAG_PAINT_ONBACK, ToolSettings::gpencil_flags, blender::IndexRange::index_range(), blender::math::interpolate(), blender::IndexRange::last(), blender::ed::sculpt_paint::greasepencil::linear_interpolation(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::math::max(), blender::ed::sculpt_paint::InputSample::mouse_position, blender::math::normalize(), blender::ed::greasepencil::opacity_from_input_sample(), blender::bke::Point, blender::ed::sculpt_paint::InputSample::pressure, blender::ed::greasepencil::radius_from_input_sample(), randomize_color(), randomize_opacity(), randomize_radius(), randomize_rotation(), self, settings_, blender::math::sin(), blender::IndexRange::size(), blender::MutableSpan< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, Scene::toolsettings, blender::math::transform_point(), use_settings_random_, use_vertex_color_, and vertex_color_.
Referenced by execute().
|
inline |
Definition at line 481 of file grease_pencil_paint.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_multiple(), blender::bke::attribute_filter_from_skip_ref(), brush_, C, blender::bke::AttributeAccessor::contains(), blender::ed::sculpt_paint::greasepencil::create_blank_curve(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), blender::bke::Curve, CURVE_TYPE_POLY, drawing_, blender::bke::fill_attribute_range_default(), fill_color_, blender::bke::SpanAttributeWriter< T >::finish(), float, blender::VArray< T >::ForSingle(), GP_STROKE_CAP_TYPE_ROUND, GP_TOOL_FLAG_PAINT_ONBACK, ToolSettings::gpencil_flags, blender::IndexRange::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::sculpt_paint::InputSample::mouse_position, blender::ed::greasepencil::opacity_from_input_sample(), blender::bke::Point, blender::ed::sculpt_paint::InputSample::pressure, blender::ed::greasepencil::radius_from_input_sample(), randomize_color(), randomize_opacity(), randomize_radius(), randomize_rotation(), self, settings_, softness_, blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, Scene::toolsettings, use_vertex_color_, and vertex_color_.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin().
|
inline |
Definition at line 411 of file grease_pencil_paint.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, BKE_curvemapping_evaluateF(), distance(), GP_BRUSH_USE_HUE_AT_STROKE, GP_BRUSH_USE_HUE_RAND_PRESS, GP_BRUSH_USE_SAT_AT_STROKE, GP_BRUSH_USE_SAT_RAND_PRESS, GP_BRUSH_USE_VAL_AT_STROKE, GP_BRUSH_USE_VAL_RAND_PRESS, hsv_to_rgb_v(), blender::math::interpolate(), blender::noise::perlin(), rgb_to_hsv_v(), self, settings_, and use_settings_random_.
Referenced by process_extension_sample(), and process_start_sample().
|
inline |
Definition at line 364 of file grease_pencil_paint.cc.
References BKE_curvemapping_evaluateF(), distance(), GP_BRUSH_USE_STRENGTH_AT_STROKE, GP_BRUSH_USE_STRENGTH_RAND_PRESS, blender::math::interpolate(), blender::noise::perlin(), self, settings_, and use_settings_random_.
Referenced by process_extension_sample(), and process_start_sample().
|
inline |
Definition at line 338 of file grease_pencil_paint.cc.
References BKE_curvemapping_evaluateF(), distance(), GP_BRUSH_USE_PRESS_AT_STROKE, GP_BRUSH_USE_PRESSURE_RAND_PRESS, blender::math::interpolate(), blender::noise::perlin(), self, settings_, and use_settings_random_.
Referenced by process_extension_sample(), and process_start_sample().
|
inline |
Definition at line 390 of file grease_pencil_paint.cc.
References BKE_curvemapping_evaluateF(), GP_BRUSH_USE_UV_AT_STROKE, GP_BRUSH_USE_UV_RAND_PRESS, blender::math::interpolate(), blender::math::numbers::pi, self, settings_, and use_settings_random_.
Referenced by process_extension_sample(), and process_start_sample().
| Brush* blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::brush_ |
Definition at line 295 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), process_extension_sample(), and process_start_sample().
| bke::greasepencil::Drawing* blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::drawing_ |
Definition at line 305 of file grease_pencil_paint.cc.
Referenced by execute(), PaintOperationExecutor(), process_extension_sample(), and process_start_sample().
| ColorGeometry4f blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::fill_color_ = ColorGeometry4f(0.0f, 0.0f, 0.0f, 0.0f) |
Definition at line 299 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), and process_start_sample().
| GreasePencil* blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::grease_pencil_ |
Definition at line 293 of file grease_pencil_paint.cc.
| Scene* blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::scene_ |
Definition at line 292 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor().
| BrushGpencilSettings* blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::settings_ |
Definition at line 297 of file grease_pencil_paint.cc.
Referenced by active_jitter(), active_smoothing(), PaintOperationExecutor(), process_extension_sample(), process_start_sample(), randomize_color(), randomize_opacity(), randomize_radius(), and randomize_rotation().
| float blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::softness_ |
Definition at line 300 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), and process_start_sample().
| bool blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::use_settings_random_ |
Definition at line 303 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), process_extension_sample(), randomize_color(), randomize_opacity(), randomize_radius(), and randomize_rotation().
| bool blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::use_vertex_color_ |
Definition at line 302 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), process_extension_sample(), and process_start_sample().
| ColorGeometry4f blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::vertex_color_ = ColorGeometry4f(0.0f, 0.0f, 0.0f, 0.0f) |
Definition at line 298 of file grease_pencil_paint.cc.
Referenced by PaintOperationExecutor(), process_extension_sample(), and process_start_sample().