|
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.
Classes | |
| class | GMutableSpan |
| class | IndexMask |
| class | IndexMaskMemory |
Typedefs | |
| using | ColorGeometry4f |
| using blender::ColorGeometry4f |
Definition at line 342 of file BLI_color.hh.
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::bke::Corner, blender::GMutableSpan::data(), blender::bke::GSpanAttributeWriter::domain, face_corner_color_equalize_verts(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::GVArrayCommon::materialize(), blender::bke::Point, and blender::bke::GSpanAttributeWriter::span.
Referenced by face_corner_color_equalize_verts(), and 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, IndexMask::from_bools(), get_selected_indices(), IndexMask::IndexMask(), blender::bke::AttributeAccessor::lookup_or_default(), ME_EDIT_PAINT_FACE_SEL, and ME_EDIT_PAINT_VERT_SEL.
Referenced by get_selected_indices(), 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, PAINT_OT_vertex_color_brightness_contrast(), 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(), and PAINT_OT_vertex_color_brightness_contrast().
| 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, PAINT_OT_vertex_color_from_weight(), wmOperatorType::poll, vertex_paint_from_weight_exec(), and vertex_weight_paint_mode_poll().
Referenced by ED_operatortypes_paint(), and PAINT_OT_vertex_color_from_weight().
| 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, PAINT_OT_vertex_color_hsv(), wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_hsv_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint(), and PAINT_OT_vertex_color_hsv().
| 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, PAINT_OT_vertex_color_invert(), wmOperatorType::poll, vertex_color_invert_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint(), and PAINT_OT_vertex_color_invert().
| 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, PAINT_OT_vertex_color_levels(), wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint(), and PAINT_OT_vertex_color_levels().
| 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, PAINT_OT_vertex_color_smooth(), wmOperatorType::poll, vertex_color_smooth_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint(), and PAINT_OT_vertex_color_smooth().
|
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, OB_MESH, and tag_object_after_update().
Referenced by tag_object_after_update(), vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 302 of file paint_vertex_color_ops.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_sculpt_update_object_for_edit(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), Object::data, NC_OBJECT, ND_DRAW, blender::bke::object::pbvh_get(), blender::bke::pbvh::Tree::tag_attribute_changed(), transform_active_color(), transform_active_color_data(), and WM_event_add_notifier().
Referenced by transform_active_color(), 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::bke::GAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_segment(), blender::GVArrayCommon::get(), get_selected_indices(), GrainSize::GrainSize(), i, Mesh::id, blender::bke::MutableAttributeAccessor::lookup_for_write(), blender::GVMutableArray::set_by_copy(), T, blender::CPPType::to_static_type_tag(), transform_active_color_data(), blender::GVArrayCommon::type(), and blender::bke::GAttributeWriter::varray.
Referenced by transform_active_color(), and transform_active_color_data().
|
static |
Definition at line 325 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), ED_mesh_color_ensure(), i, max_ff(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), and vertex_color_brightness_contrast_exec().
Referenced by PAINT_OT_vertex_color_brightness_contrast(), and vertex_color_brightness_contrast_exec().
|
static |
Definition at line 391 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), ED_mesh_color_ensure(), hsv_to_rgb_v(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, rgb_to_hsv_v(), RNA_float_get(), transform_active_color(), and vertex_color_hsv_exec().
Referenced by PAINT_OT_vertex_color_hsv(), and vertex_color_hsv_exec().
|
static |
Definition at line 446 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), ED_mesh_color_ensure(), i, OPERATOR_CANCELLED, OPERATOR_FINISHED, transform_active_color(), and vertex_color_invert_exec().
Referenced by PAINT_OT_vertex_color_invert(), and vertex_color_invert_exec().
|
static |
Definition at line 481 of file paint_vertex_color_ops.cc.
References BKE_mesh_from_object(), C, CTX_data_active_object(), ED_mesh_color_ensure(), i, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), transform_active_color(), vertex_color_levels_exec(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_levels(), and vertex_color_levels_exec().
|
static |
Definition at line 202 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(), tag_object_after_update(), and vertex_color_smooth().
Referenced by vertex_color_smooth(), and vertex_color_smooth_exec().
|
static |
Definition at line 222 of file paint_vertex_color_ops.cc.
References C, CTX_data_active_object(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vertex_color_smooth(), vertex_color_smooth_exec(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_smooth(), and vertex_color_smooth_exec().
|
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::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, Mesh::vertex_group_names, and vertex_paint_from_weight().
Referenced by vertex_paint_from_weight(), and vertex_paint_from_weight_exec().
|
static |
Definition at line 128 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(), vertex_paint_from_weight_exec(), and WM_event_add_notifier().
Referenced by PAINT_OT_vertex_color_from_weight(), and vertex_paint_from_weight_exec().
|
static |
Definition at line 51 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, OB_MODE_WEIGHT_PAINT, and vertex_weight_paint_mode_poll().
Referenced by PAINT_OT_vertex_color_from_weight(), and vertex_weight_paint_mode_poll().