|
Blender V5.0
|
#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "BLI_array.hh"#include "BLI_color.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 199 of file BLI_color_types.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, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::GVArrayCommon::materialize(), name, blender::bke::Point, 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, IndexMask::from_bools(), blender::bke::AttributeAccessor::lookup_or_default(), ME_EDIT_PAINT_FACE_SEL, and ME_EDIT_PAINT_VERT_SEL.
Referenced by transform_active_color_data(), and vertex_color_smooth().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 369 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 138 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 427 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 467 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 507 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 232 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 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, and OB_MESH.
Referenced by vertex_color_smooth(), and vertex_paint_from_weight().
|
static |
Definition at line 303 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_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(), blender::color::decode(), DEG_id_tag_update(), blender::bke::GAttributeWriter::domain, blender::color::encode(), blender::bke::GAttributeWriter::finish(), blender::index_mask::IndexMask::foreach_segment(), blender::GVArrayCommon::get(), get_selected_indices(), i, Mesh::id, blender::bke::MutableAttributeAccessor::lookup_for_write(), name, 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 326 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(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_brightness_contrast().
|
static |
Definition at line 392 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(), and transform_active_color().
Referenced by PAINT_OT_vertex_color_hsv().
|
static |
Definition at line 447 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, and transform_active_color().
Referenced by PAINT_OT_vertex_color_invert().
|
static |
Definition at line 482 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(), 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(), blender::bke::Corner, ED_mesh_color_ensure(), face_corner_color_equalize_verts(), get_selected_indices(), and tag_object_after_update().
Referenced by 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(), 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::cpp_type_to_attribute_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 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(), 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(), 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().