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
vtkFSSurfaceWFileReader Class Reference

Read a surface w file (*.w) file from Freesurfer tools. More...

#include <Libs/FreeSurfer/vtkFSSurfaceWFileReader.h>

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

Public Types

enum  {
  FS_ERROR_W_NONE = 0, FS_ERROR_W_OUTPUT_NULL = 1, FS_ERROR_W_NO_FILENAME = 2, FS_ERROR_W_OPEN = 3,
  FS_ERROR_W_NUM_VALUES = 4, FS_ERROR_W_ALLOC = 5, FS_ERROR_W_EOF = 6, FS_NEW_SCALAR_MAGIC_NUMBER = 16777215
}
 
typedef vtkDataReader Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int GetNumberOfVertices ()
 
vtkFloatArray * GetOutput ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
int ReadWFile ()
 
virtual void SetNumberOfVertices (int)
 
void SetOutput (vtkFloatArray *output)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkFSSurfaceWFileReaderNew ()
 
static vtkFSSurfaceWFileReaderSafeDownCast (vtkObject *o)
 

Protected Member Functions

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

Protected Attributes

int NumberOfVertices
 
vtkFloatArray * Scalars
 

Detailed Description

Read a surface w file (*.w) file from Freesurfer tools.

Reads a surface w file 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 vtkFSSurfaceWFileReader.h.

Member Typedef Documentation

◆ Superclass

typedef vtkDataReader vtkFSSurfaceWFileReader::Superclass

Definition at line 32 of file vtkFSSurfaceWFileReader.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FS_ERROR_W_NONE 

error codes

FS_ERROR_W_OUTPUT_NULL 
FS_ERROR_W_NO_FILENAME 
FS_ERROR_W_OPEN 
FS_ERROR_W_NUM_VALUES 
FS_ERROR_W_ALLOC 
FS_ERROR_W_EOF 
FS_NEW_SCALAR_MAGIC_NUMBER 

file type magic numbers

Definition at line 43 of file vtkFSSurfaceWFileReader.h.

Constructor & Destructor Documentation

◆ vtkFSSurfaceWFileReader()

vtkFSSurfaceWFileReader::vtkFSSurfaceWFileReader ( )
protected

◆ ~vtkFSSurfaceWFileReader()

vtkFSSurfaceWFileReader::~vtkFSSurfaceWFileReader ( )
protected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkFSSurfaceWFileReader::GetClassName ( )
virtual

◆ GetNumberOfVertices()

virtual int vtkFSSurfaceWFileReader::GetNumberOfVertices ( )
virtual

◆ GetOutput()

vtkFloatArray* vtkFSSurfaceWFileReader::GetOutput ( )

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkFSSurfaceWFileReader* vtkFSSurfaceWFileReader::New ( )
static

◆ PrintSelf()

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

◆ ReadFloat()

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

◆ ReadInt2()

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

◆ ReadInt3()

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

◆ ReadWFile()

int vtkFSSurfaceWFileReader::ReadWFile ( )

◆ SafeDownCast()

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

◆ SetNumberOfVertices()

virtual void vtkFSSurfaceWFileReader::SetNumberOfVertices ( int  )
virtual

◆ SetOutput()

void vtkFSSurfaceWFileReader::SetOutput ( vtkFloatArray *  output)

Member Data Documentation

◆ NumberOfVertices

int vtkFSSurfaceWFileReader::NumberOfVertices
protected

this is the number of vertices in the associated model file, there may not be as many value in this scalar file as there are vertices

Definition at line 66 of file vtkFSSurfaceWFileReader.h.

◆ Scalars

vtkFloatArray* vtkFSSurfaceWFileReader::Scalars
protected

Definition at line 61 of file vtkFSSurfaceWFileReader.h.


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