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

#include <CoreInterface.h>

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

Public Member Functions

 CoreInterface ()
 
virtual void init ()
 
virtual void reset ()=0
 
virtual bool isInitialized () const final
 
virtual Dataset< DatasetImpladdDataset (const QString &kind, const QString &dataSetGuiName, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >(), const QString &id="")=0
 
virtual void removeDataset (Dataset< DatasetImpl > dataset)=0
 
template<class DatasetType >
Dataset< DatasetType > addDataset (const QString &kind, const QString &dataSetGuiName, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >())
 
virtual Dataset< DatasetImplcreateDerivedDataset (const QString &guiName, const Dataset< DatasetImpl > &sourceDataset, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >())=0
 
template<typename DatasetType >
Dataset< DatasetType > createDerivedDataset (const QString &guiName, const Dataset< DatasetImpl > &sourceDataset, const Dataset< DatasetImpl > &parentDataset=Dataset< DatasetImpl >())
 
virtual Dataset< DatasetImplcreateSubsetFromSelection (const Dataset< DatasetImpl > &selection, const Dataset< DatasetImpl > &sourceDataset, const QString &guiName, const Dataset< DatasetImpl > &parentDataset, const bool &visible=true)=0
 
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)
 
virtual Dataset< DatasetImplrequestDataset (const QString &datasetGuid)=0
 
template<typename DatasetType >
Dataset< DatasetType > requestDataset (const QString &datasetGuid)
 
virtual QVector< Dataset< DatasetImpl > > requestAllDataSets (const QVector< DataType > &dataTypes=QVector< DataType >())=0
 
virtual Dataset< DatasetImplgroupDatasets (const Datasets &datasets, const QString &guiName="")=0
 
virtual bool isDatasetGroupingEnabled () const =0
 
virtual void setDatasetGroupingEnabled (const bool &datasetGroupingEnabled)=0
 
virtual AbstractActionsManagergetActionsManager ()=0
 
virtual AbstractPluginManagergetPluginManager ()=0
 
virtual AbstractEventManagergetEventManager ()=0
 
virtual AbstractDataManagergetDataManager ()=0
 
virtual AbstractDataHierarchyManagergetDataHierarchyManager ()=0
 
virtual AbstractWorkspaceManagergetWorkspaceManager ()=0
 
virtual AbstractProjectManagergetProjectManager ()=0
 
virtual AbstractSettingsManagergetSettingsManager ()=0
 

Protected Member Functions

virtual plugin::RawDatarequestRawData (const QString &datasetName)=0
 
virtual Dataset< DatasetImplrequestSelection (const QString &rawDataName)=0
 
template<typename DatasetType >
Dataset< DatasetType > requestSelection (const QString &rawDataName)
 

Protected Attributes

bool _initialized
 
bool _datasetGroupingEnabled
 

Friends

class plugin::RawData
 
class DatasetImpl
 
class EventListener
 

Constructor & Destructor Documentation

◆ CoreInterface()

hdps::CoreInterface::CoreInterface ( )
inline

Default constructor

Member Function Documentation

◆ addDataset() [1/2]

template<class DatasetType >
Dataset< DatasetType > hdps::CoreInterface::addDataset ( const QString &  kind,
const QString &  dataSetGuiName,
const Dataset< DatasetImpl > &  parentDataset = Dataset<DatasetImpl>() 
)
inline

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 smart pointer is not valid)
Returns
Smart pointer to the added dataset

◆ addDataset() [2/2]

virtual Dataset< DatasetImpl > hdps::CoreInterface::addDataset ( const QString &  kind,
const QString &  dataSetGuiName,
const Dataset< DatasetImpl > &  parentDataset = DatasetDatasetImpl >(),
const QString &  id = "" 
)
pure virtual

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

Implemented in hdps::Core.

◆ createDerivedDataset() [1/2]

template<typename DatasetType >
Dataset< DatasetType > hdps::CoreInterface::createDerivedDataset ( const QString &  guiName,
const Dataset< DatasetImpl > &  sourceDataset,
const Dataset< DatasetImpl > &  parentDataset = Dataset<DatasetImpl>() 
)
inline

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

◆ createDerivedDataset() [2/2]

virtual Dataset< DatasetImpl > hdps::CoreInterface::createDerivedDataset ( const QString &  guiName,
const Dataset< DatasetImpl > &  sourceDataset,
const Dataset< DatasetImpl > &  parentDataset = DatasetDatasetImpl >() 
)
pure virtual

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 source dataset in hierarchy if not valid)
Returns
Smart pointer to the created derived dataset

Implemented in hdps::Core.

◆ createSubsetFromSelection() [1/2]

template<typename DatasetType >
Dataset< DatasetType > hdps::CoreInterface::createSubsetFromSelection ( const Dataset< DatasetImpl > &  selection,
const Dataset< DatasetImpl > &  sourceDataset,
const QString &  guiName,
const Dataset< DatasetImpl > &  parentDataset,
const bool &  visible = true 
)
inline

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

◆ createSubsetFromSelection() [2/2]

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

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

Implemented in hdps::Core.

◆ getActionsManager()

virtual AbstractActionsManager & hdps::CoreInterface::getActionsManager ( )
pure virtual

Implemented in hdps::Core.

◆ getDataHierarchyManager()

virtual AbstractDataHierarchyManager & hdps::CoreInterface::getDataHierarchyManager ( )
pure virtual

Implemented in hdps::Core.

◆ getDataManager()

virtual AbstractDataManager & hdps::CoreInterface::getDataManager ( )
pure virtual

Implemented in hdps::Core.

◆ getEventManager()

virtual AbstractEventManager & hdps::CoreInterface::getEventManager ( )
pure virtual

Implemented in hdps::Core.

◆ getPluginManager()

virtual AbstractPluginManager & hdps::CoreInterface::getPluginManager ( )
pure virtual

Implemented in hdps::Core.

◆ getProjectManager()

virtual AbstractProjectManager & hdps::CoreInterface::getProjectManager ( )
pure virtual

Implemented in hdps::Core.

◆ getSettingsManager()

virtual AbstractSettingsManager & hdps::CoreInterface::getSettingsManager ( )
pure virtual

Implemented in hdps::Core.

◆ getWorkspaceManager()

virtual AbstractWorkspaceManager & hdps::CoreInterface::getWorkspaceManager ( )
pure virtual

Implemented in hdps::Core.

◆ groupDatasets()

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

Groups datasets into one dataset

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

Implemented in hdps::Core.

◆ init()

virtual void hdps::CoreInterface::init ( )
inlinevirtual

Initializes all core managers

Reimplemented in hdps::Core.

◆ isDatasetGroupingEnabled()

virtual bool hdps::CoreInterface::isDatasetGroupingEnabled ( ) const
pure virtual

Get whether dataset grouping is enabled or not

Implemented in hdps::Core.

◆ isInitialized()

virtual bool hdps::CoreInterface::isInitialized ( ) const
inlinefinalvirtual

Get whether the core is initialized or not

Returns
Boolean determining whether the core is initialized or not

◆ removeDataset()

virtual void hdps::CoreInterface::removeDataset ( Dataset< DatasetImpl dataset)
pure virtual

Removes a single dataset

Parameters
datasetSmart pointer to the dataset to remove

Implemented in hdps::Core.

◆ requestAllDataSets()

virtual QVector< Dataset< DatasetImpl > > hdps::CoreInterface::requestAllDataSets ( const QVector< DataType > &  dataTypes = QVector< DataType >())
pure virtual

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

Implemented in hdps::Core.

◆ requestDataset() [1/2]

template<typename DatasetType >
Dataset< DatasetType > hdps::CoreInterface::requestDataset ( const QString &  datasetGuid)
inline

Requests a dataset of a specific type 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

◆ requestDataset() [2/2]

virtual Dataset< DatasetImpl > hdps::CoreInterface::requestDataset ( const QString &  datasetGuid)
pure virtual

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

Implemented in hdps::Core.

◆ requestRawData()

virtual plugin::RawData & hdps::CoreInterface::requestRawData ( const QString &  datasetName)
protectedpure virtual

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

Implemented in hdps::Core.

◆ requestSelection() [1/2]

template<typename DatasetType >
Dataset< DatasetType > hdps::CoreInterface::requestSelection ( const QString &  rawDataName)
inlineprotected

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

Parameters
rawdataNameName of the raw data

◆ requestSelection() [2/2]

virtual Dataset< DatasetImpl > hdps::CoreInterface::requestSelection ( const QString &  rawDataName)
protectedpure virtual

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

Parameters
rawdataNameName of the raw data

Implemented in hdps::Core.

◆ reset()

virtual void hdps::CoreInterface::reset ( )
pure virtual

Resets the entire core implementation

Implemented in hdps::Core.

◆ setDatasetGroupingEnabled()

virtual void hdps::CoreInterface::setDatasetGroupingEnabled ( const bool &  datasetGroupingEnabled)
pure virtual

Get whether dataset grouping is enabled or not

Implemented in hdps::Core.

Friends And Related Symbol Documentation

◆ DatasetImpl

friend class DatasetImpl
friend

◆ EventListener

friend class EventListener
friend

◆ plugin::RawData

friend class plugin::RawData
friend

Whether datasets can be grouped or not

Member Data Documentation

◆ _datasetGroupingEnabled

bool hdps::CoreInterface::_datasetGroupingEnabled
protected

Boolean determining whether the core is initialized or not

◆ _initialized

bool hdps::CoreInterface::_initialized
protected

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