![]() |
ImFusion C++ SDK 4.5.0
|
Public Member Functions | |
| AnnotationOnlyView (Project &p) | |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| void | loadFromPath (QString dataPath, QString labelmapPath="") |
| Loads an image from the given path and shows it in the views. | |
| void | setSaveUrl (const Filesystem::Url &url) |
| Hardcodes a URL that will be used when clicking the save button. | |
| bool | saveToFile (Filesystem::Url url, const IO::OutputFormat &outputFormat, Progress *progress) |
| Save the current or all pixelwise layers (depending on the outputFormat) to the given url. | |
| bool | saveToFile (const Filesystem::Path &path, const IO::OutputFormat &outputFormat, Progress *progress) |
| void | setLoadButtonVisible (bool visible) |
| Hides the Load button in the top bar. | |
| Public Member Functions inherited from ImFusion::SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
| Protected Member Functions inherited from ImFusion::SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
| void ImFusion::AnnotationOnlyView::loadFromPath | ( | QString | dataPath, |
| QString | labelmapPath = "" ) |
Loads an image from the given path and shows it in the views.
If a non-empty labelmapPath is given, a pixelwise labelmap is loaded as well.
| void ImFusion::AnnotationOnlyView::setSaveUrl | ( | const Filesystem::Url & | url | ) |
Hardcodes a URL that will be used when clicking the save button.
If empty (default) the save button will show a file selection dialog.
| bool ImFusion::AnnotationOnlyView::saveToFile | ( | Filesystem::Url | url, |
| const IO::OutputFormat & | outputFormat, | ||
| Progress * | progress ) |
Save the current or all pixelwise layers (depending on the outputFormat) to the given url.
Both file: and http(s): URLs are supported. In case of http(s), a POST request is performed that contains the resulting segmentation as an ImFusionFile under the key 'segmentation'. Returns false and shows a QMessageBox on failure.