VTK: IO/Legacy/vtkTreeReader.h Source File

| VTK 9.3.1

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