Blender V5.3
paint_stroke.cc File Reference
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <fmt/format.h>
#include "MEM_guardedalloc.h"
#include "BLI_math_matrix.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rand.hh"
#include "BLI_utildefines.hh"
#include "DNA_brush_types.h"
#include "DNA_curve_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "PRF_profile.hh"
#include "RNA_access.hh"
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_global.hh"
#include "BKE_image.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "GPU_immediate.hh"
#include "GPU_state.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "IMB_imbuf_types.hh"
#include "paint_intern.hh"
#include "mesh/sculpt_cloth.hh"
#include "mesh/sculpt_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::sculpt_paint

Functions

static void blender::ed::sculpt_paint::paint_draw_smooth_cursor (bContext *C, const int2 &xy, const float2 &, void *customdata)
static void blender::ed::sculpt_paint::paint_draw_line_cursor (bContext *, const int2 &xy, const float2 &, void *customdata)
static bool blender::ed::sculpt_paint::paint_brush_type_require_location (const Brush &brush, const PaintMode mode)
static bool blender::ed::sculpt_paint::paint_stroke_use_scene_spacing (const Brush &brush, const PaintMode mode)
static bool blender::ed::sculpt_paint::paint_brush_type_raycast_original (const Brush &brush, PaintMode)
static bool blender::ed::sculpt_paint::paint_brush_type_require_inbetween_mouse_events (const Brush &brush, const PaintMode mode)
static bool blender::ed::sculpt_paint::paint_stroke_use_dash (const Brush &brush)
static bool blender::ed::sculpt_paint::paint_stroke_use_jitter (const PaintMode mode, const Brush &brush, const bool invert)
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)
static bool blender::ed::sculpt_paint::paint_smooth_stroke (const Brush &brush, const PaintSample *sample, const PaintMode mode, const BrushSwitchMode brush_switch_mode, float zoom_2d, float2 last_mouse_position, float last_pressure, float2 &r_mouse, float &r_pressure)
static float blender::ed::sculpt_paint::paint_space_stroke_spacing (const ViewContext &vc, const Paint *paint, const PaintMode paint_mode, const Brush *brush, float3 last_world_space_position, float zoom_2d, const float size_factor, const float pressure)
static float blender::ed::sculpt_paint::paint_space_stroke_spacing_no_pressure (const ViewContext &vc, const Paint *paint, const PaintMode paint_mode, const Brush *brush, float3 last_world_space_position, float zoom_2d)
static float blender::ed::sculpt_paint::paint_stroke_overlapped_curve (const Brush &br, const float x, const float spacing)
static float blender::ed::sculpt_paint::paint_stroke_integrate_overlap (const Brush &br, const float factor)
static float blender::ed::sculpt_paint::paint_space_stroke_spacing_variable (ViewContext &vc, const Paint *paint, const PaintMode paint_mode, const Brush *brush, float3 last_world_space_position, float zoom_2d, const float last_pressure, const float pressure, const float pressure_delta, const float length)
static bool blender::ed::sculpt_paint::print_pressure_status_enabled ()
static bool blender::ed::sculpt_paint::curves_sculpt_brush_uses_spacing (const eBrushCurvesSculptType tool)
bool blender::ed::sculpt_paint::paint_space_stroke_enabled (const Brush &br, PaintMode mode)
static bool blender::ed::sculpt_paint::sculpt_is_grab_tool (const Brush &br)
bool blender::ed::sculpt_paint::paint_supports_dynamic_size (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_supports_dynamic_tex_coords (const Brush &br, PaintMode mode)
static void blender::ed::sculpt_paint::paint_stroke_line_constrain (float2 last_mouse_position, float2 &constrained_pos, float2 &mouse)
static const bToolRef * blender::ed::sculpt_paint::brush_tool_get (const ScrArea *area, const ARegion *region)
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)