VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractSelectedGraph.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 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00042 #ifndef __vtkExtractSelectedGraph_h 00043 #define __vtkExtractSelectedGraph_h 00044 00045 #include "vtkInfovisCoreModule.h" // For export macro 00046 #include "vtkGraphAlgorithm.h" 00047 00048 class vtkSelection; 00049 class vtkDataSet; 00050 00051 class VTKINFOVISCORE_EXPORT vtkExtractSelectedGraph : public vtkGraphAlgorithm 00052 { 00053 public: 00054 static vtkExtractSelectedGraph* New(); 00055 vtkTypeMacro(vtkExtractSelectedGraph,vtkGraphAlgorithm); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00060 void SetSelectionConnection(vtkAlgorithmOutput* in); 00061 00064 void SetAnnotationLayersConnection(vtkAlgorithmOutput* in); 00065 00067 00070 vtkSetMacro(RemoveIsolatedVertices, bool); 00071 vtkGetMacro(RemoveIsolatedVertices, bool); 00072 vtkBooleanMacro(RemoveIsolatedVertices, bool); 00074 00076 int FillInputPortInformation(int port, vtkInformation* info); 00077 00078 protected: 00079 vtkExtractSelectedGraph(); 00080 ~vtkExtractSelectedGraph(); 00081 00082 int RequestData( 00083 vtkInformation*, 00084 vtkInformationVector**, 00085 vtkInformationVector*); 00086 00087 int RequestDataObject( 00088 vtkInformation*, 00089 vtkInformationVector**, 00090 vtkInformationVector*); 00091 00092 bool RemoveIsolatedVertices; 00093 00094 private: 00095 vtkExtractSelectedGraph(const vtkExtractSelectedGraph&); // Not implemented 00096 void operator=(const vtkExtractSelectedGraph&); // Not implemented 00097 }; 00098 00099 #endif 00100