Blender V4.3
blender::ed::spreadsheet::GeometryDataSource Class Reference

#include <spreadsheet_data_source_geometry.hh>

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

Public Member Functions

 GeometryDataSource (Object *object_orig, bke::GeometrySet geometry_set, const bke::GeometryComponent::Type component_type, const bke::AttrDomain domain, const int layer_index=-1, ExtraColumns extra_columns={})
 
bool has_selection_filter () const override
 
IndexMask apply_selection_filter (IndexMaskMemory &memory) const
 
void foreach_default_column_ids (FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)> 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 41 of file spreadsheet_data_source_geometry.hh.

Constructor & Destructor Documentation

◆ GeometryDataSource()

blender::ed::spreadsheet::GeometryDataSource::GeometryDataSource ( Object * object_orig,
bke::GeometrySet geometry_set,
const bke::GeometryComponent::Type component_type,
const bke::AttrDomain domain,
const int layer_index = -1,
ExtraColumns extra_columns = {} )
inline

Definition at line 62 of file spreadsheet_data_source_geometry.hh.

Member Function Documentation

◆ apply_selection_filter()

◆ foreach_default_column_ids()

void blender::ed::spreadsheet::GeometryDataSource::foreach_default_column_ids ( FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)> ) 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).

The is_extra argument indicates that this column is special and should be drawn as the first column. (This can be made a bit more generic in the future when necessary.)

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

Definition at line 179 of file spreadsheet_data_source_geometry.cc.

References blender::ed::spreadsheet::add_mesh_debug_column_names(), blender::bke::allow_procedural_attribute_access(), blender::bke::attribute_name_is_anonymous(), blender::StringRefBase::data(), blender::bke::AttributeIter::domain, blender::ed::spreadsheet::ExtraColumns::foreach_default_column_ids(), G, blender::bke::MeshComponent::get(), blender::bke::GeometryComponent::GreasePencil, blender::bke::Instance, blender::bke::GeometryComponent::Instance, blender::bke::GeometryComponent::Mesh, blender::bke::AttributeIter::name, SpreadsheetColumnID::name, and blender::bke::GeometryComponent::type().

◆ get_column_values()

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

◆ has_selection_filter()

bool blender::ed::spreadsheet::GeometryDataSource::has_selection_filter ( ) const
overridevirtual

Returns true if the data source has the ability to limit visible rows by user interface selection status.

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

Definition at line 342 of file spreadsheet_data_source_geometry.cc.

References blender::bke::GeometryComponent::Curve, ELEM, blender::bke::GeometryComponent::Mesh, OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_SCULPT_CURVES, OB_POINTCLOUD, and blender::bke::GeometryComponent::PointCloud.

◆ 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 333 of file spreadsheet_data_source_geometry.cc.


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