Blender V5.0
blender::bke::PaintRuntime Struct Reference

#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
NonCopyableoperator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyableoperator= (NonCopyable &&other)=default
Public Member Functions inherited from blender::NonMovable
 NonMovable (NonMovable &&other)=delete
NonMovableoperator= (NonMovable &&other)=delete
 NonMovable ()=default
 NonMovable (const NonMovable &other)=default
NonMovableoperator= (const NonMovable &other)=default

Public Attributes

bool initialized = false
uint16_t ob_mode = 0
PaintMode paint_mode = PaintMode::Invalid
AssetWeakReferenceprevious_active_brush_reference = nullptr
blender::float2 last_rake = float2(0.0f, 0.0f)
float last_rake_angle = 0.0f
int last_stroke_valid = false
blender::float3 average_stroke_accum = float3(0.0f, 0.0f, 0.0f)
int average_stroke_counter = 0
float brush_rotation = 0.0f
float brush_rotation_sec = 0.0f
bool draw_anchored = false
int anchored_size = 0
float overlap_factor = 0.0f
bool draw_inverted = false
bool stroke_active = false
blender::float3 last_location = float3(0.0f, 0.0f, 0.0f)
bool last_hit = false
blender::float2 anchored_initial_mouse = float2(0.0f, 0.0f)
float pixel_radius = 0.0f
float initial_pixel_radius = 0.0f
float start_pixel_radius = 0.0f
float size_pressure_value = 0.0f
blender::float2 tex_mouse = float2(0.0f, 0.0f)
blender::float2 mask_tex_mouse = float2(0.0f, 0.0f)
bool do_linear_conversion = false
const blender::ocio::ColorSpacecolorspace = nullptr
void * paint_cursor = nullptr

Detailed Description

Definition at line 44 of file BKE_paint_types.hh.

Constructor & Destructor Documentation

◆ PaintRuntime()

blender::bke::PaintRuntime::PaintRuntime ( )
default

◆ ~PaintRuntime()

blender::bke::PaintRuntime::~PaintRuntime ( )

Definition at line 17 of file paint_runtime.cc.

References previous_active_brush_reference.

Member Data Documentation

◆ anchored_initial_mouse

◆ anchored_size

◆ average_stroke_accum

◆ average_stroke_counter

◆ brush_rotation

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

◆ brush_rotation_sec

◆ colorspace

const blender::ocio::ColorSpace* blender::bke::PaintRuntime::colorspace = nullptr

◆ do_linear_conversion

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

◆ draw_anchored

◆ draw_inverted

◆ initial_pixel_radius

float blender::bke::PaintRuntime::initial_pixel_radius = 0.0f

◆ initialized

bool blender::bke::PaintRuntime::initialized = false

Definition at line 45 of file BKE_paint_types.hh.

◆ last_hit

◆ last_location

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

◆ last_rake

◆ last_rake_angle

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

◆ last_stroke_valid

◆ mask_tex_mouse

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

◆ ob_mode

uint16_t blender::bke::PaintRuntime::ob_mode = 0

Definition at line 46 of file BKE_paint_types.hh.

◆ overlap_factor

float blender::bke::PaintRuntime::overlap_factor = 0.0f

◆ paint_cursor

void* blender::bke::PaintRuntime::paint_cursor = nullptr

WM Paint cursor.

Definition at line 112 of file BKE_paint_types.hh.

◆ paint_mode

PaintMode blender::bke::PaintRuntime::paint_mode = PaintMode::Invalid

Definition at line 47 of file BKE_paint_types.hh.

◆ pixel_radius

float blender::bke::PaintRuntime::pixel_radius = 0.0f

◆ previous_active_brush_reference

AssetWeakReference* blender::bke::PaintRuntime::previous_active_brush_reference = nullptr

Definition at line 48 of file BKE_paint_types.hh.

Referenced by ~PaintRuntime().

◆ size_pressure_value

◆ start_pixel_radius

float blender::bke::PaintRuntime::start_pixel_radius = 0.0f

◆ stroke_active

◆ tex_mouse

blender::float2 blender::bke::PaintRuntime::tex_mouse = float2(0.0f, 0.0f)

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