VTK  9.3.20240423
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
25VTK_ABI_NAMESPACE_BEGIN
26class vtkTree;
27
28class VTKIOLEGACY_EXPORT vtkTreeReader : public vtkDataReader
29{
30public:
31 static vtkTreeReader* New();
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
49protected:
51 ~vtkTreeReader() override;
52
54
55private:
56 vtkTreeReader(const vtkTreeReader&) = delete;
57 void operator=(const vtkTreeReader&) = delete;
58};
59
60VTK_ABI_NAMESPACE_END
61#endif
general representation of visualization data
helper superclass for objects that read vtk data files
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
read vtkTree data file
vtkTree * GetOutput()
Get the output of this reader.
vtkTree * GetOutput(int idx)
Get the output of this reader.
~vtkTreeReader() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetOutput(vtkTree *output)
Get the output of this reader.
static vtkTreeReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ReadMeshSimple(VTK_FILEPATH const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
A rooted tree data structure.
Definition vtkTree.h:145
#define VTK_FILEPATH