Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkXMLDataSetWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLDataSetWriter.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 =========================================================================*/
00041 #ifndef __vtkXMLDataSetWriter_h
00042 #define __vtkXMLDataSetWriter_h
00043 
00044 #include "vtkXMLWriter.h"
00045 
00046 class vtkCallbackCommand;
00047 
00048 class VTK_IO_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkXMLDataSetWriter,vtkXMLWriter);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053   static vtkXMLDataSetWriter* New();
00054   
00056 
00057   void SetInput(vtkDataSet* input);
00058   vtkDataSet* GetInput();
00060   
00061 protected:
00062   vtkXMLDataSetWriter();
00063   ~vtkXMLDataSetWriter();
00064   
00065   // Override writing method from superclass.
00066   virtual int WriteInternal();
00067   
00068   // Dummies to satisfy pure virtuals from superclass.
00069   int WriteData();
00070   const char* GetDataSetName();
00071   const char* GetDefaultFileExtension();
00072   
00073   // Callback registered with the ProgressObserver.
00074   static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
00075                                        void*);
00076   // Progress callback from internal writer.
00077   virtual void ProgressCallback(vtkProcessObject* w);
00078   
00079   // The observer to report progress from the internal writer.
00080   vtkCallbackCommand* ProgressObserver;  
00081   
00082 private:
00083   vtkXMLDataSetWriter(const vtkXMLDataSetWriter&);  // Not implemented.
00084   void operator=(const vtkXMLDataSetWriter&);  // Not implemented.
00085 };
00086 
00087 #endif