VTK
vtkExtractSelectedTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectedTree.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkExtractSelectedTree_h
29 #define vtkExtractSelectedTree_h
30 
31 #include "vtkInfovisCoreModule.h" // For export macro
32 #include "vtkTreeAlgorithm.h"
33 
34 class vtkTree;
35 class vtkIdTypeArray;
37 
38 class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
39 {
40 public:
41  static vtkExtractSelectedTree* New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
48  void SetSelectionConnection(vtkAlgorithmOutput* in);
49 
50  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
51 protected:
53  ~vtkExtractSelectedTree() VTK_OVERRIDE;
54 
55  int RequestData(
58  vtkInformationVector*) VTK_OVERRIDE;
59 
60  int BuildTree(vtkTree * inputTree, vtkIdTypeArray * list, vtkMutableDirectedGraph * builder);
61 
62 
63 private:
64  vtkExtractSelectedTree(const vtkExtractSelectedTree&) VTK_DELETE_FUNCTION;
65  void operator=(const vtkExtractSelectedTree&) VTK_DELETE_FUNCTION;
66 };
67 
68 #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.
dynamic, self-adjusting array of vtkIdType
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:33
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:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.