|
Blender V4.3
|
#include "MEM_guardedalloc.h"#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_math_base.h"#include "BLI_math_color.h"#include "BLI_vector.hh"#include "BKE_attribute_math.hh"#include "BKE_context.hh"#include "BKE_deform.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"#include "sculpt_undo.hh"Go to the source code of this file.
Classes | |
| class | GMutableSpan |
| class | IndexMask |
| class | IndexMaskMemory |
Typedefs | |
| using | ColorGeometry4f |
| using blender::ColorGeometry4f |
Definition at line 337 of file BLI_color.hh.
Definition at line 184 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, blender::bke::AttributeAccessor::adapt_domain(), attribute, BLI_assert_unreachable, blender::bke::Corner, blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::GVArrayCommon::materialize(), blender::bke::Point, and selection.
Referenced by vertex_color_smooth().
|
static |
Definition at line 164 of file paint_vertex_color_ops.cc.
References Geometry::attributes, blender::bke::AttributeAccessor::domain_size(), Mesh::editflag, IndexMask::from_bools(), blender::bke::AttributeAccessor::lookup_or_default(), ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, and selection.
Referenced by transform_active_color_data(), and vertex_color_smooth().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 378 of file paint_vertex_color_ops.cc.
References max, min, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), RNA_def_property_ui_range(), 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 141 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 436 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), 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 476 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 516 of file paint_vertex_color_ops.cc.
References FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), 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 235 of file paint_vertex_color_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, vertex_color_smooth_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 62 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, and OB_MESH.
Referenced by vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 305 of file paint_vertex_color_ops.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_sculpt_update_object_for_edit(), C, blender::ed::sculpt_paint::undo::Color, color, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), Object::data, depsgraph, NC_OBJECT, ND_DRAW, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), 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 256 of file paint_vertex_color_ops.cc.
References Mesh::active_color_attribute, BLI_assert_unreachable, color, blender::bke::AttributeAccessor::contains(), DEG_id_tag_update(), blender::bke::GAttributeWriter::domain, blender::bke::GAttributeWriter::finish(), blender::GVArrayCommon::get(), get_selected_indices(), Mesh::id, blender::bke::MutableAttributeAccessor::lookup_for_write(), selection, blender::GVMutableArray::set_by_copy(), T, blender::CPPType::to_static_type_tag(), blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by transform_active_color().
|
static |
Definition at line 335 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), max_ff(), 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 401 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, 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 456 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, color, CTX_data_active_object(), ED_mesh_color_ensure(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and transform_active_color().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 491 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, wmOperator::ptr, RNA_float_get(), transform_active_color(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels().
|
static |
Definition at line 205 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), blender::bke::Corner, ED_mesh_color_ensure(), face_corner_color_equalize_verts(), get_selected_indices(), selection, and tag_object_after_update().
Referenced by vertex_color_smooth_exec().
|
static |
Definition at line 225 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().
|
static |
Definition at line 77 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::cpp_type_to_custom_data_type(), blender::GSpan::data(), blender::bke::GAttributeWriter::domain, ED_mesh_color_ensure(), blender::bke::GAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write(), bDeformGroup::name, blender::bke::Point, 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 131 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().
|
static |
Definition at line 54 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), ELEM, Mesh::faces_num, Object::mode, OB_MODE_VERTEX_PAINT, and OB_MODE_WEIGHT_PAINT.
Referenced by PAINT_OT_vertex_color_from_weight().