|
Blender V5.0
|
Classes | |
| struct | LocalData |
| struct | ColorPaintLocalData |
| 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 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 wmOperatorStatus | sculpt_color_filter_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | sculpt_color_filter_init (bContext *C, wmOperator *op) |
| static wmOperatorStatus | sculpt_color_filter_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | 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) |
| static void | calc_local_positions (const float4x4 &mat, const Span< int > verts, const Span< float3 > positions, const MutableSpan< float3 > local_positions) |
| 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 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 50 of file sculpt_filter_color.cc.
| bke::GAttributeReader blender::ed::sculpt_paint::color::active_color_attribute | ( | const Mesh & | mesh | ) |
Definition at line 219 of file sculpt_paint_color.cc.
References active_color_attribute(), ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL, CD_TYPE_AS_MASK(), blender::bke::cpp_type_to_custom_data_type(), blender::bke::GAttributeReader::domain, blender::bke::AttributeAccessor::lookup(), name, blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by active_color_attribute(), blender::ed::sculpt_paint::expand::original_state_store(), blender::ed::sculpt_paint::sample_color_invoke(), sculpt_color_presmooth_init(), and blender::ed::sculpt_paint::undo::store_color().
| bke::GSpanAttributeWriter blender::ed::sculpt_paint::color::active_color_attribute_for_write | ( | Mesh & | mesh | ) |
Definition at line 237 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL, CD_TYPE_AS_MASK(), blender::bke::cpp_type_to_custom_data_type(), blender::bke::GSpanAttributeWriter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), name, blender::bke::GSpanAttributeWriter::span, and blender::GMutableSpan::type().
Referenced by active_color_attribute_for_write(), do_paint_brush(), do_smear_brush(), blender::ed::sculpt_paint::undo::restore_color(), blender::ed::sculpt_paint::expand::restore_color_data(), blender::ed::sculpt_paint::undo::restore_color_from_undo_step(), sculpt_color_filter_apply(), and blender::ed::sculpt_paint::expand::update_for_vert().
|
static |
Definition at line 43 of file sculpt_paint_color.cc.
References i, blender::math::transform_point(), and verts.
Referenced by do_paint_brush_task().
|
static |
Definition at line 88 of file sculpt_filter_color.cc.
References BLI_NOINLINE, max, and min.
Referenced by color_filter_task().
|
static |
Definition at line 97 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(), Blue, Brightness, 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, Contrast, copy_v3_v3(), copy_v4_v4(), depsgraph, blender::bke::GSpanAttributeWriter::domain, fabs(), faces, blender::ed::sculpt_paint::color::LocalData::factors, Fill, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), SculptSession::filter_cache, fmod(), Green, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, hsv_to_rgb_v(), Hue, i, 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::neighbor_data, blender::ed::sculpt_paint::color::LocalData::neighbor_offsets, 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, Red, Vector< T, InlineBufferCapacity, Allocator >::resize(), rgb_to_hsv_v(), Saturation, blender::ed::sculpt_paint::scale_factors(), Object::sculpt, Smooth, blender::bke::GSpanAttributeWriter::span, Value, blender::bke::pbvh::MeshNode::verts(), and verts.
Referenced by sculpt_color_filter_apply().
|
static |
Definition at line 92 of file sculpt_paint_color.cc.
References blender::bke::Corner, blender::GSpan::data(), blender::bke::mesh::face_find_corner_from_vert(), faces, float, size(), T, 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 138 of file sculpt_paint_color.cc.
References faces, to_static_color_type(), and blender::GSpan::type().
Referenced by color_filter_task(), blender::ed::sculpt_paint::expand::colors_update_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::expand::original_state_store(), blender::ed::sculpt_paint::sample_color_invoke(), and sculpt_color_presmooth_init().
|
static |
Definition at line 112 of file sculpt_paint_color.cc.
References blender::bke::Corner, blender::GMutableSpan::data(), faces, from_float(), i, blender::IndexRange::size(), blender::Span< T >::slice(), blender::IndexRange::start(), and T.
| 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 154 of file sculpt_paint_color.cc.
References faces, to_static_color_type(), and blender::GMutableSpan::type().
Referenced by color_filter_task(), blender::ed::sculpt_paint::expand::colors_update_task(), do_color_smooth_task(), do_paint_brush_task(), do_smear_brush_task(), blender::ed::sculpt_paint::expand::restore_color_data(), and blender::ed::sculpt_paint::undo::restore_color_from_undo_step().
|
static |
Definition at line 269 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::auto_mask::calc_vert_factors(), 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, faces, 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, i, blender::MutableSpan< T >::index_range(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::smooth::neighbor_color_average(), blender::ed::sculpt_paint::color::ColorPaintLocalData::neighbor_data, blender::ed::sculpt_paint::color::ColorPaintLocalData::neighbor_offsets, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::bke::GSpanAttributeWriter::span, blender::bke::pbvh::MeshNode::verts(), 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 Depsgraph & | depsgraph, |
| PaintModeSettings & | paint_mode_settings, | ||
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask, | ||
| const IndexMask & | texnode_mask ) |
Definition at line 555 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_distance_falloff, Object::data, blender::ed::sculpt_paint::StrokeCache::density_seed, depsgraph, do_color_smooth_task(), do_paint_brush(), faces, blender::bke::GSpanAttributeWriter::finish(), blender::ed::sculpt_paint::StrokeCache::first_time, blender::index_mask::IndexMask::foreach_index(), i, 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::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), Object::sculpt, SCULPT_cube_tip_init(), SCULPT_do_paint_brush_image(), 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::color::SampleWetPaintData::tot_samples, blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), 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 352 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_calc_curve_factors(), BKE_brush_color_get(), BKE_brush_color_jitter_get_settings(), BKE_brush_secondary_color_get(), BKE_colorband_evaluate(), BKE_paint_randomize_color(), Brush::blend, blend_color_interpolate_float(), blend_color_mix_float(), BLI_assert, 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_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), calc_local_positions(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::math::clamp(), color_vert_get(), color_vert_set(), Brush::curve_distance_falloff, Brush::curve_distance_falloff_preset, 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, faces, 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::flow, fmod(), blender::ed::sculpt_paint::gather_data_mesh(), Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, i, IMB_blend_color_float(), blender::ed::sculpt_paint::StrokeCache::initial_hsv_jitter, blender::ed::sculpt_paint::StrokeCache::invert, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::color::ColorPaintLocalData::mix_colors, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::color::ColorPaintLocalData::positions, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scatter_data_mesh(), seed, blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::StrokeCache::stroke_distance, Brush::tip_roundness, blender::bke::pbvh::MeshNode::verts(), 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 518 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(), faces, 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(), i, blender::ed::sculpt_paint::StrokeCache::radius, Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::color::SampleWetPaintData::tot_samples, blender::bke::pbvh::MeshNode::verts(), 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 866 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(), faces, blender::bke::pbvh::Tree::nodes(), Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::threading::parallel_for(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::prev_colors, Object::sculpt, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_smear_brush().
|
static |
Definition at line 705 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(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), 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, faces, 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, i, 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, 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(), blender::bke::pbvh::MeshNode::verts(), verts, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and w().
Referenced by do_smear_brush_task().
Definition at line 79 of file sculpt_paint_color.cc.
References linearrgb_to_srgb_v3_v3(), and rgba_float_to_uchar().
Definition at line 86 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 ) |
References T.
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 184 of file sculpt_paint_color.cc.
References gather_colors(), indices, to_static_color_type(), and blender::GSpan::type().
Referenced by gather_colors(), gather_colors_vert(), and blender::ed::sculpt_paint::undo::store_color().
| 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 197 of file sculpt_paint_color.cc.
References faces, gather_colors(), gather_colors_vert(), blender::bke::Point, to_static_color_type(), blender::GSpan::type(), and verts.
Referenced by gather_colors_vert(), and blender::ed::sculpt_paint::undo::store_color().
|
static |
Definition at line 370 of file sculpt_filter_color.cc.
References active_color_attribute_for_write(), blender::ed::sculpt_paint::filter::Cache::automasking, BRUSH_AUTOMASKING_CAVITY_ALL, C, blender::ed::sculpt_paint::Color, color_filter_task(), CTX_data_depsgraph_pointer(), CTX_data_tool_settings(), Object::data, depsgraph, faces, SculptSession::filter_cache, blender::bke::GSpanAttributeWriter::finish(), blender::ed::sculpt_paint::flush_update_step(), blender::index_mask::IndexMask::foreach_index(), i, blender::ed::sculpt_paint::auto_mask::is_enabled(), 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, ToolSettings::sculpt, sculpt_color_presmooth_init(), and blender::bke::pbvh::Tree::tag_attribute_changed().
Referenced by sculpt_color_filter_exec(), and sculpt_color_filter_modal().
Definition at line 423 of file sculpt_filter_color.cc.
References C, 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 517 of file sculpt_filter_color.cc.
References C, 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 553 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 458 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::filter::Cache::active_face_set, BKE_base_is_visible(), BKE_sculpt_color_layer_create_if_needed(), BKE_sculpt_update_object_for_edit(), C, blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::undo::Color, blender::ed::sculpt_paint::color_supported_check(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), depsgraph, SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::filter_cache_ensure(), float, blender::ed::sculpt_paint::auto_mask::is_enabled(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, blender::bke::object::pbvh_ensure(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), wmOperator::reports, RNA_float_get(), RNA_int_get_array(), Object::sculpt, ToolSettings::sculpt, and SCULPT_FACE_SET_NONE.
Referenced by sculpt_color_filter_exec(), and sculpt_color_filter_invoke().
|
static |
Definition at line 531 of file sculpt_filter_color.cc.
References C, 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 433 of file sculpt_filter_color.cc.
References C, 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 563 of file sculpt_filter_color.cc.
References Fill, wmOperator::layout, uiLayout::prop(), wmOperator::ptr, RNA_enum_get(), and UI_ITEM_NONE.
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 315 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, faces, SculptSession::filter_cache, i, blender::math::interpolate(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::color::LocalData::neighbor_data, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh(), blender::ed::sculpt_paint::color::LocalData::neighbor_offsets, 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, and verts.
Referenced by sculpt_color_filter_apply().
| void blender::ed::sculpt_paint::color::SCULPT_OT_color_filter | ( | wmOperatorType * | ot | ) |
Definition at line 574 of file sculpt_filter_color.cc.
References BLT_I18NCONTEXT_ID_MESH, Fill, fill_filter_default_color, FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_COLOR, prop_color_filter_types, 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(), and SCULPT_mode_poll().
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 169 of file sculpt_paint_color.cc.
References indices, to_static_color_type(), and blender::GMutableSpan::type().
Referenced by blender::ed::sculpt_paint::undo::restore_color().
Definition at line 65 of file sculpt_paint_color.cc.
References rgba_uchar_to_float(), and srgb_to_linearrgb_v3_v3().
Definition at line 72 of file sculpt_paint_color.cc.
References MPropCol::color.
References T.
Referenced by color_vert_get().
|
inline |
Definition at line 53 of file sculpt_paint_color.cc.
References blender::CPPType::is().
Referenced by color_vert_get(), color_vert_set(), and swap_gathered_colors().
|
static |
Definition at line 63 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 65 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().