|
Blender V5.3
|
Namespaces | |
| namespace | canvas |
Classes | |
| struct | TexSnapshot |
| struct | CursorSnapshot |
Enumerations | |
| enum class | AssetCategory : int8_t { Invalid = 0 , CurvesSculpt = 1 , GPencilDraw = 2 , GPencilSculpt = 3 , GPencilVertex = 4 , GPencilWeight = 5 , MeshSculpt = 6 , MeshTexture = 7 , MeshVertex = 8 , MeshWeight = 9 } |
| enum class | eOverlayControlFlags : uint8_t { InvalidTexturePrimary = 1 , InvalidTextureSecondary = (1 << 2) , InvalidCurve = (1 << 3) , InvalidMask = InvalidTexturePrimary | InvalidTextureSecondary | InvalidCurve , OverrideCursor = (1 << 4) , OverridePrimary = (1 << 5) , OverrideSecondary = (1 << 6) , OverrideMask = OverrideCursor | OverridePrimary | OverrideSecondary } |
Functions | |
| void | invalidate_overlay_tex (Scene &scene, const Tex *tex) |
| void | invalidate_cursor_overlay (Scene &scene, CurveMapping *curve) |
| void | invalidate_overlay_all (Scene &scene) |
| void | invalidate_overlay_all (Paint &paint) |
| eOverlayControlFlags | get_overlay_flags (const Paint &paint) |
| void | reset_overlay_flag (Paint &paint, eOverlayControlFlags flag) |
| void | set_overlay_brush_override (Paint &paint, eOverlayFlags flag) |
| void | cursor_reinitialize_textures (Paint &paint) |
| bool | supports_scene_size (PaintMode paint_mode, const Brush &brush) |
| bool | supports_symmetry_tiling (PaintMode paint_mode, const Brush &brush) |
| float3 | stroke_get_average (const Paint *paint, const Object *ob) |
| void | paint_stroke_reset_location (Paint &paint) |
| void | stroke_track_location (Paint &paint, float3 location) |
| void | stroke_set_location (Paint &paint, float3 location) |
| ENUM_OPERATORS (eOverlayControlFlags) | |
|
strong |
Represents the essential library file needed for a given runtime.
| Enumerator | |
|---|---|
| Invalid | |
| CurvesSculpt | |
| GPencilDraw | |
| GPencilSculpt | |
| GPencilVertex | |
| GPencilWeight | |
| MeshSculpt | |
| MeshTexture | |
| MeshVertex | |
| MeshWeight | |
Definition at line 52 of file BKE_paint_types.hh.
|
strong |
| Enumerator | |
|---|---|
| InvalidTexturePrimary | |
| InvalidTextureSecondary | |
| InvalidCurve | |
| InvalidMask | |
| OverrideCursor | |
| OverridePrimary | |
| OverrideSecondary | |
| OverrideMask | |
Definition at line 65 of file BKE_paint_types.hh.
| void blender::bke::paint::cursor_reinitialize_textures | ( | Paint & | paint | ) |
Definition at line 350 of file blenkernel/intern/paint.cc.
References cursor_reinitialize_textures(), and invalidate_overlay_all().
Referenced by cursor_reinitialize_textures(), blender::ED_space_image_paint_update(), blender::ed::sculpt_paint::mode_exit_generic(), and blender::toggle_paint_cursor().
| blender::bke::paint::ENUM_OPERATORS | ( | eOverlayControlFlags | ) |
References ENUM_OPERATORS().
Referenced by ENUM_OPERATORS().
| eOverlayControlFlags blender::bke::paint::get_overlay_flags | ( | const Paint & | paint | ) |
Definition at line 308 of file blenkernel/intern/paint.cc.
References get_overlay_flags().
Referenced by get_overlay_flags(), blender::ed::sculpt_paint::load_tex(), blender::ed::sculpt_paint::load_tex_cursor(), and blender::ed::sculpt_paint::paint_draw_alpha_overlay().
| void blender::bke::paint::invalidate_cursor_overlay | ( | Scene & | scene, |
| CurveMapping * | curve ) |
Definition at line 283 of file blenkernel/intern/paint.cc.
References blender::BKE_paint_settings_foreach_mode(), invalidate_cursor_overlay(), and blender::Scene::toolsettings.
Referenced by blender::ui::do_but_CURVE(), and invalidate_cursor_overlay().
| void blender::bke::paint::invalidate_overlay_all | ( | Paint & | paint | ) |
Definition at line 293 of file blenkernel/intern/paint.cc.
References blender::BKE_paint_brush_for_read(), invalidate_overlay_all(), and InvalidMask.
| void blender::bke::paint::invalidate_overlay_all | ( | Scene & | scene | ) |
Definition at line 302 of file blenkernel/intern/paint.cc.
References blender::BKE_paint_settings_foreach_mode(), invalidate_overlay_all(), and blender::Scene::toolsettings.
Referenced by blender::BKE_paint_brush_set(), cursor_reinitialize_textures(), blender::ED_paint_cursor_start(), invalidate_overlay_all(), and invalidate_overlay_all().
Definition at line 266 of file blenkernel/intern/paint.cc.
References blender::BKE_paint_settings_foreach_mode(), blender::if(), invalidate_overlay_tex(), and blender::Scene::toolsettings.
Referenced by invalidate_overlay_tex(), and blender::texture_changed().
| void blender::bke::paint::paint_stroke_reset_location | ( | Paint & | paint | ) |
References paint_stroke_reset_location(), stroke_set_location(), and stroke_track_location().
Referenced by paint_stroke_reset_location().
| void blender::bke::paint::reset_overlay_flag | ( | Paint & | paint, |
| eOverlayControlFlags | flag ) |
Definition at line 331 of file blenkernel/intern/paint.cc.
References reset_overlay_flag().
Referenced by reset_overlay_flag().
| void blender::bke::paint::set_overlay_brush_override | ( | Paint & | paint, |
| eOverlayFlags | flag ) |
Definition at line 313 of file blenkernel/intern/paint.cc.
References blender::BRUSH_OVERLAY_CURSOR_OVERRIDE_ON_STROKE, BRUSH_OVERLAY_OVERRIDE_MASK, blender::BRUSH_OVERLAY_PRIMARY_OVERRIDE_ON_STROKE, blender::BRUSH_OVERLAY_SECONDARY_OVERRIDE_ON_STROKE, OverrideCursor, OverridePrimary, OverrideSecondary, and set_overlay_brush_override().
Referenced by blender::ed::sculpt_paint::PaintStroke::PaintStroke(), and set_overlay_brush_override().
Definition at line 1675 of file blenkernel/intern/paint.cc.
References blender::bke::PaintRuntime::average_stroke_accum, blender::bke::PaintRuntime::average_stroke_counter, blender::bke::PaintRuntime::last_stroke_valid, and stroke_get_average().
Referenced by stroke_get_average(), blender::view3d_calc_minmax_selected(), and blender::view3d_orbit_calc_center().
Definition at line 1692 of file blenkernel/intern/paint.cc.
References blender::bke::PaintRuntime::average_stroke_accum, blender::bke::PaintRuntime::average_stroke_counter, blender::bke::PaintRuntime::last_stroke_valid, and stroke_set_location().
Referenced by blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::finish_pivot_change(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), blender::paint_init_pivot(), paint_stroke_reset_location(), blender::ed::sculpt_paint::remember_stroke_position(), and stroke_set_location().
Definition at line 1685 of file blenkernel/intern/paint.cc.
References blender::bke::PaintRuntime::average_stroke_accum, blender::bke::PaintRuntime::average_stroke_counter, blender::bke::PaintRuntime::last_stroke_valid, and stroke_track_location().
Referenced by blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::image::ops::paint::do_brush_action(), paint_stroke_reset_location(), blender::project_paint_op(), stroke_track_location(), blender::VertexPaintStroke::update_step(), and blender::WeightPaintStroke::update_step().
Definition at line 1910 of file blenkernel/intern/paint.cc.
References BLI_assert_unreachable, blender::GPencil, blender::bke::brush::implements_3d_texture_paint(), blender::Invalid, blender::Sculpt, blender::SculptCurves, blender::SculptGPencil, supports_scene_size(), blender::Texture2D, blender::Texture3D, blender::U, USER_EXPERIMENTAL_TEST, blender::Vertex, blender::VertexGPencil, blender::Weight, and blender::WeightGPencil.
Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and supports_scene_size().
Definition at line 1939 of file blenkernel/intern/paint.cc.
References BLI_assert_unreachable, blender::GPencil, blender::bke::brush::implements_3d_texture_paint(), blender::Invalid, blender::Sculpt, blender::SculptCurves, blender::SculptGPencil, supports_symmetry_tiling(), blender::Texture2D, blender::Texture3D, blender::U, USER_EXPERIMENTAL_TEST, blender::Vertex, blender::VertexGPencil, blender::Weight, and blender::WeightGPencil.
Referenced by blender::ed::sculpt_paint::point_with_symmetry_draw(), and supports_symmetry_tiling().