]> Creatis software - clitk.git/blob - common/clitkOrientation.h
removed headers
[clitk.git] / common / clitkOrientation.h
1 #ifndef CLITKORIENTATION_H
2 #define CLITKORIENTATION_H
3 /**
4  ===================================================================
5  * @file   clitkOrientation.h
6  * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7  * @date   01 Nov 2006 18:00:32
8
9  * @brief  
10
11  ===================================================================*/
12
13 // itk include
14 #include "itkSpatialOrientation.h"
15 #include "itkPoint.h"
16
17 namespace clitk {
18   
19    //====================================================================
20   // From a letter to an SpatialOrientation::CoordinateTerms
21   itk::SpatialOrientation::CoordinateTerms GetOrientation(char c);
22
23   //====================================================================
24   // From three letters to an SpatialOrientation
25   itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(char a, char b, char c);
26   itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(const std::string & orient);
27   
28   //====================================================================
29   // Check that the orientations are differents
30   bool CheckOrientation(itk::SpatialOrientation::CoordinateTerms a, itk::SpatialOrientation::CoordinateTerms b);
31    
32   //====================================================================
33   // Get orientation at position i
34   itk::SpatialOrientation::CoordinateTerms GetOrientation(const int i, const itk::SpatialOrientation::ValidCoordinateOrientationFlags orient);
35   
36   //====================================================================
37   // Find where is the dimension Dim in this orientaof orientation
38   int WhereIsDimInThisOrientation(const int dim, const itk::SpatialOrientation::ValidCoordinateOrientationFlags flag);
39   
40   //====================================================================
41   // Flip point coordinate
42   void FlipPoint(const itk::Point<double, 3> in, 
43                                  const itk::SpatialOrientation::ValidCoordinateOrientationFlags inFlag, 
44                                  const itk::SpatialOrientation::ValidCoordinateOrientationFlags outFlag, 
45                                  const itk::Point<double, 3> & imageSize,
46                                  itk::Point<double, 3> & out);
47   
48   //====================================================================
49   // Get the dimension of this term
50   int GetDim(const itk::SpatialOrientation::CoordinateTerms t); 
51
52 } // end namespace
53
54 #endif /* end #define CLITKORIENTATION_H */
55