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

dox/IO/vtkXMLPImageDataReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLPImageDataReader.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkXMLPImageDataReader_h 00033 #define __vtkXMLPImageDataReader_h 00034 00035 #include "vtkXMLPStructuredDataReader.h" 00036 00037 class vtkImageData; 00038 00039 class VTK_IO_EXPORT vtkXMLPImageDataReader : public vtkXMLPStructuredDataReader 00040 { 00041 public: 00042 vtkTypeRevisionMacro(vtkXMLPImageDataReader,vtkXMLPStructuredDataReader); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 static vtkXMLPImageDataReader *New(); 00045 00047 00048 void SetOutput(vtkImageData *output); 00049 vtkImageData *GetOutput(); 00051 00052 protected: 00053 vtkXMLPImageDataReader(); 00054 ~vtkXMLPImageDataReader(); 00055 00056 float Origin[3]; 00057 float Spacing[3]; 00058 00059 vtkImageData* GetPieceInput(int index); 00060 00061 const char* GetDataSetName(); 00062 void SetOutputExtent(int* extent); 00063 void GetPieceInputExtent(int index, int* extent); 00064 int ReadPrimaryElement(vtkXMLDataElement* ePrimary); 00065 void SetupOutputInformation(); 00066 vtkXMLDataReader* CreatePieceReader(); 00067 00068 private: 00069 vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented. 00070 void operator=(const vtkXMLPImageDataReader&); // Not implemented. 00071 }; 00072 00073 #endif