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

IO/vtkXMLStructuredGridWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLStructuredGridWriter.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 =========================================================================*/
00042 #ifndef __vtkXMLStructuredGridWriter_h
00043 #define __vtkXMLStructuredGridWriter_h
00044 
00045 #include "vtkXMLStructuredDataWriter.h"
00046 
00047 class vtkStructuredGrid;
00048 
00049 class VTK_IO_EXPORT vtkXMLStructuredGridWriter : public vtkXMLStructuredDataWriter
00050 {
00051 public:
00052   static vtkXMLStructuredGridWriter* New();
00053   vtkTypeRevisionMacro(vtkXMLStructuredGridWriter,vtkXMLStructuredDataWriter);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   
00057 
00058   void SetInput(vtkStructuredGrid* input);
00059   vtkStructuredGrid* GetInput();
00061   
00063   const char* GetDefaultFileExtension();
00064   
00065 protected:
00066   vtkXMLStructuredGridWriter();
00067   ~vtkXMLStructuredGridWriter();  
00068   
00069   void WriteAppendedMode(vtkIndent indent);
00070   void WriteAppendedPiece(int index, vtkIndent indent);
00071   void WriteAppendedPieceData(int index);
00072   void WriteInlinePiece(int index, vtkIndent indent);
00073   void GetInputExtent(int* extent);
00074   const char* GetDataSetName();
00075   
00076   // The position of the appended data offset attribute for the points
00077   // array.
00078   unsigned long* PointsPosition;
00079   
00080 private:
00081   vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&);  // Not implemented.
00082   void operator=(const vtkXMLStructuredGridWriter&);  // Not implemented.
00083 };
00084 
00085 #endif