ImFusion C++ SDK 4.5.0
ImFusion::AnnotationOnlyView Class Reference
Inheritance diagram for ImFusion::AnnotationOnlyView:

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.
SignalReceiveroperator= (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.

Member Function Documentation

◆ loadFromPath()

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.

◆ setSaveUrl()

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.

◆ saveToFile()

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.


The documentation for this class was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/UI/AnnotationOnlyView.h
Search Tab / S to search, Esc to close