Blender V5.0
geometry_attributes.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_pointcloud_types.h"
#include "BLI_color.hh"
#include "BLI_listbase.h"
#include "BKE_attribute.hh"
#include "BKE_attribute_legacy_convert.hh"
#include "BKE_context.hh"
#include "BKE_curves.hh"
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_geometry_set.hh"
#include "BKE_lib_id.hh"
#include "BKE_mesh.hh"
#include "BKE_object_deform.h"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "BLT_translation.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "DEG_depsgraph.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "ED_geometry.hh"
#include "ED_mesh.hh"
#include "ED_object.hh"
#include "ED_sculpt.hh"
#include "geometry_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::geometry

Enumerations

enum class  blender::ed::geometry::ConvertAttributeMode { blender::ed::geometry::Generic = 0 , blender::ed::geometry::VertexGroup = 1 }

Functions

static bool blender::ed::geometry::geometry_attributes_poll (bContext *C)
static bool blender::ed::geometry::geometry_attributes_remove_poll (bContext *C)
static const EnumPropertyItemblender::ed::geometry::geometry_attribute_domain_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static wmOperatorStatus blender::ed::geometry::geometry_attribute_add_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::geometry::geometry_attribute_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::geometry::GEOMETRY_OT_attribute_add (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_attribute_remove_exec (bContext *C, wmOperator *op)
void blender::ed::geometry::GEOMETRY_OT_attribute_remove (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_add_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ed::geometry::geometry_attribute_convert_poll (bContext *C)
bool blender::ed::geometry::convert_attribute (AttributeOwner &owner, bke::MutableAttributeAccessor attributes, const StringRef name, const bke::AttrDomain dst_domain, const bke::AttrType dst_type, ReportList *reports)
static wmOperatorStatus blender::ed::geometry::geometry_attribute_convert_exec (bContext *C, wmOperator *op)
static void blender::ed::geometry::geometry_color_attribute_add_ui (bContext *, wmOperator *op)
void blender::ed::geometry::GEOMETRY_OT_color_attribute_add (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_set_render_exec (bContext *C, wmOperator *op)
void blender::ed::geometry::GEOMETRY_OT_color_attribute_render_set (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_remove_exec (bContext *C, wmOperator *op)
static bool blender::ed::geometry::geometry_color_attributes_remove_poll (bContext *C)
void blender::ed::geometry::GEOMETRY_OT_color_attribute_remove (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_duplicate_exec (bContext *C, wmOperator *op)
static bool blender::ed::geometry::geometry_color_attributes_duplicate_poll (bContext *C)
void blender::ed::geometry::GEOMETRY_OT_color_attribute_duplicate (wmOperatorType *ot)
static wmOperatorStatus blender::ed::geometry::geometry_attribute_convert_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::ed::geometry::geometry_attribute_convert_ui (bContext *C, wmOperator *op)
static const EnumPropertyItemblender::ed::geometry::geometry_attribute_convert_mode_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static bool blender::ed::geometry::geometry_color_attribute_convert_poll (bContext *C)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_convert_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::geometry::geometry_color_attribute_convert_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::ed::geometry::geometry_color_attribute_convert_ui (bContext *, wmOperator *op)
void blender::ed::geometry::GEOMETRY_OT_color_attribute_convert (wmOperatorType *ot)
void blender::ed::geometry::GEOMETRY_OT_attribute_convert (wmOperatorType *ot)
Attribute Value RNA Property Helpers

Functions to make it easier to register RNA properties for the various attribute types and retrieve/set their values.

StringRefNull blender::ed::geometry::rna_property_name_for_type (const bke::AttrType type)
PropertyRNAblender::ed::geometry::rna_property_for_type (PointerRNA &ptr, const bke::AttrType type)
void blender::ed::geometry::register_rna_properties_for_attribute_types (StructRNA &srna)
GPointer blender::ed::geometry::rna_property_for_attribute_type_retrieve_value (PointerRNA &ptr, const bke::AttrType type, void *buffer)
void blender::ed::geometry::rna_property_for_attribute_type_set_value (PointerRNA &ptr, PropertyRNA &prop, const GPointer value)
bool blender::ed::geometry::attribute_set_poll (bContext &C, const ID &object_data)

Variables

static EnumPropertyItem blender::ed::geometry::convert_attribute_mode_items []