Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUnstructuredGridSource.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 #include "mitkUnstructuredGrid.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::UnstructuredGridSource::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 static_cast<itk::DataObject *>(OutputType::New().GetPointer());
41 }
42 
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
static Pointer New()
#define mitkBaseDataSourceGetOutputDefinitions(className)
Superclass of all classes generating unstructured grids (instances of class UnstructuredGrid) as outp...