Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
17 #include "mitkPlanarFigureSource.h"
18 
19 #include "mitkPlanarCircle.h"
20 
22 {
23  // Create the output.
24  itk::DataObject::Pointer output = this->MakeOutput(0);
25  Superclass::SetNumberOfRequiredOutputs(1);
26  Superclass::SetNthOutput(0, output);
27 }
28 
30 {
31 }
32 
34 {
35  this->ProcessObject::GenerateInputRequestedRegion();
36 }
37 
38 itk::DataObject::Pointer mitk::PlanarFigureSource::MakeOutput(DataObjectPointerArraySizeType /*idx*/)
39 {
40  return static_cast<itk::DataObject *>(PlanarCircle::New().GetPointer());
41 }
42 
44 {
45  itkDebugMacro("MakeOutput(" << name << ")");
46  if (this->IsIndexedOutputName(name))
47  {
48  return this->MakeOutput(this->MakeIndexFromOutputName(name));
49  }
50  return static_cast<itk::DataObject *>(PlanarCircle::New().GetPointer());
51 }
52 
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
itk::SmartPointer< Self > Pointer
virtual 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)