Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkFSSurfaceScalarReader Class Reference

Read a surface scalar file from Freesurfer tools. More...

#include <Libs/FreeSurfer/vtkFSSurfaceScalarReader.h>

Inheritance diagram for vtkFSSurfaceScalarReader:
Inheritance graph
[legend]
Collaboration diagram for vtkFSSurfaceScalarReader:
Collaboration graph
[legend]

Public Types

enum  { FS_NEW_SCALAR_MAGIC_NUMBER = 16777215 }
 
typedef vtkDataReader Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
vtkFloatArray * GetOutput ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
int ReadFSScalars ()
 Read the scalars from a file. Return 1 on success, 0 on failure. More...
 
void SetOutput (vtkFloatArray *output)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkFSSurfaceScalarReaderNew ()
 
static vtkFSSurfaceScalarReaderSafeDownCast (vtkObject *o)
 

Protected Member Functions

int ReadFloat (FILE *iFile, float &oInt)
 
int ReadInt2 (FILE *iFile, int &oInt)
 
int ReadInt3 (FILE *iFile, int &oInt)
 
 vtkFSSurfaceScalarReader ()
 
 ~vtkFSSurfaceScalarReader ()
 

Protected Attributes

vtkFloatArray * Scalars
 

Detailed Description

Read a surface scalar file from Freesurfer tools.

Reads a surface scalar file from FreeSurfer and outputs a vtkFloatArray. 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 28 of file vtkFSSurfaceScalarReader.h.

Member Typedef Documentation

◆ Superclass

typedef vtkDataReader vtkFSSurfaceScalarReader::Superclass

Definition at line 32 of file vtkFSSurfaceScalarReader.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

file type magic numbers const int FS_NEW_SCALAR_MAGIC_NUMBER = 16777215;

Enumerator
FS_NEW_SCALAR_MAGIC_NUMBER 

Definition at line 43 of file vtkFSSurfaceScalarReader.h.

Constructor & Destructor Documentation

◆ vtkFSSurfaceScalarReader()

vtkFSSurfaceScalarReader::vtkFSSurfaceScalarReader ( )
protected

◆ ~vtkFSSurfaceScalarReader()

vtkFSSurfaceScalarReader::~vtkFSSurfaceScalarReader ( )
protected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkFSSurfaceScalarReader::GetClassName ( )
virtual

◆ GetOutput()

vtkFloatArray* vtkFSSurfaceScalarReader::GetOutput ( )

◆ IsA()

virtual int vtkFSSurfaceScalarReader::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkFSSurfaceScalarReader::IsTypeOf ( const char *  type)
static

◆ New()

static vtkFSSurfaceScalarReader* vtkFSSurfaceScalarReader::New ( )
static

◆ PrintSelf()

void vtkFSSurfaceScalarReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ ReadFloat()

int vtkFSSurfaceScalarReader::ReadFloat ( FILE *  iFile,
float &  oInt 
)
protected

◆ ReadFSScalars()

int vtkFSSurfaceScalarReader::ReadFSScalars ( )

Read the scalars from a file. Return 1 on success, 0 on failure.

◆ ReadInt2()

int vtkFSSurfaceScalarReader::ReadInt2 ( FILE *  iFile,
int &  oInt 
)
protected

◆ ReadInt3()

int vtkFSSurfaceScalarReader::ReadInt3 ( FILE *  iFile,
int &  oInt 
)
protected

◆ SafeDownCast()

static vtkFSSurfaceScalarReader* vtkFSSurfaceScalarReader::SafeDownCast ( vtkObject *  o)
static

◆ SetOutput()

void vtkFSSurfaceScalarReader::SetOutput ( vtkFloatArray *  output)

Member Data Documentation

◆ Scalars

vtkFloatArray* vtkFSSurfaceScalarReader::Scalars
protected

Definition at line 51 of file vtkFSSurfaceScalarReader.h.


The documentation for this class was generated from the following file: