Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ShowSegmentationAsSmoothedSurface Class Reference

Converts a segmentation image to a smoothed surface and adds it to the DataStorage. More...

#include <mitkShowSegmentationAsSmoothedSurface.h>

Inheritance diagram for mitk::ShowSegmentationAsSmoothedSurface:
Collaboration diagram for mitk::ShowSegmentationAsSmoothedSurface:

Public Member Functions

 mitkClassMacro (ShowSegmentationAsSmoothedSurface, SegmentationSink)
 
 mitkAlgorithmNewMacro (ShowSegmentationAsSmoothedSurface)
 
- Public Member Functions inherited from mitk::SegmentationSink
 mitkClassMacro (SegmentationSink, NonBlockingAlgorithm)
 
 mitkAlgorithmNewMacro (SegmentationSink)
 
- Public Member Functions inherited from mitk::NonBlockingAlgorithm
 mitkClassMacroItkParent (NonBlockingAlgorithm, itk::Object)
 
void SetDataStorage (DataStorage &storage)
 Set the DataStorage for this algorithm. More...
 
DataStorage * GetDataStorage ()
 Get the DataStorage associated with this algorithm. More...
 
template<typename T >
void SetParameter (const char *parameter, const T &value)
 Set a parameter of any normal (value) type. More...
 
template<typename T >
void SetPointerParameter (const char *parameter, const itk::SmartPointer< T > &value)
 Set a parameter that holds a smart pointer. More...
 
void SetPointerParameter (const char *parameter, BaseData *value)
 Set a parameter that holds a BaseData pointer (Image, Surface, etc.). More...
 
template<typename TPixel , unsigned int VImageDimension>
void SetItkImageAsMITKImagePointerParameter (const char *parameter, itk::Image< TPixel, VImageDimension > *itkImage)
 Set an ITK image as a MITK Image parameter (raw pointer version). More...
 
template<typename TPixel , unsigned int VImageDimension>
void SetItkImageAsMITKImagePointerParameter (const char *parameter, const itk::SmartPointer< itk::Image< TPixel, VImageDimension >> &itkImage)
 Set an ITK image as a MITK Image parameter (smart pointer version). More...
 
template<typename T >
void GetParameter (const char *parameter, T &value) const
 Get a parameter of any normal (value) type. More...
 
template<typename T >
void GetPointerParameter (const char *parameter, itk::SmartPointer< T > &value) const
 Get a parameter that holds a smart pointer. More...
 
virtual void Reset ()
 Reset the algorithm to its initial state. More...
 
void StartAlgorithm ()
 Start the algorithm asynchronously in a background thread. More...
 
void StartBlockingAlgorithm ()
 Start the algorithm and block until it completes. More...
 
void StopAlgorithm ()
 Wait for the running algorithm thread to finish. More...
 
void TriggerParameterModified (const itk::EventObject &event)
 Callback invoked when a trigger parameter is modified. More...
 
void ThreadedUpdateSuccessful (const itk::EventObject &event)
 GUI-thread callback when the threaded update succeeds. More...
 
void ThreadedUpdateFailed (const itk::EventObject &event)
 GUI-thread callback when the threaded update fails. More...
 

Protected Member Functions

void Initialize (const NonBlockingAlgorithm *other=nullptr) override
 
bool ReadyToRun () override
 
bool ThreadedUpdateFunction () override
 
void ThreadedUpdateSuccessful () override
 
- Protected Member Functions inherited from mitk::SegmentationSink
 SegmentationSink ()
 
 ~SegmentationSink () override
 
void InsertBelowGroupNode (mitk::DataNode *node)
 
DataNode * LookForPointerTargetBelowGroupNode (const char *name)
 
DataNode * GetGroupNode ()
 
- Protected Member Functions inherited from mitk::NonBlockingAlgorithm
 NonBlockingAlgorithm ()
 
 ~NonBlockingAlgorithm () override
 
void DefineTriggerParameter (const char *)
 
void UnDefineTriggerParameter (const char *)
 
virtual void ThreadedUpdateFailed ()
 

Additional Inherited Members

- Protected Attributes inherited from mitk::NonBlockingAlgorithm
PropertyList::Pointer m_Parameters
 
WeakPointer< DataStorage > m_DataStorage
 

Detailed Description

Converts a segmentation image to a smoothed surface and adds it to the DataStorage.

Runs the surface generation in a background thread, applying Gaussian smoothing before the marching cubes surface extraction. Uses the NonBlockingAlgorithm framework.

See also
SegmentationSink, ShowSegmentationAsSurface, NonBlockingAlgorithm

Definition at line 30 of file mitkShowSegmentationAsSmoothedSurface.h.

Member Function Documentation

◆ Initialize()

void mitk::ShowSegmentationAsSmoothedSurface::Initialize ( const NonBlockingAlgorithm *  other = nullptr)
overrideprotectedvirtual

Reimplemented from mitk::SegmentationSink.

◆ mitkAlgorithmNewMacro()

mitk::ShowSegmentationAsSmoothedSurface::mitkAlgorithmNewMacro ( ShowSegmentationAsSmoothedSurface  )

◆ mitkClassMacro()

mitk::ShowSegmentationAsSmoothedSurface::mitkClassMacro ( ShowSegmentationAsSmoothedSurface  ,
SegmentationSink   
)

◆ ReadyToRun()

bool mitk::ShowSegmentationAsSmoothedSurface::ReadyToRun ( )
overrideprotectedvirtual

Reimplemented from mitk::SegmentationSink.

◆ ThreadedUpdateFunction()

bool mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction ( )
overrideprotectedvirtual

Reimplemented from mitk::SegmentationSink.

◆ ThreadedUpdateSuccessful()

void mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful ( )
overrideprotectedvirtual

Reimplemented from mitk::NonBlockingAlgorithm.


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