VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Core
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 "vtkIOCoreModule.h"
// For export macro
45
#include "
vtkArrayDataAlgorithm.h
"
46
47
class
VTKIOCORE_EXPORT
vtkArrayReader
:
48
public
vtkArrayDataAlgorithm
49
{
50
public
:
51
static
vtkArrayReader
*
New
();
52
vtkTypeMacro(
vtkArrayReader
,
vtkArrayDataAlgorithm
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent);
54
56
57
vtkGetStringMacro
(FileName);
58
vtkSetStringMacro(FileName);
60
62
65
virtual
void
SetInputString(
const
vtkStdString
&
string
);
66
virtual
vtkStdString
GetInputString();
68
70
72
vtkSetMacro(ReadFromInputString,
bool
);
73
vtkGetMacro(ReadFromInputString,
bool
);
74
vtkBooleanMacro(ReadFromInputString,
bool
);
76
79
static
vtkArray
* Read(istream& stream);
80
82
static
vtkArray
* Read(
vtkStdString
str);
83
84
protected
:
85
vtkArrayReader
();
86
~
vtkArrayReader
();
87
88
int
RequestData
(
89
vtkInformation
*,
90
vtkInformationVector
**,
91
vtkInformationVector
*);
92
93
char
*
FileName
;
94
vtkStdString
InputString
;
95
bool
ReadFromInputString
;
96
97
private
:
98
vtkArrayReader
(
const
vtkArrayReader
&);
// Not implemented
99
void
operator=(
const
vtkArrayReader
&);
// Not implemented
100
};
101
102
#endif
103
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1