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

itkSpatialOrientationAdapter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSpatialOrientationAdapter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/09/13 18:35:42 $
00007   Version:   $Revision: 1.1 $
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 #ifndef __itkSpatialOrientationAdapter_h
00021 #define __itkSpatialOrientationAdapter_h
00022 #include "itkOrientationAdapter.h"
00023 #include "itkSpatialOrientation.h"
00024 #include "itkConceptChecking.h"
00025 
00026 namespace itk
00027 {
00031 template <int Dimension>
00032 class SpatialOrientationAdapter : 
00033     public OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags,Dimension>
00034 {
00035 public:
00037   typedef SpatialOrientationAdapter Self;
00038 
00039   typedef OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags,Dimension>
00040   SuperClass;
00041 
00042   typedef SpatialOrientation::ValidCoordinateOrientationFlags OrientationType;
00043 
00045   itkConceptMacro(DimensionShouldBe3,
00046     (Concept::SameDimension<Dimension,3>));
00047 
00049   typedef typename SuperClass::DirectionType DirectionType;
00050 
00052   virtual OrientationType FromDirectionCosines(const DirectionType &Dir);
00053 
00055   virtual DirectionType ToDirectionCosines(const OrientationType &Or);
00056 
00057 };
00058 
00059 } // namespace itk
00060 
00061 #ifndef ITK_MANUAL_INSTANTIATION
00062 #include "itkSpatialOrientationAdapter.txx"
00063 #endif
00064 
00065 #endif // __itkSpatialOrientationAdapter_h

Generated at Thu May 25 00:06:13 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000