|
Blender V5.0
|
#include <BKE_paint_types.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Public Member Functions | |
| PaintRuntime () | |
| ~PaintRuntime () | |
| Public Member Functions inherited from blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
| Public Member Functions inherited from blender::NonMovable | |
| NonMovable (NonMovable &&other)=delete | |
| NonMovable & | operator= (NonMovable &&other)=delete |
| NonMovable ()=default | |
| NonMovable (const NonMovable &other)=default | |
| NonMovable & | operator= (const NonMovable &other)=default |
Definition at line 44 of file BKE_paint_types.hh.
|
default |
| blender::bke::PaintRuntime::~PaintRuntime | ( | ) |
Definition at line 17 of file paint_runtime.cc.
References previous_active_brush_reference.
| blender::float2 blender::bke::PaintRuntime::anchored_initial_mouse = float2(0.0f, 0.0f) |
Definition at line 88 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| int blender::bke::PaintRuntime::anchored_size = 0 |
Definition at line 69 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_size(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| blender::float3 blender::bke::PaintRuntime::average_stroke_accum = float3(0.0f, 0.0f, 0.0f) |
Definition at line 54 of file BKE_paint_types.hh.
Referenced by BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), blender::ed::sculpt_paint::paint_stroke_new(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| int blender::bke::PaintRuntime::average_stroke_counter = 0 |
Definition at line 55 of file BKE_paint_types.hh.
Referenced by BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), blender::ed::sculpt_paint::paint_stroke_new(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| float blender::bke::PaintRuntime::brush_rotation = 0.0f |
How much brush should be rotated in the view plane, 0 means x points right, y points up. The convention is that the brush's negative Y axis points in the tangent direction (of the mouse curve, Bezier curve, etc.)
Definition at line 62 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_tex_3d(), brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), paint_update_brush_rake_rotation(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), and blender::ed::sculpt_paint::stroke_done().
| float blender::bke::PaintRuntime::brush_rotation_sec = 0.0f |
Definition at line 63 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_masktex(), brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), paint_update_brush_rake_rotation(), and blender::ed::sculpt_paint::stroke_done().
| const blender::ocio::ColorSpace* blender::bke::PaintRuntime::colorspace = nullptr |
Definition at line 109 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| bool blender::bke::PaintRuntime::do_linear_conversion = false |
ColorSpace cache to avoid locking up during sampling.
Definition at line 108 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| bool blender::bke::PaintRuntime::draw_anchored = false |
Definition at line 68 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_size(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), blender::ed::sculpt_paint::paint_stroke_free(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| bool blender::bke::PaintRuntime::draw_inverted = false |
| float blender::bke::PaintRuntime::initial_pixel_radius = 0.0f |
Definition at line 95 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| bool blender::bke::PaintRuntime::initialized = false |
Definition at line 45 of file BKE_paint_types.hh.
| bool blender::bke::PaintRuntime::last_hit = false |
Definition at line 86 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::paint_brush_stroke_add_step(), and blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init().
| blender::float3 blender::bke::PaintRuntime::last_location = float3(0.0f, 0.0f, 0.0f) |
Store last location of stroke or whether the mesh was hit. Valid only while stroke is active.
Definition at line 85 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::paint_brush_stroke_add_step(), and blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init().
| blender::float2 blender::bke::PaintRuntime::last_rake = float2(0.0f, 0.0f) |
Definition at line 50 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), and blender::ed::sculpt_paint::paint_stroke_modal().
| float blender::bke::PaintRuntime::last_rake_angle = 0.0f |
Definition at line 51 of file BKE_paint_types.hh.
Referenced by paint_calculate_rake_rotation().
| int blender::bke::PaintRuntime::last_stroke_valid = false |
Definition at line 53 of file BKE_paint_types.hh.
Referenced by BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| blender::float2 blender::bke::PaintRuntime::mask_tex_mouse = float2(0.0f, 0.0f) |
Position of mouse, used to sample the mask texture.
Definition at line 105 of file BKE_paint_types.hh.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_masktex(), and blender::ed::sculpt_paint::paint_brush_update().
| uint16_t blender::bke::PaintRuntime::ob_mode = 0 |
Definition at line 46 of file BKE_paint_types.hh.
| float blender::bke::PaintRuntime::overlap_factor = 0.0f |
Normalization factor due to accumulated value of curve along spacing. Calculated when brush spacing changes to dampen strength of stroke if space attenuation is used.
Definition at line 76 of file BKE_paint_types.hh.
Referenced by brush_strength(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::ed::sculpt_paint::paint_stroke_curve_end(), blender::ed::sculpt_paint::paint_stroke_line_end(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::sculpt_paint::paint_stroke_new(), and blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step().
| void* blender::bke::PaintRuntime::paint_cursor = nullptr |
WM Paint cursor.
Definition at line 112 of file BKE_paint_types.hh.
| PaintMode blender::bke::PaintRuntime::paint_mode = PaintMode::Invalid |
Definition at line 47 of file BKE_paint_types.hh.
| float blender::bke::PaintRuntime::pixel_radius = 0.0f |
Radius of brush, pre-multiplied with pressure. In case of anchored brushes contains the anchored radius.
Definition at line 94 of file BKE_paint_types.hh.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| AssetWeakReference* blender::bke::PaintRuntime::previous_active_brush_reference = nullptr |
Definition at line 48 of file BKE_paint_types.hh.
Referenced by ~PaintRuntime().
| float blender::bke::PaintRuntime::size_pressure_value = 0.0f |
Evaluated size pressure value
Definition at line 99 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_masktex(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_size(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), and blender::ed::sculpt_paint::paint_draw_tex_overlay().
| float blender::bke::PaintRuntime::start_pixel_radius = 0.0f |
Definition at line 96 of file BKE_paint_types.hh.
Referenced by BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| bool blender::bke::PaintRuntime::stroke_active = false |
Check is there an ongoing stroke right now.
Definition at line 79 of file BKE_paint_types.hh.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_size(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), blender::ed::sculpt_paint::paint_stroke_free(), and blender::ed::sculpt_paint::paint_stroke_new().
| blender::float2 blender::bke::PaintRuntime::tex_mouse = float2(0.0f, 0.0f) |
Position of mouse, used to sample the texture.
Definition at line 102 of file BKE_paint_types.hh.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_tex_3d(), blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_invariants().