Blender V5.3
paint_intern.hh File Reference
#include "BLI_index_mask_fwd.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rand.hh"
#include "BLI_span.hh"
#include "BKE_paint_types.hh"
#include "DNA_object_enums.h"
#include "DNA_scene_enums.h"
#include "DNA_scene_types.h"
#include "DNA_vec_types.h"
#include "DNA_windowmanager_enums.h"
#include "ED_view3d.hh"
#include <optional>

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::PaintSample
struct  blender::ed::sculpt_paint::PaintStroke
struct  blender::ed::sculpt_paint::PaintStroke::StrokeStep
class  blender::ed::sculpt_paint::PaintModeData
struct  blender::WPaintVGroupIndex
struct  blender::ImagePaintPartialRedraw
struct  blender::CurveMaskCache
 Caching structure for curve mask. More...
struct  blender::BlurKernel

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::pbvh
namespace  blender::ed
namespace  blender::ed::sculpt_paint
namespace  blender::ocio

Macros

#define PAINT_STROKE_MODAL_CANCEL   1
#define PAINT_CURVE_NUM_SEGMENTS   40

Enumerations

enum class  blender::BrushStrokeMode : int8_t { blender::Normal = 0 , blender::Invert = 1 }
enum class  blender::BrushSwitchMode : int8_t { blender::None = 0 , blender::Smooth = 1 , blender::Erase = 2 , blender::Mask = 3 }
enum  blender::eWPaintFlag { blender::WPAINT_ENSURE_MIRROR = (1 << 0) }

Functions

float2 blender::ed::sculpt_paint::paint_stroke_jitter_pos (Paint *paint, PaintMode mode, const Brush &brush, float pressure, BrushStrokeMode stroke_mode, float zoom_2d, const float2 &mval)
bool blender::ed::sculpt_paint::paint_space_stroke_enabled (const Brush &br, PaintMode mode)
bool blender::ed::sculpt_paint::paint_supports_dynamic_size (const Brush &br, PaintMode mode)
bool blender::ed::sculpt_paint::paint_supports_dynamic_tex_coords (const Brush &br, PaintMode mode)
bool blender::ed::sculpt_paint::paint_supports_smooth_stroke (const Brush &brush, PaintMode mode, BrushSwitchMode brush_switch_mode)
bool blender::ed::sculpt_paint::paint_supports_texture (PaintMode mode)
bool blender::ed::sculpt_paint::paint_brush_tool_poll (bContext *C)
bool blender::ed::sculpt_paint::paint_brush_tool_poll (const ScrArea *area, const ARegion *region, const Paint *paint, const Object *ob)
bool blender::ed::sculpt_paint::paint_brush_cursor_poll (bContext *C)
void blender::ed::sculpt_paint::BRUSH_OT_asset_activate (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_save_as (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_edit_metadata (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_load_preview (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_delete (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_save (wmOperatorType *ot)
void blender::ed::sculpt_paint::BRUSH_OT_asset_revert (wmOperatorType *ot)
void blender::paint_init_pivot (Object *ob, Scene *scene, Paint *paint)
int blender::ED_wpaint_mirror_vgroup_ensure (Object *ob, const int vgroup_active)
void * blender::paint_2d_new_stroke (bContext *C, wmOperator *op, const BrushStrokeMode mode)
void blender::paint_2d_redraw (const bContext *C, void *ps, bool final)
void blender::paint_2d_stroke_done (void *ps, wmPaintCursor *cursor)
void blender::paint_2d_stroke (void *ps, const float prev_mval[2], const float mval[2], const bool eraser, float pressure, float distance, float base_size)
void blender::paint_2d_bucket_fill (const bContext *C, const float color[3], Brush *br, const float mouse_init[2], const float mouse_final[2], void *ps)
void blender::paint_2d_gradient_fill (const bContext *C, Brush *br, const float mouse_init[2], const float mouse_final[2], void *ps)
void * blender::paint_proj_new_stroke (bContext *C, Object *ob, const float mouse[2], const BrushStrokeMode mode, const BrushSwitchMode brush_switch_mode)
void blender::paint_proj_stroke (const bContext *C, void *ps_handle_p, const float prev_pos[2], const float pos[2], const bool eraser, float pressure, float distance, float size)
void blender::paint_proj_redraw (const bContext *C, void *ps_handle_p, bool final)
void blender::paint_proj_stroke_done (void *ps_handle_p, wmPaintCursor *cursor)
void blender::ed::sculpt_paint::PAINT_OT_sample_color (wmOperatorType *ot)
void blender::PAINT_OT_project_image (wmOperatorType *ot)
void blender::PAINT_OT_image_from_view (wmOperatorType *ot)
void blender::PAINT_OT_image_paint (wmOperatorType *ot)
void blender::paint_curve_mask_cache_free_data (CurveMaskCache *curve_mask_cache)
void blender::paint_curve_mask_cache_update (CurveMaskCache *curve_mask_cache, const Brush *brush, const int diameter, const float radius, const float cursor_position[2])
void blender::SCULPT_OT_uv_sculpt_grab (wmOperatorType *ot)
void blender::SCULPT_OT_uv_sculpt_relax (wmOperatorType *ot)
void blender::SCULPT_OT_uv_sculpt_pinch (wmOperatorType *ot)
float blender::paint_calc_object_space_radius (const ViewContext &vc, const float3 &center, float pixel_radius)
bool blender::paint_get_tex_pixel (const MTex *mtex, float u, float v, ImagePool *pool, int thread, float *r_intensity, float r_rgba[4])
void blender::paint_stroke_operator_properties (wmOperatorType *ot)
void blender::PAINT_OT_face_select_linked (wmOperatorType *ot)
void blender::PAINT_OT_face_select_linked_pick (wmOperatorType *ot)
void blender::PAINT_OT_face_select_all (wmOperatorType *ot)
void blender::PAINT_OT_face_select_more (wmOperatorType *ot)
void blender::PAINT_OT_face_select_less (wmOperatorType *ot)
void blender::PAINT_OT_face_select_hide (wmOperatorType *ot)
void blender::PAINT_OT_face_select_loop (wmOperatorType *ot)
void blender::PAINT_OT_face_vert_reveal (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_all (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_ungrouped (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_hide (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_linked (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_linked_pick (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_more (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_less (wmOperatorType *ot)
void blender::PAINT_OT_vert_select_loop (wmOperatorType *ot)
bool blender::paint_curve_poll (bContext *C)
bool blender::ed::sculpt_paint::is_symmetry_iteration_valid (const char i, const char symm)
float3 blender::ed::sculpt_paint::symmetry_flip (const float3 &src, const ePaintSymmetryFlags symm)
void blender::PAINTCURVE_OT_new (wmOperatorType *ot)
void blender::PAINTCURVE_OT_add_point (wmOperatorType *ot)
void blender::PAINTCURVE_OT_delete_point (wmOperatorType *ot)
void blender::PAINTCURVE_OT_select (wmOperatorType *ot)
void blender::PAINTCURVE_OT_slide (wmOperatorType *ot)
void blender::PAINTCURVE_OT_draw (wmOperatorType *ot)
void blender::PAINTCURVE_OT_cursor (wmOperatorType *ot)
void blender::PALETTE_OT_new (wmOperatorType *ot)
void blender::PALETTE_OT_color_add (wmOperatorType *ot)
void blender::PALETTE_OT_color_delete (wmOperatorType *ot)
void blender::PALETTE_OT_extract_from_image (wmOperatorType *ot)
void blender::PALETTE_OT_sort (wmOperatorType *ot)
void blender::PALETTE_OT_color_move (wmOperatorType *ot)
void blender::PALETTE_OT_join (wmOperatorType *ot)
Toggle Weight Paint Operator
bool blender::weight_paint_poll (bContext *C)
bool blender::weight_paint_poll_ignore_tool (bContext *C)
bool blender::weight_paint_mode_poll (bContext *C)
bool blender::weight_paint_mode_region_view3d_poll (bContext *C)
void blender::PAINT_OT_weight_paint_toggle (wmOperatorType *ot)
Vertex Paint Mode Poll & Sampling
bool blender::vertex_paint_poll (bContext *C)
bool blender::vertex_paint_poll_ignore_tool (bContext *C)
bool blender::vertex_paint_mode_poll (bContext *C)
Weight Paint Operator
void blender::PAINT_OT_weight_paint (wmOperatorType *ot)
Weight Set Operator
void blender::PAINT_OT_weight_set (wmOperatorType *ot)
Interactive Weight Gradient Operator
void blender::PAINT_OT_weight_gradient (wmOperatorType *ot)
Toggle Vertex Paint Operator
void blender::PAINT_OT_vertex_paint_toggle (wmOperatorType *ot)
Vertex Paint Operator
void blender::PAINT_OT_vertex_paint (wmOperatorType *ot)
Weight Blending Modes
float blender::ED_wpaint_blend_tool (const int tool, const float weight, const float paintval, const float alpha)
Weight Paint Sanity Checks
bool blender::ED_wpaint_ensure_data (bContext *C, ReportList *reports, eWPaintFlag flag, WPaintVGroupIndex *vgroup_index)
bool blender::ED_wpaint_ensure_data (bContext *C, Main *bmain, Object *ob, ReportList *reports, eWPaintFlag flag, WPaintVGroupIndex *vgroup_index)
Set Vertex Colors Operator
void blender::PAINT_OT_vertex_color_set (wmOperatorType *ot)
Vertex Color from Weight Operator
void blender::PAINT_OT_vertex_color_from_weight (wmOperatorType *ot)
Smooth Vertex Colors Operator
void blender::PAINT_OT_vertex_color_smooth (wmOperatorType *ot)
Vertex Color Transformation Operators
void blender::PAINT_OT_vertex_color_brightness_contrast (wmOperatorType *ot)
void blender::PAINT_OT_vertex_color_hsv (wmOperatorType *ot)
void blender::PAINT_OT_vertex_color_invert (wmOperatorType *ot)
void blender::PAINT_OT_vertex_color_levels (wmOperatorType *ot)
Weight from Bones Operator
void blender::PAINT_OT_weight_from_bones (wmOperatorType *ot)
Sample Weight Operator
void blender::PAINT_OT_weight_sample (wmOperatorType *ot)
Weight Paint Sample Group Operator
void blender::PAINT_OT_weight_sample_group (wmOperatorType *ot)
Texture Paint Bucket Fill Operator
bool blender::image_texture_paint_poll (bContext *C)
bool blender::facemask_paint_poll (bContext *C)
bool blender::vert_paint_poll (bContext *C)
bool blender::mask_paint_poll (bContext *C)
Image Paint Poll
bool blender::image_paint_poll_ignore_tool (bContext *C)
Image Paint Tile Utilities (Partial Update)
void blender::imapaint_image_update (ImBuf *ibuf)
ImagePaintPartialRedraw * blender::get_imapaintpartial ()
void blender::set_imapaintpartial (ImagePaintPartialRedraw *ippr)
void blender::imapaint_region_tiles (ImBuf *ibuf, int x, int y, int w, int h, int *tx, int *ty, int *tw, int *th)
Paint Operator
bool blender::get_imapaint_zoom (bContext *C, float *zoomx, float *zoomy)
void blender::paint_brush_color_get (const Paint *paint, Brush *br, std::optional< float3 > &initial_hsv_jitter, bool invert, float distance, float pressure, float r_color[3])
bool blender::paint_use_opacity_masking (const Paint *paint, const Brush *brush)
void blender::paint_brush_init_tex (Brush *brush)
void blender::paint_brush_exit_tex (Brush *brush)
Grab Clone Operator
void blender::PAINT_OT_grab_clone (wmOperatorType *ot)
Brush Color Flip Operator
void blender::PAINT_OT_brush_colors_flip (wmOperatorType *ot)
Texture Paint Toggle Operator
void blender::PAINT_OT_texture_paint_toggle (wmOperatorType *ot)
Add Texture Paint Slot Operator
void blender::PAINT_OT_add_texture_paint_slot (wmOperatorType *ot)
Add Simple UVs Operator
void blender::PAINT_OT_add_simple_uvs (wmOperatorType *ot)
Image Paint Blur
BlurKernel * blender::paint_new_blur_kernel (Brush *br, bool proj)
void blender::paint_delete_blur_kernel (BlurKernel *kernel)

Macro Definition Documentation

◆ PAINT_CURVE_NUM_SEGMENTS

#define PAINT_CURVE_NUM_SEGMENTS   40

Definition at line 634 of file paint_intern.hh.

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

◆ PAINT_STROKE_MODAL_CANCEL

#define PAINT_STROKE_MODAL_CANCEL   1