VTK
vtkReaderAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkReaderAlgorithm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkReaderAlgorithm_h
32 #define vtkReaderAlgorithm_h
33 
34 #include "vtkCommonExecutionModelModule.h" // For export macro
35 #include "vtkAlgorithm.h"
36 
37 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkReaderAlgorithm : public vtkAlgorithm
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
48  virtual int ReadMetaData(vtkInformation* metadata) = 0;
49 
57  virtual int ReadMesh(
58  int piece, int npieces, int nghosts, int timestep,
59  vtkDataObject* output) = 0;
60 
66  virtual int ReadPoints(
67  int piece, int npieces, int nghosts, int timestep,
68  vtkDataObject* output) = 0;
69 
75  virtual int ReadArrays(
76  int piece, int npieces, int nghosts, int timestep,
77  vtkDataObject* output) = 0;
78 
79 protected:
81  ~vtkReaderAlgorithm() override;
82 
83 private:
84  vtkReaderAlgorithm(const vtkReaderAlgorithm&) = delete;
85  void operator=(const vtkReaderAlgorithm&) = delete;
86 };
87 
88 #endif
vtkReaderAlgorithm
Superclass for readers that implement a simplified API.
Definition: vtkReaderAlgorithm.h:37
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58