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

vtkXMLRectilinearGridReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLRectilinearGridReader.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 __vtkXMLRectilinearGridReader_h
00032 #define __vtkXMLRectilinearGridReader_h
00033 
00034 #include "vtkXMLStructuredDataReader.h"
00035 
00036 class vtkRectilinearGrid;
00037 
00038 class VTK_IO_EXPORT vtkXMLRectilinearGridReader : public vtkXMLStructuredDataReader
00039 {
00040 public:
00041   vtkTypeRevisionMacro(vtkXMLRectilinearGridReader,vtkXMLStructuredDataReader);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043   static vtkXMLRectilinearGridReader *New();
00044   
00046 
00047   void SetOutput(vtkRectilinearGrid *output);
00048   vtkRectilinearGrid *GetOutput();
00049   vtkRectilinearGrid *GetOutput(int idx);
00051   
00052 protected:
00053   vtkXMLRectilinearGridReader();
00054   ~vtkXMLRectilinearGridReader();  
00055   
00056   const char* GetDataSetName();
00057   void SetOutputExtent(int* extent);
00058   
00059   void SetupPieces(int numPieces);
00060   void DestroyPieces();
00061   void SetupOutputData();
00062   int ReadPiece(vtkXMLDataElement* ePiece);
00063   int ReadPieceData();
00064   int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds,
00065                          vtkXMLDataElement* da, vtkDataArray* array);
00066   virtual int FillOutputPortInformation(int, vtkInformation*);
00067   
00068   // The elements representing the coordinate arrays for each piece.
00069   vtkXMLDataElement** CoordinateElements;
00070   
00071 private:
00072   vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&);  // Not implemented.
00073   void operator=(const vtkXMLRectilinearGridReader&);  // Not implemented.
00074 };
00075 
00076 #endif

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