Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkSurfaceToSurfaceFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSurfaceToSurfaceFilter_h
14 #define mitkSurfaceToSurfaceFilter_h
15 
16 #include "mitkSurfaceSource.h"
17 
18 namespace mitk
19 {
20  class Surface;
21  //##Documentation
22  //## @brief Superclass of all classes getting surfaces (instances of class
23  //## Surface) as input and generating surfaces as output.
24  //##
25  //## In itk and vtk the generated result of a ProcessObject is only guaranteed
26  //## to be up-to-date, when Update() of the ProcessObject or the generated
27  //## DataObject is called immediately before access of the data stored in the
28  //## DataObject. This is also true for subclasses of mitk::BaseProcess and thus
29  //## for mitk::mitkSurfaceToSurfaceFilter.
30  //## @ingroup Process
32  {
33  public:
35 
36  itkFactorylessNewMacro(Self);
37 
38  itkCloneMacro(Self);
39 
40  typedef itk::DataObject::Pointer DataObjectPointer;
41 
42  using itk::ProcessObject::SetInput;
43  virtual void SetInput(const mitk::Surface *surface);
44 
52  virtual void SetInput(unsigned int idx, const mitk::Surface *surface);
53 
54  virtual const mitk::Surface *GetInput();
55 
56  virtual const mitk::Surface *GetInput(unsigned int idx);
57 
62  virtual void CreateOutputForInput(unsigned int idx);
63 
68  virtual void CreateOutputsForAllInputs();
69 
70  virtual void RemoveInputs(mitk::Surface *surface);
71 
72  protected:
74 
76  };
77 
78 } // namespace mitk
79 
80 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating surfaces (instances of class Surface) as output.
Superclass of all classes getting surfaces (instances of class Surface) as input and generating surfa...
virtual const mitk::Surface * GetInput()
virtual void CreateOutputsForAllInputs()
Creates outputs for all existing inputs.
virtual void SetInput(unsigned int idx, const mitk::Surface *surface)
Add a new input at the given index (idx) Calls mitk::Surface::CreateOutputForInput(idx)
mitkClassMacro(SurfaceToSurfaceFilter, mitk::SurfaceSource)
virtual void SetInput(const mitk::Surface *surface)
virtual void CreateOutputForInput(unsigned int idx)
Create a new output for the input at idx.
itk::DataObject::Pointer DataObjectPointer
virtual const mitk::Surface * GetInput(unsigned int idx)
virtual void RemoveInputs(mitk::Surface *surface)
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:29
Find image slices visible on a given plane.