diff --git a/Core/Code/Algorithms/mitkImageCaster.cpp b/Core/Code/Algorithms/mitkImageCaster.cpp index 934c01e6e9..611e5e22e4 100644 --- a/Core/Code/Algorithms/mitkImageCaster.cpp +++ b/Core/Code/Algorithms/mitkImageCaster.cpp @@ -1,59 +1,59 @@ /*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-06-18 20:12:43 +0200 (Fr, 18 Jun 2010) $ Version: $Revision: 23881 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #include "mitkImageCaster.h" #include "mitkImageAccessByItk.h" vtkRenderer* mitk::RendererAccess::m_3DRenderer = 0; void mitk::RendererAccess::Set3DRenderer(vtkRenderer* renwin4) { m_3DRenderer = renwin4; } vtkRenderer* mitk::RendererAccess::Get3DRenderer() { return m_3DRenderer; } +void mitk::Caster::Cast(mitk::BaseData*, mitk::Surface*) +{ +} + void mitk::ImageCaster::CastBaseData(mitk::BaseData* const mitkBaseData, itk::SmartPointer& mitkoutputimage){ try { mitkoutputimage = dynamic_cast(mitkBaseData); } catch(...) { return; } } -void mitk::Caster::Cast(mitk::BaseData* mitkBaseData, mitk::Surface* surface){ - surface = dynamic_cast(mitkBaseData); -} - #define DefineMitkImageCasterMethods(r, data, type) \ void mitk::ImageCaster::CastToItkImage(const mitk::Image* mitkImage, itk::SmartPointer >& itkOutputImage) { \ mitk::CastToItkImage >(mitkImage, itkOutputImage); \ } \ void mitk::ImageCaster::CastToMitkImage(const itk::Image* itkImage, itk::SmartPointer& mitkOutputImage) { \ mitk::CastToMitkImage >(itkImage, mitkOutputImage); \ } MITK_PP_SEQ_FOR_EACH(DefineMitkImageCasterMethods, _, MITK_ACCESSBYITK_TYPES_DIMN_SEQ(2)) MITK_PP_SEQ_FOR_EACH(DefineMitkImageCasterMethods, _, MITK_ACCESSBYITK_TYPES_DIMN_SEQ(3))