Blender  V2.93
Classes | Functions
paint_vertex_color_ops.c File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_math_base.h"
#include "BLI_math_color.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_mesh.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "paint_intern.h"

Go to the source code of this file.

Classes

struct  VPaintTx_BrightContrastData
 
struct  VPaintTx_HueSatData
 
struct  VPaintTx_LevelsData
 

Functions

static bool vertex_weight_paint_mode_poll (bContext *C)
 
static void tag_object_after_update (Object *object)
 
Set Vertex Colors Operator
static bool vertex_color_set (Object *ob, uint paintcol)
 
static int vertex_color_set_exec (bContext *C, wmOperator *UNUSED(op))
 
void PAINT_OT_vertex_color_set (wmOperatorType *ot)
 
Vertex Color from Weight Operator
static bool vertex_paint_from_weight (Object *ob)
 
static int vertex_paint_from_weight_exec (bContext *C, wmOperator *UNUSED(op))
 
void PAINT_OT_vertex_color_from_weight (wmOperatorType *ot)
 
Smooth Vertex Colors Operator
static void vertex_color_smooth_looptag (Mesh *me, const bool *mlooptag)
 
static bool vertex_color_smooth (Object *ob)
 
static int vertex_color_smooth_exec (bContext *C, wmOperator *UNUSED(op))
 
void PAINT_OT_vertex_color_smooth (wmOperatorType *ot)
 
Vertex Color Transformation Operators
static void vpaint_tx_brightness_contrast (const float col[3], const void *user_data, float r_col[3])
 
static int vertex_color_brightness_contrast_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_brightness_contrast (wmOperatorType *ot)
 
static void vpaint_tx_hsv (const float col[3], const void *user_data, float r_col[3])
 
static int vertex_color_hsv_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_hsv (wmOperatorType *ot)
 
static void vpaint_tx_invert (const float col[3], const void *UNUSED(user_data), float r_col[3])
 
static int vertex_color_invert_exec (bContext *C, wmOperator *UNUSED(op))
 
void PAINT_OT_vertex_color_invert (wmOperatorType *ot)
 
static void vpaint_tx_levels (const float col[3], const void *user_data, float r_col[3])
 
static int vertex_color_levels_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_levels (wmOperatorType *ot)
 

Function Documentation

◆ PAINT_OT_vertex_color_brightness_contrast()

void PAINT_OT_vertex_color_brightness_contrast ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_from_weight()

void PAINT_OT_vertex_color_from_weight ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_hsv()

void PAINT_OT_vertex_color_hsv ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_invert()

void PAINT_OT_vertex_color_invert ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_levels()

void PAINT_OT_vertex_color_levels ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_set()

void PAINT_OT_vertex_color_set ( wmOperatorType ot)

◆ PAINT_OT_vertex_color_smooth()

void PAINT_OT_vertex_color_smooth ( wmOperatorType ot)

◆ tag_object_after_update()

static void tag_object_after_update ( Object object)
static

◆ vertex_color_brightness_contrast_exec()

static int vertex_color_brightness_contrast_exec ( bContext C,
wmOperator op 
)
static

◆ vertex_color_hsv_exec()

static int vertex_color_hsv_exec ( bContext C,
wmOperator op 
)
static

◆ vertex_color_invert_exec()

static int vertex_color_invert_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ vertex_color_levels_exec()

static int vertex_color_levels_exec ( bContext C,
wmOperator op 
)
static

◆ vertex_color_set()

static bool vertex_color_set ( Object ob,
uint  paintcol 
)
static

◆ vertex_color_set_exec()

static int vertex_color_set_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ vertex_color_smooth()

static bool vertex_color_smooth ( Object ob)
static

◆ vertex_color_smooth_exec()

static int vertex_color_smooth_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ vertex_color_smooth_looptag()

static void vertex_color_smooth_looptag ( Mesh me,
const bool *  mlooptag 
)
static

◆ vertex_paint_from_weight()

static bool vertex_paint_from_weight ( Object ob)
static

◆ vertex_paint_from_weight_exec()

static int vertex_paint_from_weight_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ vertex_weight_paint_mode_poll()

static bool vertex_weight_paint_mode_poll ( bContext C)
static

◆ vpaint_tx_brightness_contrast()

static void vpaint_tx_brightness_contrast ( const float  col[3],
const void *  user_data,
float  r_col[3] 
)
static

Definition at line 349 of file paint_vertex_color_ops.c.

References col, data, and user_data.

Referenced by vertex_color_brightness_contrast_exec().

◆ vpaint_tx_hsv()

static void vpaint_tx_hsv ( const float  col[3],
const void *  user_data,
float  r_col[3] 
)
static

Definition at line 428 of file paint_vertex_color_ops.c.

References col, data, hsv_to_rgb_v(), rgb_to_hsv_v(), and user_data.

Referenced by vertex_color_hsv_exec().

◆ vpaint_tx_invert()

static void vpaint_tx_invert ( const float  col[3],
const void *  UNUSEDuser_data,
float  r_col[3] 
)
static

Definition at line 484 of file paint_vertex_color_ops.c.

References col.

Referenced by vertex_color_invert_exec().

◆ vpaint_tx_levels()

static void vpaint_tx_levels ( const float  col[3],
const void *  user_data,
float  r_col[3] 
)
static

Definition at line 522 of file paint_vertex_color_ops.c.

References col, data, and user_data.

Referenced by vertex_color_levels_exec().