00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12 Mai 2009) $ 00006 Version: $Revision: 17179 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #include "mitkTensorImageSource.h" 00020 00021 00022 mitk::TensorImageSource::TensorImageSource() 00023 { 00024 // Create the output. We use static_cast<> here because we know the default 00025 // output must be of type TOutputImage 00026 OutputImageType::Pointer output 00027 = static_cast<OutputImageType*>(this->MakeOutput(0).GetPointer()); 00028 Superclass::SetNumberOfRequiredOutputs(1); 00029 Superclass::SetNthOutput(0, output.GetPointer()); 00030 } 00031 00032 mitk::TensorImageSource::DataObjectPointer mitk::TensorImageSource::MakeOutput( unsigned int /*idx*/ ) 00033 { 00034 return static_cast<itk::DataObject*>(OutputImageType::New().GetPointer()); 00035 }