ITK  4.9.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 >
39  public SpatialObjectPoint< TPointDimension >
40 {
41 public:
42 
48 
52 
54  virtual ~TubeSpatialObjectPoint();
55 
57  const VectorType & GetTangent() 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() 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() 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() const;
88 
90  void SetRadius(const float newR);
91 
93  unsigned short int GetNumDimensions() 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 ITK_OVERRIDE;
112 };
113 } // end of namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "itkTubeSpatialObjectPoint.hxx"
117 #endif
118 
119 #endif // itkTubeSpatialObjectPoint_h
void SetTangent(const VectorType &newT)
Point used for a tube definition.
Self & operator=(const TubeSpatialObjectPoint &rhs)
void PrintSelf(std::ostream &os, Indent indent) const override
SpatialObjectPoint< TPointDimension > Superclass
const CovariantVectorType & GetNormal1() const
void SetNormal2(const CovariantVectorType &newV2)
Vector< double, TPointDimension > VectorType
void SetNormal1(const CovariantVectorType &newV1)
const CovariantVectorType & GetNormal2() const
CovariantVector< double, TPointDimension > CovariantVectorType
Point< double, TPointDimension > PointType
unsigned short int GetNumDimensions() const
Point used for spatial objets.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void SetRadius(const float newR)
vnl_vector< double > VectorType
const VectorType & GetTangent() const