ImFusion C++ SDK 4.4.0
ImFusion::TotalSegmentatorAction Class Reference

#include <ImFusionLabels/lib/include/ImFusion/Labels/Annotation/TotalSegmentatorAction.h>

Provides an action that can run TotalSegmentator and map the resulting labels to the project. More...

Inheritance diagram for ImFusion::TotalSegmentatorAction:

Detailed Description

Provides an action that can run TotalSegmentator and map the resulting labels to the project.

The action supports multiple models that have to downloaded beforehand in the settings. If no model is available, the action UI is disabled and an error pointing to the settings is displayed.

Public Member Functions

bool isProjectCompatible () const override
bool isProjectCompatible (const Project::ProjectTypes &, bool) const override
bool areActiveLayersCompatible () const override
bool isDataSetCompatible (const DataSet &) const override
QIcon icon () const override
QString text () const override
QString description () const override
QString docPath () const override
bool isReadOnly () const override
QWidget * ui (QWidget *=nullptr) override
void init () override
void activate () override
void setMappingsToIgnore ()
 Sets all mappings to ignore.
void setAutoMappings ()
 Tries to automatically match labels defined in the project to labelnames known to TotalSegmentator.
Public Member Functions inherited from ImFusion::AnnotationAction
virtual void dataSetChanged ()
virtual void deactivate ()
virtual bool inputEvent (QEvent *)
virtual void configuration (Properties *) const override
 Serialize the current object configuration into the given Properties object.
virtual void configure (const Properties *) override
 Configure this object instance by de-serializing the given Properties.
Public Member Functions inherited from ImFusion::Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 Configurable (const Configurable &rhs)
 Configurable (Configurable &&rhs) noexcept
Configurable & operator= (const Configurable &)
Configurable & operator= (Configurable &&) noexcept

Additional Inherited Members

Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
Protected Attributes inherited from ImFusion::AnnotationAction
bool m_isActive = false
DataSetm_dataSet = nullptr
const Projectm_project = nullptr
DisplayWidgetMultiAdapter m_disp
ThumbnailLoaderm_thumbnailLoader = nullptr
AnnotationActionSharedStatem_sharedState = nullptr
AnnotationViewm_annotationView = nullptr
Protected Attributes inherited from ImFusion::Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.

Member Function Documentation

◆ isProjectCompatible() [1/2]

bool ImFusion::TotalSegmentatorAction::isProjectCompatible ( ) const
overridevirtual

◆ isProjectCompatible() [2/2]

bool ImFusion::TotalSegmentatorAction::isProjectCompatible ( const Project::ProjectTypes & ,
bool  ) const
overridevirtual

◆ areActiveLayersCompatible()

bool ImFusion::TotalSegmentatorAction::areActiveLayersCompatible ( ) const
overridevirtual

◆ isDataSetCompatible()

bool ImFusion::TotalSegmentatorAction::isDataSetCompatible ( const DataSet & ) const
overridevirtual

◆ icon()

QIcon ImFusion::TotalSegmentatorAction::icon ( ) const
overridevirtual

◆ text()

QString ImFusion::TotalSegmentatorAction::text ( ) const
overridevirtual

◆ description()

QString ImFusion::TotalSegmentatorAction::description ( ) const
overridevirtual

◆ docPath()

QString ImFusion::TotalSegmentatorAction::docPath ( ) const
overridevirtual

◆ isReadOnly()

bool ImFusion::TotalSegmentatorAction::isReadOnly ( ) const
overridevirtual

◆ ui()

QWidget * ImFusion::TotalSegmentatorAction::ui ( QWidget * = nullptr)
overridevirtual

◆ init()

void ImFusion::TotalSegmentatorAction::init ( )
overridevirtual

Reimplemented from ImFusion::AnnotationAction.

◆ activate()

void ImFusion::TotalSegmentatorAction::activate ( )
overridevirtual

Reimplemented from ImFusion::AnnotationAction.

◆ setAutoMappings()

void ImFusion::TotalSegmentatorAction::setAutoMappings ( )

Tries to automatically match labels defined in the project to labelnames known to TotalSegmentator.

See ImFusion::LabelNameMatching for details. Each TotalSegmentator label will only match once. E.g. if the project has two labels with the same name, only one will be assigned the matching TotalSegmentator label.


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