|
Blender V4.3
|
#include <spreadsheet_data_source.hh>
Inherited by blender::ed::spreadsheet::GeometryDataSource, and blender::ed::spreadsheet::VolumeDataSource.
Public Member Functions | |
| virtual | ~DataSource () |
| virtual void | foreach_default_column_ids (FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)>) const |
| virtual std::unique_ptr< ColumnValues > | get_column_values (const SpreadsheetColumnID &) const |
| virtual bool | has_selection_filter () const |
| virtual int | tot_rows () const |
This class is subclassed to implement different data sources for the spreadsheet. A data source provides the information that should be displayed. It is not concerned with how data is laid out in the spreadsheet editor exactly.
Definition at line 19 of file spreadsheet_data_source.hh.
|
virtualdefault |
|
inlinevirtual |
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 in blender::ed::spreadsheet::GeometryDataSource, and blender::ed::spreadsheet::VolumeDataSource.
Definition at line 31 of file spreadsheet_data_source.hh.
Referenced by blender::ed::spreadsheet::update_visible_columns().
|
inlinevirtual |
Returns the column values the given column id. If no data exists for this id, null is returned.
Reimplemented in blender::ed::spreadsheet::GeometryDataSource, and blender::ed::spreadsheet::VolumeDataSource.
Definition at line 40 of file spreadsheet_data_source.hh.
Referenced by blender::ed::spreadsheet::update_visible_columns().
|
inlinevirtual |
Returns true if the data source has the ability to limit visible rows by user interface selection status.
Reimplemented in blender::ed::spreadsheet::GeometryDataSource.
Definition at line 50 of file spreadsheet_data_source.hh.
Referenced by blender::ed::spreadsheet::use_selection_filter().
|
inlinevirtual |
Returns the number of rows in columns returned by get_column_values.
Reimplemented in blender::ed::spreadsheet::GeometryDataSource, and blender::ed::spreadsheet::VolumeDataSource.
Definition at line 58 of file spreadsheet_data_source.hh.
Referenced by blender::ed::spreadsheet::spreadsheet_filter_rows().