VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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 "
vtkTableAlgorithm.h
"
53
54
class
vtkTable
;
55
56
class
VTK_INFOVIS_EXPORT
vtkFixedWidthTextReader
:
public
vtkTableAlgorithm
57
{
58
public
:
59
static
vtkFixedWidthTextReader
*
New
();
60
vtkTypeMacro(
vtkFixedWidthTextReader
,
vtkTableAlgorithm
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent);
62
63
vtkGetStringMacro(FileName);
64
vtkSetStringMacro(FileName);
65
67
68
vtkSetMacro(FieldWidth,
int
);
69
vtkGetMacro(FieldWidth,
int
);
71
73
75
vtkSetMacro(StripWhiteSpace,
bool
);
76
vtkGetMacro(StripWhiteSpace,
bool
);
77
vtkBooleanMacro(StripWhiteSpace,
bool
);
79
81
82
vtkGetMacro(HaveHeaders,
bool
);
83
vtkSetMacro(HaveHeaders,
bool
);
84
vtkBooleanMacro(HaveHeaders,
bool
);
86
87
protected
:
88
vtkFixedWidthTextReader
();
89
~
vtkFixedWidthTextReader
();
90
91
int
RequestData
(
92
vtkInformation
*,
93
vtkInformationVector
**,
94
vtkInformationVector
*);
95
96
void
OpenFile();
97
98
char
*
FileName
;
99
bool
HaveHeaders
;
100
bool
StripWhiteSpace
;
101
int
FieldWidth
;
102
103
private
:
104
vtkFixedWidthTextReader
(
const
vtkFixedWidthTextReader
&);
// Not implemented
105
void
operator=(
const
vtkFixedWidthTextReader
&);
// Not implemented
106
};
107
108
#endif
109
vtkFixedWidthTextReader::HaveHeaders
bool HaveHeaders
Definition:
vtkFixedWidthTextReader.h:99
vtkTableAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:81
vtkFixedWidthTextReader
reader for pulling in text files with fixed-width fields
Definition:
vtkFixedWidthTextReader.h:56
vtkFixedWidthTextReader::StripWhiteSpace
bool StripWhiteSpace
Definition:
vtkFixedWidthTextReader.h:100
vtkTableAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkFixedWidthTextReader::FileName
char * FileName
Definition:
vtkFixedWidthTextReader.h:98
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:66
VTK_INFOVIS_EXPORT
#define VTK_INFOVIS_EXPORT
Definition:
vtkWin32Header.h:276
vtkTableAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition:
vtkTableAlgorithm.h:52
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:39
vtkFixedWidthTextReader::FieldWidth
int FieldWidth
Definition:
vtkFixedWidthTextReader.h:101
Generated on Tue Oct 28 2014 11:39:58 for VTK by
1.8.8