VTK  9.3.20240419
vtkTreeReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkTreeReader_h
20 #define vtkTreeReader_h
21 
22 #include "vtkDataReader.h"
23 #include "vtkIOLegacyModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkTree;
27 
28 class VTKIOLEGACY_EXPORT vtkTreeReader : public vtkDataReader
29 {
30 public:
31  static vtkTreeReader* New();
32  vtkTypeMacro(vtkTreeReader, vtkDataReader);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
40  vtkTree* GetOutput(int idx);
41  void SetOutput(vtkTree* output);
43 
47  int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
48 
49 protected:
51  ~vtkTreeReader() override;
52 
54 
55 private:
56  vtkTreeReader(const vtkTreeReader&) = delete;
57  void operator=(const vtkTreeReader&) = delete;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #endif
general representation of visualization data
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:44
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
read vtkTree data file
Definition: vtkTreeReader.h:29
~vtkTreeReader() override
vtkTree * GetOutput()
Get the output of this reader.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetOutput(vtkTree *output)
Get the output of this reader.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTree * GetOutput(int idx)
Get the output of this reader.
static vtkTreeReader * New()
int ReadMeshSimple(VTK_FILEPATH const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
A rooted tree data structure.
Definition: vtkTree.h:145
@ string
Definition: vtkX3D.h:490
#define VTK_FILEPATH