Slicer  4.11
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
Collaboration diagram for vtkFSSurfaceScalarReader:
Collaboration graph

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) 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 () override

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;


Definition at line 43 of file vtkFSSurfaceScalarReader.h.

Constructor & Destructor Documentation

◆ vtkFSSurfaceScalarReader()

vtkFSSurfaceScalarReader::vtkFSSurfaceScalarReader ( )

◆ ~vtkFSSurfaceScalarReader()

vtkFSSurfaceScalarReader::~vtkFSSurfaceScalarReader ( )

Member Function Documentation

◆ GetClassName()

virtual const char* vtkFSSurfaceScalarReader::GetClassName ( )

◆ GetOutput()

vtkFloatArray* vtkFSSurfaceScalarReader::GetOutput ( )

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkFSSurfaceScalarReader* vtkFSSurfaceScalarReader::New ( )

◆ PrintSelf()

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

◆ ReadFloat()

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

◆ 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 

◆ ReadInt3()

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

◆ SafeDownCast()

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

◆ SetOutput()

void vtkFSSurfaceScalarReader::SetOutput ( vtkFloatArray *  output)

Member Data Documentation

◆ Scalars

vtkFloatArray* vtkFSSurfaceScalarReader::Scalars

Definition at line 51 of file vtkFSSurfaceScalarReader.h.

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