Blender  V2.93
Public Member Functions | List of all members
blender::ed::spreadsheet::GeometryDataSource Class Reference

#include <spreadsheet_data_source_geometry.hh>

Inherits blender::ed::spreadsheet::DataSource.

Public Member Functions

 GeometryDataSource (Object *object_eval, GeometrySet geometry_set, const GeometryComponentType component_type, const AttributeDomain domain)
 
Objectobject_eval () const
 
Span< int64_tget_selected_element_indices () const
 
void foreach_default_column_ids (FunctionRef< void(const SpreadsheetColumnID &)> fn) const override
 
std::unique_ptr< ColumnValuesget_column_values (const SpreadsheetColumnID &column_id) const override
 
int tot_rows () const override
 
- Public Member Functions inherited from blender::ed::spreadsheet::DataSource
virtual ~DataSource ()
 

Detailed Description

Definition at line 31 of file spreadsheet_data_source_geometry.hh.

Constructor & Destructor Documentation

◆ GeometryDataSource()

blender::ed::spreadsheet::GeometryDataSource::GeometryDataSource ( Object object_eval,
GeometrySet  geometry_set,
const GeometryComponentType  component_type,
const AttributeDomain  domain 
)
inline

Definition at line 45 of file spreadsheet_data_source_geometry.hh.

Member Function Documentation

◆ foreach_default_column_ids()

void blender::ed::spreadsheet::GeometryDataSource::foreach_default_column_ids ( FunctionRef< void(const SpreadsheetColumnID &)>  fn) const
overridevirtual

Calls the callback with all the column ids that should be displayed as long as the user does not manually add or remove columns. The column id can be stack allocated. Therefore, the callback should not keep a reference to it (and copy it instead).

Reimplemented from blender::ed::spreadsheet::DataSource.

Definition at line 41 of file spreadsheet_data_source_geometry.cc.

References GeometryComponent::attribute_foreach(), blender::StringRefNull::c_str(), AttributeMetaData::domain, and SpreadsheetColumnID::name.

◆ get_column_values()

std::unique_ptr< ColumnValues > blender::ed::spreadsheet::GeometryDataSource::get_column_values ( const SpreadsheetColumnID column_id) const
overridevirtual

◆ get_selected_element_indices()

Span< int64_t > blender::ed::spreadsheet::GeometryDataSource::get_selected_element_indices ( ) const

◆ object_eval()

Object* blender::ed::spreadsheet::GeometryDataSource::object_eval ( ) const
inline

Definition at line 56 of file spreadsheet_data_source_geometry.hh.

◆ tot_rows()

int blender::ed::spreadsheet::GeometryDataSource::tot_rows ( ) const
overridevirtual

Returns the number of rows in columns returned by get_column_values.

Reimplemented from blender::ed::spreadsheet::DataSource.

Definition at line 130 of file spreadsheet_data_source_geometry.cc.

References GeometryComponent::attribute_domain_size().


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