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

IO/vtkVolumeReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVolumeReader.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 =========================================================================*/
00060 #ifndef __vtkVolumeReader_h
00061 #define __vtkVolumeReader_h
00062 
00063 #include "vtkImageSource.h"
00064 
00065 class VTK_IO_EXPORT vtkVolumeReader : public vtkImageSource
00066 {
00067 public:
00068   vtkTypeRevisionMacro(vtkVolumeReader,vtkImageSource);
00069   void PrintSelf(ostream& os, vtkIndent indent);
00070 
00072 
00073   vtkSetStringMacro(FilePrefix);
00074   vtkGetStringMacro(FilePrefix);
00076 
00078 
00079   vtkSetStringMacro(FilePattern);
00080   vtkGetStringMacro(FilePattern);
00082 
00084 
00085   vtkSetVector2Macro(ImageRange,int);
00086   vtkGetVectorMacro(ImageRange,int,2);
00088 
00090 
00091   vtkSetVector3Macro(DataSpacing,float);
00092   vtkGetVectorMacro(DataSpacing,float,3);
00094 
00096 
00097   vtkSetVector3Macro(DataOrigin,float);
00098   vtkGetVectorMacro(DataOrigin,float,3);
00100 
00102   virtual vtkImageData *GetImage(int ImageNumber) = 0;
00103 
00104 protected:
00105   vtkVolumeReader();
00106   ~vtkVolumeReader();
00107 
00108   char *FilePrefix;
00109   char *FilePattern;
00110   int ImageRange[2];
00111   float DataSpacing[3];
00112   float DataOrigin[3];
00113 private:
00114   vtkVolumeReader(const vtkVolumeReader&);  // Not implemented.
00115   void operator=(const vtkVolumeReader&);  // Not implemented.
00116 };
00117 
00118 #endif
00119 
00120