IO/vtkSLCReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00048 #ifndef __vtkSLCReader_h
00049 #define __vtkSLCReader_h
00050
00051 #include "vtkImageReader2.h"
00052
00053 class VTK_IO_EXPORT vtkSLCReader : public vtkImageReader2
00054 {
00055 public:
00056 static vtkSLCReader *New();
00057 vtkTypeRevisionMacro(vtkSLCReader,vtkImageReader2);
00058 void PrintSelf(ostream& os, vtkIndent indent);
00059
00061
00062 vtkSetStringMacro(FileName);
00063 vtkGetStringMacro(FileName);
00065
00067
00068 vtkGetMacro(Error,int);
00070
00072
00073 int CanReadFile(const char* fname);
00074
00075
00076 virtual const char* GetFileExtensions()
00077 {
00078 return ".slc";
00079 }
00081
00083
00084 virtual const char* GetDescriptiveName()
00085 {
00086 return "SLC";
00087 }
00089
00090 protected:
00091 vtkSLCReader();
00092 ~vtkSLCReader();
00093
00094
00095 virtual void ExecuteData(vtkDataObject*);
00096
00097
00098
00099
00100
00101 void ExecuteInformation();
00102
00103
00104 unsigned char *Decode8BitData( unsigned char *in_ptr, int size );
00105 int Error;
00106 private:
00107 vtkSLCReader(const vtkSLCReader&);
00108 void operator=(const vtkSLCReader&);
00109 };
00110
00111 #endif
00112
00113