00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkOrientationAdapter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/11/08 18:04:33 $ 00007 Version: $Revision: 1.4 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 00021 00022 #ifndef __itkOrientationAdapter_h 00023 #define __itkOrientationAdapter_h 00024 #include "itkImageBase.h" 00025 00026 namespace itk 00027 { 00036 template<class OrientationType, unsigned int Dimension = 3> 00037 class OrientationAdapterBase 00038 { 00039 public: 00041 typedef ImageBase<Dimension> ImageType; 00042 00044 typedef typename ImageType::DirectionType DirectionType; 00045 00047 virtual OrientationType FromDirectionCosines(const DirectionType &Dir) = 0; 00049 virtual DirectionType ToDirectionCosines(const OrientationType &Orient) = 0; 00050 protected: 00052 virtual ~OrientationAdapterBase() {} 00053 }; 00054 00055 } // namespace itk 00056 #endif // __itkOrientationAdapter_h