VTK
dox/Infovis/Core/vtkExtractSelectedTree.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkExtractSelectedTree.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00030 #ifndef __vtkExtractSelectedTree_h
00031 #define __vtkExtractSelectedTree_h
00032 
00033 #include "vtkInfovisCoreModule.h" // For export macro
00034 #include "vtkTreeAlgorithm.h"
00035 
00036 class vtkTree;
00037 class vtkIdTypeArray;
00038 class vtkMutableDirectedGraph;
00039 
00040 class VTKINFOVISCORE_EXPORT vtkExtractSelectedTree : public vtkTreeAlgorithm
00041 {
00042 public:
00043   static vtkExtractSelectedTree* New();
00044   vtkTypeMacro(vtkExtractSelectedTree,vtkTreeAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00049   void SetSelectionConnection(vtkAlgorithmOutput* in);
00050 
00051   int FillInputPortInformation(int port, vtkInformation* info);
00052 protected:
00053   vtkExtractSelectedTree();
00054   ~vtkExtractSelectedTree();
00055 
00056   int RequestData(
00057     vtkInformation*,
00058     vtkInformationVector**,
00059     vtkInformationVector*);
00060 
00061   int BuildTree(vtkTree * inputTree, vtkIdTypeArray * list, vtkMutableDirectedGraph * builder);
00062 
00063 
00064 private:
00065   vtkExtractSelectedTree(const vtkExtractSelectedTree&); // Not implemented
00066   void operator=(const vtkExtractSelectedTree&);   // Not implemented
00067 };
00068 
00069 #endif