Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
20 {
21  // Modify superclass default values, may be overridden by subclasses
22  this->SetNumberOfRequiredInputs(1);
23 }
24 
26 {
27 }
28 
30 {
31  // Process object is not const-correct so the const_cast is required here
32  this->ProcessObject::SetNthInput(0, const_cast<mitk::PointSetToPointSetFilter::InputType *>(input));
33 }
34 
35 void mitk::PointSetToPointSetFilter::SetInput(const unsigned int &idx,
37 {
38  if (idx + 1 > this->GetNumberOfInputs())
39  {
40  this->SetNumberOfRequiredInputs(idx + 1);
41  }
42  // Process object is not const-correct so the const_cast is required here
43  this->ProcessObject::SetNthInput(idx, const_cast<mitk::PointSetToPointSetFilter::InputType *>(input));
44 }
45 
47 {
48  if (this->GetNumberOfInputs() < 1)
49  return nullptr;
50  // Process object is not const-correct so the const_cast is required here
51  return static_cast<const mitk::PointSetToPointSetFilter::InputType *>(this->ProcessObject::GetInput(0));
52 }
53 
55 {
56  if (idx > this->GetNumberOfInputs() - 1)
57  return nullptr;
58  // Process object is not const-correct so the const_cast is required here
59  return static_cast<const mitk::PointSetToPointSetFilter::InputType *>(this->ProcessObject::GetInput(idx));
60 }
61 
62 void mitk::PointSetToPointSetFilter::operator=(const mitk::PointSetToPointSetFilter::Self &)
63 {
64 }
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:79
virtual void SetInput(const InputType *input)