ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkTubeSpatialObjectPoint.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkTubeSpatialObjectPoint_h
19 #define __itkTubeSpatialObjectPoint_h
20 
21 #include "itkSpatialObjectPoint.h"
22 #include "itkCovariantVector.h"
23 #include "vnl/vnl_vector_fixed.h"
24 
25 namespace itk
26 {
37 template< unsigned int TPointDimension = 3 >
38 class ITK_EXPORT TubeSpatialObjectPoint:
39  public SpatialObjectPoint< TPointDimension >
40 {
41 public:
42 
48 
52 
54  virtual ~TubeSpatialObjectPoint(void);
55 
57  const VectorType & GetTangent(void) const;
58 
60  void SetTangent(const VectorType & newT);
61 
62  void SetTangent(const double t0, const double t1);
63 
64  void SetTangent(const double t0, const double t1, const double t2);
65 
67  const CovariantVectorType & GetNormal1(void) const;
68 
70  void SetNormal1(const CovariantVectorType & newV1);
71 
72  void SetNormal1(const double v10, const double v11);
73 
74  void SetNormal1(const double v10, const double v11, const double v12);
75 
77  const CovariantVectorType & GetNormal2(void) const;
78 
80  void SetNormal2(const CovariantVectorType & newV2);
81 
82  void SetNormal2(const double v20, const double v21);
83 
84  void SetNormal2(const double v20, const double v21, const double v22);
85 
87  float GetRadius(void) const;
88 
90  void SetRadius(const float newR);
91 
93  unsigned short int GetNumDimensions(void) const;
94 
96  Self & operator=(const TubeSpatialObjectPoint & rhs);
97 
98 protected:
99 
103 
105  float m_R;
106 
108  unsigned short int m_NumDimensions;
109 
111  void PrintSelf(std::ostream & os, Indent indent) const;
112 };
113 } // end of namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "itkTubeSpatialObjectPoint.hxx"
117 #endif
118 
119 #endif // __itkTubeSpatialObjectPoint_h
120