Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkGeometryDataSource.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 "mitkGeometryDataSource.h"
14 #include "mitkGeometryData.h"
15 
17 {
18  // Create the output.
19  itk::DataObject::Pointer output = this->MakeOutput(0);
20  Superclass::SetNumberOfRequiredOutputs(1);
21  Superclass::SetNthOutput(0, output);
22 }
23 
25 {
26 }
27 
28 itk::DataObject::Pointer mitk::GeometryDataSource::MakeOutput(DataObjectPointerArraySizeType /*idx*/)
29 {
30  return OutputType::New().GetPointer();
31 }
32 
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
Superclass of all classes generating GeometryData (instances of class GeometryData) as output...
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
static Pointer New()
#define mitkBaseDataSourceGetOutputDefinitions(className)