Blender V5.0
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 bool show_internal_attributes, const int layer_index=-1)
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 25 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 bool show_internal_attributes,
const int layer_index = -1 )
inline

Definition at line 46 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 189 of file spreadsheet_data_source_geometry.cc.

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

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

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

Referenced by has_selection_filter().

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

References tot_rows().

Referenced by apply_selection_filter(), and tot_rows().


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