ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkContourSpatialObjectPoint.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 itkContourSpatialObjectPoint_h
19 #define itkContourSpatialObjectPoint_h
20 
21 #include "itkSpatialObjectPoint.h"
22 #include "itkCovariantVector.h"
23 
24 namespace itk
25 {
36 template< unsigned int TPointDimension = 3 >
37 class ITK_TEMPLATE_EXPORT ContourSpatialObjectPoint:
38  public SpatialObjectPoint< TPointDimension >
39 {
40 public:
41 
46 
50 
52  virtual ~ContourSpatialObjectPoint() ITK_OVERRIDE;
53 
55  const PointType & GetPickedPoint() const;
56 
58  void SetPickedPoint(const PointType & point);
59 
61  void SetPickedPoint(const double pointx, const double pointy);
62 
64  void SetPickedPoint(const double pointx,
65  const double pointy, const double pointz);
66 
68  const VectorType & GetNormal() const;
69 
71  void SetNormal(const VectorType & normal);
72 
74  void SetNormal(const double normalx, const double normaly);
75 
77  void SetNormal(const double normalx,
78  const double normaly, const double normalz);
79 
81  Self & operator=(const ContourSpatialObjectPoint & rhs);
82 
83 protected:
84 
85  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
86 
87 private:
88 
89  VectorType m_Normal;
90  PointType m_PickedPoint;
91 };
92 } // end of namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkContourSpatialObjectPoint.hxx"
96 #endif
97 
98 #endif // itkContourSpatialObjectPoint_h
Point used for a Contour definition.
Point used for spatial objets.
SpatialObjectPoint< TPointDimension > Superclass
Point< double, TPointDimension > PointType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
CovariantVector< double, TPointDimension > VectorType