|
Blender V4.5
|
#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_array.hh"#include "BLI_function_ref.hh"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_math_color.h"#include "BLI_vector.hh"#include "BKE_attribute_math.hh"#include "BKE_context.hh"#include "BKE_geometry_set.hh"#include "BKE_mesh.hh"#include "DEG_depsgraph.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_mesh.hh"#include "paint_intern.hh"#include "sculpt_intern.hh"Go to the source code of this file.
Definition at line 181 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, blender::bke::AttributeAccessor::adapt_domain(), BLI_assert_unreachable, blender::GMutableSpan::data(), blender::bke::GSpanAttributeWriter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::GVArrayCommon::materialize(), mesh, name, and blender::bke::GSpanAttributeWriter::span.
Referenced by vertex_color_smooth().
|
static |
Definition at line 161 of file paint_vertex_color_ops.cc.
References Geometry::attributes, blender::bke::AttributeAccessor::domain_size(), Mesh::editflag, blender::bke::AttributeAccessor::lookup_or_default(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, and mesh.
Referenced by transform_active_color_data(), and vertex_color_smooth().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 368 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 138 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 426 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 466 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 506 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, 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 232 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().
|
static |
Definition at line 59 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_SYNC_TO_EVAL, mesh, and OB_MESH.
Referenced by vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 302 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, BKE_sculpt_update_object_for_edit(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), Object::data, mesh, NC_OBJECT, ND_DRAW, blender::bke::pbvh::Tree::tag_attribute_changed(), transform_active_color_data(), and WM_event_add_notifier().
Referenced by vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), and vertex_color_levels_exec().
|
static |
Definition at line 253 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, BLI_assert_unreachable, blender::bke::AttributeAccessor::contains(), DEG_id_tag_update(), blender::bke::GAttributeWriter::domain, blender::ColorSceneLinear4f< Alpha >::encode(), blender::bke::GAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_segment(), blender::GVArrayCommon::get(), get_selected_indices(), Mesh::id, blender::bke::MutableAttributeAccessor::lookup_for_write(), mesh, name, blender::GVMutableArray::set_by_copy(), blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by transform_active_color().
|
static |
Definition at line 325 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), max_ff(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 391 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), hsv_to_rgb_v(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, rgb_to_hsv_v(), RNA_float_get(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_hsv().
|
static |
Definition at line 446 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), mesh, OPERATOR_CANCELLED, OPERATOR_FINISHED, and transform_active_color().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 481 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ED_mesh_color_ensure(), mesh, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels().
|
static |
Definition at line 202 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), ED_mesh_color_ensure(), face_corner_color_equalize_verts(), get_selected_indices(), mesh, and tag_object_after_update().
Referenced by vertex_color_smooth_exec().
|
static |
Definition at line 222 of file paint_vertex_color_ops.cc.
References 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 74 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, blender::bke::AttributeAccessor::adapt_domain(), Geometry::attributes, BKE_mesh_from_object(), BLI_assert_unreachable, BLI_findlink(), blender::bke::GAttributeWriter::domain, ED_mesh_color_ensure(), blender::bke::GAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write(), mesh, 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 128 of file paint_vertex_color_ops.cc.
References 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 51 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), CTX_data_active_object(), ELEM, Mesh::faces_num, mesh, Object::mode, OB_MODE_VERTEX_PAINT, and OB_MODE_WEIGHT_PAINT.
Referenced by PAINT_OT_vertex_color_from_weight().