Medical Imaging Interaction Toolkit  2018.4.99-18ddd2ed
Medical Imaging Interaction Toolkit
mitkPointSetToPointSetFilter.cpp
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 
14 
16 {
17  // Modify superclass default values, may be overridden by subclasses
18  this->SetNumberOfRequiredInputs(1);
19 }
20 
22 {
23 }
24 
26 {
27  // Process object is not const-correct so the const_cast is required here
28  this->ProcessObject::SetNthInput(0, const_cast<mitk::PointSetToPointSetFilter::InputType *>(input));
29 }
30 
31 void mitk::PointSetToPointSetFilter::SetInput(const unsigned int &idx,
33 {
34  if (idx + 1 > this->GetNumberOfInputs())
35  {
36  this->SetNumberOfRequiredInputs(idx + 1);
37  }
38  // Process object is not const-correct so the const_cast is required here
39  this->ProcessObject::SetNthInput(idx, const_cast<mitk::PointSetToPointSetFilter::InputType *>(input));
40 }
41 
43 {
44  if (this->GetNumberOfInputs() < 1)
45  return nullptr;
46  // Process object is not const-correct so the const_cast is required here
47  return static_cast<const mitk::PointSetToPointSetFilter::InputType *>(this->ProcessObject::GetInput(0));
48 }
49 
51 {
52  if (idx > this->GetNumberOfInputs() - 1)
53  return nullptr;
54  // Process object is not const-correct so the const_cast is required here
55  return static_cast<const mitk::PointSetToPointSetFilter::InputType *>(this->ProcessObject::GetInput(idx));
56 }
57 
58 void mitk::PointSetToPointSetFilter::operator=(const mitk::PointSetToPointSetFilter::Self &)
59 {
60 }
Superclass of all classes/algorithms having one or more PointSets as input and output.
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:75
virtual void SetInput(const InputType *input)