|
Blender V4.3
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = Type::GreasePencil |
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 GreasePencil data. The attributes on this component are only on the layer domain. Each individual layer represents a CurvesGeometry with its own curve and point domain. See #CurveComponent.
Definition at line 770 of file BKE_geometry_set.hh.
| blender::bke::GreasePencilComponent::GreasePencilComponent | ( | ) |
Definition at line 19 of file geometry_component_grease_pencil.cc.
Referenced by copy().
| blender::bke::GreasePencilComponent::~GreasePencilComponent | ( | ) |
Definition at line 21 of file geometry_component_grease_pencil.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 192 of file geometry_component_grease_pencil.cc.
References blender::bke::get_grease_pencil_accessor_functions_ref().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 197 of file geometry_component_grease_pencil.cc.
References blender::bke::get_grease_pencil_accessor_functions_ref().
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 36 of file geometry_component_grease_pencil.cc.
References BKE_id_free(), BLI_assert, blender::ImplicitSharingInfo::is_expired(), blender::ImplicitSharingInfo::is_mutable(), and blender::bke::Owned.
Referenced by replace(), and ~GreasePencilComponent().
|
overridevirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 26 of file geometry_component_grease_pencil.cc.
References BKE_grease_pencil_copy_for_eval(), GreasePencilComponent(), and blender::bke::Owned.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 93 of file geometry_component_grease_pencil.cc.
References BKE_grease_pencil_copy_for_eval(), BLI_assert, blender::ImplicitSharingInfo::is_mutable(), and blender::bke::Owned.
| const GreasePencil * blender::bke::GreasePencilComponent::get | ( | ) | const |
Definition at line 68 of file geometry_component_grease_pencil.cc.
Referenced by blender::bke::GeometryFieldContext::GeometryFieldContext(), blender::ed::spreadsheet::GeometryDataSource::get_column_values(), and blender::bke::GeometrySet::get_grease_pencil().
| GreasePencil * blender::bke::GreasePencilComponent::get_for_write | ( | ) |
Definition at line 73 of file geometry_component_grease_pencil.cc.
References BKE_grease_pencil_copy_for_eval(), BLI_assert, blender::ImplicitSharingInfo::is_mutable(), blender::bke::Owned, and blender::bke::ReadOnly.
Referenced by blender::bke::GeometrySet::get_grease_pencil_for_write().
| bool blender::bke::GreasePencilComponent::has_grease_pencil | ( | ) | const |
Definition at line 47 of file geometry_component_grease_pencil.cc.
Referenced by blender::bke::GeometrySet::has_grease_pencil().
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 83 of file geometry_component_grease_pencil.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 88 of file geometry_component_grease_pencil.cc.
References blender::bke::Owned.
| GreasePencil * blender::bke::GreasePencilComponent::release | ( | ) |
Return the Grease Pencil data and clear the component. The caller takes over responsibility for freeing the Grease Pencil data (if the component was responsible before).
Definition at line 60 of file geometry_component_grease_pencil.cc.
References BLI_assert, and blender::ImplicitSharingInfo::is_mutable().
| void blender::bke::GreasePencilComponent::replace | ( | GreasePencil * | grease_pencil, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the component and replace it with the new grease_pencil data.
Definition at line 52 of file geometry_component_grease_pencil.cc.
References BLI_assert, clear(), and blender::ImplicitSharingInfo::is_mutable().
Referenced by blender::bke::GeometrySet::replace_grease_pencil().
|
inlinestaticconstexpr |
Definition at line 801 of file BKE_geometry_set.hh.