Blender  V3.3
Typedefs | Enumerations | Functions | Variables
sculpt_filter_color.c File Reference
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_hash.h"
#include "BLI_math.h"
#include "BLI_math_color_blend.h"
#include "BLI_task.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BKE_brush.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_mesh.h"
#include "BKE_mesh_mapping.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_pbvh.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "IMB_colormanagement.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "ED_object.h"
#include "ED_paint.h"
#include "ED_screen.h"
#include "ED_sculpt.h"
#include "paint_intern.h"
#include "sculpt_intern.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "UI_interface.h"
#include "bmesh.h"
#include <math.h>
#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef enum eSculptColorFilterTypes eSculptColorFilterTypes
 

Enumerations

enum  eSculptColorFilterTypes {
  COLOR_FILTER_FILL , COLOR_FILTER_HUE , COLOR_FILTER_SATURATION , COLOR_FILTER_VALUE ,
  COLOR_FILTER_BRIGHTNESS , COLOR_FILTER_CONTRAST , COLOR_FILTER_RED , COLOR_FILTER_GREEN ,
  COLOR_FILTER_BLUE , COLOR_FILTER_SMOOTH
}
 

Functions

static void color_filter_task_cb (void *__restrict userdata, const int n, const TaskParallelTLS *__restrict UNUSED(tls))
 
static void sculpt_color_presmooth_init (SculptSession *ss)
 
static int sculpt_color_filter_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int sculpt_color_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void SCULPT_OT_color_filter (struct wmOperatorType *ot)
 

Variables

static EnumPropertyItem prop_color_filter_types []
 

Typedef Documentation

◆ eSculptColorFilterTypes

Enumeration Type Documentation

◆ eSculptColorFilterTypes

Enumerator
COLOR_FILTER_FILL 
COLOR_FILTER_HUE 
COLOR_FILTER_SATURATION 
COLOR_FILTER_VALUE 
COLOR_FILTER_BRIGHTNESS 
COLOR_FILTER_CONTRAST 
COLOR_FILTER_RED 
COLOR_FILTER_GREEN 
COLOR_FILTER_BLUE 
COLOR_FILTER_SMOOTH 

Definition at line 56 of file sculpt_filter_color.c.

Function Documentation

◆ color_filter_task_cb()

static void color_filter_task_cb ( void *__restrict  userdata,
const int  n,
const TaskParallelTLS *__restrict   UNUSEDtls 
)
static

◆ sculpt_color_filter_invoke()

static int sculpt_color_filter_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ sculpt_color_filter_modal()

static int sculpt_color_filter_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ sculpt_color_presmooth_init()

static void sculpt_color_presmooth_init ( SculptSession ss)
static

◆ SCULPT_OT_color_filter()

void SCULPT_OT_color_filter ( struct wmOperatorType ot)

Variable Documentation

◆ prop_color_filter_types

EnumPropertyItem prop_color_filter_types[]
static
Initial value:
= {
{COLOR_FILTER_FILL, "FILL", 0, "Fill", "Fill with a specific color"},
{COLOR_FILTER_HUE, "HUE", 0, "Hue", "Change hue"},
{COLOR_FILTER_SATURATION, "SATURATION", 0, "Saturation", "Change saturation"},
{COLOR_FILTER_VALUE, "VALUE", 0, "Value", "Change value"},
{COLOR_FILTER_BRIGHTNESS, "BRIGHTNESS", 0, "Brightness", "Change brightness"},
{COLOR_FILTER_CONTRAST, "CONTRAST", 0, "Contrast", "Change contrast"},
{COLOR_FILTER_SMOOTH, "SMOOTH", 0, "Smooth", "Smooth colors"},
{COLOR_FILTER_RED, "RED", 0, "Red", "Change red channel"},
{COLOR_FILTER_GREEN, "GREEN", 0, "Green", "Change green channel"},
{COLOR_FILTER_BLUE, "BLUE", 0, "Blue", "Change blue channel"},
{0, NULL, 0, NULL, NULL},
}
@ COLOR_FILTER_HUE
@ COLOR_FILTER_BLUE
@ COLOR_FILTER_VALUE
@ COLOR_FILTER_GREEN
@ COLOR_FILTER_SMOOTH
@ COLOR_FILTER_RED
@ COLOR_FILTER_BRIGHTNESS
@ COLOR_FILTER_CONTRAST
@ COLOR_FILTER_SATURATION
@ COLOR_FILTER_FILL

Definition at line 69 of file sculpt_filter_color.c.

Referenced by SCULPT_OT_color_filter().