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

vtkXMLImageDataReader.h

Go to the documentation of this file.
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 =========================================================================*/
00034 #ifndef __vtkXMLImageDataReader_h
00035 #define __vtkXMLImageDataReader_h
00036 
00037 #include "vtkXMLStructuredDataReader.h"
00038 
00039 class vtkImageData;
00040 
00041 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046   static vtkXMLImageDataReader *New();
00047   
00049 
00050   void SetOutput(vtkImageData *output);
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   
00066   const char* GetDataSetName();
00067   void SetOutputExtent(int* extent);
00068   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00069 
00070   // Setup the output's information.
00071   void SetupOutputInformation(vtkInformation *outInfo);
00072 
00073   virtual int FillOutputPortInformation(int, vtkInformation*);
00074   
00075 private:
00076   vtkXMLImageDataReader(const vtkXMLImageDataReader&);  // Not implemented.
00077   void operator=(const vtkXMLImageDataReader&);  // Not implemented.
00078 };
00079 
00080 #endif

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