Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkPlanarFigureSource.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 "mitkPlanarFigureSource.h"
14 
15 #include "mitkPlanarCircle.h"
16 
18 {
19  // Create the output.
20  itk::DataObject::Pointer output = this->MakeOutput(0);
21  Superclass::SetNumberOfRequiredOutputs(1);
22  Superclass::SetNthOutput(0, output);
23 }
24 
26 {
27 }
28 
30 {
31  this->ProcessObject::GenerateInputRequestedRegion();
32 }
33 
34 itk::DataObject::Pointer mitk::PlanarFigureSource::MakeOutput(DataObjectPointerArraySizeType /*idx*/)
35 {
36  return static_cast<itk::DataObject *>(PlanarCircle::New().GetPointer());
37 }
38 
40 {
41  itkDebugMacro("MakeOutput(" << name << ")");
42  if (this->IsIndexedOutputName(name))
43  {
44  return this->MakeOutput(this->MakeIndexFromOutputName(name));
45  }
46  return static_cast<itk::DataObject *>(PlanarCircle::New().GetPointer());
47 }
48 
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
Base class for all filters which have an object of type mitk::PlanarFigure as output.
void GenerateInputRequestedRegion() override
static Pointer New()
#define mitkBaseDataSourceGetOutputDefinitions(className)