|
Blender V5.0
|
#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 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 589 of file BKE_geometry_set.hh.
| blender::bke::CurveComponent::CurveComponent | ( | ) |
Definition at line 23 of file geometry_component_curves.cc.
References blender::bke::GeometryComponent::GeometryComponent().
Referenced by copy().
| blender::bke::CurveComponent::CurveComponent | ( | Curves * | curve, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Definition at line 25 of file geometry_component_curves.cc.
References blender::bke::GeometryComponent::GeometryComponent().
|
override |
Definition at line 30 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 313 of file geometry_component_curves.cc.
References blender::bke::curves::get_attribute_accessor_functions().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 319 of file geometry_component_curves.cc.
References blender::bke::curves::get_attribute_accessor_functions(), 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 45 of file geometry_component_curves.cc.
References BKE_id_free(), BLI_assert, 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 35 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 120 of file geometry_component_curves.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 109 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 84 of file geometry_component_curves.cc.
Referenced by blender::ed::spreadsheet::GeometryDataSource::apply_selection_filter(), 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 127 of file geometry_component_curves.cc.
References BKE_id_new_nomain(), and lock.
| Curves * blender::bke::CurveComponent::get_for_write | ( | ) |
Definition at line 89 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 63 of file geometry_component_curves.cc.
Referenced by blender::bke::GeometrySet::has_curves().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 99 of file geometry_component_curves.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 104 of file geometry_component_curves.cc.
References blender::bke::Owned.
| Curves * blender::bke::CurveComponent::release | ( | ) |
Definition at line 76 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 68 of file geometry_component_curves.cc.
References BLI_assert, clear(), and blender::ImplicitSharingInfo::is_mutable().
Referenced by blender::bke::GeometrySet::replace_curves().
|
staticconstexpr |
Definition at line 635 of file BKE_geometry_set.hh.