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

IO/vtkXMLPStructuredDataWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLPStructuredDataWriter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00037 #ifndef __vtkXMLPStructuredDataWriter_h
00038 #define __vtkXMLPStructuredDataWriter_h
00039 
00040 #include "vtkXMLPDataWriter.h"
00041 
00042 class vtkXMLStructuredDataWriter;
00043 class vtkExtentTranslator;
00044 
00045 class VTK_IO_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
00046 {
00047 public:
00048   vtkTypeRevisionMacro(vtkXMLPStructuredDataWriter,vtkXMLPDataWriter);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050   
00052 
00053   virtual void SetExtentTranslator(vtkExtentTranslator*);
00054   vtkGetObjectMacro(ExtentTranslator, vtkExtentTranslator);
00056   
00057 protected:
00058   vtkXMLPStructuredDataWriter();
00059   ~vtkXMLPStructuredDataWriter();
00060   
00061   virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0;
00062   void WritePrimaryElementAttributes();
00063   void WritePPieceAttributes(int index);
00064   vtkXMLWriter* CreatePieceWriter(int index);
00065   
00066   vtkExtentTranslator* ExtentTranslator;
00067   
00068 private:
00069   vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00070   void operator=(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00071 };
00072 
00073 #endif