VTK  9.3.1
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:
33  static vtkExtractSelectedTree* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  void SetSelectionConnection(vtkAlgorithmOutput* in);
41 
43 
44 protected:
46  ~vtkExtractSelectedTree() override;
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
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of vtkIdType
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:28
An editable directed graph.
return a subtree from a vtkTree
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
A rooted tree data structure.
Definition: vtkTree.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.