Blender V5.0
grease_pencil_paint_common.cc File Reference
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_crazyspace.hh"
#include "BKE_curves.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_paint.hh"
#include "BLI_array_utils.hh"
#include "BLI_index_mask.hh"
#include "BLI_math_vector.hh"
#include "BLI_task.hh"
#include "DEG_depsgraph_query.hh"
#include "DNA_brush_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "ED_grease_pencil.hh"
#include "ED_view3d.hh"
#include "grease_pencil_intern.hh"

Go to the source code of this file.

Namespaces

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

Functions

Vector< ed::greasepencil::MutableDrawingInfoblender::ed::sculpt_paint::greasepencil::get_drawings_for_stroke_operation (const bContext &C)
Vector< ed::greasepencil::MutableDrawingInfoblender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation (const bContext &C)
void blender::ed::sculpt_paint::greasepencil::init_brush (Brush &brush)
float blender::ed::sculpt_paint::greasepencil::brush_radius (const Paint &paint, const Brush &brush, float pressure)
float blender::ed::sculpt_paint::greasepencil::brush_point_influence (const Paint &paint, const Brush &brush, const float2 &co, const InputSample &sample, float multi_frame_falloff)
float blender::ed::sculpt_paint::greasepencil::closest_distance_to_surface_2d (const float2 pt, const Span< float2 > verts)
float blender::ed::sculpt_paint::greasepencil::brush_fill_influence (const Paint &paint, const Brush &brush, Span< float2 > fill_positions, const InputSample &sample, float multi_frame_falloff)
IndexMask blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask (const Paint &paint, const Brush &brush, const float2 &mouse_position, float pressure, float multi_frame_falloff, const IndexMask &selection, Span< float2 > view_positions, Vector< float > &influences, IndexMaskMemory &memory)
bool blender::ed::sculpt_paint::greasepencil::brush_using_vertex_color (const GpPaint *gp_paint, const Brush *brush)
bool blender::ed::sculpt_paint::greasepencil::is_brush_inverted (const Brush &brush, BrushStrokeMode stroke_mode)
DeltaProjectionFunc blender::ed::sculpt_paint::greasepencil::get_screen_projection_fn (const GreasePencilStrokeParams &params, const Object &object, const bke::greasepencil::Layer &layer)
float3 blender::ed::sculpt_paint::greasepencil::compute_orig_delta (const DeltaProjectionFunc &projection_fn, const bke::crazyspace::GeometryDeformation &deformation, int index, const float2 &screen_delta)
IndexMask blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation (const GreasePencilStrokeParams &params, bool use_selection_masking, IndexMaskMemory &memory)
IndexMask blender::ed::sculpt_paint::greasepencil::curve_mask_for_stroke_operation (const GreasePencilStrokeParams &params, bool use_selection_masking, IndexMaskMemory &memory)
IndexMask blender::ed::sculpt_paint::greasepencil::fill_mask_for_stroke_operation (const GreasePencilStrokeParams &params, bool use_selection_masking, IndexMaskMemory &memory)
bke::crazyspace::GeometryDeformation blender::ed::sculpt_paint::greasepencil::get_drawing_deformation (const GreasePencilStrokeParams &params)
Array< float2blender::ed::sculpt_paint::greasepencil::calculate_view_positions (const GreasePencilStrokeParams &params, const IndexMask &selection)
Array< floatblender::ed::sculpt_paint::greasepencil::calculate_view_radii (const GreasePencilStrokeParams &params, const IndexMask &selection)
bool blender::ed::sculpt_paint::greasepencil::do_vertex_color_points (const Brush &brush)
bool blender::ed::sculpt_paint::greasepencil::do_vertex_color_fill (const Brush &brush)