|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <DatasetPickerAction.h>
Public Types | |
| enum class | Column { Name , GUID } |
Public Member Functions | |
| DatasetsModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | rowIndex (const hdps::Dataset< hdps::DatasetImpl > &dataset) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role) const |
| const QVector< hdps::Dataset< hdps::DatasetImpl > > & | getDatasets () const |
| hdps::Dataset< hdps::DatasetImpl > | getDataset (const std::int32_t &rowIndex) const |
| void | setDatasets (const QVector< hdps::Dataset< hdps::DatasetImpl > > &datasets) |
| void | addDataset (const hdps::Dataset< hdps::DatasetImpl > &dataset) |
| void | removeDataset (const hdps::Dataset< hdps::DatasetImpl > &dataset) |
| void | removeAllDatasets () |
| bool | getShowIcon () const |
| void | setShowIcon (bool showIcon) |
| bool | getShowLocation () const |
| void | setShowLocation (bool showLocation) |
| void | updateData () |
Protected Attributes | |
| QVector< hdps::Dataset< hdps::DatasetImpl > > | _datasets |
| bool | _showIcon |
| bool | _showLocation |
Datasets list model class
List model class which serves as input to the dataset picker option action class
|
strong |
| hdps::gui::DatasetPickerAction::DatasetsModel::DatasetsModel | ( | QObject * | parent = nullptr | ) |
(Default) constructor
| void hdps::gui::DatasetPickerAction::DatasetsModel::addDataset | ( | const hdps::Dataset< hdps::DatasetImpl > & | dataset | ) |
Add dataset
| dataset | Smart pointer to dataset |
| int hdps::gui::DatasetPickerAction::DatasetsModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Get the number of columns
| parent | Parent model index |
| QVariant hdps::gui::DatasetPickerAction::DatasetsModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Get data
| index | Model index to query |
| role | Data role |
| Dataset< DatasetImpl > hdps::gui::DatasetPickerAction::DatasetsModel::getDataset | ( | const std::int32_t & | rowIndex | ) | const |
Get dataset at the specified row index
| rowIndex | Index of the row |
| const QVector< Dataset< DatasetImpl > > & hdps::gui::DatasetPickerAction::DatasetsModel::getDatasets | ( | ) | const |
Get datasets
| bool hdps::gui::DatasetPickerAction::DatasetsModel::getShowIcon | ( | ) | const |
Get whether to show the dataset icon
| bool hdps::gui::DatasetPickerAction::DatasetsModel::getShowLocation | ( | ) | const |
Get to show the dataset location
| void hdps::gui::DatasetPickerAction::DatasetsModel::removeAllDatasets | ( | ) |
Remove all datasets from the model
| void hdps::gui::DatasetPickerAction::DatasetsModel::removeDataset | ( | const hdps::Dataset< hdps::DatasetImpl > & | dataset | ) |
Remove specific dataset
| dataset | Smart pointer to dataset |
| int hdps::gui::DatasetPickerAction::DatasetsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Get the number of row
| parent | Parent model index |
| int hdps::gui::DatasetPickerAction::DatasetsModel::rowIndex | ( | const hdps::Dataset< hdps::DatasetImpl > & | dataset | ) | const |
Get the row index of a dataset
| parent | Parent model index |
| void hdps::gui::DatasetPickerAction::DatasetsModel::setDatasets | ( | const QVector< hdps::Dataset< hdps::DatasetImpl > > & | datasets | ) |
Set datasets (resets the model)
| datasets | Vector of smart pointers to datasets |
| void hdps::gui::DatasetPickerAction::DatasetsModel::setShowIcon | ( | bool | showIcon | ) |
Set whether to show the icon
| showFullPathName | Whether to show the icon |
| void hdps::gui::DatasetPickerAction::DatasetsModel::setShowLocation | ( | bool | showLocation | ) |
Set whether to show the full path name in the GUI
| showFullPathName | Whether to show the full path name in the GUI |
| void hdps::gui::DatasetPickerAction::DatasetsModel::updateData | ( | ) |
Updates the model from the datasets
|
protected |
|
protected |
Datasets from which can be picked
|
protected |
Whether to show the dataset icon