VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLDataSetWriter.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 =========================================================================*/ 00034 #ifndef __vtkXMLDataSetWriter_h 00035 #define __vtkXMLDataSetWriter_h 00036 00037 #include "vtkIOXMLModule.h" // For export macro 00038 #include "vtkXMLWriter.h" 00039 00040 class vtkCallbackCommand; 00041 00042 class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter 00043 { 00044 public: 00045 vtkTypeMacro(vtkXMLDataSetWriter,vtkXMLWriter); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 static vtkXMLDataSetWriter* New(); 00048 00049 //BTX 00051 00052 vtkDataSet* GetInput(); 00053 //ETX 00055 00056 protected: 00057 vtkXMLDataSetWriter(); 00058 ~vtkXMLDataSetWriter(); 00059 00060 // see algorithm for more info 00061 virtual int FillInputPortInformation(int port, vtkInformation* info); 00062 00063 // Override writing method from superclass. 00064 virtual int WriteInternal(); 00065 00066 // Dummies to satisfy pure virtuals from superclass. 00067 const char* GetDataSetName(); 00068 const char* GetDefaultFileExtension(); 00069 00070 // Callback registered with the ProgressObserver. 00071 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*, 00072 void*); 00073 // Progress callback from internal writer. 00074 virtual void ProgressCallback(vtkAlgorithm* w); 00075 00076 // The observer to report progress from the internal writer. 00077 vtkCallbackCommand* ProgressObserver; 00078 00079 private: 00080 vtkXMLDataSetWriter(const vtkXMLDataSetWriter&); // Not implemented. 00081 void operator=(const vtkXMLDataSetWriter&); // Not implemented. 00082 }; 00083 00084 #endif