Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkPointSetSource.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 
13 #include "mitkPointSetSource.h"
14 
16 {
17  // Create the output.
18  itk::DataObject::Pointer output = this->MakeOutput(0);
19  Superclass::SetNumberOfRequiredInputs(0);
20  Superclass::SetNumberOfRequiredOutputs(1);
21  Superclass::SetNthOutput(0, output);
22 }
23 
25 {
26 }
27 
28 itk::DataObject::Pointer mitk::PointSetSource::MakeOutput(DataObjectPointerArraySizeType /*idx*/)
29 {
30  return OutputType::New().GetPointer();
31 }
32 
33 itk::DataObject::Pointer mitk::PointSetSource::MakeOutput(const DataObjectIdentifierType &name)
34 {
35  itkDebugMacro("MakeOutput(" << name << ")");
36  if (this->IsIndexedOutputName(name))
37  {
38  return this->MakeOutput(this->MakeIndexFromOutputName(name));
39  }
40  return OutputType::New().GetPointer();
41 }
42 
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
static Pointer New()
Superclass of all classes generating point sets (instances of class mitk::PointSet) as output...
#define mitkBaseDataSourceGetOutputDefinitions(className)