Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkContourModelSource.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 "mitkContourModelSource.h"
18 
20 {
21  // Create the output.
22  itk::DataObject::Pointer output = this->MakeOutput(0);
23  Superclass::SetNumberOfRequiredInputs(0);
24  Superclass::SetNumberOfRequiredOutputs(1);
25  Superclass::SetNthOutput(0, output);
26 }
27 
29 {
30 }
31 
32 itk::DataObject::Pointer mitk::ContourModelSource::MakeOutput(DataObjectPointerArraySizeType /*idx*/)
33 {
34  return OutputType::New().GetPointer();
35 }
36 
38 {
39  itkDebugMacro("MakeOutput(" << name << ")");
40  if (this->IsIndexedOutputName(name))
41  {
42  return this->MakeOutput(this->MakeIndexFromOutputName(name));
43  }
44  return OutputType::New().GetPointer();
45 }
46 
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
itk::SmartPointer< Self > Pointer
Superclass of all classes generating ContourModels.
virtual mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
#define mitkBaseDataSourceGetOutputDefinitions(className)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.