VTK
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 "vtkIOCoreModule.h" // For export macro
42 #include "vtkArrayDataAlgorithm.h"
43 
46 {
47 public:
48  static vtkArrayDataReader* New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkGetStringMacro(FileName);
55  vtkSetStringMacro(FileName);
57 
59 
62  virtual void SetInputString(const vtkStdString& string);
63  virtual vtkStdString GetInputString();
65 
67 
69  vtkSetMacro(ReadFromInputString, bool);
70  vtkGetMacro(ReadFromInputString, bool);
71  vtkBooleanMacro(ReadFromInputString, bool);
73 
76  static vtkArrayData* Read(istream& stream);
77 
79  static vtkArrayData* Read(vtkStdString str);
80 
81 protected:
84 
85  int RequestData(
89 
90  char* FileName;
93 
94 private:
95  vtkArrayDataReader(const vtkArrayDataReader&); // Not implemented
96  void operator=(const vtkArrayDataReader&); // Not implemented
97 };
98 
99 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:51
#define VTKIOCORE_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
Reads vtkArrayData written by vtkArrayDataWriter.
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
vtkStdString InputString