Blender  V3.3
Public Member Functions | List of all members
blender::ed::spreadsheet::VolumeDataSource Class Reference

#include <spreadsheet_data_source_geometry.hh>

Inheritance diagram for blender::ed::spreadsheet::VolumeDataSource:
blender::ed::spreadsheet::DataSource

Public Member Functions

 VolumeDataSource (GeometrySet geometry_set)
 
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 ()
 
virtual bool has_selection_filter () const
 

Detailed Description

Definition at line 83 of file spreadsheet_data_source_geometry.hh.

Constructor & Destructor Documentation

◆ VolumeDataSource()

blender::ed::spreadsheet::VolumeDataSource::VolumeDataSource ( GeometrySet  geometry_set)
inline

Definition at line 88 of file spreadsheet_data_source_geometry.hh.

Member Function Documentation

◆ foreach_default_column_ids()

void blender::ed::spreadsheet::VolumeDataSource::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 341 of file spreadsheet_data_source_geometry.cc.

◆ get_column_values()

std::unique_ptr< ColumnValues > blender::ed::spreadsheet::VolumeDataSource::get_column_values ( const SpreadsheetColumnID ) const
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 354 of file spreadsheet_data_source_geometry.cc.

References BKE_volume_grid_get_for_read(), BKE_volume_grid_name(), BKE_volume_grid_type(), IFACE_, SpreadsheetColumnID::name, RNA_enum_name_from_value(), rna_enum_volume_grid_data_type_items, size(), STREQ, type, and UNUSED_VARS.

◆ tot_rows()

int blender::ed::spreadsheet::VolumeDataSource::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 403 of file spreadsheet_data_source_geometry.cc.

References BKE_volume_num_grids().


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