VTK
|
reader for pulling in text files with fixed-width fields More...
#include <vtkFixedWidthTextReader.h>
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkFixedWidthTextReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual char * | GetFileName () |
virtual void | SetFileName (const char *) |
virtual void | SetFieldWidth (int) |
virtual int | GetFieldWidth () |
virtual void | SetStripWhiteSpace (bool) |
virtual bool | GetStripWhiteSpace () |
virtual void | StripWhiteSpaceOn () |
virtual void | StripWhiteSpaceOff () |
virtual bool | GetHaveHeaders () |
virtual void | SetHaveHeaders (bool) |
virtual void | HaveHeadersOn () |
virtual void | HaveHeadersOff () |
Static Public Member Functions | |
static vtkFixedWidthTextReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkFixedWidthTextReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkFixedWidthTextReader () | |
~vtkFixedWidthTextReader () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | OpenFile () |
Protected Attributes | |
char * | FileName |
bool | HaveHeaders |
bool | StripWhiteSpace |
int | FieldWidth |
reader for pulling in text files with fixed-width fields
vtkFixedWidthTextReader reads in a table from a text file where each column occupies a certain number of characters.
This class emits ProgressEvent for every 100 lines it reads.
Definition at line 57 of file vtkFixedWidthTextReader.h.
Reimplemented from vtkTableAlgorithm.
Definition at line 61 of file vtkFixedWidthTextReader.h.
vtkFixedWidthTextReader::vtkFixedWidthTextReader | ( | ) | [protected] |
vtkFixedWidthTextReader::~vtkFixedWidthTextReader | ( | ) | [protected] |
static vtkFixedWidthTextReader* vtkFixedWidthTextReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTableAlgorithm.
static int vtkFixedWidthTextReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
virtual int vtkFixedWidthTextReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
static vtkFixedWidthTextReader* vtkFixedWidthTextReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTableAlgorithm.
virtual vtkObjectBase* vtkFixedWidthTextReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTableAlgorithm.
Reimplemented from vtkTableAlgorithm.
void vtkFixedWidthTextReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkTableAlgorithm.
virtual char* vtkFixedWidthTextReader::GetFileName | ( | ) | [virtual] |
virtual void vtkFixedWidthTextReader::SetFileName | ( | const char * | ) | [virtual] |
virtual void vtkFixedWidthTextReader::SetFieldWidth | ( | int | ) | [virtual] |
Set/get the field width
virtual int vtkFixedWidthTextReader::GetFieldWidth | ( | ) | [virtual] |
Set/get the field width
virtual void vtkFixedWidthTextReader::SetStripWhiteSpace | ( | bool | ) | [virtual] |
If set, this flag will cause the reader to strip whitespace from the beginning and ending of each field. Defaults to off.
virtual bool vtkFixedWidthTextReader::GetStripWhiteSpace | ( | ) | [virtual] |
If set, this flag will cause the reader to strip whitespace from the beginning and ending of each field. Defaults to off.
virtual void vtkFixedWidthTextReader::StripWhiteSpaceOn | ( | ) | [virtual] |
If set, this flag will cause the reader to strip whitespace from the beginning and ending of each field. Defaults to off.
virtual void vtkFixedWidthTextReader::StripWhiteSpaceOff | ( | ) | [virtual] |
If set, this flag will cause the reader to strip whitespace from the beginning and ending of each field. Defaults to off.
virtual bool vtkFixedWidthTextReader::GetHaveHeaders | ( | ) | [virtual] |
Set/get whether to treat the first line of the file as headers.
virtual void vtkFixedWidthTextReader::SetHaveHeaders | ( | bool | ) | [virtual] |
Set/get whether to treat the first line of the file as headers.
virtual void vtkFixedWidthTextReader::HaveHeadersOn | ( | ) | [virtual] |
Set/get whether to treat the first line of the file as headers.
virtual void vtkFixedWidthTextReader::HaveHeadersOff | ( | ) | [virtual] |
Set/get whether to treat the first line of the file as headers.
int vtkFixedWidthTextReader::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTableAlgorithm.
void vtkFixedWidthTextReader::OpenFile | ( | ) | [protected] |
char* vtkFixedWidthTextReader::FileName [protected] |
Definition at line 99 of file vtkFixedWidthTextReader.h.
bool vtkFixedWidthTextReader::HaveHeaders [protected] |
Definition at line 100 of file vtkFixedWidthTextReader.h.
bool vtkFixedWidthTextReader::StripWhiteSpace [protected] |
Definition at line 101 of file vtkFixedWidthTextReader.h.
int vtkFixedWidthTextReader::FieldWidth [protected] |
Definition at line 102 of file vtkFixedWidthTextReader.h.