VTK
dox/IO/Infovis/vtkDIMACSGraphWriter.h
Go to the documentation of this file.
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 "vtkIOInfovisModule.h" // For export macro
00053 #include "vtkDataWriter.h"
00054 
00055 class vtkGraph;
00056 
00057 class VTKIOINFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter
00058 {
00059 public:
00060   static vtkDIMACSGraphWriter *New();
00061   vtkTypeMacro(vtkDIMACSGraphWriter,vtkDataWriter);
00062   void PrintSelf(ostream& os, vtkIndent indent);
00063 
00065 
00066   vtkGraph* GetInput();
00067   vtkGraph* GetInput(int port);
00069 
00070 protected:
00071   vtkDIMACSGraphWriter() {}
00072   ~vtkDIMACSGraphWriter() {}
00073 
00074   void WriteData();
00075 
00076   virtual int FillInputPortInformation(int port, vtkInformation *info);
00077 
00078 private:
00079   vtkDIMACSGraphWriter(const vtkDIMACSGraphWriter&);  // Not implemented.
00080   void operator=(const vtkDIMACSGraphWriter&);  // Not implemented.
00081 };
00082 
00083 #endif