18 #ifndef __itkTubeSpatialObject_h
19 #define __itkTubeSpatialObject_h
41 template <
unsigned int TDimension = 3,
42 typename TTubePointType = TubeSpatialObjectPoint<TDimension> >
83 {
return &(m_Points[ind]);}
87 {
return &(m_Points[ind]);}
91 {m_Points[ind] = pnt;}
94 virtual void RemovePoint(
unsigned long ind)
95 {m_Points.erase(m_Points.begin()+ind);}
98 virtual unsigned long GetNumberOfPoints(
void)
const
99 {
return m_Points.size();}
102 itkSetMacro(EndType,
unsigned int);
103 itkGetConstMacro(EndType,
unsigned int);
109 bool ComputeTangentAndNormals(
void );
112 unsigned int RemoveDuplicatePoints(
unsigned int step=1);
116 bool IsEvaluableAt(
const PointType & point,
117 unsigned int depth=0,
char * name=
NULL )
const;
123 bool ValueAt(
const PointType & point,
double & value,
124 unsigned int depth=0,
char * name=
NULL )
const;
127 bool IsInside(
const PointType & point,
128 unsigned int depth,
char * name)
const;
133 virtual bool IsInside(
const PointType & point)
const;
136 bool ComputeLocalBoundingBox( )
const;
140 itkSetMacro(ParentPoint,
int);
141 itkGetConstMacro(ParentPoint,
int);
145 itkSetMacro(Root,
bool);
146 itkGetConstMacro(Root,
bool);
149 itkSetMacro(Artery,
bool);
150 itkGetConstMacro(Artery,
bool);
168 virtual void PrintSelf( std::ostream& os,
Indent indent )
const;
176 void operator=(
const Self&);
182 #ifndef ITK_MANUAL_INSTANTIATION
186 #endif // __itkTubeSpatialObject_h