VTK
dox/Views/vtkPipelineGraphSource.h
Go to the documentation of this file.
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 "vtkDirectedGraphAlgorithm.h"
00025 #include <vtkStdString.h>
00026 
00027 class vtkCollection;
00028 
00029 class VTK_VIEWS_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
00030 {
00031 public:
00032   static vtkPipelineGraphSource* New();
00033   vtkTypeMacro(vtkPipelineGraphSource,vtkDirectedGraphAlgorithm);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00036   void AddSink(vtkObject* object);
00037   void RemoveSink(vtkObject* object);
00038 
00039 //BTX
00042   static void PipelineToDot(vtkAlgorithm* sink, ostream& output, const vtkStdString& graph_name = "");
00045   static void PipelineToDot(vtkCollection* sinks, ostream& output, const vtkStdString& graph_name = "");
00046 
00047 protected:
00048   vtkPipelineGraphSource();
00049   ~vtkPipelineGraphSource();
00050 
00051   int RequestData(
00052     vtkInformation*, 
00053     vtkInformationVector**, 
00054     vtkInformationVector*);
00055 
00056   vtkCollection* Sinks;
00057 
00058 private:
00059   vtkPipelineGraphSource(const vtkPipelineGraphSource&); // Not implemented
00060   void operator=(const vtkPipelineGraphSource&);   // Not implemented
00061 //ETX
00062 };
00063 
00064 #endif
00065