VTK  9.3.20240424
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
30VTK_ABI_NAMESPACE_BEGIN
31class vtkDataSet;
32
33class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTreeAlgorithm : public vtkAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
45
49 vtkTree* GetOutput() { return this->GetOutput(0); }
50 vtkTree* GetOutput(int index);
51
57 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
58 void SetInputData(int index, vtkDataObject* obj);
59
60protected:
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
84 int FillOutputPortInformation(int port, vtkInformation* info) override;
85 int FillInputPortInformation(int port, vtkInformation* info) override;
86
87private:
88 vtkTreeAlgorithm(const vtkTreeAlgorithm&) = delete;
89 void operator=(const vtkTreeAlgorithm&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif
Superclass for all sources, filters, and sinks in VTK.
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()
void SetInputData(int index, vtkDataObject *obj)
vtkTree * GetOutput()
Get the output data object for a port on this algorithm.
~vtkTreeAlgorithm() override
vtkTree * GetOutput(int index)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
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
int vtkTypeBool
Definition vtkABI.h:64