Blender  V3.3
Public Member Functions | List of all members
blender::bke::VArrayImpl_For_SplinePoints< T > Class Template Referencefinal
Inheritance diagram for blender::bke::VArrayImpl_For_SplinePoints< T >:
blender::VMutableArrayImpl< T > blender::VArrayImpl< T >

Public Member Functions

 VArrayImpl_For_SplinePoints (Array< MutableSpan< T >> data, Array< int > offsets)
 
T get (const int64_t index) const final
 
void set (const int64_t index, T value) final
 
void set_all (Span< T > src) final
 
void materialize (const IndexMask mask, MutableSpan< T > r_span) const final
 
void materialize_to_uninitialized (const IndexMask mask, MutableSpan< T > r_span) const final
 
- Public Member Functions inherited from blender::VMutableArrayImpl< T >
virtual bool try_assign_GVMutableArray (GVMutableArray &UNUSED(varray)) const
 
- Public Member Functions inherited from blender::VArrayImpl< T >
 VArrayImpl (const int64_t size)
 
virtual ~VArrayImpl ()=default
 
int64_t size () const
 
virtual CommonVArrayInfo common_info () const
 
virtual void materialize_compressed (IndexMask mask, MutableSpan< T > r_span) const
 
virtual void materialize_compressed_to_uninitialized (IndexMask mask, MutableSpan< T > r_span) const
 
virtual bool try_assign_GVArray (GVArray &UNUSED(varray)) const
 
virtual bool is_same (const VArrayImpl< T > &UNUSED(other)) const
 

Additional Inherited Members

- Protected Attributes inherited from blender::VArrayImpl< T >
int64_t size_
 

Detailed Description

template<typename T>
class blender::bke::VArrayImpl_For_SplinePoints< T >

Mutable virtual array for any control point data accessed with spans and an offset array.

Definition at line 642 of file geometry_component_curve.cc.

Constructor & Destructor Documentation

◆ VArrayImpl_For_SplinePoints()

template<typename T >
blender::bke::VArrayImpl_For_SplinePoints< T >::VArrayImpl_For_SplinePoints ( Array< MutableSpan< T >>  data,
Array< int >  offsets 
)
inline

Definition at line 648 of file geometry_component_curve.cc.

References data_.

Member Function Documentation

◆ get()

template<typename T >
T blender::bke::VArrayImpl_For_SplinePoints< T >::get ( const int64_t  index) const
inlinefinalvirtual

Get the element at #index. This does not return a reference, because the value may be computed on the fly.

Implements blender::VArrayImpl< T >.

Definition at line 653 of file geometry_component_curve.cc.

References data_, indices, and blender::bke::lookup_point_indices().

◆ materialize()

template<typename T >
void blender::bke::VArrayImpl_For_SplinePoints< T >::materialize ( const IndexMask  mask,
MutableSpan< T r_span 
) const
inlinefinalvirtual

Copy values from the virtual array into the provided span. The index of the value in the virtual array is the same as the index in the span.

Reimplemented from blender::VArrayImpl< T >.

Definition at line 674 of file geometry_component_curve.cc.

References data_, mask(), and blender::bke::point_attribute_materialize().

◆ materialize_to_uninitialized()

template<typename T >
void blender::bke::VArrayImpl_For_SplinePoints< T >::materialize_to_uninitialized ( const IndexMask  mask,
MutableSpan< T r_span 
) const
inlinefinalvirtual

Same as materialize but #r_span is expected to be uninitialized.

Reimplemented from blender::VArrayImpl< T >.

Definition at line 679 of file geometry_component_curve.cc.

References data_, mask(), and blender::bke::point_attribute_materialize_to_uninitialized().

◆ set()

template<typename T >
void blender::bke::VArrayImpl_For_SplinePoints< T >::set ( const int64_t  index,
T  value 
)
inlinefinalvirtual

Assign the provided #value to the #index.

Implements blender::VMutableArrayImpl< T >.

Definition at line 659 of file geometry_component_curve.cc.

References data_, indices, and blender::bke::lookup_point_indices().

◆ set_all()

template<typename T >
void blender::bke::VArrayImpl_For_SplinePoints< T >::set_all ( Span< T src)
inlinefinalvirtual

Copy all elements from the provided span into the virtual array.

Reimplemented from blender::VMutableArrayImpl< T >.

Definition at line 665 of file geometry_component_curve.cc.

References data_, offset, spline_index, and src.


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