VTK
dox/IO/XML/vtkXMLImageDataReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLImageDataReader.h
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 =========================================================================*/
00034 #ifndef __vtkXMLImageDataReader_h
00035 #define __vtkXMLImageDataReader_h
00036 
00037 #include "vtkIOXMLModule.h" // For export macro
00038 #include "vtkXMLStructuredDataReader.h"
00039 
00040 class vtkImageData;
00041 
00042 class VTKIOXML_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
00043 {
00044 public:
00045   vtkTypeMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047   static vtkXMLImageDataReader *New();
00048 
00050 
00051   vtkImageData *GetOutput();
00052   vtkImageData *GetOutput(int idx);
00054 
00057   virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
00058 
00059 protected:
00060   vtkXMLImageDataReader();
00061   ~vtkXMLImageDataReader();
00062 
00063   double Origin[3];
00064   double Spacing[3];
00065   int PieceExtent[6];
00066 
00067   const char* GetDataSetName();
00068   void SetOutputExtent(int* extent);
00069   virtual void SetupUpdateExtentInformation(vtkInformation *outInfo);
00070 
00071   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00072 
00073   // Setup the output's information.
00074   void SetupOutputInformation(vtkInformation *outInfo);
00075 
00076   virtual int FillOutputPortInformation(int, vtkInformation*);
00077 
00078 
00079 
00080 private:
00081   vtkXMLImageDataReader(const vtkXMLImageDataReader&);  // Not implemented.
00082   void operator=(const vtkXMLImageDataReader&);  // Not implemented.
00083 };
00084 
00085 #endif