20 #ifndef MIRTK_SurfaceMapper_H 21 #define MIRTK_SurfaceMapper_H 23 #include "mirtk/Object.h" 25 #include "mirtk/Memory.h" 26 #include "mirtk/Point.h" 28 #include "mirtk/EdgeTable.h" 29 #include "mirtk/SurfaceBoundary.h" 30 #include "mirtk/Mapping.h" 32 #include "vtkSmartPointer.h" 33 #include "vtkPolyData.h" 57 mirtkPublicAttributeMacro(vtkSmartPointer<vtkPolyData>, Surface);
60 mirtkPublicAttributeMacro(SharedPtr<mirtk::EdgeTable>,
EdgeTable);
63 mirtkPublicAttributeMacro(SharedPtr<SurfaceBoundary>, Boundary);
69 mirtkReadOnlyAttributeMacro(SharedPtr<Mapping>, Output);
125 void GetPoint(
int ptId,
double p[3])
const;
132 class Point Point(int ptId) const;
160 return static_cast<int>(_Surface->GetNumberOfPoints());
172 _Surface->GetPoint(static_cast<vtkIdType>(ptId), p);
186 #endif // MIRTK_SurfaceMapper_H int NumberOfPoints() const
Number of surface points.
SurfaceMapper()
Default constructor.
virtual void ComputeMap()=0
Compute surface map.
virtual void Finalize()
Finalize filter execution.
int GetEdgeNeighborPoints(int i, int j, int &k, int &l) const
int NumberOfInteriorPoints() const
Number of surface points minus the number of boundary points.
virtual void Initialize()
Initialize filter after input and parameters are set.
void GetPoint(int ptId, double p[3]) const
class Point Point(int ptId) const
SurfaceMapper & operator=(const SurfaceMapper &)
Assignment operator.
void Run()
Compute surface map.
virtual ~SurfaceMapper()
Destructor.