X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FSurface.h;h=20e0f8bd80082b41b6272f8aa1417598701983c3;hb=1a574b510e27eb5b5f00bd37bf451cedd1b0a8d4;hp=49b67249f3095d2b231fcce8a9b461ded67fff87;hpb=aa1b23f7a0b103bc3fd8989c0e60b97697adbbc3;p=creaRigidRegistration.git diff --git a/lib/Surface.h b/lib/Surface.h index 49b6724..20e0f8b 100644 --- a/lib/Surface.h +++ b/lib/Surface.h @@ -1,6 +1,8 @@ #include "vtkImageData.h" #include "vtkProp3D.h" #include "vtkRenderer.h" +#include "vtkPoints.h" +#include "vtkCellArray.h" #include @@ -34,9 +36,14 @@ class Surface vtkActor* getSurface(); /* - constructing image substract + constructing image surface */ void surface(vtkImageData* imageData); + + /* + Template for constructing the surface by image type + */ + template void surfaceByType(T* dataImagePointer, vtkImageData* imageData, T max); @@ -63,4 +70,15 @@ class Surface The type of image being viewed */ int imageType; -}; \ No newline at end of file + + /* + The points of the surface + */ + vtkPoints* surfacePoints; + + /* + Cells to be constructed from the surface + */ + vtkCellArray* surfaceCells; +}; +