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

vtkXMLPStructuredDataWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLPStructuredDataWriter.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 =========================================================================*/
00033 #ifndef __vtkXMLPStructuredDataWriter_h
00034 #define __vtkXMLPStructuredDataWriter_h
00035 
00036 #include "vtkXMLPDataWriter.h"
00037 
00038 class vtkXMLStructuredDataWriter;
00039 class vtkExtentTranslator;
00040 
00041 class VTK_IO_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkXMLPStructuredDataWriter,vtkXMLPDataWriter);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046   
00048 
00049   virtual void SetExtentTranslator(vtkExtentTranslator*);
00050   vtkGetObjectMacro(ExtentTranslator, vtkExtentTranslator);
00052   
00053 protected:
00054   vtkXMLPStructuredDataWriter();
00055   ~vtkXMLPStructuredDataWriter();
00056   
00057   virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0;
00058   void WritePrimaryElementAttributes();
00059   void WritePPieceAttributes(int index);
00060   vtkXMLWriter* CreatePieceWriter(int index);
00061   
00062   vtkExtentTranslator* ExtentTranslator;
00063   
00064 private:
00065   vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00066   void operator=(const vtkXMLPStructuredDataWriter&);  // Not implemented.
00067 };
00068 
00069 #endif