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