Blender V5.0
sculpt_filter_color.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_math_color.h"
#include "BLI_math_color_blend.h"
#include "BLI_math_vector.hh"
#include "BLT_translation.hh"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_mesh.hh"
#include "BKE_paint.hh"
#include "BKE_paint_bvh.hh"
#include "IMB_colormanagement.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_paint.hh"
#include "mesh_brush_common.hh"
#include "sculpt_automask.hh"
#include "sculpt_color.hh"
#include "sculpt_filter.hh"
#include "sculpt_intern.hh"
#include "sculpt_smooth.hh"
#include "sculpt_undo.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include <cmath>

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::color::LocalData

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::sculpt_paint
namespace  blender::ed::sculpt_paint::color

Enumerations

enum class  blender::ed::sculpt_paint::color::FilterType {
  blender::ed::sculpt_paint::color::Fill = 0 , blender::ed::sculpt_paint::color::Hue , blender::ed::sculpt_paint::color::Saturation , blender::ed::sculpt_paint::color::Value ,
  blender::ed::sculpt_paint::color::Brightness , blender::ed::sculpt_paint::color::Contrast , blender::ed::sculpt_paint::color::Red , blender::ed::sculpt_paint::color::Green ,
  blender::ed::sculpt_paint::color::Blue , blender::ed::sculpt_paint::color::Smooth
}

Functions

static BLI_NOINLINE void blender::ed::sculpt_paint::color::clamp_factors (const MutableSpan< float > factors, const float min, const float max)
static void blender::ed::sculpt_paint::color::color_filter_task (const Depsgraph &depsgraph, Object &ob, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const FilterType mode, const float filter_strength, const float *filter_fill_color, const bke::pbvh::MeshNode &node, LocalData &tls, bke::GSpanAttributeWriter &color_attribute)
static void blender::ed::sculpt_paint::color::sculpt_color_presmooth_init (const Mesh &mesh, Object &object)
static void blender::ed::sculpt_paint::color::sculpt_color_filter_apply (bContext *C, wmOperator *op, Object &ob)
static void blender::ed::sculpt_paint::color::sculpt_color_filter_end (bContext *C, Object &ob)
static wmOperatorStatus blender::ed::sculpt_paint::color::sculpt_color_filter_modal (bContext *C, wmOperator *op, const wmEvent *event)
static int blender::ed::sculpt_paint::color::sculpt_color_filter_init (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::sculpt_paint::color::sculpt_color_filter_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::sculpt_paint::color::sculpt_color_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static std::string blender::ed::sculpt_paint::color::sculpt_color_filter_get_name (wmOperatorType *, PointerRNA *ptr)
static void blender::ed::sculpt_paint::color::sculpt_color_filter_ui (bContext *, wmOperator *op)
void blender::ed::sculpt_paint::color::SCULPT_OT_color_filter (wmOperatorType *ot)

Variables

static const float blender::ed::sculpt_paint::color::fill_filter_default_color [4] = {1.0f, 1.0f, 1.0f, 1.0f}
static EnumPropertyItem blender::ed::sculpt_paint::color::prop_color_filter_types []