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

vtkXMLUnstructuredGridWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLUnstructuredGridWriter.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 =========================================================================*/
00032 #ifndef __vtkXMLUnstructuredGridWriter_h
00033 #define __vtkXMLUnstructuredGridWriter_h
00034 
00035 #include "vtkXMLUnstructuredDataWriter.h"
00036 
00037 
00038 class vtkUnstructuredGrid;
00039 
00040 class VTK_IO_EXPORT vtkXMLUnstructuredGridWriter : public vtkXMLUnstructuredDataWriter
00041 {
00042 public:
00043   vtkTypeRevisionMacro(vtkXMLUnstructuredGridWriter,vtkXMLUnstructuredDataWriter);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045   static vtkXMLUnstructuredGridWriter* New();
00046 
00047   //BTX
00049 
00050   vtkUnstructuredGrid* GetInput();  
00051   //ETX
00053   
00055   const char* GetDefaultFileExtension();
00056   
00057 protected:
00058   vtkXMLUnstructuredGridWriter();
00059   ~vtkXMLUnstructuredGridWriter();  
00060   
00061   // see algorithm for more info
00062   virtual int FillInputPortInformation(int port, vtkInformation* info);
00063 
00064   virtual void AllocatePositionArrays();
00065   virtual void DeletePositionArrays();
00066 
00067   const char* GetDataSetName();
00068 
00069   void WriteInlinePieceAttributes();
00070   void WriteInlinePiece(vtkIndent indent);
00071   
00072   void WriteAppendedPieceAttributes(int index);
00073   void WriteAppendedPiece(int index, vtkIndent indent);
00074   void WriteAppendedPieceData(int index);  
00075   
00076   virtual vtkIdType GetNumberOfInputCells();
00077   void CalculateSuperclassFraction(float* fractions);
00078   
00079   // Positions of attributes for each piece.
00080   unsigned long* NumberOfCellsPositions;
00081   OffsetsManagerArray *CellsOM; //one per piece
00082   
00083 private:
00084   vtkXMLUnstructuredGridWriter(const vtkXMLUnstructuredGridWriter&);  // Not implemented.
00085   void operator=(const vtkXMLUnstructuredGridWriter&);  // Not implemented.
00086 };
00087 
00088 #endif

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