Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Read a surface annotation and color table file from Freesurfer tools. More...
#include <Libs/FreeSurfer/vtkFSSurfaceAnnotationReader.h>
Public Types | |
enum | { FS_COLOR_TABLE_TAG = 1, FS_COLOR_TABLE_NAME_LENGTH = 1024, FS_COLOR_TABLE_ENTRY_NAME_LENGTH = 1024, FS_ERROR_LOADING_COLOR_TABLE = 1, FS_ERROR_LOADING_ANNOTATION = 2, FS_ERROR_PARSING_COLOR_TABLE = 3, FS_ERROR_PARSING_ANNOTATION = 4, FS_WARNING_UNASSIGNED_LABELS = 5, FS_NO_COLOR_TABLE = 6 } |
previously defined as constants More... | |
typedef vtkDataReader | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
char * | GetColorTableNames () |
vtkLookupTable * | GetColorTableOutput () |
virtual int | GetNumColorTableEntries () |
vtkIntArray * | GetOutput () |
virtual int | GetUseExternalColorTableFile () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
int | ReadFSAnnotation () |
virtual void | SetColorTableFileName (const char *) |
void | SetColorTableOutput (vtkLookupTable *colors) |
void | SetOutput (vtkIntArray *output) |
virtual void | SetUseExternalColorTableFile (int) |
virtual void | UseExternalColorTableFileOff () |
virtual void | UseExternalColorTableFileOn () |
int | WriteFSAnnotation () |
write out the annotation file, using an internal color table More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkFSSurfaceAnnotationReader * | New () |
static vtkFSSurfaceAnnotationReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
int | ReadEmbeddedColorTable (FILE *annotFile, int *numEntries, int ***rgbValues, char ***names) |
int | ReadExternalColorTable (char *fileName, int *numEntries, int ***rgbValues, char ***names) |
vtkFSSurfaceAnnotationReader () | |
~vtkFSSurfaceAnnotationReader () | |
Protected Attributes | |
vtkLookupTable * | Colors |
char * | ColorTableFileName |
vtkIntArray * | Labels |
char * | NamesList |
int | NumColorTableEntries |
int | UseExternalColorTableFile |
Read a surface annotation and color table file from Freesurfer tools.
Reads a surface annotation file from FreeSurfer and outputs a vtkIntArray and has an access function to get the vtkLookupTable with the color values. Use the SetFileName function to specify the file name. The number of values in the array should be equal to the number of vertices/points in the surface.
Definition at line 32 of file vtkFSSurfaceAnnotationReader.h.
typedef vtkDataReader vtkFSSurfaceAnnotationReader::Superclass |
Definition at line 36 of file vtkFSSurfaceAnnotationReader.h.
anonymous enum |
previously defined as constants
Definition at line 61 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
|
protected |
|
virtual |
char* vtkFSSurfaceAnnotationReader::GetColorTableNames | ( | ) |
vtkLookupTable* vtkFSSurfaceAnnotationReader::GetColorTableOutput | ( | ) |
|
virtual |
vtkIntArray* vtkFSSurfaceAnnotationReader::GetOutput | ( | ) |
|
virtual |
|
virtual |
|
static |
|
static |
void vtkFSSurfaceAnnotationReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
protected |
Read color table information from a source, allocate the arrays to hold rgb and name values, and return pointers to the arrays. The caller is responsible for disposing of the memory.
|
protected |
int vtkFSSurfaceAnnotationReader::ReadFSAnnotation | ( | ) |
|
static |
|
virtual |
void vtkFSSurfaceAnnotationReader::SetColorTableOutput | ( | vtkLookupTable * | colors | ) |
void vtkFSSurfaceAnnotationReader::SetOutput | ( | vtkIntArray * | output | ) |
|
virtual |
|
virtual |
|
virtual |
int vtkFSSurfaceAnnotationReader::WriteFSAnnotation | ( | ) |
write out the annotation file, using an internal color table
|
protected |
Definition at line 81 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
Definition at line 86 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
Definition at line 80 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
Definition at line 82 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
Definition at line 83 of file vtkFSSurfaceAnnotationReader.h.
|
protected |
Definition at line 85 of file vtkFSSurfaceAnnotationReader.h.