ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
Loading...
Searching...
No Matches
hdps::Core Class Reference

#include <Core.h>

Inheritance diagram for hdps::Core:
hdps::CoreInterface

Public Member Functions

 Core ()
 
 ~Core ()
 
void init () override
 
void reset () override
 
Dataset< DatasetImpladdDataset (const QString &kind, const QString &dataSetGuiName, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >(), const QString &id="") override
 
void removeDataset (Dataset< DatasetImpl > dataset) override final
 
Dataset< DatasetImplcreateDerivedDataset (const QString &guiName, const Dataset< DatasetImpl > &sourceDataset, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >()) override
 
Dataset< DatasetImplcreateSubsetFromSelection (const Dataset< DatasetImpl > &selection, const Dataset< DatasetImpl > &sourceDataset, const QString &guiName, const Dataset< DatasetImpl > &parentDataset, const bool &visible=true) override
 
Dataset< DatasetImplrequestDataset (const QString &datasetGuid) override
 
QVector< Dataset< DatasetImpl > > requestAllDataSets (const QVector< DataType > &dataTypes=QVector< DataType >()) override
 
Dataset< DatasetImplgroupDatasets (const Datasets &datasets, const QString &guiName="")
 
bool isDatasetGroupingEnabled () const override
 
void setDatasetGroupingEnabled (const bool &datasetGroupingEnabled) override
 
void addPlugin (plugin::Plugin *plugin)
 
AbstractActionsManagergetActionsManager () override
 
AbstractPluginManagergetPluginManager () override
 
AbstractEventManagergetEventManager () override
 
AbstractDataManagergetDataManager () override
 
AbstractDataHierarchyManagergetDataHierarchyManager () override
 
AbstractWorkspaceManagergetWorkspaceManager () override
 
AbstractProjectManagergetProjectManager ()
 
AbstractSettingsManagergetSettingsManager ()
 
- Public Member Functions inherited from hdps::CoreInterface
 CoreInterface ()
 
virtual bool isInitialized () const final
 
template<class DatasetType >
Dataset< DatasetType > addDataset (const QString &kind, const QString &dataSetGuiName, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >())
 
template<typename DatasetType >
Dataset< DatasetType > createDerivedDataset (const QString &guiName, const Dataset< DatasetImpl > &sourceDataset, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >())
 
template<typename DatasetType >
Dataset< DatasetType > createSubsetFromSelection (const Dataset< DatasetImpl > &selection, const Dataset< DatasetImpl > &sourceDataset, const QString &guiName, const Dataset< DatasetImpl > &parentDataset, const bool &visible=true)
 
template<typename DatasetType >
Dataset< DatasetType > requestDataset (const QString &datasetGuid)
 

Protected Member Functions

plugin::RawDatarequestRawData (const QString &name) override
 
Dataset< DatasetImplrequestSelection (const QString &rawDataName) override
 
- Protected Member Functions inherited from hdps::CoreInterface
template<typename DatasetType >
Dataset< DatasetType > requestSelection (const QString &rawDataName)
 

Friends

class DataHierarchyManager
 

Additional Inherited Members

- Protected Attributes inherited from hdps::CoreInterface
bool _initialized
 
bool _datasetGroupingEnabled
 

Constructor & Destructor Documentation

◆ Core()

hdps::Core::Core ( )

Default constructor

◆ ~Core()

hdps::Core::~Core ( )

Default destructor

Member Function Documentation

◆ addDataset()

Dataset< DatasetImpl > hdps::Core::addDataset ( const QString &  kind,
const QString &  dataSetGuiName,
const Dataset< DatasetImpl > &  parentDataset = Dataset<DatasetImpl>(),
const QString &  id = "" 
)
overridevirtual

Requests the plugin manager to create new RawData of the given kind The manager will add the raw data to the core and return the unique name of the data set linked with the raw data

Parameters
kindKind of plugin
datasetGuiNameName of the added dataset in the GUI
parentDatasetSmart pointer to the parent dataset in the data hierarchy (root if not valid)
idGlobally unique dataset identifier (use only for deserialization)
Returns
Smart pointer to the added dataset

Implements hdps::CoreInterface.

◆ addPlugin()

void hdps::Core::addPlugin ( plugin::Plugin plugin)

Adds the given plugin to the list of plugins kept by the core

◆ createDerivedDataset()

Dataset< DatasetImpl > hdps::Core::createDerivedDataset ( const QString &  guiName,
const Dataset< DatasetImpl > &  sourceDataset,
const Dataset< DatasetImpl > &  parentDataset = Dataset<DatasetImpl>() 
)
overridevirtual

Creates a dataset derived from a source dataset.

Parameters
guiNameGUI name for the new dataset from the core
sourceDatasetSmart pointer to the source dataset from which this dataset will be derived
parentDatasetSmart pointer to the parent dataset in the data hierarchy (will attach to root in hierarchy if not valid)
Returns
Smart pointer to the created derived dataset

Implements hdps::CoreInterface.

◆ createSubsetFromSelection()

Dataset< DatasetImpl > hdps::Core::createSubsetFromSelection ( const Dataset< DatasetImpl > &  selection,
const Dataset< DatasetImpl > &  sourceDataset,
const QString &  guiName,
const Dataset< DatasetImpl > &  parentDataset,
const bool &  visible = true 
)
overridevirtual

Creates a copy of the given selection set, adds the new set to the data manager and notifies all data consumers of the new set

Parameters
selectionSmart pointer to the selection set
sourceDatasetSmart pointer to the source dataset
guiNameGUI name of the subset
parentDatasetSmart pointer to the parent dataset in the data hierarchy (sourceSetName if not valid)
visibleWhether the new dataset is visible in the user interface
Returns
Smart pointer to the created subset

Implements hdps::CoreInterface.

◆ getActionsManager()

AbstractActionsManager & hdps::Core::getActionsManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ getDataHierarchyManager()

AbstractDataHierarchyManager & hdps::Core::getDataHierarchyManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ getDataManager()

AbstractDataManager & hdps::Core::getDataManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ getEventManager()

AbstractEventManager & hdps::Core::getEventManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ getPluginManager()

AbstractPluginManager & hdps::Core::getPluginManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ getProjectManager()

AbstractProjectManager & hdps::Core::getProjectManager ( )
virtual

Implements hdps::CoreInterface.

◆ getSettingsManager()

AbstractSettingsManager & hdps::Core::getSettingsManager ( )
virtual

Implements hdps::CoreInterface.

◆ getWorkspaceManager()

AbstractWorkspaceManager & hdps::Core::getWorkspaceManager ( )
overridevirtual

Implements hdps::CoreInterface.

◆ groupDatasets()

Dataset< DatasetImpl > hdps::Core::groupDatasets ( const Datasets datasets,
const QString &  guiName = "" 
)
virtual

Groups datasets into one dataset

Parameters
datasetsTwo or more datasets to group (if empty, the user will be prompted for a name)
Returns
Smart pointer to created group dataset

Implements hdps::CoreInterface.

◆ init()

void hdps::Core::init ( )
overridevirtual

Initializes all core managers

Reimplemented from hdps::CoreInterface.

◆ isDatasetGroupingEnabled()

bool hdps::Core::isDatasetGroupingEnabled ( ) const
overridevirtual

Get whether dataset grouping is enabled or not

Implements hdps::CoreInterface.

◆ removeDataset()

void hdps::Core::removeDataset ( Dataset< DatasetImpl dataset)
finaloverridevirtual

Removes a single dataset

Parameters
datasetSmart pointer to the dataset to remove

Implements hdps::CoreInterface.

◆ requestAllDataSets()

QVector< Dataset< DatasetImpl > > hdps::Core::requestAllDataSets ( const QVector< DataType > &  dataTypes = QVector<DataType>())
overridevirtual

Returns all data sets that are present in the core, filtered by data type(s) Returns all data sets in case of an empty filter

Parameters
dataTypesData types to filter
Returns
Vector of references to datasets

Implements hdps::CoreInterface.

◆ requestDataset()

Dataset< DatasetImpl > hdps::Core::requestDataset ( const QString &  datasetGuid)
overridevirtual

Requests a dataset from the core by dataset GUID (if no such instance can be found a fatal error is thrown)

Parameters
datasetGuidGUID of the dataset
Returns
Smart pointer to the dataset

Implements hdps::CoreInterface.

◆ requestRawData()

plugin::RawData & hdps::Core::requestRawData ( const QString &  name)
overrideprotectedvirtual

Requests an instance of a data type plugin from the core which has the same unique name as the given parameter, if no such instance can be found a fatal error is thrown

Parameters
datasetNameName of the dataset

Implements hdps::CoreInterface.

◆ requestSelection()

Dataset< DatasetImpl > hdps::Core::requestSelection ( const QString &  rawDataName)
overrideprotectedvirtual

Request a selection from the data manager by its corresponding raw data name.

Parameters
rawdataNameName of the raw data

Implements hdps::CoreInterface.

◆ reset()

void hdps::Core::reset ( )
overridevirtual

Resets the entire core implementation

Implements hdps::CoreInterface.

◆ setDatasetGroupingEnabled()

void hdps::Core::setDatasetGroupingEnabled ( const bool &  datasetGroupingEnabled)
overridevirtual

Get whether dataset grouping is enabled or not

Implements hdps::CoreInterface.

Friends And Related Symbol Documentation

◆ DataHierarchyManager

friend class DataHierarchyManager
friend

Manager for managing global settings


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