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

#include <BKE_paint_types.hh>

Inherits blender::blender::NonCopyable, and blender::blender::NonMovable.

Public Member Functions

 PaintRuntime ()
 ~PaintRuntime ()
Public Member Functions inherited from blender::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::blender::NonMovable
 NonMovable (NonMovable &&other)=delete
NonMovable & operator= (NonMovable &&other)=delete
 NonMovable ()=default
 NonMovable (const NonMovable &other)=default
NonMovable & operator= (const NonMovable &other)=default

Public Attributes

bool initialized = false
uint16_t ob_mode = 0
paint::AssetCategory asset_category = paint::AssetCategory::Invalid
AssetWeakReference * previous_active_brush_reference = nullptr
float2 last_rake = float2(0.0f, 0.0f)
float last_rake_angle = 0.0f
int last_stroke_valid = false
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 stroke_active = false
float3 last_location = float3(0.0f, 0.0f, 0.0f)
bool last_hit = false
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
float2 tex_mouse = float2(0.0f, 0.0f)
float2 mask_tex_mouse = float2(0.0f, 0.0f)
bool do_linear_conversion = false
const ocio::ColorSpace * colorspace = nullptr
void * paint_cursor = nullptr
paint::eOverlayControlFlags overlay_flags = paint::eOverlayControlFlags{}
std::unique_ptr< paint::TexSnapshot > primary_snap
std::unique_ptr< paint::TexSnapshot > secondary_snap
std::unique_ptr< paint::CursorSnapshot > cursor_snap

Detailed Description

Definition at line 100 of file BKE_paint_types.hh.

Constructor & Destructor Documentation

◆ PaintRuntime()

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

References PaintRuntime().

Referenced by PaintRuntime().

◆ ~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

◆ asset_category

paint::AssetCategory blender::bke::PaintRuntime::asset_category = paint::AssetCategory::Invalid

Definition at line 103 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_copy().

◆ 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 118 of file BKE_paint_types.hh.

Referenced by blender::BKE_brush_sample_tex_3d(), blender::BKE_paint_calculate_rake_rotation(), blender::BKE_paint_update_brush_rake_rotation(), blender::brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), blender::ed::sculpt_paint::stroke_cache_update(), and blender::ed::sculpt_paint::update_brush_local_mat().

◆ brush_rotation_sec

◆ colorspace

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

◆ cursor_snap

std::unique_ptr<paint::CursorSnapshot> blender::bke::PaintRuntime::cursor_snap

Definition at line 174 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_copy().

◆ do_linear_conversion

bool blender::bke::PaintRuntime::do_linear_conversion = false

ColorSpace cache to avoid locking up during sampling.

Definition at line 164 of file BKE_paint_types.hh.

Referenced by blender::BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::PaintStroke::PaintStroke().

◆ draw_anchored

◆ initial_pixel_radius

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

Definition at line 151 of file BKE_paint_types.hh.

Referenced by blender::ed::sculpt_paint::stroke_cache_update().

◆ initialized

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

Definition at line 101 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_copy().

◆ last_hit

bool blender::bke::PaintRuntime::last_hit = false

◆ last_location

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 141 of file BKE_paint_types.hh.

Referenced by blender::ed::sculpt_paint::mesh_cursor_update_and_init().

◆ last_rake

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

◆ last_rake_angle

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

Definition at line 107 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_calculate_rake_rotation().

◆ last_stroke_valid

◆ mask_tex_mouse

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

Position of mouse, used to sample the mask texture.

Definition at line 161 of file BKE_paint_types.hh.

Referenced by blender::BKE_brush_randomize_texture_coords(), and blender::BKE_brush_sample_masktex().

◆ ob_mode

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

◆ overlap_factor

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

◆ overlay_flags

paint::eOverlayControlFlags blender::bke::PaintRuntime::overlay_flags = paint::eOverlayControlFlags{}

Definition at line 170 of file BKE_paint_types.hh.

◆ paint_cursor

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

WM Paint cursor.

Definition at line 168 of file BKE_paint_types.hh.

Referenced by blender::toggle_paint_cursor().

◆ 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 104 of file BKE_paint_types.hh.

Referenced by ~PaintRuntime().

◆ primary_snap

std::unique_ptr<paint::TexSnapshot> blender::bke::PaintRuntime::primary_snap

Definition at line 172 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_copy().

◆ secondary_snap

std::unique_ptr<paint::TexSnapshot> blender::bke::PaintRuntime::secondary_snap

Definition at line 173 of file BKE_paint_types.hh.

Referenced by blender::BKE_paint_copy().

◆ size_pressure_value

◆ start_pixel_radius

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

◆ stroke_active

◆ tex_mouse

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

Position of mouse, used to sample the texture.

Definition at line 158 of file BKE_paint_types.hh.

Referenced by blender::BKE_brush_randomize_texture_coords(), and blender::BKE_brush_sample_tex_3d().


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