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 
36 #ifndef vtkArrayDataReader_h
37 #define vtkArrayDataReader_h
38 
39 #include "vtkIOCoreModule.h" // For export macro
40 #include "vtkArrayDataAlgorithm.h"
41 
42 class VTKIOCORE_EXPORT vtkArrayDataReader :
44 {
45 public:
46  static vtkArrayDataReader* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkGetStringMacro(FileName);
55  vtkSetStringMacro(FileName);
57 
59 
63  virtual void SetInputString(const vtkStdString& string);
64  virtual vtkStdString GetInputString();
66 
68 
71  vtkSetMacro(ReadFromInputString, bool);
72  vtkGetMacro(ReadFromInputString, bool);
73  vtkBooleanMacro(ReadFromInputString, bool);
75 
81  static vtkArrayData* Read(istream& stream);
82 
86  static vtkArrayData* Read(const vtkStdString& str);
87 
88 protected:
90  ~vtkArrayDataReader() override;
91 
92  int RequestData(
95  vtkInformationVector*) override;
96 
97  char* FileName;
100 
101 private:
102  vtkArrayDataReader(const vtkArrayDataReader&) = delete;
103  void operator=(const vtkArrayDataReader&) = delete;
104 };
105 
106 #endif
vtkArrayDataAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkArrayData
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:49
vtkArrayDataReader::ReadFromInputString
bool ReadFromInputString
Definition: vtkArrayDataReader.h:99
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
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
vtkArrayDataReader
Reads vtkArrayData written by vtkArrayDataWriter.
Definition: vtkArrayDataReader.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkArrayDataAlgorithm::New
static vtkArrayDataAlgorithm * New()
vtkArrayDataReader::FileName
char * FileName
Definition: vtkArrayDataReader.h:97
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.
vtkArrayDataReader::InputString
vtkStdString InputString
Definition: vtkArrayDataReader.h:98