|
Blender V5.3
|
#include <paint_cursor.hh>
Public Attributes | |
| ARegion * | region = nullptr |
| wmWindow * | win = nullptr |
| wmWindowManager * | wm = nullptr |
| bScreen * | screen = nullptr |
| Depsgraph * | depsgraph = nullptr |
| Scene * | scene = nullptr |
| Object * | object = nullptr |
| Base * | base = nullptr |
| UnifiedPaintSettings * | ups = nullptr |
| Brush * | brush = nullptr |
| Paint * | paint = nullptr |
| PaintMode | mode = PaintMode::Invalid |
| ViewContext | vc = {} |
| Sculpt * | sd = nullptr |
| SculptSession * | ss = nullptr |
| int | prev_active_vert_index = -1 |
| bool | is_brush_active = false |
| bool | is_stroke_active = false |
| bool | is_cursor_over_mesh = false |
| float | radius = 0.0f |
| float3 | location = float3(0.0f) |
| float3 | scene_space_location = float3(0.0f) |
| float3 | normal = float3(0.0f) |
| float3 | outline_col = float3(0.0f) |
| float | outline_alpha = 0.0f |
| uint | pos = 0 |
| PaintCursorDrawingType | cursor_type = PaintCursorDrawingType::Cursor2D |
| bool | alpha_overlay_drawn = false |
| float | zoomx = 0.0f |
| int2 | mval = int2(0) |
| float2 | translation = float2(0.0f) |
| float2 | tilt = float2(0.0f) |
| float | final_radius = 0.0f |
| int | pixel_radius = 0 |
Definition at line 29 of file paint_cursor.hh.
| bool blender::ed::sculpt_paint::PaintCursorContext::alpha_overlay_drawn = false |
Definition at line 75 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), and blender::ed::sculpt_paint::paint_cursor_draw_3D_view_brush_cursor().
| Base* blender::ed::sculpt_paint::PaintCursorContext::base = nullptr |
Definition at line 37 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and blender::ed::sculpt_paint::paint_cursor_context_init().
Definition at line 39 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_update(), blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::get_active_vertex_position(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::object_space_radius_update(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_draw_3D_view_brush_cursor(), blender::ed::sculpt_paint::paint_cursor_is_brush_cursor_enabled(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_cursor(), blender::ed::sculpt_paint::paint_update_mouse_cursor(), blender::ed::sculpt_paint::pixel_radius_update(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| PaintCursorDrawingType blender::ed::sculpt_paint::PaintCursorContext::cursor_type = PaintCursorDrawingType::Cursor2D |
Definition at line 71 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_draw_cursor().
| Depsgraph* blender::ed::sculpt_paint::PaintCursorContext::depsgraph = nullptr |
Definition at line 34 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_update(), blender::ed::sculpt_paint::get_active_vertex_position(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| float blender::ed::sculpt_paint::PaintCursorContext::final_radius = 0.0f |
Definition at line 86 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), and blender::ed::sculpt_paint::paint_draw_legacy_3D_view_brush_cursor().
| bool blender::ed::sculpt_paint::PaintCursorContext::is_brush_active = false |
Whether the current tool is a brush. We can have a Brush * without this being true
Definition at line 54 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| bool blender::ed::sculpt_paint::PaintCursorContext::is_cursor_over_mesh = false |
Definition at line 56 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and blender::ed::sculpt_paint::pixel_radius_update().
| bool blender::ed::sculpt_paint::PaintCursorContext::is_stroke_active = false |
Definition at line 55 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_cursor_draw_3D_view_brush_cursor().
Definition at line 60 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_radius_update(), blender::ed::sculpt_paint::pixel_radius_update(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| PaintMode blender::ed::sculpt_paint::PaintCursorContext::mode = PaintMode::Invalid |
Definition at line 41 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::get_active_vertex_position(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_draw_3D_view_brush_cursor(), blender::ed::sculpt_paint::paint_cursor_is_brush_cursor_enabled(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor(), blender::ed::sculpt_paint::paint_draw_cursor(), blender::ed::sculpt_paint::paint_update_mouse_cursor(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 79 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::grease_pencil_eraser_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), and blender::ed::sculpt_paint::paint_cursor_context_init().
Definition at line 62 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), and blender::ed::sculpt_paint::mesh_cursor_update_and_init().
Definition at line 36 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::grease_pencil_cursor_draw(), and blender::ed::sculpt_paint::paint_cursor_context_init().
| float blender::ed::sculpt_paint::PaintCursorContext::outline_alpha = 0.0f |
Definition at line 66 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_legacy_3D_view_brush_cursor(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 65 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_legacy_3D_view_brush_cursor(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 40 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_radius_update(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_is_brush_cursor_enabled(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_update_mouse_cursor(), blender::ed::sculpt_paint::pixel_radius_update(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| int blender::ed::sculpt_paint::PaintCursorContext::pixel_radius = 0 |
| uint blender::ed::sculpt_paint::PaintCursorContext::pos = 0 |
Definition at line 69 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_pivot_draw(), blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::grease_pencil_eraser_draw(), blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_setup_2D_drawing(), blender::ed::sculpt_paint::paint_cursor_setup_3D_drawing(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_legacy_3D_view_brush_cursor(), blender::ed::sculpt_paint::pose_brush_origins_draw(), blender::ed::sculpt_paint::pose_brush_segments_draw(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| int blender::ed::sculpt_paint::PaintCursorContext::prev_active_vert_index = -1 |
Previous active vertex index , used to determine if the preview is updated for the pose brush.
Definition at line 51 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
| float blender::ed::sculpt_paint::PaintCursorContext::radius = 0.0f |
Definition at line 57 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_update(), blender::ed::sculpt_paint::cursor_space_overlays_draw(), blender::ed::sculpt_paint::main_inactive_cursor_draw(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::object_space_radius_update(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 30 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_pivot_draw(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::pose_brush_origins_draw(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 61 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and blender::ed::sculpt_paint::pixel_radius_update().
Definition at line 33 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_update_mouse_cursor().
Definition at line 45 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init(), and blender::ed::sculpt_paint::paint_cursor_context_init().
| SculptSession* blender::ed::sculpt_paint::PaintCursorContext::ss = nullptr |
Definition at line 46 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_pivot_draw(), blender::ed::sculpt_paint::boundary_preview_update(), blender::ed::sculpt_paint::get_active_vertex_position(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_draw_3D_view_brush_cursor(), blender::ed::sculpt_paint::pose_brush_origins_draw(), blender::ed::sculpt_paint::pose_brush_segments_draw(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 84 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), and blender::ed::sculpt_paint::paint_cursor_context_init().
Definition at line 82 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::inactive_cursor_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), and blender::ed::sculpt_paint::paint_draw_legacy_3D_view_brush_cursor().
| UnifiedPaintSettings* blender::ed::sculpt_paint::PaintCursorContext::ups = nullptr |
Definition at line 38 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init().
| ViewContext blender::ed::sculpt_paint::PaintCursorContext::vc = {} |
Definition at line 42 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::boundary_preview_pivot_draw(), blender::ed::sculpt_paint::boundary_preview_update(), blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::get_active_vertex_position(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), blender::ed::sculpt_paint::mesh_cursor_update_and_init(), blender::ed::sculpt_paint::object_space_overlays_draw(), blender::ed::sculpt_paint::object_space_radius_update(), blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_is_3d_view_navigating(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_draw_cursor(), blender::ed::sculpt_paint::pixel_radius_update(), blender::ed::sculpt_paint::pose_brush_origins_draw(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
Definition at line 31 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_draw_cursor(), and blender::ed::sculpt_paint::paint_update_mouse_cursor().
| wmWindowManager* blender::ed::sculpt_paint::PaintCursorContext::wm = nullptr |
Definition at line 32 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::mesh_cursor_active_draw(), blender::ed::sculpt_paint::mesh_cursor_inactive_draw(), and blender::ed::sculpt_paint::paint_cursor_context_init().
| float blender::ed::sculpt_paint::PaintCursorContext::zoomx = 0.0f |
Definition at line 77 of file paint_cursor.hh.
Referenced by blender::ed::sculpt_paint::paint_cursor_check_and_draw_alpha_overlays(), and blender::ed::sculpt_paint::paint_cursor_context_init().