|
Blender
V2.93
|
#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 |
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 399 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, max, min, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_property_ui_range(), wmOperatorType::srna, vertex_color_brightness_contrast_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_from_weight | ( | wmOperatorType * | ot | ) |
Definition at line 183 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_paint_from_weight_exec(), and vertex_weight_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_hsv | ( | wmOperatorType * | ot | ) |
Definition at line 464 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_hsv_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_invert | ( | wmOperatorType * | ot | ) |
Definition at line 502 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_invert_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_levels | ( | wmOperatorType * | ot | ) |
Definition at line 546 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_set | ( | wmOperatorType * | ot | ) |
Definition at line 118 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_set_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 322 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_smooth_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 55 of file paint_vertex_color_ops.c.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BLI_assert, DEG_id_tag_update(), Mesh::id, ID_RECALC_COPY_ON_WRITE, mesh, OB_MESH, and Object::type.
Referenced by vertex_color_set(), vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 360 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), ED_vpaint_color_transform(), VPaintTx_BrightContrastData::gain, max_ff(), NC_OBJECT, ND_DRAW, VPaintTx_BrightContrastData::offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), user_data, vpaint_tx_brightness_contrast(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 447 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), ED_vpaint_color_transform(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), user_data, vpaint_tx_hsv(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_hsv().
|
static |
Definition at line 491 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), ED_vpaint_color_transform(), NC_OBJECT, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, vpaint_tx_invert(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 530 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), ED_vpaint_color_transform(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), user_data, vpaint_tx_levels(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels().
Definition at line 68 of file paint_vertex_color_ops.c.
References BKE_mesh_from_object(), BKE_mesh_tessface_clear(), ED_mesh_color_ensure(), Mesh::editflag, MVert::flag, MPoly::flag, MPoly::loopstart, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, ME_FACE_SEL, Mesh::mloop, Mesh::mloopcol, Mesh::mpoly, Mesh::mvert, NULL, SELECT, tag_object_after_update(), Mesh::totpoly, and MLoop::v.
Referenced by vertex_color_set_exec().
|
static |
Definition at line 105 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), CTX_data_scene(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, Scene::toolsettings, vertex_color_set(), ToolSettings::vpaint, vpaint_get_current_col(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_set().
|
static |
Definition at line 264 of file paint_vertex_color_ops.c.
References BKE_mesh_from_object(), BKE_mesh_tessface_clear(), ED_mesh_color_ensure(), Mesh::editflag, MVert::flag, MPoly::flag, MPoly::loopstart, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, ME_FACE_SEL, MEM_callocN, MEM_freeN, Mesh::mloop, Mesh::mpoly, Mesh::mvert, NULL, SELECT, tag_object_after_update(), Mesh::totloop, Mesh::totpoly, MLoop::v, and vertex_color_smooth_looptag().
Referenced by vertex_color_smooth_exec().
|
static |
Definition at line 312 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vertex_color_smooth(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_smooth().
|
static |
Definition at line 206 of file paint_vertex_color_ops.c.
References MLoopCol::b, divide_round_i(), Mesh::editflag, MPoly::flag, MLoopCol::g, MPoly::loopstart, ME_EDIT_PAINT_FACE_SEL, ME_FACE_SEL, MEM_callocN, MEM_freeN, Mesh::mloop, Mesh::mloopcol, Mesh::mpoly, NULL, MLoopCol::r, MPoly::totloop, Mesh::totpoly, Mesh::totvert, and MLoop::v.
Referenced by vertex_color_smooth().
|
static |
Definition at line 139 of file paint_vertex_color_ops.c.
References Object::actdef, MLoopCol::b, BKE_defvert_find_weight(), BKE_mesh_from_object(), Mesh::dvert, ED_mesh_color_ensure(), MLoopCol::g, MPoly::loopstart, Mesh::mloop, Mesh::mloopcol, Mesh::mpoly, NULL, MLoopCol::r, tag_object_after_update(), Mesh::totpoly, and MLoop::v.
Referenced by vertex_paint_from_weight_exec().
|
static |
Definition at line 173 of file paint_vertex_color_ops.c.
References C, CTX_data_active_object(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vertex_paint_from_weight(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_from_weight().
|
static |
Definition at line 47 of file paint_vertex_color_ops.c.
References BKE_mesh_from_object(), C, CTX_data_active_object(), Mesh::dvert, Object::mode, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, and Mesh::totpoly.
Referenced by PAINT_OT_vertex_color_from_weight().
|
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().
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().
|
static |
Definition at line 484 of file paint_vertex_color_ops.c.
References col.
Referenced by vertex_color_invert_exec().
Definition at line 522 of file paint_vertex_color_ops.c.
References col, data, and user_data.
Referenced by vertex_color_levels_exec().