10 #ifndef __vtkFSSurfaceAnnotationReader_h 11 #define __vtkFSSurfaceAnnotationReader_h 14 #include "FreeSurferConfigure.h" 15 #include "vtkFreeSurferExport.h" 18 #include <vtkDataReader.h> 37 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 vtkIntArray *GetOutput();
40 void SetOutput(vtkIntArray *output);
42 vtkLookupTable *GetColorTableOutput();
43 void SetColorTableOutput(vtkLookupTable* colors);
45 char* GetColorTableNames();
47 int ReadFSAnnotation();
50 int WriteFSAnnotation();
52 vtkGetMacro(NumColorTableEntries,
int);
53 vtkSetStringMacro(ColorTableFileName);
55 vtkGetMacro(UseExternalColorTableFile,
int);
56 vtkSetMacro(UseExternalColorTableFile,
int);
57 vtkBooleanMacro(UseExternalColorTableFile,
int);
64 FS_COLOR_TABLE_TAG = 1,
66 FS_COLOR_TABLE_NAME_LENGTH = 1024,
67 FS_COLOR_TABLE_ENTRY_NAME_LENGTH = 1024,
69 FS_ERROR_LOADING_COLOR_TABLE = 1,
70 FS_ERROR_LOADING_ANNOTATION = 2,
71 FS_ERROR_PARSING_COLOR_TABLE = 3,
72 FS_ERROR_PARSING_ANNOTATION = 4,
73 FS_WARNING_UNASSIGNED_LABELS = 5,
74 FS_NO_COLOR_TABLE = 6,
91 int ReadEmbeddedColorTable (FILE* annotFile,
int* numEntries,
92 int*** rgbValues,
char*** names);
93 int ReadExternalColorTable (
char* fileName,
int* numEntries,
94 int*** rgbValues,
char*** names);
char * ColorTableFileName
Read a surface annotation and color table file from Freesurfer tools.
int UseExternalColorTableFile