|
Blender
V2.93
|
#include <spreadsheet_data_source_geometry.hh>
Inherits blender::ed::spreadsheet::DataSource.
Public Member Functions | |
| InstancesDataSource (GeometrySet geometry_set) | |
| void | foreach_default_column_ids (FunctionRef< void(const SpreadsheetColumnID &)> fn) const override |
| std::unique_ptr< ColumnValues > | get_column_values (const SpreadsheetColumnID &column_id) const override |
| int | tot_rows () const override |
Public Member Functions inherited from blender::ed::spreadsheet::DataSource | |
| virtual | ~DataSource () |
Definition at line 72 of file spreadsheet_data_source_geometry.hh.
|
inline |
Definition at line 77 of file spreadsheet_data_source_geometry.hh.
|
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 253 of file spreadsheet_data_source_geometry.cc.
References InstancesComponent::instances_amount(), and SpreadsheetColumnID::name.
|
overridevirtual |
Returns the column values the given column id. If no data exists for this id, null is returned.
Reimplemented from blender::ed::spreadsheet::DataSource.
Definition at line 269 of file spreadsheet_data_source_geometry.cc.
References blender::ed::spreadsheet::column_values_from_function(), data, INSTANCE_DATA_TYPE_COLLECTION, INSTANCE_DATA_TYPE_OBJECT, InstancesComponent::instanced_data(), InstancesComponent::instances_amount(), SpreadsheetColumnID::name, size(), STREQ, and tot_rows().
|
overridevirtual |
Returns the number of rows in columns returned by get_column_values.
Reimplemented from blender::ed::spreadsheet::DataSource.
Definition at line 327 of file spreadsheet_data_source_geometry.cc.
Referenced by get_column_values().