10 #ifndef __vtkFSSurfaceReader_h 11 #define __vtkFSSurfaceReader_h 13 #include "FreeSurferConfigure.h" 14 #include "vtkFreeSurferExport.h" 17 #include <vtkDataReader.h> 24 #define FS_CALC_NORMALS 0 27 class vtkInformationVector;
39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 vtkPolyData *GetOutput();
43 vtkPolyData *GetOutput(
int idx);
44 void SetOutput(vtkPolyData *output);
49 FS_QUAD_FILE_MAGIC_NUMBER = (-1 & 0x00ffffff),
50 FS_NEW_QUAD_FILE_MAGIC_NUMBER = (-3 & 0x00ffffff),
51 FS_TRIANGLE_FILE_MAGIC_NUMBER = (-2 & 0x00ffffff),
52 FS_NUM_VERTS_IN_QUAD_FACE = 4,
53 FS_NUM_VERTS_IN_TRI_FACE = 3,
54 FS_MAX_NUM_FACES_PER_VERTEX = 10,
59 vtkInformationVector **,
60 vtkInformationVector *outputVector) VTK_OVERRIDE;
69 virtual int FillOutputPortInformation(
int, vtkInformation*) VTK_OVERRIDE;
89 int faces[FS_MAX_NUM_FACES_PER_VERTEX];
90 int indicesInFace[FS_MAX_NUM_FACES_PER_VERTEX];
96 int vertices[FS_NUM_SIDES_IN_FACE];
int ExecuteNumberOfPieces
Read a surface file from Freesurfer tools.