VTK  9.1.0
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
34class vtkTree;
35class vtkIdTypeArray;
37
38class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
49
51
52protected:
55
57
58 int BuildTree(vtkTree* inputTree, vtkIdTypeArray* list, vtkMutableDirectedGraph* builder);
59
60private:
62 void operator=(const vtkExtractSelectedTree&) = delete;
63};
64
65#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:113
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:164
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453