Blender
V4.3
source
blender
editors
space_spreadsheet
spreadsheet_data_source.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_function_ref.hh
"
8
9
#include "
spreadsheet_column.hh
"
10
#include "
spreadsheet_column_values.hh
"
11
12
namespace
blender::ed::spreadsheet
{
13
19
class
DataSource
{
20
public
:
21
virtual
~DataSource
();
22
31
virtual
void
foreach_default_column_ids
(
32
FunctionRef
<
void
(
const
SpreadsheetColumnID
&,
bool
is_extra)>
/*fn*/
)
const
33
{
34
}
35
40
virtual
std::unique_ptr<ColumnValues>
get_column_values
(
41
const
SpreadsheetColumnID
&
/*column_id*/
)
const
42
{
43
return
{};
44
}
45
50
virtual
bool
has_selection_filter
()
const
51
{
52
return
false
;
53
}
54
58
virtual
int
tot_rows
()
const
59
{
60
return
0;
61
}
62
};
63
64
}
// namespace blender::ed::spreadsheet
BLI_function_ref.hh
blender::FunctionRef
Definition
BLI_function_ref.hh:74
blender::ed::spreadsheet::DataSource
Definition
spreadsheet_data_source.hh:19
blender::ed::spreadsheet::DataSource::tot_rows
virtual int tot_rows() const
Definition
spreadsheet_data_source.hh:58
blender::ed::spreadsheet::DataSource::foreach_default_column_ids
virtual void foreach_default_column_ids(FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)>) const
Definition
spreadsheet_data_source.hh:31
blender::ed::spreadsheet::DataSource::get_column_values
virtual std::unique_ptr< ColumnValues > get_column_values(const SpreadsheetColumnID &) const
Definition
spreadsheet_data_source.hh:40
blender::ed::spreadsheet::DataSource::has_selection_filter
virtual bool has_selection_filter() const
Definition
spreadsheet_data_source.hh:50
blender::ed::spreadsheet::DataSource::~DataSource
virtual ~DataSource()
blender::ed::spreadsheet
Definition
ED_space_api.hh:45
spreadsheet_column.hh
spreadsheet_column_values.hh
SpreadsheetColumnID
Definition
DNA_space_types.h:1929
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0