Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkOrientationAdapter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOrientationAdapter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-19 19:41:22 $
00007   Version:   $Revision: 1.5 $
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;
00048 
00050   virtual DirectionType ToDirectionCosines(const OrientationType &Orient) = 0;
00051 protected:
00052 
00054   virtual ~OrientationAdapterBase() {}
00055 };
00057 
00058 } // namespace itk
00059 #endif // __itkOrientationAdapter_h
00060 

Generated at Mon Jul 12 2010 19:22:43 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000