18 #ifndef __itkPolygonSpatialObject_h
19 #define __itkPolygonSpatialObject_h
29 template<
unsigned int TDimension = 3 >
58 } PolygonGroupOrientation;
61 PolygonGroupOrientation Plane()
const;
64 itkSetMacro(Thickness,
double);
67 itkGetMacro(Thickness,
double);
70 bool IsClosed()
const;
73 unsigned int NumberOfPoints()
const;
76 PointType ClosestPoint(
const PointType & curPoint)
const;
79 double MeasureArea()
const;
82 double MeasureVolume()
const;
85 double MeasurePerimeter()
const;
88 bool DeletePoint(
const PointType & pointToDelete);
91 bool AddPoint(
const PointType & pointToAdd);
94 bool InsertPoint(
const PointType & point1,
const PointType & pointToAdd);
97 bool ReplacePoint(
const PointType & oldpoint,
const PointType & newPoint);
100 bool RemoveSegment(
const PointType & startpoint,
const PointType & endPoint);
103 virtual bool IsInside(
const PointType & point,
110 virtual bool IsInside(
const PointType & point)
const;
113 void PrintSelf(std::ostream & os,
Indent indent)
const;
117 void operator=(
const Self &);
123 m_Orientation = Unknown;
128 #ifndef ITK_MANUAL_INSTANTIATION
129 #include "itkPolygonSpatialObject.hxx"
132 #endif // __itkPolygonSpatialObject_h