![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Interface for anything that can be saved as a project. More...
#include <iASavableProject.h>
Public Member Functions | |
| void | saveProject () |
| Called from main window to save the project of the current window. More... | |
Protected Member Functions | |
| virtual | ~iASavableProject () |
| Prevent destruction of the object through this interface. More... | |
Interface for anything that can be saved as a project.
Necessary since not all current tools employ mdichild as container for their widgets. So every such container needs to implement this class and its doLoadProject method, in order to be called when the user selects to "Save Project".
Refactoring ideas:
|
protectedvirtual |
Prevent destruction of the object through this interface.
| void iASavableProject::saveProject | ( | ) |
Called from main window to save the project of the current window.
In case you're wondering why there are two methods in this class, this one and the virtual "doLoadProject": This is because it follows the "Non-Virtual Interface Idiom", see http://www.gotw.ca/publications/mill18.htm
1.8.16