Blender V4.3
blender::bke::GeometryFieldContext Class Reference

#include <BKE_geometry_fields.hh>

Inherits blender::fn::FieldContext.

Public Member Functions

 GeometryFieldContext (const GeometryFieldContext &other, AttrDomain domain)
 GeometryFieldContext (const GeometryComponent &component, AttrDomain domain)
 GeometryFieldContext (const void *geometry, GeometryComponent::Type type, AttrDomain domain, int grease_pencil_layer_index)
 GeometryFieldContext (const Mesh &mesh, AttrDomain domain)
 GeometryFieldContext (const CurvesGeometry &curves, AttrDomain domain)
 GeometryFieldContext (const Curves &curves_id, AttrDomain domain)
 GeometryFieldContext (const GreasePencil &grease_pencil)
 GeometryFieldContext (const GreasePencil &grease_pencil, AttrDomain domain, int layer_index)
 GeometryFieldContext (const PointCloud &points)
 GeometryFieldContext (const Instances &instances)
const void * geometry () const
GeometryComponent::Type type () const
AttrDomain domain () const
int grease_pencil_layer_index () const
std::optional< AttributeAccessorattributes () const
const Meshmesh () const
const CurvesGeometrycurves () const
const PointCloudpointcloud () const
const GreasePencilgrease_pencil () const
const greasepencil::Drawinggrease_pencil_layer_drawing () const
const Instancesinstances () const
const CurvesGeometrycurves_or_strokes () const
const Curvescurves_id () const
Public Member Functions inherited from blender::fn::FieldContext
virtual ~FieldContext ()=default
virtual GVArray get_varray_for_input (const FieldInput &field_input, const IndexMask &mask, ResourceScope &scope) const

Detailed Description

A field context that can represent meshes, curves, point clouds, instances or grease pencil layers, used for field inputs that can work for multiple geometry types.

Definition at line 149 of file BKE_geometry_fields.hh.

Constructor & Destructor Documentation

◆ GeometryFieldContext() [1/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const GeometryFieldContext & other,
AttrDomain domain )

Definition at line 64 of file geometry_fields.cc.

References domain(), and GeometryFieldContext().

Referenced by GeometryFieldContext(), and GeometryFieldContext().

◆ GeometryFieldContext() [2/10]

◆ GeometryFieldContext() [3/10]

◆ GeometryFieldContext() [4/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const Mesh & mesh,
AttrDomain domain )

Definition at line 135 of file geometry_fields.cc.

References domain(), GeometryFieldContext(), and mesh().

◆ GeometryFieldContext() [5/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const CurvesGeometry & curves,
AttrDomain domain )

Definition at line 139 of file geometry_fields.cc.

References blender::bke::Curve, curves(), and domain().

◆ GeometryFieldContext() [6/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const Curves & curves_id,
AttrDomain domain )

Definition at line 143 of file geometry_fields.cc.

References blender::bke::Curve, curves_id(), domain(), geometry(), and wrap().

◆ GeometryFieldContext() [7/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const GreasePencil & grease_pencil)

Definition at line 154 of file geometry_fields.cc.

References grease_pencil(), and blender::bke::Layer.

◆ GeometryFieldContext() [8/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const GreasePencil & grease_pencil,
AttrDomain domain,
int layer_index )

Definition at line 160 of file geometry_fields.cc.

References domain(), and grease_pencil().

◆ GeometryFieldContext() [9/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const PointCloud & points)

Definition at line 150 of file geometry_fields.cc.

References blender::bke::Point.

◆ GeometryFieldContext() [10/10]

blender::bke::GeometryFieldContext::GeometryFieldContext ( const Instances & instances)

Definition at line 169 of file geometry_fields.cc.

References blender::bke::Instance, and instances().

Member Function Documentation

◆ attributes()

std::optional< AttributeAccessor > blender::bke::GeometryFieldContext::attributes ( ) const

◆ curves()

const CurvesGeometry * blender::bke::GeometryFieldContext::curves ( ) const

◆ curves_id()

const Curves * blender::bke::GeometryFieldContext::curves_id ( ) const

Definition at line 246 of file geometry_fields.cc.

Referenced by GeometryFieldContext().

◆ curves_or_strokes()

const CurvesGeometry * blender::bke::GeometryFieldContext::curves_or_strokes ( ) const

Definition at line 236 of file geometry_fields.cc.

References curves(), and grease_pencil_layer_drawing().

◆ domain()

◆ geometry()

const void * blender::bke::GeometryFieldContext::geometry ( ) const
inline

Definition at line 183 of file BKE_geometry_fields.hh.

Referenced by GeometryFieldContext(), and GeometryFieldContext().

◆ grease_pencil()

const GreasePencil * blender::bke::GeometryFieldContext::grease_pencil ( ) const

◆ grease_pencil_layer_drawing()

const greasepencil::Drawing * blender::bke::GeometryFieldContext::grease_pencil_layer_drawing ( ) const

◆ grease_pencil_layer_index()

int blender::bke::GeometryFieldContext::grease_pencil_layer_index ( ) const
inline

◆ instances()

const Instances * blender::bke::GeometryFieldContext::instances ( ) const

Definition at line 250 of file geometry_fields.cc.

References blender::bke::GeometryComponent::Instance, and type().

Referenced by attributes(), and GeometryFieldContext().

◆ mesh()

const Mesh * blender::bke::GeometryFieldContext::mesh ( ) const

Definition at line 203 of file geometry_fields.cc.

References blender::bke::GeometryComponent::Mesh, and type().

Referenced by attributes(), and GeometryFieldContext().

◆ pointcloud()

const PointCloud * blender::bke::GeometryFieldContext::pointcloud ( ) const

Definition at line 214 of file geometry_fields.cc.

References blender::bke::GeometryComponent::PointCloud, and type().

Referenced by attributes().

◆ type()

GeometryComponent::Type blender::bke::GeometryFieldContext::type ( ) const
inline

The documentation for this class was generated from the following files: