VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
IO
Infovis
vtkFixedWidthTextReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkFixedWidthTextReader.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
20
49
#ifndef vtkFixedWidthTextReader_h
50
#define vtkFixedWidthTextReader_h
51
52
#include "
vtkIOInfovisModule.h
"
// For export macro
53
#include "
vtkTableAlgorithm.h
"
54
55
class
vtkTable
;
56
57
class
VTKIOINFOVIS_EXPORT
vtkFixedWidthTextReader
:
public
vtkTableAlgorithm
58
{
59
public
:
60
static
vtkFixedWidthTextReader
*
New
();
61
vtkTypeMacro(
vtkFixedWidthTextReader
,
vtkTableAlgorithm
);
62
void
PrintSelf
(ostream& os,
vtkIndent
indent);
63
64
vtkGetStringMacro(FileName);
65
vtkSetStringMacro(FileName);
66
68
69
vtkSetMacro(FieldWidth,
int
);
70
vtkGetMacro(FieldWidth,
int
);
72
74
76
vtkSetMacro(StripWhiteSpace,
bool
);
77
vtkGetMacro(StripWhiteSpace,
bool
);
78
vtkBooleanMacro(StripWhiteSpace,
bool
);
80
82
83
vtkGetMacro(HaveHeaders,
bool
);
84
vtkSetMacro(HaveHeaders,
bool
);
85
vtkBooleanMacro(HaveHeaders,
bool
);
87
88
protected
:
89
vtkFixedWidthTextReader
();
90
~
vtkFixedWidthTextReader
();
91
92
int
RequestData
(
93
vtkInformation
*,
94
vtkInformationVector
**,
95
vtkInformationVector
*);
96
97
void
OpenFile();
98
99
char
*
FileName
;
100
bool
HaveHeaders
;
101
bool
StripWhiteSpace
;
102
int
FieldWidth
;
103
104
private
:
105
vtkFixedWidthTextReader
(
const
vtkFixedWidthTextReader
&);
// Not implemented
106
void
operator=(
const
vtkFixedWidthTextReader
&);
// Not implemented
107
};
108
109
#endif
110
vtkFixedWidthTextReader::HaveHeaders
bool HaveHeaders
Definition:
vtkFixedWidthTextReader.h:100
vtkTableAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:85
VTKIOINFOVIS_EXPORT
#define VTKIOINFOVIS_EXPORT
Definition:
vtkIOInfovisModule.h:15
vtkFixedWidthTextReader
reader for pulling in text files with fixed-width fields
Definition:
vtkFixedWidthTextReader.h:57
vtkFixedWidthTextReader::StripWhiteSpace
bool StripWhiteSpace
Definition:
vtkFixedWidthTextReader.h:101
vtkTableAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkFixedWidthTextReader::FileName
char * FileName
Definition:
vtkFixedWidthTextReader.h:99
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkTableAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition:
vtkTableAlgorithm.h:47
vtkIOInfovisModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:40
vtkFixedWidthTextReader::FieldWidth
int FieldWidth
Definition:
vtkFixedWidthTextReader.h:102
Generated by
1.8.9.1