Inviwo  0.9.10.1
Inviwo documentation
inviwo::InviwoMainWindow Class Reference
+ Inheritance diagram for inviwo::InviwoMainWindow:

Public Member Functions

 InviwoMainWindow (InviwoApplicationQt *app)
 
void showWindow ()
 
bool openExample (QString exampleFileName)
 
void openLastWorkspace (std::string workspace="")
 
bool openWorkspace (QString workspaceFileName)
 
bool openWorkspaceAskToSave (QString workspaceFileName)
 
std::string getCurrentWorkspace ()
 
NetworkEditorgetNetworkEditor () const
 
NetworkEditorViewgetNetworkEditorView () const
 
TextLabelOverlaygetNetworkEditorOverlay () const
 
SettingsWidgetgetSettingsWidget () const
 
ProcessorTreeWidgetgetProcessorTreeWidget () const
 
PropertyListWidgetgetPropertyListWidget () const
 
ConsoleWidgetgetConsoleWidget () const
 
AnnotationsWidgetgetAnnotationsWidget () const
 
HelpWidgetgetHelpWidget () const
 
InviwoApplicationgetInviwoApplication () const
 
InviwoApplicationQtgetInviwoApplicationQt () const
 
InviwoEditMenugetInviwoEditMenu () const
 
ToolsMenugetToolsMenu () const
 
bool newWorkspace ()
 
bool openWorkspace ()
 
void saveWorkspace ()
 
void saveWorkspaceAs ()
 
void saveWorkspaceAsCopy ()
 
bool askToSaveWorkspaceChanges ()
 
void exitInviwo (bool saveIfModified=true)
 
void showAboutBox ()
 
void showWelcomeScreen ()
 
void hideWelcomeScreen ()
 
QStringList getRecentWorkspaceList () const
 query the Qt settings for recent workspaces
 
- Public Member Functions inherited from inviwo::NetworkEditorObserver
virtual void onNetworkEditorFileChanged (const std::string &)
 
virtual void onSceneSizeChanged ()
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 

Static Public Attributes

static const unsigned int maxNumRecentFiles_ = 10
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Additional Inherited Members

- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Member Function Documentation

◆ newWorkspace()

bool inviwo::InviwoMainWindow::newWorkspace ( )

sets up an empty workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the task.

Returns
true if the workspace was opened, otherwise false.
See also
askToSaveWorkspaceChanges

◆ openExample()

bool inviwo::InviwoMainWindow::openExample ( QString  exampleFileName)

loads the given example workspace.

Returns
true if the example was opened, otherwise false.

◆ openWorkspace() [1/2]

bool inviwo::InviwoMainWindow::openWorkspace ( QString  workspaceFileName)

loads the given workspace.

Returns
true if the workspace was opened, otherwise false.

◆ openWorkspace() [2/2]

bool inviwo::InviwoMainWindow::openWorkspace ( )

shows a file dialog for loading a workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the loading.

Returns
true if the workspace was opened, otherwise false.
See also
askToSaveWorkspaceChanges

◆ openWorkspaceAskToSave()

bool inviwo::InviwoMainWindow::openWorkspaceAskToSave ( QString  workspaceFileName)

loads the given workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the loading.

Returns
true if the workspace was opened, otherwise false.

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