|
Blender V4.3
|
Classes | |
| struct | ColorPaintLocalData |
| struct | LocalData |
| struct | SampleWetPaintData |
Enumerations | |
| enum class | FilterType { Fill = 0 , Hue , Saturation , Value , Brightness , Contrast , Red , Green , Blue , Smooth } |
Functions | |
| void | swap_gathered_colors (Span< int > indices, GMutableSpan color_attribute, MutableSpan< float4 > r_colors) |
| void | gather_colors (GSpan color_attribute, Span< int > indices, MutableSpan< float4 > r_colors) |
| void | gather_colors_vert (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, GSpan color_attribute, bke::AttrDomain color_domain, Span< int > verts, MutableSpan< float4 > r_colors) |
| void | color_vert_set (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, bke::AttrDomain color_domain, int vert, const float4 &color, GMutableSpan color_attribute) |
| float4 | color_vert_get (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, GSpan color_attribute, bke::AttrDomain color_domain, int vert) |
| bke::GAttributeReader | active_color_attribute (const Mesh &mesh) |
| bke::GSpanAttributeWriter | active_color_attribute_for_write (Mesh &mesh) |
| void | do_paint_brush (const Scene &scene, const Depsgraph &depsgraph, PaintModeSettings &paint_mode_settings, const Sculpt &sd, Object &ob, const IndexMask &node_mask, const IndexMask &texnode_mask) |
| void | do_smear_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| static BLI_NOINLINE void | clamp_factors (const MutableSpan< float > factors, const float min, const float max) |
| static void | color_filter_task (const Depsgraph &depsgraph, Object &ob, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const FilterType mode, const float filter_strength, const float *filter_fill_color, const bke::pbvh::MeshNode &node, LocalData &tls, bke::GSpanAttributeWriter &color_attribute) |
| static void | sculpt_color_presmooth_init (const Mesh &mesh, Object &object) |
| static void | sculpt_color_filter_apply (bContext *C, wmOperator *op, Object &ob) |
| static void | sculpt_color_filter_end (bContext *C, Object &ob) |
| static int | sculpt_color_filter_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | sculpt_color_filter_init (bContext *C, wmOperator *op) |
| static int | sculpt_color_filter_exec (bContext *C, wmOperator *op) |
| static int | sculpt_color_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static std::string | sculpt_color_filter_get_name (wmOperatorType *, PointerRNA *ptr) |
| static void | sculpt_color_filter_ui (bContext *, wmOperator *op) |
| void | SCULPT_OT_color_filter (wmOperatorType *ot) |
| template<typename Func > | |
| void | to_static_color_type (const CPPType &type, const Func &func) |
| template<typename T > | |
| float4 | to_float (const T &src) |
| template<> | |
| float4 | to_float (const MLoopCol &src) |
| template<> | |
| float4 | to_float (const MPropCol &src) |
| template<typename T > | |
| void | from_float (const float4 &src, T &dst) |
| template<> | |
| void | from_float (const float4 &src, MLoopCol &dst) |
| template<> | |
| void | from_float (const float4 &src, MPropCol &dst) |
| template<typename T > | |
| static float4 | color_vert_get (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const GSpan color_attribute, const bke::AttrDomain color_domain, const int vert) |
| template<typename T > | |
| static void | color_vert_set (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const GMutableSpan color_attribute, const bke::AttrDomain color_domain, const int vert, const float4 &color) |
| static void | do_color_smooth_task (const Depsgraph &depsgraph, const Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Brush &brush, const bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, bke::GSpanAttributeWriter &color_attribute) |
| static void | do_paint_brush_task (const Scene &scene, const Depsgraph &depsgraph, Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Paint &paint, const Brush &brush, const float4x4 &mat, const float4 wet_mix_sampled_color, bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, const MutableSpan< float4 > mix_colors, bke::GSpanAttributeWriter &color_attribute) |
| static void | do_sample_wet_paint_task (const Object &object, const Span< float3 > vert_positions, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_vert, const GSpan color_attribute, const bke::AttrDomain color_domain, const Brush &brush, const bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, SampleWetPaintData &swptd) |
| static void | do_smear_brush_task (const Depsgraph &depsgraph, Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Brush &brush, bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, bke::GSpanAttributeWriter &color_attribute) |
Variables | |
| static const float | fill_filter_default_color [4] = {1.0f, 1.0f, 1.0f, 1.0f} |
| static EnumPropertyItem | prop_color_filter_types [] |
|
strong |
| Enumerator | |
|---|---|
| Fill | |
| Hue | |
| Saturation | |
| Value | |
| Brightness | |
| Contrast | |
| Red | |
| Green | |
| Blue | |
| Smooth | |
Definition at line 52 of file sculpt_filter_color.cc.
| bke::GAttributeReader blender::ed::sculpt_paint::color::active_color_attribute | ( | const Mesh & | mesh | ) |
Definition at line 213 of file sculpt_paint_color.cc.
References active_color_attribute(), ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL, and CD_TYPE_AS_MASK.
Referenced by active_color_attribute(), blender::ed::sculpt_paint::sample_color_invoke(), and sculpt_color_presmooth_init().
| bke::GSpanAttributeWriter blender::ed::sculpt_paint::color::active_color_attribute_for_write | ( | Mesh & | mesh | ) |
Definition at line 231 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL, and CD_TYPE_AS_MASK.
Referenced by active_color_attribute_for_write(), do_paint_brush(), do_smear_brush(), blender::ed::sculpt_paint::undo::restore_color_from_undo_step(), and sculpt_color_filter_apply().
|
static |
Definition at line 89 of file sculpt_filter_color.cc.
References min.
Referenced by color_filter_task().
|
static |
Definition at line 98 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::filter::Cache::automasking, blender::ed::sculpt_paint::color::LocalData::average_colors, blend_color_interpolate_float(), blend_color_mix_float(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::math::clamp(), clamp_factors(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::color::LocalData::colors, copy_v3_v3(), copy_v4_v4(), depsgraph, blender::bke::GSpanAttributeWriter::domain, fabs(), blender::ed::sculpt_paint::color::LocalData::factors, SculptSession::filter_cache, fmod(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, hsv_to_rgb_v(), interp_v4_v4v4(), madd_v4_v4fl(), blender::ed::sculpt_paint::MeshAttributeData::mask, mul_v4_fl(), blender::ed::sculpt_paint::smooth::neighbor_color_average(), blender::ed::sculpt_paint::color::LocalData::new_colors, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::filter::Cache::pre_smoothed_color, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), rgb_to_hsv_v(), blender::ed::sculpt_paint::scale_factors(), Object::sculpt, blender::bke::GSpanAttributeWriter::span, sub_v4_v4(), blender::ed::sculpt_paint::color::LocalData::vert_neighbors, and verts.
Referenced by sculpt_color_filter_apply().
|
static |
Definition at line 86 of file sculpt_paint_color.cc.
References blender::bke::Corner, blender::GSpan::data(), blender::bke::mesh::face_find_corner_from_vert(), float, size(), and to_float().
| float4 blender::ed::sculpt_paint::color::color_vert_get | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_face_map, | ||
| GSpan | color_attribute, | ||
| bke::AttrDomain | color_domain, | ||
| int | vert ) |
Definition at line 132 of file sculpt_paint_color.cc.
References to_static_color_type(), and blender::GSpan::type().
Referenced by color_filter_task(), do_color_smooth_task(), do_paint_brush_task(), do_sample_wet_paint_task(), do_smear_brush_task(), blender::ed::sculpt_paint::smooth::neighbor_color_average(), blender::ed::sculpt_paint::sample_color_invoke(), and sculpt_color_presmooth_init().
|
static |
Definition at line 106 of file sculpt_paint_color.cc.
References blender::bke::Corner, blender::GMutableSpan::data(), from_float(), blender::MutableSpan< T >::size(), and blender::Span< T >::slice().
| void blender::ed::sculpt_paint::color::color_vert_set | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_face_map, | ||
| bke::AttrDomain | color_domain, | ||
| int | vert, | ||
| const float4 & | color, | ||
| GMutableSpan | color_attribute ) |
Definition at line 148 of file sculpt_paint_color.cc.
References to_static_color_type(), and blender::GMutableSpan::type().
Referenced by color_filter_task(), do_color_smooth_task(), do_paint_brush_task(), do_smear_brush_task(), and blender::ed::sculpt_paint::undo::restore_color_from_undo_step().
|
static |
Definition at line 261 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blend_color_interpolate_float(), BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::calc_vert_neighbors(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::color::ColorPaintLocalData::colors, depsgraph, blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_color_smooth_task(), blender::bke::GSpanAttributeWriter::domain, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::color::ColorPaintLocalData::vert_neighbors, verts, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by do_color_smooth_task(), and do_paint_brush().
| void blender::ed::sculpt_paint::color::do_paint_brush | ( | const Scene & | scene, |
| const Depsgraph & | depsgraph, | ||
| PaintModeSettings & | paint_mode_settings, | ||
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| const IndexMask & | texnode_mask ) |
Definition at line 526 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), blender::ed::sculpt_paint::StrokeCache::alt_smooth, b, BKE_curvemapping_init(), BKE_paint_brush_for_read(), blend_color_interpolate_float(), BLI_hash_int_01(), SculptSession::cache, blender::math::clamp(), blender::ed::sculpt_paint::color::SampleWetPaintData::color, Brush::curve, Object::data, blender::ed::sculpt_paint::StrokeCache::density_seed, depsgraph, do_color_smooth_task(), do_paint_brush(), blender::bke::GSpanAttributeWriter::finish(), blender::ed::sculpt_paint::StrokeCache::first_time, float, blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::index_range(), is_finite_v4(), is_zero_m4(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), Object::sculpt, SCULPT_cube_tip_init(), SCULPT_do_paint_brush_image(), SCULPT_stroke_is_first_brush_step(), SCULPT_stroke_is_first_brush_step_of_symmetry_pass(), SCULPT_use_image_paint_brush(), blender::bke::pbvh::Tree::tag_attribute_changed(), Brush::tip_roundness, blender::ed::sculpt_paint::StrokeCache::wet_mix, blender::ed::sculpt_paint::StrokeCache::wet_mix_prev_color, and blender::ed::sculpt_paint::StrokeCache::wet_persistence.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_paint_brush().
|
static |
Definition at line 341 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::color::ColorPaintLocalData::auto_mask, blender::ed::sculpt_paint::StrokeCache::automasking, BKE_brush_alpha_get(), BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_colorband_evaluate(), Brush::blend, blend_color_interpolate_float(), blend_color_mix_float(), BLI_hash_int_01(), BRUSH_FRONTFACE, BRUSH_GRADIENT_PRESSURE, BRUSH_GRADIENT_SPACING_CLAMP, BRUSH_GRADIENT_SPACING_REPEAT, BRUSH_USE_GRADIENT, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_cube_distances(), blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), blender::math::clamp(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::StrokeCache::density, blender::ed::sculpt_paint::StrokeCache::density_seed, depsgraph, blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_paint_brush_task(), blender::bke::GSpanAttributeWriter::domain, fabsf, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, Brush::falloff_shape, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), Brush::flag, float, blender::ed::sculpt_paint::StrokeCache::flow, fmod(), blender::ed::sculpt_paint::gather_data_mesh(), Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, IMB_blend_color_float(), IMB_colormanagement_srgb_to_scene_linear_v3(), blender::ed::sculpt_paint::StrokeCache::invert, blender::MutableSpan< T >::is_empty(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::color::ColorPaintLocalData::mix_colors, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, noise, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::StrokeCache::stroke_distance, Brush::tip_roundness, verts, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and blender::ed::sculpt_paint::StrokeCache::wet_mix.
Referenced by do_paint_brush_task().
|
static |
Definition at line 489 of file sculpt_paint_color.cc.
References SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::color::SampleWetPaintData::color, color_vert_get(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::color::SampleWetPaintData::tot_samples, verts, and Brush::wet_paint_radius_factor.
Referenced by do_sample_wet_paint_task().
| void blender::ed::sculpt_paint::color::do_smear_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 839 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, Object::data, depsgraph, do_smear_brush(), blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::StrokeCache::prev_colors, and Object::sculpt.
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_smear_brush().
|
static |
Definition at line 678 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blend_color_interpolate_float(), BRUSH_ANCHORED, BRUSH_FRONTFACE, BRUSH_SMEAR_DEFORM_DRAG, BRUSH_SMEAR_DEFORM_EXPAND, BRUSH_SMEAR_DEFORM_PINCH, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), col, color_vert_get(), color_vert_set(), depsgraph, blender::math::distance(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_smear_brush_task(), blender::bke::GSpanAttributeWriter::domain, blender::math::dot(), fabsf, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, Brush::falloff_shape, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), Brush::flag, blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::StrokeCache::last_location_symm, len, blender::math::length(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::math::normalize(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::StrokeCache::prev_colors, blender::ed::sculpt_paint::StrokeCache::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scale_factors(), Brush::smear_deform_type, blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::vert_neighbors_get_mesh(), verts, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and w().
Referenced by do_smear_brush_task().
Definition at line 73 of file sculpt_paint_color.cc.
References linearrgb_to_srgb_v3_v3(), and rgba_float_to_uchar().
Definition at line 80 of file sculpt_paint_color.cc.
References MPropCol::color, and copy_v4_v4().
| void blender::ed::sculpt_paint::color::from_float | ( | const float4 & | src, |
| T & | dst ) |
Referenced by color_vert_set().
| void blender::ed::sculpt_paint::color::gather_colors | ( | GSpan | color_attribute, |
| Span< int > | indices, | ||
| MutableSpan< float4 > | r_colors ) |
Definition at line 178 of file sculpt_paint_color.cc.
References gather_colors(), to_static_color_type(), and blender::GSpan::type().
Referenced by gather_colors(), and gather_colors_vert().
| void blender::ed::sculpt_paint::color::gather_colors_vert | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_face_map, | ||
| GSpan | color_attribute, | ||
| bke::AttrDomain | color_domain, | ||
| Span< int > | verts, | ||
| MutableSpan< float4 > | r_colors ) |
Definition at line 191 of file sculpt_paint_color.cc.
References gather_colors(), gather_colors_vert(), to_static_color_type(), blender::GSpan::type(), and verts.
Referenced by gather_colors_vert().
|
static |
Definition at line 363 of file sculpt_filter_color.cc.
References active_color_attribute_for_write(), blender::ed::sculpt_paint::Color, color_filter_task(), CTX_data_depsgraph_pointer(), Object::data, depsgraph, SculptSession::filter_cache, blender::bke::GSpanAttributeWriter::finish(), blender::ed::sculpt_paint::flush_update_step(), blender::index_mask::IndexMask::foreach_index(), IMB_colormanagement_srgb_to_scene_linear_v3(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_float_get_array(), Object::sculpt, sculpt_color_presmooth_init(), and blender::bke::pbvh::Tree::tag_attribute_changed().
Referenced by sculpt_color_filter_exec(), and sculpt_color_filter_modal().
|
static |
Definition at line 411 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::Color, SculptSession::filter_cache, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::undo::push_end(), and Object::sculpt.
Referenced by sculpt_color_filter_exec(), and sculpt_color_filter_modal().
|
static |
Definition at line 498 of file sculpt_filter_color.cc.
References CTX_data_active_object(), OPERATOR_CANCELLED, OPERATOR_FINISHED, sculpt_color_filter_apply(), sculpt_color_filter_end(), and sculpt_color_filter_init().
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 532 of file sculpt_filter_color.cc.
References ptr, RNA_property_enum_get(), RNA_property_enum_name_gettexted(), and RNA_struct_find_property().
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 444 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::filter::Cache::active_face_set, blender::ed::sculpt_paint::filter::Cache::automasking, BKE_base_is_visible(), BKE_sculpt_color_layer_create_if_needed(), BKE_sculpt_update_object_for_edit(), blender::ed::sculpt_paint::auto_mask::cache_init(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::undo::Color, CTX_data_active_base(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), depsgraph, SculptSession::filter_cache, float, blender::ed::sculpt_paint::auto_mask::is_enabled(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, blender::bke::object::pbvh_get(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), wmOperator::reports, RNA_float_get(), RNA_int_get_array(), Object::sculpt, ToolSettings::sculpt, SCULPT_cursor_geometry_info_update(), SCULPT_FACE_SET_NONE, and SCULPT_handles_colors_report().
Referenced by sculpt_color_filter_exec(), and sculpt_color_filter_invoke().
|
static |
Definition at line 512 of file sculpt_filter_color.cc.
References View3DShading::color_type, CTX_data_active_object(), CTX_wm_view3d(), ED_image_paint_brush_type_update_sticky_shading_color(), wmEvent::mval, OB_SOLID, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_int_set_array(), sculpt_color_filter_init(), View3D::shading, View3DShading::type, V3D_SHADING_VERTEX_COLOR, and WM_event_add_modal_handler().
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 421 of file sculpt_filter_color.cc.
References CTX_data_active_object(), SculptSession::filter_cache, KM_RELEASE, LEFTMOUSE, len, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), Object::sculpt, sculpt_color_filter_apply(), sculpt_color_filter_end(), blender::ed::sculpt_paint::filter::Cache::start_filter_strength, wmEvent::type, and wmEvent::val.
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 542 of file sculpt_filter_color.cc.
References wmOperator::layout, wmOperator::ptr, RNA_enum_get(), UI_ITEM_NONE, and uiItemR().
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 312 of file sculpt_filter_color.cc.
References active_color_attribute(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::calc_vert_neighbors(), color_vert_get(), blender::bke::GAttributeReader::domain, SculptSession::filter_cache, blender::math::interpolate(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::filter::Cache::pre_smoothed_color, blender::ed::sculpt_paint::color::LocalData::vert_neighbors, and verts.
Referenced by sculpt_color_filter_apply().
| void blender::ed::sculpt_paint::color::SCULPT_OT_color_filter | ( | wmOperatorType * | ot | ) |
Definition at line 553 of file sculpt_filter_color.cc.
References BLT_I18NCONTEXT_ID_MESH, wmOperatorType::description, wmOperatorType::exec, fill_filter_default_color, wmOperatorType::flag, FLT_MAX, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_color_filter_types, PROP_COLOR_GAMMA, blender::ed::sculpt_paint::filter::register_operator_props(), RNA_def_enum(), RNA_def_float_color(), RNA_def_property_subtype(), RNA_def_property_translation_context(), sculpt_color_filter_exec(), sculpt_color_filter_get_name(), sculpt_color_filter_invoke(), sculpt_color_filter_modal(), sculpt_color_filter_ui(), SCULPT_mode_poll(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
| void blender::ed::sculpt_paint::color::swap_gathered_colors | ( | Span< int > | indices, |
| GMutableSpan | color_attribute, | ||
| MutableSpan< float4 > | r_colors ) |
Definition at line 163 of file sculpt_paint_color.cc.
References to_static_color_type(), and blender::GMutableSpan::type().
Definition at line 59 of file sculpt_paint_color.cc.
References rgba_uchar_to_float(), and srgb_to_linearrgb_v3_v3().
Definition at line 66 of file sculpt_paint_color.cc.
References MPropCol::color.
Referenced by color_vert_get().
|
inline |
Definition at line 47 of file sculpt_paint_color.cc.
Referenced by color_vert_get(), color_vert_set(), and swap_gathered_colors().
|
static |
Definition at line 65 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 67 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().