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 
42 #ifndef vtkArrayReader_h
43 #define vtkArrayReader_h
44 
45 #include "vtkIOCoreModule.h" // For export macro
46 #include "vtkArrayDataAlgorithm.h"
47 
48 class VTKIOCORE_EXPORT vtkArrayReader :
50 {
51 public:
52  static vtkArrayReader* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
60  vtkGetStringMacro(FileName);
61  vtkSetStringMacro(FileName);
63 
65 
69  virtual void SetInputString(const vtkStdString& string);
72 
74 
77  vtkSetMacro(ReadFromInputString, bool);
78  vtkGetMacro(ReadFromInputString, bool);
79  vtkBooleanMacro(ReadFromInputString, bool);
81 
87  static vtkArray* Read(istream& stream);
88 
92  static vtkArray* Read(vtkStdString str);
93 
94 protected:
97 
102 
103  char* FileName;
106 
107 private:
108  vtkArrayReader(const vtkArrayReader&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkArrayReader&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
113 
vtkArrayReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkArrayDataAlgorithm.h
vtkArrayReader::ReadFromInputString
bool ReadFromInputString
Definition: vtkArrayReader.h:105
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkArrayReader::SetInputString
virtual void SetInputString(const vtkStdString &string)
The input string to parse.
vtkArrayReader::New
static vtkArrayReader * New()
vtkArrayReader::InputString
vtkStdString InputString
Definition: vtkArrayReader.h:104
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkArrayReader
Reads sparse and dense vtkArray data written by vtkArrayWriter.
Definition: vtkArrayReader.h:50
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:54
vtkArray
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:71
vtkArrayReader::FileName
char * FileName
Definition: vtkArrayReader.h:103
vtkArrayReader::vtkArrayReader
vtkArrayReader()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkArrayReader::GetInputString
virtual vtkStdString GetInputString()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkArrayReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkArrayReader::Read
static vtkArray * Read(vtkStdString str)
Read an arbitrary array from a string.
vtkArrayReader::~vtkArrayReader
~vtkArrayReader()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkArrayReader::Read
static vtkArray * Read(istream &stream)
Read an arbitrary array from a stream.