VTK  9.3.0
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 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkTree;
27 class vtkIdTypeArray;
29 
30 class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41 
43 
44 protected:
47 
49 
50  int BuildTree(vtkTree* inputTree, vtkIdTypeArray* list, vtkMutableDirectedGraph* builder);
51 
52 private:
54  void operator=(const vtkExtractSelectedTree&) = delete;
55 };
56 
57 VTK_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:29
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:46
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447