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 =========================================================================*/
30 #ifndef vtkExtractSelectedTree_h
31 #define vtkExtractSelectedTree_h
32 
33 #include "vtkInfovisCoreModule.h" // For export macro
34 #include "vtkTreeAlgorithm.h"
35 
36 class vtkTree;
37 class vtkIdTypeArray;
39 
41 {
42 public:
43  static vtkExtractSelectedTree* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
49  void SetSelectionConnection(vtkAlgorithmOutput* in);
50 
52 protected:
55 
56  int RequestData(
60 
61  int BuildTree(vtkTree * inputTree, vtkIdTypeArray * list, vtkMutableDirectedGraph * builder);
62 
63 
64 private:
65  vtkExtractSelectedTree(const vtkExtractSelectedTree&); // Not implemented
66  void operator=(const vtkExtractSelectedTree&); // Not implemented
67 };
68 
69 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent)
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:38
An editable directed graph.
#define VTKINFOVISCORE_EXPORT
return a subtree from a vtkTree
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
A rooted tree data structure.
Definition: vtkTree.h:59