Blender V5.3
blender::ed::sculpt_paint::PaintCursorContext Struct Reference

#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

Detailed Description

Definition at line 29 of file paint_cursor.hh.

Member Data Documentation

◆ alpha_overlay_drawn

bool blender::ed::sculpt_paint::PaintCursorContext::alpha_overlay_drawn = false

◆ base

Base* blender::ed::sculpt_paint::PaintCursorContext::base = nullptr

◆ brush

◆ cursor_type

PaintCursorDrawingType blender::ed::sculpt_paint::PaintCursorContext::cursor_type = PaintCursorDrawingType::Cursor2D

◆ depsgraph

◆ final_radius

◆ is_brush_active

◆ is_cursor_over_mesh

bool blender::ed::sculpt_paint::PaintCursorContext::is_cursor_over_mesh = false

◆ is_stroke_active

bool blender::ed::sculpt_paint::PaintCursorContext::is_stroke_active = false

◆ location

◆ mode

◆ mval

◆ normal

float3 blender::ed::sculpt_paint::PaintCursorContext::normal = float3(0.0f)

◆ object

Object* blender::ed::sculpt_paint::PaintCursorContext::object = nullptr

◆ outline_alpha

◆ outline_col

◆ paint

◆ pixel_radius

◆ pos

◆ prev_active_vert_index

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().

◆ radius

◆ region

◆ scene

◆ scene_space_location

float3 blender::ed::sculpt_paint::PaintCursorContext::scene_space_location = float3(0.0f)

◆ screen

bScreen* blender::ed::sculpt_paint::PaintCursorContext::screen = nullptr

◆ sd

Sculpt* blender::ed::sculpt_paint::PaintCursorContext::sd = nullptr

◆ ss

◆ tilt

float2 blender::ed::sculpt_paint::PaintCursorContext::tilt = float2(0.0f)

◆ translation

◆ ups

UnifiedPaintSettings* blender::ed::sculpt_paint::PaintCursorContext::ups = nullptr

◆ vc

◆ win

◆ wm

◆ zoomx

float blender::ed::sculpt_paint::PaintCursorContext::zoomx = 0.0f

The documentation for this struct was generated from the following file: