Blender
V3.3
|
#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.
Definition at line 189 of file paint_vertex_color_ops.cc.
References blender::bke::AttributeAccessor::adapt_domain(), ATTR_DOMAIN_CORNER, ATTR_DOMAIN_POINT, BKE_id_attributes_active_color_get(), BLI_assert_unreachable, CustomDataLayer::data, Mesh::id, blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_meta_data(), blender::GVArrayCommon::materialize(), mesh, blender::bke::mesh_attributes(), and CustomDataLayer::name.
Referenced by vertex_color_smooth().
|
static |
Definition at line 157 of file paint_vertex_color_ops.cc.
References blender::bke::AttributeAccessor::adapt_domain(), ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, blender::bke::AttributeAccessor::domain_size(), Mesh::editflag, faces, blender::index_mask_ops::find_indices_from_virtual_array(), indices, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, mesh, blender::bke::mesh_attributes(), Mesh::mpoly, Mesh::mvert, Mesh::totpoly, Mesh::totvert, and verts.
Referenced by transform_active_color(), and vertex_color_smooth().
void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 354 of file paint_vertex_color_ops.cc.
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 134 of file paint_vertex_color_ops.cc.
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 413 of file paint_vertex_color_ops.cc.
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 454 of file paint_vertex_color_ops.cc.
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 493 of file paint_vertex_color_ops.cc.
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_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 241 of file paint_vertex_color_ops.cc.
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().
Definition at line 56 of file paint_vertex_color_ops.cc.
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_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 263 of file paint_vertex_color_ops.cc.
References BKE_id_attributes_active_color_get(), BLI_assert_unreachable, blender::attribute_math::convert_to_static_type(), blender::bke::GAttributeWriter::domain, get_selected_indices(), Mesh::id, indices, blender::bke::MutableAttributeAccessor::lookup_for_write(), mesh, blender::bke::mesh_attributes_for_write(), CustomDataLayer::name, blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), and vertex_color_levels_exec().
|
static |
Definition at line 310 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), max_ff(), NC_OBJECT, ND_DRAW, offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 377 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), hsv_to_rgb_v(), hue, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, rgb_to_hsv_v(), RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_hsv().
|
static |
Definition at line 433 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 469 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), NC_OBJECT, ND_DRAW, offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels().
Definition at line 213 of file paint_vertex_color_ops.cc.
References ATTR_DOMAIN_CORNER, BKE_mesh_from_object(), ED_mesh_color_ensure(), face_corner_color_equalize_vertices(), get_selected_indices(), indices, and tag_object_after_update().
Referenced by vertex_color_smooth_exec().
|
static |
Definition at line 231 of file paint_vertex_color_ops.cc.
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().
Definition at line 71 of file paint_vertex_color_ops.cc.
References blender::bke::AttributeAccessor::adapt_domain(), ATTR_DOMAIN_POINT, BKE_id_attributes_active_color_get(), BKE_mesh_from_object(), BLI_assert_unreachable, BLI_findlink(), blender::bke::cpp_type_to_custom_data_type(), blender::bke::GAttributeWriter::domain, ED_mesh_color_ensure(), blender::bke::GAttributeWriter::finish(), Mesh::id, blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write(), blender::bke::mesh_attributes_for_write(), CustomDataLayer::name, bDeformGroup::name, blender::GVMutableArray::set_all(), tag_object_after_update(), blender::GVArrayCommon::type(), blender::bke::GAttributeWriter::varray, Mesh::vertex_group_active_index, and Mesh::vertex_group_names.
Referenced by vertex_paint_from_weight_exec().
|
static |
Definition at line 124 of file paint_vertex_color_ops.cc.
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().
Definition at line 48 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), Mesh::dvert, ELEM, Object::mode, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, and Mesh::totpoly.
Referenced by PAINT_OT_vertex_color_from_weight().