|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <AbstractProjectManager.h>
Classes | |
| class | ScopedState |
Public Types | |
| enum class | State { Idle , OpeningProject , ImportingProject , SavingProject , PublishingProject } |
Public Types inherited from hdps::util::Serializable | |
| enum class | State { Idle , Reading , Writing } |
Signals | |
| void | projectAboutToBeCreated () |
| void | projectCreated (const hdps::Project &project) |
| void | projectDestroyed (const QString &projectId) |
| void | projectAboutToBeOpened (const hdps::Project &project) |
| void | projectOpened (const hdps::Project &project) |
| void | projectAboutToBeImported (const QString &filePath) |
| void | projectImported (const QString &filePath) |
| void | projectAboutToBeSaved (const hdps::Project &project) |
| void | projectSaved (const hdps::Project &project) |
| void | projectAboutToBePublished (const hdps::Project &project) |
| void | projectPublished (const hdps::Project &project) |
| void | projectAboutToBeDestroyed (const hdps::Project &project) |
| void | stateChanged (const State &state) |
Signals inherited from hdps::AbstractManager | |
| void | managerAboutToBeInitialized () |
| void | managerInitialized () |
| void | managerAboutToBeReset () |
| void | managerReset () |
Public Member Functions | |
| AbstractProjectManager (QObject *parent=nullptr) | |
| virtual void | newProject (const QString &workspaceFilePath="")=0 |
| virtual void | newProject (const Qt::AlignmentFlag &defaultPluginsAlignment, bool logging=false)=0 |
| virtual void | newBlankProject ()=0 |
| virtual void | openProject (QString filePath="", bool importDataOnly=true, bool loadWorkspace=true)=0 |
| virtual void | importProject (QString filePath="")=0 |
| virtual void | saveProject (QString filePath="", const QString &password="")=0 |
| virtual void | saveProjectAs ()=0 |
| virtual void | publishProject (QString filePath="")=0 |
| virtual bool | hasProject () const =0 |
| virtual const Project * | getCurrentProject () const =0 |
| virtual Project * | getCurrentProject ()=0 |
| virtual QString | extractProjectFileFromHdpsFile (const QString &hdpsFilePath, QTemporaryDir &temporaryDir)=0 |
| virtual QImage | getPreviewImage (const QString &projectFilePath, const QSize &targetSize=QSize(500, 500)) const =0 |
| virtual QMenu & | getNewProjectMenu ()=0 |
| virtual QMenu & | getImportDataMenu ()=0 |
| virtual State | getState () const final |
| virtual void | setState (const State &state) final |
| virtual bool | isOpeningProject () const final |
| virtual bool | isImportingProject () const final |
| virtual bool | isSavingProject () const final |
| virtual bool | isPublishingProject () const final |
| virtual hdps::gui::TriggerAction & | getNewBlankProjectAction ()=0 |
| virtual hdps::gui::TriggerAction & | getNewProjectFromWorkspaceAction ()=0 |
| virtual hdps::gui::TriggerAction & | getOpenProjectAction ()=0 |
| virtual hdps::gui::TriggerAction & | getImportProjectAction ()=0 |
| virtual hdps::gui::TriggerAction & | getSaveProjectAction ()=0 |
| virtual hdps::gui::TriggerAction & | getSaveProjectAsAction ()=0 |
| virtual hdps::gui::TriggerAction & | getEditProjectSettingsAction ()=0 |
| virtual hdps::gui::RecentFilesAction & | getRecentProjectsAction ()=0 |
| virtual hdps::gui::TriggerAction & | getPublishAction ()=0 |
| virtual hdps::gui::TriggerAction & | getPluginManagerAction ()=0 |
| virtual hdps::gui::ToggleAction & | getShowStartPageAction ()=0 |
Public Member Functions inherited from hdps::AbstractManager | |
| AbstractManager (QObject *parent=nullptr, const QString &name="") | |
| virtual void | initialize () |
| virtual void | beginReset () final |
| virtual void | reset ()=0 |
| virtual void | endReset () final |
| virtual void | beginInitialization () final |
| virtual void | endInitialization () final |
| virtual bool | isInitialized () const final |
| virtual QIcon | getIcon () const |
| gui::LockingAction & | getLockingAction () |
| virtual bool | mayLock () const |
| virtual bool | mayUnlock () const |
Public Member Functions inherited from hdps::util::Serializable | |
| Serializable (const QString &serializationName="") | |
| virtual QString | getId () const final |
| virtual void | setId (const QString &id) final |
| virtual QString | getSerializationName () const final |
| virtual void | setSerializationName (const QString &serializationName) final |
| virtual void | fromVariantMap (const QVariantMap &variantMap) |
| virtual void | fromParentVariantMap (const QVariantMap &parentVariantMap) |
| virtual QVariantMap | toVariantMap () const |
| virtual void | insertIntoVariantMap (QVariantMap &variantMap) const final |
| virtual void | fromJsonDocument (const QJsonDocument &jsonDocument) final |
| virtual QJsonDocument | toJsonDocument () const final |
| virtual void | fromJsonFile (const QString &filePath="") final |
| virtual void | toJsonFile (const QString &filePath="") final |
| virtual void | makeUnique () final |
Additional Inherited Members | |
Static Public Member Functions inherited from hdps::util::Serializable | |
| static QString | createId () |
Static Protected Member Functions inherited from hdps::util::Serializable | |
| static void | fromVariantMap (Serializable *serializable, const QVariantMap &variantMap) |
| static void | fromVariantMap (Serializable &serializable, const QVariantMap &variantMap, const QString &key) |
| static QVariantMap | toVariantMap (const Serializable *serializable) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap, const QString &key) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap) |
Abstract project manager class
Base abstract plugin manager class for managing projects.
|
strong |
|
inline |
Construct project manager with parent object
| parent | Pointer to parent object |
|
pure virtual |
Extract the project JSON file (project.json) from a compressed HDPS file (*.hdps)
| hdpsFilePath | File path of the compressed HDPS file (*.hdps) |
| temporaryDir | Temporary directory to store the project.json file |
Implemented in ProjectManager.
|
pure virtual |
Get current project
Implemented in ProjectManager.
|
pure virtual |
Get current project
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Get preview image of the project
| projectFilePath | Path of the project file |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
pure virtual |
Implemented in ProjectManager.
|
inlinefinalvirtual |
Get the state of the project manager
|
pure virtual |
Get whether a project exists
Implemented in ProjectManager.
|
pure virtual |
Import project from filePath (only import the data)
| filePath | File path of the project (choose file path when empty) |
Implemented in ProjectManager.
|
inlinefinalvirtual |
Get whether the project manager is importing a project
|
inlinefinalvirtual |
Get whether the project manager is opening a project
|
inlinefinalvirtual |
Get whether the project manager is publishing a project
|
inlinefinalvirtual |
Get whether the project manager is saving a project
|
pure virtual |
Creates a new blank project (without any view plugins or data)
Implemented in ProjectManager.
|
pure virtual |
Creates a new project, possibly also loading a workspace located at workspaceFilePath
| workspaceFilePath | File path of the workspace to load (will not attempt to load workspace if empty) |
Implemented in ProjectManager.
|
pure virtual |
Creates a new project with default system view plugins (either on the left or right, other alignments are ignored)
| alignment | Alignment of the default plugins |
| logging | Whether to add a logging view at the bottom |
Implemented in ProjectManager.
|
pure virtual |
Open project from filePath
| filePath | File path of the project (choose file path when empty) |
| importDataOnly | Whether to only import the data from the project |
| loadWorkspace | Whether to load the workspace which is accompanied with the project |
Implemented in ProjectManager.
|
signal |
Signals that a new project is about to be created
|
signal |
Signals that project is about to be destroyed
| project | Reference to the project that is about to be destroyed |
|
signal |
Signals that a project is about to be imported from filePath
| filePath | Path of the project file which is about to be imported |
|
signal |
Signals that project is about to be opened
| project | Reference to the project that is about to be opened |
|
signal |
Signals that project is about to be published
| project | Reference to the project that is about to be published |
|
signal |
Signals that project is about to be saved
| project | Reference to the project that is about to be saved |
|
signal |
Signals that project is created
| project | Reference to the created project |
|
signal |
Signals that project with projectId is destroyed
| projectId | Globally unique identifier of the project that is destroyed |
|
signal |
Signals that a project is imported from filePath
| filePath | Path of the project file which is imported |
|
signal |
Signals that project is opened
| project | Reference to the project that is opened |
|
signal |
Signals that project is published
| project | Reference to the published project |
|
signal |
Signals that project is saved
| project | Reference to the saved project |
|
pure virtual |
Publish project to filePath
| filePath | File path of the published project |
Implemented in ProjectManager.
|
pure virtual |
Save a project to filePath
| filePath | File path of the project (choose file path when empty) |
| password | Encryption password |
Implemented in ProjectManager.
|
pure virtual |
Save project to different file (user is prompted to choose the file location)
Implemented in ProjectManager.
|
inlinefinalvirtual |
Set the state of the serializable object to state
| state | State of the serializable object |
|
signal |
Signals that the state of the project manager changed to state
| state | State of the project manager |