00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLImageDataReader.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 =========================================================================*/ 00045 #ifndef __vtkXMLImageDataReader_h 00046 #define __vtkXMLImageDataReader_h 00047 00048 #include "vtkXMLStructuredDataReader.h" 00049 00050 class vtkImageData; 00051 00052 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader 00053 { 00054 public: 00055 vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 static vtkXMLImageDataReader *New(); 00058 00060 00061 void SetOutput(vtkImageData *output); 00062 vtkImageData *GetOutput(); 00063 vtkImageData *GetOutput(int idx); 00065 00066 protected: 00067 vtkXMLImageDataReader(); 00068 ~vtkXMLImageDataReader(); 00069 00070 double Origin[3]; 00071 double Spacing[3]; 00072 00073 const char* GetDataSetName(); 00074 void SetOutputExtent(int* extent); 00075 int ReadPrimaryElement(vtkXMLDataElement* ePrimary); 00076 void SetupOutputInformation(); 00077 00078 private: 00079 vtkXMLImageDataReader(const vtkXMLImageDataReader&); // Not implemented. 00080 void operator=(const vtkXMLImageDataReader&); // Not implemented. 00081 }; 00082 00083 #endif