Skip to content

Commit 733064b

Browse files
Update data plugin to core version 0.2
1 parent 7473b3c commit 733064b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ExampleData/src/ExampleDataPlugin.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ class PixelSet : public hdps::DataSet
4444
PixelSet(hdps::CoreInterface* core, QString dataName) : DataSet(core, dataName) { }
4545
~PixelSet() override { }
4646

47-
void createSubset() const override
47+
// Create a subset of the data from selected indices
48+
QString createSubset() const override
4849
{
49-
const hdps::DataSet& selection = _core->requestSelection(getDataName());
50+
const hdps::DataSet& selection = getSelection();
5051

51-
_core->createSubsetFromSelection(selection, getDataName(), "Subset");
52+
return _core->createSubsetFromSelection(selection, *this, "Subset");
5253
}
5354

5455
DataSet* copy() const override;
5556

57+
// Indices into the raw data, if this dataset is just a subset
5658
std::vector<unsigned int> indices;
5759
};
5860

0 commit comments

Comments
 (0)