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

vtkXMLStructuredGridWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLStructuredGridWriter.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 =========================================================================*/
00031 #ifndef __vtkXMLStructuredGridWriter_h
00032 #define __vtkXMLStructuredGridWriter_h
00033 
00034 #include "vtkXMLStructuredDataWriter.h"
00035 
00036 class vtkStructuredGrid;
00037 
00038 class VTK_IO_EXPORT vtkXMLStructuredGridWriter : public vtkXMLStructuredDataWriter
00039 {
00040 public:
00041   static vtkXMLStructuredGridWriter* New();
00042   vtkTypeRevisionMacro(vtkXMLStructuredGridWriter,vtkXMLStructuredDataWriter);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044   
00045   //BTX
00047 
00048   vtkStructuredGrid* GetInput();
00049   //ETX
00051   
00053   const char* GetDefaultFileExtension();
00054   
00055 protected:
00056   vtkXMLStructuredGridWriter();
00057   ~vtkXMLStructuredGridWriter();  
00058   
00059   // see algorithm for more info
00060   virtual int FillInputPortInformation(int port, vtkInformation* info);
00061 
00062   void WriteAppendedPiece(int index, vtkIndent indent);
00063   void WriteAppendedPieceData(int index);
00064   void WriteInlinePiece(vtkIndent indent);
00065   void GetInputExtent(int* extent);
00066   const char* GetDataSetName();
00067   void CalculateSuperclassFraction(float* fractions);
00068   
00069   // The position of the appended data offset attribute for the points
00070   // array.
00071   OffsetsManagerGroup *PointsOM;  //one per piece
00072 
00073   virtual void AllocatePositionArrays();
00074   virtual void DeletePositionArrays();
00075   
00076 private:
00077   vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&);  // Not implemented.
00078   void operator=(const vtkXMLStructuredGridWriter&);  // Not implemented.
00079 };
00080 
00081 #endif

Generated on Mon Jan 21 23:07:32 2008 for VTK by  doxygen 1.4.3-20050530