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) override;
44 
48  void SetSelectionConnection(vtkAlgorithmOutput* in);
49 
51 
52 protected:
54  ~vtkExtractSelectedTree() override;
55 
57 
58  int BuildTree(vtkTree* inputTree, vtkIdTypeArray* list, vtkMutableDirectedGraph* builder);
59 
60 private:
62  void operator=(const vtkExtractSelectedTree&) = delete;
63 };
64 
65 #endif
vtkMutableDirectedGraph
An editable directed graph.
Definition: vtkMutableDirectedGraph.h:45
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTreeAlgorithm.h
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:54
vtkX3D::port
Definition: vtkX3D.h:453
vtkTreeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTreeAlgorithm::New
static vtkTreeAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTreeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:45
vtkTreeAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkExtractSelectedTree
return a subtree from a vtkTree
Definition: vtkExtractSelectedTree.h:38