|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <ProjectManager.h>
Public Member Functions | |
| ProjectManager (QObject *parent=nullptr) | |
| void | initialize () override |
| void | reset () override |
| void | newProject (const QString &workspaceFilePath="") override |
| void | newProject (const Qt::AlignmentFlag &alignment, bool logging=false) override |
| void | newBlankProject () override |
| void | openProject (QString filePath="", bool importDataOnly=false, bool loadWorkspace=true) override |
| void | importProject (QString filePath="") override |
| void | saveProject (QString filePath="", const QString &password="") override |
| void | saveProjectAs () override |
| void | publishProject (QString filePath="") override |
| bool | hasProject () const override |
| const hdps::Project * | getCurrentProject () const override |
| hdps::Project * | getCurrentProject () override |
| QString | extractProjectFileFromHdpsFile (const QString &hdpsFilePath, QTemporaryDir &temporaryDir) override |
| QImage | getPreviewImage (const QString &projectFilePath, const QSize &targetSize=QSize(500, 500)) const override |
| void | fromVariantMap (const QVariantMap &variantMap) override |
| QVariantMap | toVariantMap () const override |
| QMenu & | getNewProjectMenu () override |
| QMenu & | getImportDataMenu () override |
| hdps::gui::TriggerAction & | getNewBlankProjectAction () override |
| hdps::gui::TriggerAction & | getNewProjectFromWorkspaceAction () override |
| hdps::gui::TriggerAction & | getOpenProjectAction () override |
| hdps::gui::TriggerAction & | getImportProjectAction () override |
| hdps::gui::TriggerAction & | getSaveProjectAction () override |
| hdps::gui::TriggerAction & | getSaveProjectAsAction () override |
| hdps::gui::TriggerAction & | getEditProjectSettingsAction () override |
| hdps::gui::RecentFilesAction & | getRecentProjectsAction () override |
| hdps::gui::TriggerAction & | getPublishAction () override |
| hdps::gui::TriggerAction & | getPluginManagerAction () override |
| hdps::gui::ToggleAction & | getShowStartPageAction () override |
Public Member Functions inherited from hdps::AbstractProjectManager | |
| AbstractProjectManager (QObject *parent=nullptr) | |
| 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 |
Public Member Functions inherited from hdps::AbstractManager | |
| AbstractManager (QObject *parent=nullptr, const QString &name="") | |
| virtual void | beginReset () final |
| 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 | fromParentVariantMap (const QVariantMap &parentVariantMap) |
| 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 | |
Public Types inherited from hdps::AbstractProjectManager | |
| enum class | State { Idle , OpeningProject , ImportingProject , SavingProject , PublishingProject } |
Public Types inherited from hdps::util::Serializable | |
| enum class | State { Idle , Reading , Writing } |
Signals inherited from hdps::AbstractProjectManager | |
| 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 () |
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) |
Project class
Class for managing the creation/loading/saving of projects and contains a single project instance.
| ProjectManager::ProjectManager | ( | QObject * | parent = nullptr | ) |
Creates a new project manager from with parent object
| parent | Pointer to parent object |
|
overridevirtual |
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 |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Load widget action from variant
| Variant | representation of the widget action |
Reimplemented from hdps::util::Serializable.
|
overridevirtual |
Get current project
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Get current project
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Get preview image of the project
| projectFilePath | Path of the project file |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
inlineoverridevirtual |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Get whether a project exists
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Import project from filePath (only import the data)
| filePath | File path of the project (choose file path when empty) |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Perform manager startup initialization
Reimplemented from hdps::AbstractManager.
|
overridevirtual |
Creates a new blank project (without any view plugins or data)
Implements hdps::AbstractProjectManager.
|
overridevirtual |
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) |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
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 |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
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 |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Publish project to filePath
| filePath | File path of the published project |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Resets the contents of the project manager
Implements hdps::AbstractManager.
|
overridevirtual |
Save a project to filePath
| filePath | File path of the project (choose file path when empty) |
| password | Encryption password |
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Save project to different file (user is prompted to choose the file location)
Implements hdps::AbstractProjectManager.
|
overridevirtual |
Save widget action to variant
Reimplemented from hdps::util::Serializable.