Blender V5.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< AttributeAccessor > attributes () const
const Mesh * mesh () const
const CurvesGeometry * curves () const
const PointCloud * pointcloud () const
const GreasePencil * grease_pencil () const
const greasepencil::Drawing * grease_pencil_layer_drawing () const
const Instances * instances () const
const CurvesGeometry * curves_or_strokes () const
const Curves * curves_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 154 of file BKE_geometry_fields.hh.

Constructor & Destructor Documentation

◆ GeometryFieldContext() [1/10]

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

◆ GeometryFieldContext() [2/10]

◆ GeometryFieldContext() [3/10]

◆ GeometryFieldContext() [4/10]

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

Definition at line 141 of file geometry_fields.cc.

References domain(), and mesh().

◆ GeometryFieldContext() [5/10]

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

Definition at line 145 of file geometry_fields.cc.

References domain().

◆ GeometryFieldContext() [6/10]

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

Definition at line 149 of file geometry_fields.cc.

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

◆ GeometryFieldContext() [7/10]

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

Definition at line 160 of file geometry_fields.cc.

◆ GeometryFieldContext() [8/10]

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

Definition at line 166 of file geometry_fields.cc.

References domain().

◆ GeometryFieldContext() [9/10]

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

Definition at line 156 of file geometry_fields.cc.

References blender::bke::Point.

◆ GeometryFieldContext() [10/10]

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

Definition at line 175 of file geometry_fields.cc.

References instances().

Member Function Documentation

◆ attributes()

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

◆ curves()

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

Definition at line 214 of file geometry_fields.cc.

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

◆ curves_id()

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

Definition at line 252 of file geometry_fields.cc.

Referenced by GeometryFieldContext().

◆ curves_or_strokes()

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

Definition at line 242 of file geometry_fields.cc.

References grease_pencil_layer_drawing().

◆ domain()

◆ geometry()

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

Definition at line 188 of file BKE_geometry_fields.hh.

Referenced by GeometryFieldContext(), and GeometryFieldContext().

◆ grease_pencil()

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

Definition at line 226 of file geometry_fields.cc.

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

◆ 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 256 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 209 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 220 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: