VTK
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 
49 {
50 public:
51  static vtkArrayReader* New();
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:
86  ~vtkArrayReader();
87 
88  int RequestData(
92 
93  char* FileName;
96 
97 private:
98  vtkArrayReader(const vtkArrayReader&); // Not implemented
99  void operator=(const vtkArrayReader&); // Not implemented
100 };
101 
102 #endif
103 
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Reads sparse and dense vtkArray data written by vtkArrayWriter.
Store vtkAlgorithm input/output information.
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:69
#define VTKIOCORE_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
bool ReadFromInputString
Superclass for algorithms that produce vtkArrayDatas as output.
vtkStdString InputString
static vtkArrayDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.