MaracasDll.h
Go to the documentation of this file.00001 #ifndef __CMARACASCONTROLLER_H_
00002 #define __CMARACASCONTROLLER_H_
00003
00004
00005
00006
00007
00008
00009
00010 #ifdef MaracasWin32Lib_EXPORTS
00011 #define MARACASDLL_API __declspec(dllexport)
00012 #else
00013 #define MARACASDLL_API __declspec(dllimport)
00014 #endif
00015 class wxMaracasApp;
00016
00017 class MARACASDLL_API CMaracasController {
00018 public:
00019 CMaracasController(void);
00020
00021 ~CMaracasController();
00022
00023 int RunMaracas(void);
00024
00025 int ShowApp(int nCmdShow);
00026
00027 int Reset();
00028
00029 void GetSnapshot( unsigned int& rWidth,
00030 unsigned int& rHeight,
00031 unsigned char*& rpPixels ) ;
00032
00035 int ReleaseSnapshot();
00036
00039 int OutputVolumeRetrieved();
00040
00041 void SetVolumeParams(int nX, int nY, int nSlices);
00042
00043 void SetSliceParams(float pixelSpacingColumn,
00044 float pixelSpacingRow,
00045 float pixelSpacingSlice,
00046 float RescaleSlope,
00047 float RescaleIntercept);
00048
00049 void SetSlicePixels(int numSlice,unsigned short * pixels);
00050
00051 private :
00052 wxMaracasApp *m_pMarApp;
00053 unsigned char *_rpPixels;
00054
00055 unsigned short *m_pSlicesPixels;
00056 int m_nX;
00057 int m_nY;
00058 int m_nSlices;
00059 float m_PixelSpacingColumn;
00060 float m_PixelSpacingRow;
00061 float m_PixelSpacingSlice;
00062 float m_RescaleSlope;
00063 float m_RescaleIntercept;
00064 };
00065
00066
00067 #endif // __CMARACASCONTROLLER_H_
00068