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

dox/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 =========================================================================*/ 00032 #ifndef __vtkXMLStructuredGridWriter_h 00033 #define __vtkXMLStructuredGridWriter_h 00034 00035 #include "vtkXMLStructuredDataWriter.h" 00036 00037 class vtkStructuredGrid; 00038 00039 class VTK_IO_EXPORT vtkXMLStructuredGridWriter : public vtkXMLStructuredDataWriter 00040 { 00041 public: 00042 static vtkXMLStructuredGridWriter* New(); 00043 vtkTypeRevisionMacro(vtkXMLStructuredGridWriter,vtkXMLStructuredDataWriter); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 00048 void SetInput(vtkStructuredGrid* input); 00049 vtkStructuredGrid* GetInput(); 00051 00053 const char* GetDefaultFileExtension(); 00054 00055 protected: 00056 vtkXMLStructuredGridWriter(); 00057 ~vtkXMLStructuredGridWriter(); 00058 00059 void WriteAppendedMode(vtkIndent indent); 00060 void WriteAppendedPiece(int index, vtkIndent indent); 00061 void WriteAppendedPieceData(int index); 00062 void WriteInlinePiece(int index, vtkIndent indent); 00063 void GetInputExtent(int* extent); 00064 const char* GetDataSetName(); 00065 00066 // The position of the appended data offset attribute for the points 00067 // array. 00068 unsigned long* PointsPosition; 00069 00070 private: 00071 vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&); // Not implemented. 00072 void operator=(const vtkXMLStructuredGridWriter&); // Not implemented. 00073 }; 00074 00075 #endif