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 
39 #ifndef vtkArrayReader_h
40 #define vtkArrayReader_h
41 
42 #include "vtkIOCoreModule.h" // For export macro
43 #include "vtkArrayDataAlgorithm.h"
44 
45 class VTKIOCORE_EXPORT vtkArrayReader :
47 {
48 public:
49  static vtkArrayReader* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkGetStringMacro(FileName);
58  vtkSetStringMacro(FileName);
60 
62 
66  virtual void SetInputString(const vtkStdString& string);
67  virtual vtkStdString GetInputString();
69 
71 
74  vtkSetMacro(ReadFromInputString, bool);
75  vtkGetMacro(ReadFromInputString, bool);
76  vtkBooleanMacro(ReadFromInputString, bool);
78 
84  static vtkArray* Read(istream& stream);
85 
89  static vtkArray* Read(const vtkStdString& str);
90 
91 protected:
93  ~vtkArrayReader() override;
94 
95  int RequestData(
98  vtkInformationVector*) override;
99 
100  char* FileName;
103 
104 private:
105  vtkArrayReader(const vtkArrayReader&) = delete;
106  void operator=(const vtkArrayReader&) = delete;
107 };
108 
109 #endif
110 
vtkArrayDataAlgorithm.h
vtkArrayReader::ReadFromInputString
bool ReadFromInputString
Definition: vtkArrayReader.h:102
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkArrayReader::InputString
vtkStdString InputString
Definition: vtkArrayReader.h:101
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkArrayReader
Reads sparse and dense vtkArray data written by vtkArrayWriter.
Definition: vtkArrayReader.h:45
vtkArrayDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:53
vtkArray
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:64
vtkArrayReader::FileName
char * FileName
Definition: vtkArrayReader.h:100
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkArrayDataAlgorithm::New
static vtkArrayDataAlgorithm * New()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
vtkArrayDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.