|
Blender V5.3
|
#include <spreadsheet_data_source_geometry.hh>
Inherits blender::ed::spreadsheet::DataSource.
Public Member Functions | |
| VolumeDataSource (bke::GeometrySet geometry_set) | |
| void | foreach_default_column_ids (FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)> 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 () |
| virtual bool | has_selection_filter () const |
Definition at line 80 of file spreadsheet_data_source_geometry.hh.
|
inline |
Definition at line 85 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).
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 588 of file spreadsheet_data_source_geometry.cc.
References foreach_default_column_ids().
Referenced by foreach_default_column_ids().
|
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 624 of file spreadsheet_data_source_geometry.cc.
References blender::BKE_volume_grid_get(), blender::ed::spreadsheet::Bytes, blender::VArray< T >::from_std_func(), get_column_values(), IFACE_, blender::SpreadsheetColumnID::name, blender::RNA_enum_name_from_value(), blender::rna_enum_volume_grid_data_type_items, STREQ, tot_rows(), and UNUSED_VARS.
Referenced by get_column_values().
|
overridevirtual |
Returns the number of rows in columns returned by get_column_values.
Reimplemented from blender::ed::spreadsheet::DataSource.
Definition at line 710 of file spreadsheet_data_source_geometry.cc.
References blender::BKE_volume_num_grids(), and tot_rows().
Referenced by get_column_values(), and tot_rows().