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
39#ifndef vtkArrayDataReader_h
40#define vtkArrayDataReader_h
41
42#include "vtkIOCoreModule.h" // For export macro
44
45class VTKIOCORE_EXPORT vtkArrayDataReader :
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent);
52
54
58 vtkSetStringMacro(FileName);
60
62
66 virtual void SetInputString(const vtkStdString& string);
69
71
74 vtkSetMacro(ReadFromInputString, bool);
75 vtkGetMacro(ReadFromInputString, bool);
76 vtkBooleanMacro(ReadFromInputString, bool);
78
84 static vtkArrayData* Read(istream& stream);
85
90
91protected:
94
99
100 char* FileName;
103
104private:
105 vtkArrayDataReader(const vtkArrayDataReader&) VTK_DELETE_FUNCTION;
106 void operator=(const vtkArrayDataReader&) VTK_DELETE_FUNCTION;
107};
108
109#endif
Superclass for algorithms that produce vtkArrayDatas as output.
Reads vtkArrayData written by vtkArrayDataWriter.
static vtkArrayDataReader * New()
static vtkArrayData * Read(istream &stream)
Read an arbitrary array from a stream.
static vtkArrayData * Read(vtkStdString str)
Read an arbitrary array from a string.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkStdString GetInputString()
virtual void SetInputString(const vtkStdString &string)
The input string to parse.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:53
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.