ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkEllipseSpatialObject.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 itkEllipseSpatialObject_h
19 #define itkEllipseSpatialObject_h
20 
21 #include "itkSpatialObject.h"
22 #include "itkAffineTransform.h"
23 #include "itkFixedArray.h"
24 
25 namespace itk
26 {
37 template< unsigned int TDimension = 3 >
39  public SpatialObject< TDimension >
40 {
41 public:
42 
44  typedef double ScalarType;
49  typedef typename Superclass::PointType PointType;
54 
56  itkStaticConstMacro(NumberOfDimension, unsigned int,
57  TDimension);
58 
59  itkNewMacro(Self);
60  itkTypeMacro(EllipseSpatialObject, SpatialObject);
61 
64  void SetRadius(double radius);
65 
67  itkSetMacro(Radius, ArrayType);
68 
70  itkGetConstReferenceMacro(Radius, ArrayType);
71 
74  virtual bool ValueAt(const PointType & point, double & value,
75  unsigned int depth = 0,
76  char *name = ITK_NULLPTR) const ITK_OVERRIDE;
77 
80  virtual bool IsEvaluableAt(const PointType & point,
81  unsigned int depth = 0,
82  char *name = ITK_NULLPTR) const ITK_OVERRIDE;
83 
85  virtual bool IsInside(const PointType & point,
86  unsigned int depth,
87  char *) const ITK_OVERRIDE;
88 
92  virtual bool IsInside(const PointType & point) const;
93 
97  virtual bool ComputeLocalBoundingBox() const ITK_OVERRIDE;
98 
100  void CopyInformation(const DataObject *data) ITK_OVERRIDE;
101 
102 protected:
103  EllipseSpatialObject(const Self &); //purposely not implemented
104  void operator=(const Self &); //purposely not implemented
105 
108 
110 
112  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
113 };
114 } // end namespace itk
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "itkEllipseSpatialObject.hxx"
118 #endif
119 
120 #endif // itkEllipseSpatialObject_h
Point< ScalarType, VDimension > PointType
SmartPointer< Superclass > SuperclassPointer
BoundingBox< IdentifierType, VDimension, ScalarType, VectorContainerType > BoundingBoxType
void CopyInformation(const DataObject *data) override
Superclass::PointType PointType
SmartPointer< PointContainerType > PointContainerPointer
Superclass::BoundingBoxType BoundingBoxType
Superclass::TransformType TransformType
static const unsigned int NumberOfDimension
SpatialObject< TDimension > Superclass
virtual bool ValueAt(const PointType &point, double &value, unsigned int depth=0, char *name=nullptr) const override
virtual bool IsInside(const PointType &point, unsigned int depth, char *) const override
virtual bool IsEvaluableAt(const PointType &point, unsigned int depth=0, char *name=nullptr) const override
Implementation of the composite pattern.
SmartPointer< const Self > ConstPointer
void SetRadius(double radius)
VectorContainer< IdentifierType, PointType > PointContainerType
FixedArray< double, TDimension > ArrayType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
ScalableAffineTransform< double, VDimension > TransformType
virtual bool ComputeLocalBoundingBox() const override
Base class for all data objects in ITK.