VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkArrayReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkArrayReader.h
5
6
-------------------------------------------------------------------------
7
Copyright 2008 Sandia Corporation.
8
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9
the U.S. Government retains certain rights in this software.
10
-------------------------------------------------------------------------
11
12
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13
All rights reserved.
14
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15
16
This software is distributed WITHOUT ANY WARRANTY; without even
17
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18
PURPOSE. See the above copyright notice for more information.
19
20
=========================================================================*/
21
41
#ifndef __vtkArrayReader_h
42
#define __vtkArrayReader_h
43
44
#include "
vtkArrayDataAlgorithm.h
"
45
46
class
VTK_IO_EXPORT
vtkArrayReader
:
47
public
vtkArrayDataAlgorithm
48
{
49
public
:
50
static
vtkArrayReader
*
New
();
51
vtkTypeMacro(
vtkArrayReader
,
vtkArrayDataAlgorithm
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent);
53
55
56
vtkGetStringMacro(FileName);
57
vtkSetStringMacro(FileName);
59
61
64
virtual
void
SetInputString(
const
vtkStdString
&
string
);
65
virtual
vtkStdString
GetInputString();
67
69
71
vtkSetMacro(ReadFromInputString,
bool
);
72
vtkGetMacro(ReadFromInputString,
bool
);
73
vtkBooleanMacro(ReadFromInputString,
bool
);
75
78
static
vtkArray
* Read(istream& stream);
79
81
static
vtkArray
* Read(
vtkStdString
str);
82
83
protected
:
84
vtkArrayReader
();
85
~
vtkArrayReader
();
86
87
int
RequestData
(
88
vtkInformation
*,
89
vtkInformationVector
**,
90
vtkInformationVector
*);
91
92
char
*
FileName
;
93
vtkStdString
InputString
;
94
bool
ReadFromInputString
;
95
96
private
:
97
vtkArrayReader
(
const
vtkArrayReader
&);
// Not implemented
98
void
operator=(
const
vtkArrayReader
&);
// Not implemented
99
};
100
101
#endif
102
Generated on Tue Jan 8 2013 05:45:35 for VTK by
1.8.1.2