VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPipelineGraphSource.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 =========================================================================*/ 00021 #ifndef __vtkPipelineGraphSource_h 00022 #define __vtkPipelineGraphSource_h 00023 00024 #include "vtkInfovisCoreModule.h" // For export macro 00025 #include "vtkDirectedGraphAlgorithm.h" 00026 #include <vtkStdString.h> 00027 00028 class vtkCollection; 00029 00030 class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm 00031 { 00032 public: 00033 static vtkPipelineGraphSource* New(); 00034 vtkTypeMacro(vtkPipelineGraphSource,vtkDirectedGraphAlgorithm); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00037 void AddSink(vtkObject* object); 00038 void RemoveSink(vtkObject* object); 00039 00040 //BTX 00043 static void PipelineToDot(vtkAlgorithm* sink, ostream& output, const vtkStdString& graph_name = ""); 00046 static void PipelineToDot(vtkCollection* sinks, ostream& output, const vtkStdString& graph_name = ""); 00047 00048 protected: 00049 vtkPipelineGraphSource(); 00050 ~vtkPipelineGraphSource(); 00051 00052 int RequestData( 00053 vtkInformation*, 00054 vtkInformationVector**, 00055 vtkInformationVector*); 00056 00057 vtkCollection* Sinks; 00058 00059 private: 00060 vtkPipelineGraphSource(const vtkPipelineGraphSource&); // Not implemented 00061 void operator=(const vtkPipelineGraphSource&); // Not implemented 00062 //ETX 00063 }; 00064 00065 #endif 00066 00067 // VTK-HeaderTest-Exclude: vtkPipelineGraphSource.h