Blender V4.3
grease_pencil_paint.cc File Reference
#include "BKE_action.hh"
#include "BKE_attribute.hh"
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_curves.hh"
#include "BKE_deform.hh"
#include "BKE_geometry_set.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_grease_pencil_vertex_groups.hh"
#include "BKE_material.h"
#include "BKE_paint.hh"
#include "BKE_scene.hh"
#include "BLI_bounds.hh"
#include "BLI_color.hh"
#include "BLI_length_parameterize.hh"
#include "BLI_math_base.hh"
#include "BLI_math_color.h"
#include "BLI_math_geom.h"
#include "BLI_noise.hh"
#include "BLI_rand.hh"
#include "BLI_rect.h"
#include "BLI_time.h"
#include "DEG_depsgraph_query.hh"
#include "DNA_brush_enums.h"
#include "DNA_material_types.h"
#include "DNA_modifier_types.h"
#include "DNA_scene_types.h"
#include "ED_curves.hh"
#include "ED_grease_pencil.hh"
#include "ED_view3d.hh"
#include "GEO_join_geometries.hh"
#include "GEO_simplify_curves.hh"
#include "GEO_smooth_curves.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "grease_pencil_intern.hh"
#include <optional>

Go to the source code of this file.

Classes

class  blender::ed::sculpt_paint::greasepencil::PaintOperation
 
struct  blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 
namespace  blender::ed::sculpt_paint::greasepencil
 

Functions

static float blender::ed::sculpt_paint::greasepencil::brush_radius_to_pixel_radius (const RegionView3D *rv3d, const Brush *brush, const float3 pos)
 
template<typename T >
static void blender::ed::sculpt_paint::greasepencil::linear_interpolation (const T &a, const T &b, MutableSpan< T > dst, const bool include_first_point)
 
static float2 blender::ed::sculpt_paint::greasepencil::arithmetic_mean (Span< float2 > values)
 
static Array< float2blender::ed::sculpt_paint::greasepencil::sample_curve_2d (Span< float2 > positions, const int64_t resolution)
 
static void blender::ed::sculpt_paint::greasepencil::morph_points_to_curve (Span< float2 > src, Span< float2 > target, MutableSpan< float2 > dst)
 
static void blender::ed::sculpt_paint::greasepencil::create_blank_curve (bke::CurvesGeometry &curves, const bool on_back)
 
static void blender::ed::sculpt_paint::greasepencil::extend_curve (bke::CurvesGeometry &curves, const bool on_back, const int new_points_num)
 
static void blender::ed::sculpt_paint::greasepencil::smooth_stroke (bke::greasepencil::Drawing &drawing, const float influence, const int iterations, const int active_curve)
 
static void blender::ed::sculpt_paint::greasepencil::simplify_stroke (bke::greasepencil::Drawing &drawing, const float epsilon, const int active_curve)
 
static void blender::ed::sculpt_paint::greasepencil::trim_stroke_ends (bke::greasepencil::Drawing &drawing, const int active_curve, const bool on_back)
 
static void blender::ed::sculpt_paint::greasepencil::outline_stroke (bke::greasepencil::Drawing &drawing, const int active_curve, const float4x4 &viewmat, const ed::greasepencil::DrawingPlacement &placement, const float outline_radius, const int material_index, const bool on_back)
 
static int blender::ed::sculpt_paint::greasepencil::trim_end_points (bke::greasepencil::Drawing &drawing, const float epsilon, const bool on_back, const int active_curve)
 
static void blender::ed::sculpt_paint::greasepencil::deselect_stroke (const bContext &C, bke::greasepencil::Drawing &drawing, const int active_curve)
 
static void blender::ed::sculpt_paint::greasepencil::process_stroke_weights (const Scene &scene, const Object &object, bke::greasepencil::Drawing &drawing, const int active_curve)
 
std::unique_ptr< GreasePencilStrokeOperationblender::ed::sculpt_paint::greasepencil::new_paint_operation ()