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 00035 #ifndef __vtkDIMACSGraphWriter_h 00036 #define __vtkDIMACSGraphWriter_h 00037 00038 #include "vtkDataWriter.h" 00039 00040 class vtkGraph; 00041 00042 class VTK_INFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter 00043 { 00044 public: 00045 static vtkDIMACSGraphWriter *New(); 00046 vtkTypeMacro(vtkDIMACSGraphWriter,vtkDataWriter); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 00051 vtkGraph* GetInput(); 00052 vtkGraph* GetInput(int port); 00054 00055 protected: 00056 vtkDIMACSGraphWriter() {}; 00057 ~vtkDIMACSGraphWriter() {}; 00058 00059 void WriteData(); 00060 00061 virtual int FillInputPortInformation(int port, vtkInformation *info); 00062 00063 private: 00064 vtkDIMACSGraphWriter(const vtkDIMACSGraphWriter&); // Not implemented. 00065 void operator=(const vtkDIMACSGraphWriter&); // Not implemented. 00066 }; 00067 00068 #endif