VTK  9.0.1
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 
36 #ifndef vtkArrayDataReader_h
37 #define vtkArrayDataReader_h
38 
39 #include "vtkArrayDataAlgorithm.h"
40 #include "vtkIOCoreModule.h" // For export macro
41 
42 class VTKIOCORE_EXPORT vtkArrayDataReader : public vtkArrayDataAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  vtkGetStringMacro(FileName);
54  vtkSetStringMacro(FileName);
56 
58 
62  virtual void SetInputString(const vtkStdString& string);
65 
67 
70  vtkSetMacro(ReadFromInputString, bool);
71  vtkGetMacro(ReadFromInputString, bool);
72  vtkBooleanMacro(ReadFromInputString, bool);
74 
80  static vtkArrayData* Read(istream& stream);
81 
85  static vtkArrayData* Read(const vtkStdString& str);
86 
87 protected:
89  ~vtkArrayDataReader() override;
90 
92 
93  char* FileName;
96 
97 private:
98  vtkArrayDataReader(const vtkArrayDataReader&) = delete;
99  void operator=(const vtkArrayDataReader&) = delete;
100 };
101 
102 #endif
Superclass for algorithms that produce vtkArrayDatas as output.
Reads vtkArrayData written by vtkArrayDataWriter.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkArrayDataReader() override
static vtkArrayData * Read(const vtkStdString &str)
Read an arbitrary array from a string.
virtual vtkStdString GetInputString()
virtual void SetInputString(const vtkStdString &string)
The input string to parse.
vtkStdString InputString
static vtkArrayDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkArrayData * Read(istream &stream)
Read an arbitrary array from a stream.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:50
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:35