|
Blender V5.3
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Member Functions | |
| static void | remember_deformed_positions_if_necessary (GeometrySet &geometry) |
| static GeometryComponentPtr | create (Type component_type) |
Public Attributes | |
| std::unique_ptr< CurvesEditHints > | curves_edit_hints_ |
| std::unique_ptr< GreasePencilEditHints > | grease_pencil_edit_hints_ |
| std::unique_ptr< GizmoEditHints > | gizmo_edit_hints_ |
| std::unique_ptr< MeshEditHints > | mesh_edit_hints_ |
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = GeometryComponent::Type::Edit |
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 } |
When the original data is in some edit mode, we want to propagate some additional information through object evaluation. This information can be used by edit modes to support working on evaluated data.
This component is added at the beginning of modifier evaluation.
Definition at line 768 of file BKE_geometry_set.hh.
| blender::bke::GeometryComponentEditData::GeometryComponentEditData | ( | ) |
Definition at line 16 of file geometry_component_edit_data.cc.
References blender::draw::Edit, and blender::bke::GeometryComponent::GeometryComponent().
Referenced by copy(), blender::bke::GeometryComponent::create(), and remember_deformed_positions_if_necessary().
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 47 of file geometry_component_edit_data.cc.
References blender::BLI_assert(), curves_edit_hints_, gizmo_edit_hints_, grease_pencil_edit_hints_, blender::blender::ImplicitSharingInfo::is_expired(), blender::blender::ImplicitSharingInfo::is_mutable(), and mesh_edit_hints_.
|
finalvirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 18 of file geometry_component_edit_data.cc.
References curves_edit_hints_, GeometryComponentEditData(), gizmo_edit_hints_, grease_pencil_edit_hints_, and mesh_edit_hints_.
|
finalvirtual |
Implements blender::bke::GeometryComponent.
Definition at line 42 of file geometry_component_edit_data.cc.
|
finalvirtual |
Implements blender::bke::GeometryComponent.
Definition at line 37 of file geometry_component_edit_data.cc.
|
static |
The first node that does topology changing operations on curves should store the curve point positions it retrieved as input. Without this, information about the deformed positions is lost, which would make curves sculpt mode fall back to using original curve positions instead of deformed ones.
Definition at line 134 of file geometry_component_edit_data.cc.
References GeometryComponentEditData(), blender::bke::remember_deformed_curve_positions_if_necessary(), and blender::bke::remember_deformed_grease_pencil_if_necessary().
Referenced by blender::modify_geometry_set(), and blender::nodes::node_geo_curve_to_mesh_cc::node_geo_exec().
| std::unique_ptr<CurvesEditHints> blender::bke::GeometryComponentEditData::curves_edit_hints_ |
Information about how original curves are manipulated during evaluation. This data is used so that curve sculpt tools can work on evaluated data. It is not stored in CurveComponent because the data remains valid even when there is no actual curves geometry anymore, for example, when the curves have been converted to a mesh.
Definition at line 776 of file BKE_geometry_set.hh.
Referenced by blender::BKE_curves_data_update(), clear(), copy(), blender::bke::GeometrySet::get_curve_edit_hints(), blender::bke::GeometrySet::get_curve_edit_hints_for_write(), blender::bke::crazyspace::get_evaluated_curves_deformation(), and blender::bke::remember_deformed_curve_positions_if_necessary().
| std::unique_ptr<GizmoEditHints> blender::bke::GeometryComponentEditData::gizmo_edit_hints_ |
Propagated information for how gizmos should be transformed along with the geometry.
Definition at line 784 of file BKE_geometry_set.hh.
Referenced by clear(), copy(), blender::nodes::LazyFunctionForGizmoNode::execute_impl(), blender::bke::GeometrySet::get_gizmo_edit_hints(), and blender::bke::GeometrySet::get_gizmo_edit_hints_for_write().
| std::unique_ptr<GreasePencilEditHints> blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_ |
Information about how drawings on the grease pencil layers are manipulated during evaluation.
Definition at line 780 of file BKE_geometry_set.hh.
Referenced by blender::BKE_object_eval_grease_pencil(), clear(), copy(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), blender::bke::GeometrySet::get_grease_pencil_edit_hints(), blender::bke::GeometrySet::get_grease_pencil_edit_hints_for_write(), blender::modify_geometry_set(), and blender::bke::remember_deformed_grease_pencil_if_necessary().
| std::unique_ptr<MeshEditHints> blender::bke::GeometryComponentEditData::mesh_edit_hints_ |
Definition at line 786 of file BKE_geometry_set.hh.
Referenced by clear(), copy(), and blender::bke::geometry_mesh_edit_hints_ensure().
|
staticconstexpr |
Definition at line 804 of file BKE_geometry_set.hh.