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

vtkVolumeReader.h

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