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

Filter that converts a mitk::ContourModel into a mitk::Surface. More...

#include <mitkContourModelToSurfaceFilter.h>

Inheritance diagram for mitk::ContourModelToSurfaceFilter:
Collaboration diagram for mitk::ContourModelToSurfaceFilter:

Public Types

typedef mitk::Surface OutputType
 The output data type. More...
 
typedef mitk::ContourModel InputType
 The input data type. More...
 
- Public Types inherited from mitk::SurfaceSource
typedef Surface OutputType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseData OutputType
 Output data type. More...
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 Identifier type for named data objects. More...
 

Public Member Functions

 mitkClassMacro (ContourModelToSurfaceFilter, SurfaceSource)
 
Pointer Clone () const
 
void GenerateOutputInformation () override
 Generate output information (no-op for this filter). More...
 
virtual void SetInput (const InputType *input)
 Set the input contour model. More...
 
virtual void SetInput (unsigned int idx, const InputType *input)
 Set the input contour model at the given index. More...
 
const InputType * GetInput (void)
 Get the first input contour model. More...
 
const InputType * GetInput (unsigned int idx)
 Get the input contour model at the given index. More...
 
- Public Member Functions inherited from mitk::SurfaceSource
 mitkClassMacro (SurfaceSource, BaseDataSource)
 
Pointer Clone () const
 
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 Allocate a new output object and return it. More...
 
itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 Allocate a new output object by name. More...
 
- Public Member Functions inherited from mitk::BaseDataSource
 mitkClassMacroItkParent (BaseDataSource, itk::ProcessObject)
 
OutputType * GetOutput ()
 
const OutputType * GetOutput () const
 
OutputType * GetOutput (DataObjectPointerArraySizeType idx)
 
const OutputType * GetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 Graft the specified base data object onto a named output. More...
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Check whether the pipeline is currently executing. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::SurfaceSource
static Pointer New ()
 

Protected Member Functions

 ContourModelToSurfaceFilter ()
 
 ~ContourModelToSurfaceFilter () override
 
void GenerateData () override
 
- Protected Member Functions inherited from mitk::SurfaceSource
 SurfaceSource ()
 
 ~SurfaceSource () override
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 Constructor. More...
 
 ~BaseDataSource () override
 Destructor. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Filter that converts a mitk::ContourModel into a mitk::Surface.

Creates VTK polydata (polygons and line segments) from the contour vertices for each time step. A polygon is created from all vertices, and line segments connect consecutive vertices. If the contour is closed, an additional line segment connects the last vertex back to the first.

Note
The input contour must have at least 3 vertices for polygon generation. For contours with fewer vertices, an empty polydata is produced.
See also
ContourModel, Surface, SurfaceSource

Definition at line 39 of file mitkContourModelToSurfaceFilter.h.

Member Typedef Documentation

◆ InputType

◆ OutputType

The output data type.

Definition at line 48 of file mitkContourModelToSurfaceFilter.h.

Constructor & Destructor Documentation

◆ ContourModelToSurfaceFilter()

mitk::ContourModelToSurfaceFilter::ContourModelToSurfaceFilter ( )
protected

◆ ~ContourModelToSurfaceFilter()

mitk::ContourModelToSurfaceFilter::~ContourModelToSurfaceFilter ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::ContourModelToSurfaceFilter::Clone ( ) const

◆ GenerateData()

void mitk::ContourModelToSurfaceFilter::GenerateData ( )
overrideprotected

◆ GenerateOutputInformation()

void mitk::ContourModelToSurfaceFilter::GenerateOutputInformation ( )
override

Generate output information (no-op for this filter).

◆ GetInput() [1/2]

const InputType* mitk::ContourModelToSurfaceFilter::GetInput ( unsigned int  idx)

Get the input contour model at the given index.

Parameters
[in]idxInput port index.
Returns
Const pointer to the input ContourModel, or nullptr if none is set.

◆ GetInput() [2/2]

const InputType* mitk::ContourModelToSurfaceFilter::GetInput ( void  )

Get the first input contour model.

Returns
Const pointer to the input ContourModel, or nullptr if none is set.

◆ mitkClassMacro()

mitk::ContourModelToSurfaceFilter::mitkClassMacro ( ContourModelToSurfaceFilter  ,
SurfaceSource   
)

◆ New()

static Pointer mitk::ContourModelToSurfaceFilter::New ( )
static

◆ SetInput() [1/2]

virtual void mitk::ContourModelToSurfaceFilter::SetInput ( const InputType *  input)
virtual

Set the input contour model.

Parameters
[in]inputThe ContourModel to convert.

◆ SetInput() [2/2]

virtual void mitk::ContourModelToSurfaceFilter::SetInput ( unsigned int  idx,
const InputType *  input 
)
virtual

Set the input contour model at the given index.

Parameters
[in]idxInput port index.
[in]inputThe ContourModel to convert.

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