|
Blender V5.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) |
| float4 | color_corner_get (const GSpan color_attribute, int corner_index) |
| bke::GAttributeReader | active_color_attribute (const Mesh &mesh) |
| bke::GSpanAttributeWriter | active_color_attribute_for_write (Mesh &mesh) |
| void | do_paint_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_smear_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| void | do_blur_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
| static float3 | fill_color_resolve_from_paint (const bContext *C, const bool use_secondary_color) |
| static float3 | fill_color_resolve (const bContext *C, wmOperator *op, const bool use_secondary_color) |
| static void | fill_color_store_current (const bContext *C, wmOperator *op) |
| 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 float3 &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, wmOperator *op, 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) |
| 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 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 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 54 of file sculpt_filter_color.cc.
| bke::GAttributeReader blender::ed::sculpt_paint::color::active_color_attribute | ( | const Mesh & | mesh | ) |
Definition at line 224 of file sculpt_paint_color.cc.
References active_color_attribute(), blender::bke::cpp_type_to_attribute_type(), blender::bke::GAttributeReader::domain, blender::bke::mesh::is_color_attribute(), blender::bke::AttributeAccessor::lookup(), 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_mesh_attribute_color(), 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 239 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), blender::bke::cpp_type_to_attribute_type(), blender::bke::GSpanAttributeWriter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::mesh::is_color_attribute(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::GSpanAttributeWriter::span, and blender::GMutableSpan::type().
Referenced by active_color_attribute_for_write(), do_blur_brush(), 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 131 of file sculpt_filter_color.cc.
References BLI_NOINLINE, clamp_factors(), max, and min.
Referenced by clamp_factors(), and color_filter_task().
| float4 blender::ed::sculpt_paint::color::color_corner_get | ( | const GSpan | color_attribute, |
| int | corner_index ) |
Definition at line 146 of file sculpt_paint_color.cc.
References color_corner_get(), to_static_color_type(), and blender::GSpan::type().
Referenced by color_corner_get(), and blender::ed::sculpt_paint::sample_mesh_attribute_color().
|
static |
Definition at line 140 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::filter::Cache::automasking, blender::blend_color_interpolate_float(), blender::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_filter_task(), color_vert_get(), color_vert_set(), Contrast, blender::copy_v3_v3(), blender::copy_v4_v4(), blender::bke::GSpanAttributeWriter::domain, fabs(), Fill, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, FLT_EPSILON, fmod(), Green, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::hsv_to_rgb_v(), Hue, blender::Span< T >::index_range(), blender::interp_v4_v4v4(), blender::madd_v4_v4fl(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::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, node, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::filter::Cache::pre_smoothed_color, Red, blender::rgb_to_hsv_v(), blender::Object::runtime, Saturation, blender::ed::sculpt_paint::scale_factors(), blender::bke::ObjectRuntime::sculpt_session, blender::Span< T >::size(), Smooth, blender::bke::GSpanAttributeWriter::span, and Value.
Referenced by color_filter_task(), and sculpt_color_filter_apply().
|
static |
Definition at line 84 of file sculpt_paint_color.cc.
References color_vert_get(), blender::bke::Corner, blender::GSpan::data(), blender::bke::mesh::face_find_corner_from_vert(), float, 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 130 of file sculpt_paint_color.cc.
References color_vert_get(), to_static_color_type(), and blender::GSpan::type().
Referenced by color_filter_task(), color_vert_get(), color_vert_get(), 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_mesh_attribute_color(), and sculpt_color_presmooth_init().
|
static |
Definition at line 104 of file sculpt_paint_color.cc.
References color_vert_set(), blender::bke::Corner, blender::GMutableSpan::data(), from_float(), blender::IndexRange::IndexRange(), 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 157 of file sculpt_paint_color.cc.
References color_vert_set(), to_static_color_type(), and blender::GMutableSpan::type().
Referenced by color_filter_task(), color_vert_set(), color_vert_set(), 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().
| void blender::ed::sculpt_paint::color::do_blur_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 931 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), blender::BKE_paint_brush_for_read(), blender::BLI_hash_int_01(), blender::SculptSession::cache, blender::Object::data, do_blur_brush(), do_color_smooth_task(), blender::Editor, blender::bke::GSpanAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::bke::object::pbvh_get(), PRF_scope, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by do_blur_brush(), and blender::ed::sculpt_paint::do_brush_action().
|
static |
Definition at line 267 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::blend_color_interpolate_float(), blender::BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::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, blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_color_smooth_task(), blender::bke::GSpanAttributeWriter::domain, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, 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(), blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::MutableSpan< T >::index_range(), blender::Span< 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, node, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by do_blur_brush(), and do_color_smooth_task().
| void blender::ed::sculpt_paint::color::do_paint_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 571 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), b, blender::BKE_brush_has_cube_tip(), blender::BKE_paint_brush_for_read(), blender::blend_color_interpolate_float(), blender::BLI_hash_int_01(), blender::SculptSession::cache, blender::math::clamp(), blender::ed::sculpt_paint::color::SampleWetPaintData::color, blender::ed::sculpt_paint::cube_tip_init(), blender::Object::data, do_paint_brush(), blender::Editor, blender::ed::sculpt_paint::StrokeCache::first_time, blender::index_mask::IndexMask::index_range(), blender::is_finite_v4(), blender::math::is_zero(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), PRF_scope, blender::Object::runtime, blender::Sculpt, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::color::SampleWetPaintData::tot_samples, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_paint_brush().
|
static |
Definition at line 350 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::color::ColorPaintLocalData::auto_mask, blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_brush_alpha_get(), blender::BKE_brush_calc_curve_factors(), blender::BKE_brush_color_get(), blender::BKE_brush_color_jitter_get_settings(), blender::BKE_brush_has_cube_tip(), blender::BKE_brush_secondary_color_get(), blender::BKE_colorband_evaluate(), blender::BKE_paint_randomize_color(), blender::blend_color_interpolate_float(), blender::blend_color_mix_float(), blender::BLI_assert(), blender::BLI_hash_int_01(), blender::BRUSH_FRONTFACE, blender::BRUSH_GRADIENT_PRESSURE, blender::BRUSH_GRADIENT_SPACING_CLAMP, blender::BRUSH_GRADIENT_SPACING_REPEAT, blender::BRUSH_USE_GRADIENT, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::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(), blender::ed::sculpt_paint::calc_local_positions(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::math::clamp(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_paint_brush_task(), blender::bke::GSpanAttributeWriter::domain, fabsf, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, 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(), fmod(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::IMB_blend_color_float(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::initial_hsv_jitter, blender::ed::sculpt_paint::StrokeToggleSettings::invert, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, node, 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, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::StrokeCache::stroke_distance, blender::ed::sculpt_paint::StrokeCache::toggle_settings, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by do_paint_brush_task().
|
static |
Definition at line 524 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::StrokeCache::automasking, blender::BRUSH_FRONTFACE, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::color::SampleWetPaintData::color, color_vert_get(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_sample_wet_paint_task(), blender::Editor, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), blender::ed::sculpt_paint::MeshAttributeData::mask, node, PRF_scope, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::Span< T >::size(), blender::ed::sculpt_paint::color::SampleWetPaintData::tot_samples, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
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 853 of file sculpt_paint_color.cc.
References active_color_attribute_for_write(), blender::BKE_paint_brush_for_read(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::Object::data, do_smear_brush(), blender::Editor, blender::Sculpt::paint, blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::threading::parallel_for(), blender::bke::object::pbvh_get(), PRF_scope, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, 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 692 of file sculpt_paint_color.cc.
References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::blend_color_interpolate_float(), blender::BRUSH_FRONTFACE, blender::BRUSH_SMEAR_DEFORM_DRAG, blender::BRUSH_SMEAR_DEFORM_EXPAND, blender::BRUSH_SMEAR_DEFORM_PINCH, blender::BRUSH_STROKE_ANCHORED, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::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(), color_vert_get(), color_vert_set(), 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, 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(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), 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, node, blender::math::normalize(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::vert_neighbors_get_mesh(), blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and w().
Referenced by do_smear_brush_task().
|
static |
Definition at line 89 of file sculpt_filter_color.cc.
References C, fill_color_resolve(), fill_color_resolve_from_paint(), blender::wmOperator::ptr, blender::RNA_float_get_array(), and blender::RNA_struct_property_is_set().
Referenced by fill_color_resolve(), and sculpt_color_filter_apply().
|
static |
Definition at line 69 of file sculpt_filter_color.cc.
References blender::BKE_brush_color_get(), blender::BKE_brush_secondary_color_get(), blender::BKE_paint_brush_for_read(), C, blender::CTX_data_tool_settings(), fill_color_resolve_from_paint(), blender::Sculpt::paint, blender::ToolSettings::sculpt, and blender::WM_toolsystem_active_tool_is_brush().
Referenced by fill_color_resolve(), fill_color_resolve_from_paint(), and fill_color_store_current().
|
static |
Definition at line 101 of file sculpt_filter_color.cc.
References C, fill_color_resolve_from_paint(), fill_color_store_current(), blender::wmOperator::ptr, blender::RNA_boolean_get(), and blender::RNA_float_set_array().
Referenced by fill_color_store_current(), and sculpt_color_filter_end().
Definition at line 71 of file sculpt_paint_color.cc.
References from_float(), blender::IMB_colormanagement_scene_linear_to_srgb_v3(), and blender::rgba_float_to_uchar().
Definition at line 78 of file sculpt_paint_color.cc.
References blender::MPropCol::color, blender::copy_v4_v4(), and from_float().
| void blender::ed::sculpt_paint::color::from_float | ( | const float4 & | src, |
| T & | dst ) |
References from_float(), and T.
Referenced by color_vert_set(), from_float(), from_float(), and from_float().
| void blender::ed::sculpt_paint::color::gather_colors | ( | GSpan | color_attribute, |
| Span< int > | indices, | ||
| MutableSpan< float4 > | r_colors ) |
Definition at line 188 of file sculpt_paint_color.cc.
References gather_colors(), 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 201 of file sculpt_paint_color.cc.
References blender::Editor, gather_colors(), gather_colors_vert(), blender::bke::Point, PRF_scope, to_static_color_type(), and blender::GSpan::type().
Referenced by gather_colors_vert(), and blender::ed::sculpt_paint::undo::store_color().
|
static |
Definition at line 413 of file sculpt_filter_color.cc.
References active_color_attribute_for_write(), blender::ed::sculpt_paint::filter::Cache::automasking, blender::BRUSH_AUTOMASKING_CAVITY_ALL, C, blender::ed::sculpt_paint::Color, color_filter_task(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_tool_settings(), blender::Object::data, fill_color_resolve(), blender::SculptSession::filter_cache, blender::bke::GSpanAttributeWriter::finish(), blender::ed::sculpt_paint::flush_update_step(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::filter::Cache::node_mask, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::Object::runtime, blender::ToolSettings::sculpt, sculpt_color_filter_apply(), sculpt_color_presmooth_init(), and blender::bke::ObjectRuntime::sculpt_session.
Referenced by sculpt_color_filter_apply(), sculpt_color_filter_exec(), sculpt_color_filter_invoke(), and sculpt_color_filter_modal().
|
static |
Definition at line 467 of file sculpt_filter_color.cc.
References C, blender::ed::sculpt_paint::Color, Fill, fill_color_store_current(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::flush_update_done(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_end(), blender::RNA_enum_get(), blender::RNA_struct_property_is_set(), blender::Object::runtime, sculpt_color_filter_end(), and blender::bke::ObjectRuntime::sculpt_session.
Referenced by sculpt_color_filter_end(), sculpt_color_filter_exec(), sculpt_color_filter_invoke(), and sculpt_color_filter_modal().
|
static |
Definition at line 587 of file sculpt_filter_color.cc.
References C, blender::CTX_data_active_object(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, sculpt_color_filter_apply(), sculpt_color_filter_end(), sculpt_color_filter_exec(), and sculpt_color_filter_init().
Referenced by sculpt_color_filter_exec(), and SCULPT_OT_color_filter().
|
static |
Definition at line 634 of file sculpt_filter_color.cc.
References blender::RNA_property_enum_get(), blender::RNA_property_enum_name_gettexted(), blender::RNA_struct_find_property(), and sculpt_color_filter_get_name().
Referenced by sculpt_color_filter_get_name(), and SCULPT_OT_color_filter().
|
static |
Definition at line 529 of file sculpt_filter_color.cc.
References blender::ed::sculpt_paint::filter::Cache::active_face_set, blender::BKE_base_is_visible(), blender::BKE_sculpt_color_layer_create_if_needed(), blender::BKE_sculptsession_update_for_edit(), C, blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::undo::Color, blender::ed::sculpt_paint::color_supported_check(), blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::filter_cache_ensure(), float, blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::OPERATOR_CANCELLED, blender::OPERATOR_PASS_THROUGH, blender::Sculpt::paint, blender::bke::object::pbvh_ensure(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::wmOperator::reports, blender::RNA_float_get(), blender::RNA_int_get_array(), blender::Object::runtime, blender::ToolSettings::sculpt, sculpt_color_filter_init(), and blender::bke::ObjectRuntime::sculpt_session.
Referenced by sculpt_color_filter_exec(), sculpt_color_filter_init(), and sculpt_color_filter_invoke().
|
static |
Definition at line 601 of file sculpt_filter_color.cc.
References C, blender::View3DShading::color_type, blender::CTX_data_active_object(), blender::CTX_wm_view3d(), blender::ED_paint_brush_type_update_sticky_shading_color(), blender::wmEvent::mval, blender::OB_SOLID, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::RNA_float_set(), blender::RNA_int_set_array(), sculpt_color_filter_apply(), sculpt_color_filter_end(), sculpt_color_filter_init(), sculpt_color_filter_invoke(), blender::View3D::shading, blender::View3DShading::type, blender::V3D_SHADING_VERTEX_COLOR, and blender::WM_event_add_modal_handler().
Referenced by sculpt_color_filter_invoke(), and SCULPT_OT_color_filter().
|
static |
Definition at line 483 of file sculpt_filter_color.cc.
References C, blender::CTX_data_active_object(), blender::math::distance_manhattan(), Fill, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::filter::Cache::has_dragged, blender::KM_RELEASE, blender::LEFTMOUSE, len(), blender::MOUSEMOVE, blender::wmEvent::mval, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_float_set(), blender::RNA_int_get_array(), blender::Object::runtime, sculpt_color_filter_apply(), sculpt_color_filter_end(), sculpt_color_filter_modal(), blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::filter::Cache::start_filter_strength, blender::wmEvent::type, blender::wmEvent::val, and blender::WM_event_drag_threshold().
Referenced by sculpt_color_filter_modal(), and SCULPT_OT_color_filter().
|
static |
Definition at line 644 of file sculpt_filter_color.cc.
References Fill, blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::RNA_enum_get(), sculpt_color_filter_ui(), and UI_ITEM_NONE.
Referenced by sculpt_color_filter_ui(), and SCULPT_OT_color_filter().
|
static |
Definition at line 354 of file sculpt_filter_color.cc.
References active_color_attribute(), blender::Array< T, InlineBufferCapacity, Allocator >::Array(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::calc_vert_neighbors(), color_vert_get(), blender::bke::GAttributeReader::domain, blender::SculptSession::filter_cache, blender::exec_mode::grain_size(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), 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::object::pbvh_get(), blender::ed::sculpt_paint::filter::Cache::pre_smoothed_color, sculpt_color_presmooth_init(), and blender::Span< T >::size().
Referenced by sculpt_color_filter_apply(), and sculpt_color_presmooth_init().
| void blender::ed::sculpt_paint::color::SCULPT_OT_color_filter | ( | wmOperatorType * | ot | ) |
Definition at line 655 of file sculpt_filter_color.cc.
References BLT_I18NCONTEXT_ID_MESH, blender::wmOperatorType::description, blender::wmOperatorType::exec, Fill, fill_filter_default_color, blender::wmOperatorType::flag, FLT_MAX, blender::wmOperatorType::get_name, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_COLOR, prop_color_filter_types, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::ed::sculpt_paint::filter::register_operator_props(), blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float_color(), blender::RNA_def_property_flag(), blender::RNA_def_property_subtype(), blender::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(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_color_filter(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_color_filter().
| void blender::ed::sculpt_paint::color::swap_gathered_colors | ( | Span< int > | indices, |
| GMutableSpan | color_attribute, | ||
| MutableSpan< float4 > | r_colors ) |
Definition at line 172 of file sculpt_paint_color.cc.
References blender::Editor, PRF_scope, swap_gathered_colors(), to_static_color_type(), and blender::GMutableSpan::type().
Referenced by blender::ed::sculpt_paint::undo::restore_color(), and swap_gathered_colors().
Definition at line 57 of file sculpt_paint_color.cc.
References blender::IMB_colormanagement_srgb_to_scene_linear_v3(), blender::rgba_uchar_to_float(), and to_float().
Definition at line 64 of file sculpt_paint_color.cc.
References blender::MPropCol::color, and to_float().
References T, and to_float().
Referenced by color_vert_get(), to_float(), to_float(), and to_float().
|
inline |
Definition at line 45 of file sculpt_paint_color.cc.
References blender::CPPType::is(), and to_static_color_type().
Referenced by color_corner_get(), color_vert_get(), color_vert_set(), gather_colors(), gather_colors_vert(), swap_gathered_colors(), and to_static_color_type().
|
static |
Definition at line 67 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().
|
static |
Definition at line 108 of file sculpt_filter_color.cc.
Referenced by SCULPT_OT_color_filter().