20 #ifndef MIRTK_RegisteredSurface_H 21 #define MIRTK_RegisteredSurface_H 23 #include "mirtk/RegisteredPointSet.h" 25 #include "vtkPolyData.h" 26 #include "vtkCellArray.h" 82 vtkCellArray *
Verts()
const;
86 vtkCellArray *
Lines()
const;
90 vtkCellArray *
Polys()
const;
94 vtkCellArray *
Strips()
const;
97 void GetCellPoints(
int, vtkIdType &,
const vtkIdType *&)
const;
112 _InputPointSet = surface;
118 return _OutputSurface->GetVerts();
124 return _OutputSurface->GetLines();
130 return _OutputSurface->GetPolys();
136 return _OutputSurface->GetStrips();
142 return static_cast<int>(
Verts()->GetNumberOfCells());
148 return static_cast<int>(
Lines()->GetNumberOfCells());
154 return static_cast<int>(
Polys()->GetNumberOfCells());
160 return static_cast<int>(
Strips()->GetNumberOfCells());
166 _OutputSurface->GetCellPoints(i, npts, const_cast<vtkIdType *&>(pts));
172 #endif // MIRTK_RegisteredSurface_H
vtkCellArray * Polys() const
void InputSurface(vtkPolyData *)
Set input surface.
vtkCellArray * Lines() const
int NumberOfPolys() const
Get number of polygons.
RegisteredSurface & operator=(const RegisteredSurface &)
Assignment operator.
void GetCellPoints(int, vtkIdType &, const vtkIdType *&) const
Get pointer to IDs of points defining a cell.
void Initialize()
Initialize dataset after input and parameters are set.
~RegisteredSurface()
Destructor.
vtkCellArray * Verts() const
int NumberOfStrips() const
Get number of triangle strips.
vtkCellArray * Strips() const
int NumberOfVerts() const
Get number of vertices.
int NumberOfLines() const
Get number of lines.
RegisteredSurface(vtkPolyData *=NULL, const class Transformation *=NULL)
Constructor.
vtkPolyData * PolyData() const
Get (transformed) polydata.