18 #ifndef itkContourSpatialObject_h
19 #define itkContourSpatialObject_h
39 template<
unsigned int TDimension = 3 >
42 ContourSpatialObjectPoint< TDimension > >
70 LINEAR_INTERPOLATION };
80 {
return m_ControlPoints; }
84 {
return m_ControlPoints; }
87 void SetControlPoints(
const ControlPointListType & newPoints);
90 void AddControlPoint(
const ControlPointType & point);
94 {
return &( m_ControlPoints[id] ); }
98 {
return &( m_ControlPoints[id] ); }
102 {
return static_cast<SizeValueType>( m_ControlPoints.size() ); }
105 itkSetMacro( InterpolationMethod, InterpolationMethodType )
108 itkGetConstMacro( InterpolationMethod, InterpolationMethodType )
112 itkSetMacro( InterpolationFactor,
unsigned int )
115 itkGetConstMacro( InterpolationFactor,
unsigned int )
118 itkSetMacro(IsClosed,
bool);
121 itkGetConstMacro(IsClosed,
bool);
124 int GetOrientationInObjectSpace() const;
128 itkSetMacro(AttachedToSlice,
int);
132 itkGetConstMacro(AttachedToSlice,
int);
135 void Update() override;
139 ~ContourSpatialObject() override = default;
142 void PrintSelf(std::ostream & os,
Indent indent) const override;
144 typename
LightObject::Pointer InternalClone() const override;
150 unsigned int m_InterpolationFactor;
152 mutable
bool m_IsClosed;
153 mutable
int m_OrientationInObjectSpace;
155 int m_AttachedToSlice;
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "itkContourSpatialObject.hxx"
164 #endif // itkContourSpatialObject_h
std::vector< ContourPointType > ContourPointListType
Representation of a Contour based on the spatial object classes.
Light weight base class for most itk classes.
std::vector< ControlPointType > ControlPointListType
unsigned long SizeValueType
This class serves as the base class for point-based spatial objects.
SizeValueType GetNumberOfControlPoints() const
Point used for a Contour definition.
typename Superclass::BoundingBoxType BoundingBoxType
SizeValueType IdentifierType
unsigned long ModifiedTimeType
ControlPointListType & GetControlPoints()
typename Superclass::TransformType TransformType
const ControlPointType * GetControlPoint(IdentifierType id) const
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
typename Superclass::PointType PointType
const ControlPointListType & GetControlPoints() const
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
Base class for most ITK classes.
ControlPointType * GetControlPoint(IdentifierType id)
Base class for all data objects in ITK.