VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
40 class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
41 {
42 public:
43  static vtkExtractSelectedTree* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
49  void SetSelectionConnection(vtkAlgorithmOutput* in);
50 
51  int FillInputPortInformation(int port, vtkInformation* info);
52 protected:
55 
56  int RequestData(
57  vtkInformation*,
58  vtkInformationVector**,
59  vtkInformationVector*);
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.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)
Proxy object to connect input/output ports.
An editable directed graph.
return a subtree from a vtkTree
static vtkTreeAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)