VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDIMACSGraphWriter.h,v $ 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 (c) Sandia Corporation 00017 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00018 ----------------------------------------------------------------------------*/ 00019 00049 #ifndef __vtkDIMACSGraphWriter_h 00050 #define __vtkDIMACSGraphWriter_h 00051 00052 #include "vtkDataWriter.h" 00053 00054 class vtkGraph; 00055 00056 class VTK_INFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter 00057 { 00058 public: 00059 static vtkDIMACSGraphWriter *New(); 00060 vtkTypeMacro(vtkDIMACSGraphWriter,vtkDataWriter); 00061 void PrintSelf(ostream& os, vtkIndent indent); 00062 00064 00065 vtkGraph* GetInput(); 00066 vtkGraph* GetInput(int port); 00068 00069 protected: 00070 vtkDIMACSGraphWriter() {}; 00071 ~vtkDIMACSGraphWriter() {}; 00072 00073 void WriteData(); 00074 00075 virtual int FillInputPortInformation(int port, vtkInformation *info); 00076 00077 private: 00078 vtkDIMACSGraphWriter(const vtkDIMACSGraphWriter&); // Not implemented. 00079 void operator=(const vtkDIMACSGraphWriter&); // Not implemented. 00080 }; 00081 00082 #endif