VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkArrayDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkArrayDataReader.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
38
#ifndef __vtkArrayDataReader_h
39
#define __vtkArrayDataReader_h
40
41
#include "
vtkArrayDataAlgorithm.h
"
42
43
class
VTK_IO_EXPORT
vtkArrayDataReader
:
44
public
vtkArrayDataAlgorithm
45
{
46
public
:
47
static
vtkArrayDataReader
*
New
();
48
vtkTypeMacro(
vtkArrayDataReader
,
vtkArrayDataAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
50
52
53
vtkGetStringMacro(FileName);
54
vtkSetStringMacro(FileName);
56
58
61
virtual
void
SetInputString(
const
vtkStdString
&
string
);
62
virtual
vtkStdString
GetInputString();
64
66
68
vtkSetMacro(ReadFromInputString,
bool
);
69
vtkGetMacro(ReadFromInputString,
bool
);
70
vtkBooleanMacro(ReadFromInputString,
bool
);
72
75
static
vtkArrayData
* Read(istream& stream);
76
78
static
vtkArrayData
* Read(
vtkStdString
str);
79
80
protected
:
81
vtkArrayDataReader
();
82
~
vtkArrayDataReader
();
83
84
int
RequestData
(
85
vtkInformation
*,
86
vtkInformationVector
**,
87
vtkInformationVector
*);
88
89
char
*
FileName
;
90
vtkStdString
InputString
;
91
bool
ReadFromInputString
;
92
93
private
:
94
vtkArrayDataReader
(
const
vtkArrayDataReader
&);
// Not implemented
95
void
operator=(
const
vtkArrayDataReader
&);
// Not implemented
96
};
97
98
#endif
Generated on Tue Jan 8 2013 05:45:35 for VTK by
1.8.1.2