18 #ifndef __igstkTubeObject_h
19 #define __igstkTubeObject_h
23 #include <itkTubeSpatialObject.h>
30 class TubeReaderToTubeSpatialObject;
54 typedef itk::TubeSpatialObject<3> TubeSpatialObjectType;
55 typedef TubeSpatialObjectType::TubePointType
PointType;
65 const PointType *
GetPoint(
unsigned int pointId) const;
86 virtual
void PrintSelf( std::ostream& os, itk::Indent indent ) const;
91 void SetTubeSpatialObject( TubeSpatialObjectType * tube );
94 TubeSpatialObjectType::
Pointer m_TubeSpatialObject;
100 #endif // __igstkTubeObject_h
void Clear(void)
Remove all the points in the list.
#define igstkFriendClassMacro(type)
Create a Macro for friend class.
unsigned int GetNumberOfPoints(void) const
Return the number of points in the tube.
Geometrical abstraction of physical objects present in the surgical scene.
const PointListType GetPoints() const
Return the internal list of points.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
This class represents a Tube object.
::itk::SmartPointer< Self > Pointer
igstkStandardClassTraitsMacro(TubeObject, SpatialObject) public typedef TubeSpatialObjectType::TubePointType PointType
Macro with standard traits declarations.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
TubeSpatialObjectType::PointListType PointListType
const PointType * GetPoint(unsigned int pointId) const
Return a given point.
void AddPoint(PointType &point)
Add a point to the tube.