Blender  V3.3
paint_vertex_color_ops.cc 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_array.hh"
#include "BLI_index_mask_ops.hh"
#include "BLI_math_base.h"
#include "BLI_math_color.h"
#include "BLI_vector.hh"
#include "BKE_attribute_math.hh"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_geometry_set.hh"
#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.

Functions

Internal Utility Functions
static bool vertex_weight_paint_mode_poll (bContext *C)
 
static void tag_object_after_update (Object *object)
 
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 IndexMask get_selected_indices (const Mesh &mesh, const eAttrDomain domain, Vector< int64_t > &indices)
 
static void face_corner_color_equalize_vertices (Mesh &mesh, const IndexMask selection)
 
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
template<typename TransformFn >
static bool transform_active_color (Mesh &mesh, const TransformFn &transform_fn)
 
static int vertex_color_brightness_contrast_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_brightness_contrast (wmOperatorType *ot)
 
static int vertex_color_hsv_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_hsv (wmOperatorType *ot)
 
static int vertex_color_invert_exec (bContext *C, wmOperator *UNUSED(op))
 
void PAINT_OT_vertex_color_invert (wmOperatorType *ot)
 
static int vertex_color_levels_exec (bContext *C, wmOperator *op)
 
void PAINT_OT_vertex_color_levels (wmOperatorType *ot)
 

Function Documentation

◆ face_corner_color_equalize_vertices()

static void face_corner_color_equalize_vertices ( Mesh mesh,
const IndexMask  selection 
)
static

◆ get_selected_indices()

static IndexMask get_selected_indices ( const Mesh mesh,
const eAttrDomain  domain,
Vector< int64_t > &  indices 
)
static

◆ 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_smooth()

void PAINT_OT_vertex_color_smooth ( wmOperatorType ot)

◆ tag_object_after_update()

static void tag_object_after_update ( Object object)
static

◆ transform_active_color()

template<typename TransformFn >
static bool transform_active_color ( Mesh mesh,
const TransformFn &  transform_fn 
)
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_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_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