1 #ifndef __vtkmrcImageReader_h
2 #define __vtkmrcImageReader_h
5 #include "vtkTclUtil.h"
6 #include "vtkTransform.h"
7 #include "vtkStructuredPointsSource.h"
8 #include "vtkVolumeReader.h"
9 #include "vtkFloatArray.h"
10 #include "vtkObjectFactory.h"
14 class VTK_EXPORT vtkmrcImageReader : public vtkVolumeReader
17 vtkTypeMacro(vtkmrcImageReader,vtkVolumeReader);
18 void PrintSelf(ostream& os, vtkIndent indent);
20 static vtkmrcImageReader *New();
24 vtkSetStringMacro(Filename);
25 vtkGetStringMacro(Filename);
27 vtkSetMacro(DataType,mrcPixelDataType);
28 vtkGetMacro(DataType,mrcPixelDataType);
30 vtkSetMacro(DataHow,mrcPixelDataHowToGet);
31 vtkGetMacro(DataHow,mrcPixelDataHowToGet);
34 vtkImageData *GetImage(int ImageNum);
39 vtkmrcImageReader(const vtkmrcImageReader&) {};
40 void operator=(const vtkmrcImageReader&) {};
42 virtual void ExecuteData(vtkDataObject*);
43 virtual void ExecuteInformation();
47 mrcPixelDataType DataType;
48 mrcPixelDataHowToGet DataHow;
51 void ReadVolume(vtkFloatArray* scalars);
52 int ReadFloatImage(float* pixel, mrcImage* mrc);
57 ClientData vtkmrcImageReaderNewCommand();
60 vtkmrcImageReaderCommand(
61 ClientData cd, Tcl_Interp *interp,
62 int argc, char *argv[]);