VTK  9.3.20240424
vtkExtractSelectedTree.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 vtkExtractSelectedTree_h
20#define vtkExtractSelectedTree_h
21
22#include "vtkInfovisCoreModule.h" // For export macro
23#include "vtkTreeAlgorithm.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkTree;
27class vtkIdTypeArray;
29
30class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
41
42 int FillInputPortInformation(int port, vtkInformation* info) override;
43
44protected:
47
49
50 int BuildTree(vtkTree* inputTree, vtkIdTypeArray* list, vtkMutableDirectedGraph* builder);
51
52private:
54 void operator=(const vtkExtractSelectedTree&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif
Proxy object to connect input/output ports.
return a subtree from a vtkTree
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetSelectionConnection(vtkAlgorithmOutput *in)
A convenience method for setting the second input (i.e.
~vtkExtractSelectedTree() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkExtractSelectedTree * New()
int BuildTree(vtkTree *inputTree, vtkIdTypeArray *list, vtkMutableDirectedGraph *builder)
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
An editable directed graph.
Superclass for algorithms that produce only Tree as output.
A rooted tree data structure.
Definition vtkTree.h:145