VTK  9.3.20240418
vtkTreeAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
23 #ifndef vtkTreeAlgorithm_h
24 #define vtkTreeAlgorithm_h
25 
26 #include "vtkAlgorithm.h"
27 #include "vtkCommonExecutionModelModule.h" // For export macro
28 #include "vtkTree.h" // makes things a bit easier
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkDataSet;
32 
33 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTreeAlgorithm : public vtkAlgorithm
34 {
35 public:
36  static vtkTreeAlgorithm* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
45 
49  vtkTree* GetOutput() { return this->GetOutput(0); }
51 
57  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
58  void SetInputData(int index, vtkDataObject* obj);
59 
60 protected:
62  ~vtkTreeAlgorithm() override;
63 
64  // convenience method
65  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
66  vtkInformationVector* outputVector);
67 
72  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector);
74 
80 
82 
83  // see algorithm for more info
86 
87 private:
88  vtkTreeAlgorithm(const vtkTreeAlgorithm&) = delete;
89  void operator=(const vtkTreeAlgorithm&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Tree as output.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
static vtkTreeAlgorithm * New()
vtkTree * GetOutput()
Get the output data object for a port on this algorithm.
void SetInputData(int index, vtkDataObject *obj)
~vtkTreeAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTree * GetOutput(int index)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
A rooted tree data structure.
Definition: vtkTree.h:145
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64