KWStyle - itkSpatialOrientationAdapter.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkSpatialOrientationAdapter.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:48 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16 IND *****the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 =========================================================================*/
20 #ifndef __itkSpatialOrientationAdapter_h
21 #define __itkSpatialOrientationAdapter_h
22 #include "itkOrientationAdapter.h"
23 #include "itkSpatialOrientation.h"
24 #include "itkConceptChecking.h"
25
26 namespace itk
27 {
28 /** \class SpatialOrientationAdapter
29  *  \brief converts SpatialOrientation flags to/from direction cosines
30  */
31 template <int Dimension>
32 class SpatialOrientationAdapter : 
33 LEN,IND ****public OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags,Dimension>
34 {
35 public:
36   /** typedef for superclass */
37   typedef SpatialOrientationAdapter Self;
38
39 LEN   typedef OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags,Dimension>
40   SuperClass;
41
42   typedef SpatialOrientation::ValidCoordinateOrientationFlags OrientationType;
43
44   /** The dimension of the input image must be 3. */
45   itkConceptMacro(DimensionShouldBe3,
46     (Concept::SameDimension<Dimension,3>));
47
48   /** typedef for direction cosines */
49   typedef typename SuperClass::DirectionType DirectionType;
50
51   /** convert from direction cosines. */
52   virtual OrientationType FromDirectionCosines(const DirectionType &Dir);
53
54   /** convert to direction cosines. */
55   virtual DirectionType ToDirectionCosines(const OrientationType &Or);
56
57 };
58
59 // namespace itk
60
61 #ifndef ITK_MANUAL_INSTANTIATION
62 #include "itkSpatialOrientationAdapter.txx"
63 #endif
64
65 #endif // __itkSpatialOrientationAdapter_h
66

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:48PM
© Kitware Inc.