|
Blender V4.3
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = Type::Curve |
Additional Inherited Members | |
Public Types inherited from blender::bke::GeometryComponent | |
| enum class | Type { Mesh = 0 , PointCloud = 1 , Instance = 2 , Volume = 3 , Curve = 4 , Edit = 5 , GreasePencil = 6 } |
Static Public Member Functions inherited from blender::bke::GeometryComponent | |
| static GeometryComponentPtr | create (Type component_type) |
A geometry component that stores a group of curves, corresponding the Curves data-block and the CurvesGeometry type. Attributes are stored on the control point domain and the curve domain.
Definition at line 587 of file BKE_geometry_set.hh.
| blender::bke::CurveComponent::CurveComponent | ( | ) |
Definition at line 27 of file geometry_component_curves.cc.
Referenced by copy().
| blender::bke::CurveComponent::CurveComponent | ( | Curves * | curve, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Definition at line 29 of file geometry_component_curves.cc.
| blender::bke::CurveComponent::~CurveComponent | ( | ) |
Definition at line 34 of file geometry_component_curves.cc.
References clear().
|
finalvirtual |
Get access to the attributes in this geometry component. May return none if the geometry does not support the attribute system.
Reimplemented from blender::bke::GeometryComponent.
Definition at line 729 of file geometry_component_curves.cc.
References Curves::geometry, and blender::bke::get_curves_accessor_functions_ref().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 735 of file geometry_component_curves.cc.
References blender::bke::get_curves_accessor_functions_ref(), and get_for_write().
Referenced by blender::nodes::node_geo_curve_primitive_star_cc::create_selection_output().
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 49 of file geometry_component_curves.cc.
References BKE_id_free(), BLI_assert, Curve::editfont, Curve::editnurb, blender::ImplicitSharingInfo::is_expired(), blender::ImplicitSharingInfo::is_mutable(), and blender::bke::Owned.
Referenced by replace(), and ~CurveComponent().
|
overridevirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 39 of file geometry_component_curves.cc.
References BKE_curves_copy_for_eval(), CurveComponent(), and blender::bke::Owned.
|
overridevirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 124 of file geometry_component_curves.cc.
References Curves::geometry.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 113 of file geometry_component_curves.cc.
References BKE_curves_copy_for_eval(), BLI_assert, blender::ImplicitSharingInfo::is_mutable(), and blender::bke::Owned.
| const Curves * blender::bke::CurveComponent::get | ( | ) | const |
Definition at line 88 of file geometry_component_curves.cc.
Referenced by blender::ed::spreadsheet::GeometryDataSource::apply_selection_filter(), blender::bke::GeometryFieldContext::GeometryFieldContext(), blender::bke::GeometrySet::get_curves(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::nodes::node_geo_split_to_instances_cc::split_curve_groups(), and blender::bke::try_detect_field_domain().
| const Curve * blender::bke::CurveComponent::get_curve_for_render | ( | ) | const |
Create empty curve data used for rendering the spline's wire edges.
Definition at line 131 of file geometry_component_curves.cc.
References BKE_id_new_nomain(), Curve::curve_eval, ID_CU_LEGACY, and lock.
| Curves * blender::bke::CurveComponent::get_for_write | ( | ) |
Definition at line 93 of file geometry_component_curves.cc.
References BKE_curves_copy_for_eval(), BLI_assert, blender::ImplicitSharingInfo::is_mutable(), blender::bke::Owned, and blender::bke::ReadOnly.
Referenced by attributes_for_write(), and blender::bke::GeometrySet::get_curves_for_write().
| bool blender::bke::CurveComponent::has_curves | ( | ) | const |
Definition at line 67 of file geometry_component_curves.cc.
Referenced by blender::bke::GeometrySet::has_curves().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 103 of file geometry_component_curves.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 108 of file geometry_component_curves.cc.
References blender::bke::Owned.
| Curves * blender::bke::CurveComponent::release | ( | ) |
Definition at line 80 of file geometry_component_curves.cc.
References BLI_assert, and blender::ImplicitSharingInfo::is_mutable().
| void blender::bke::CurveComponent::replace | ( | Curves * | curve, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the component and replace it with the new curve.
Definition at line 72 of file geometry_component_curves.cc.
References BLI_assert, clear(), and blender::ImplicitSharingInfo::is_mutable().
Referenced by blender::bke::GeometrySet::replace_curves().
|
inlinestaticconstexpr |
Definition at line 633 of file BKE_geometry_set.hh.