MaracasDll.h

Go to the documentation of this file.
00001 #ifndef __CMARACASCONTROLLER_H_
00002 #define __CMARACASCONTROLLER_H_
00003 
00004 // The following ifdef block is the standard way of creating macros which make exporting 
00005 // from a DLL simpler. All files within this DLL are compiled with the MaracasWin32Lib_EXPORTS
00006 // symbol defined on the command line. this symbol should not be defined on any project
00007 // that uses this DLL. This way any other project whose source files include this file see 
00008 // MARACASDLL_API functions as being imported from a DLL, wheras this DLL sees symbols
00009 // defined with this macro as being exported.
00010 #ifdef MaracasWin32Lib_EXPORTS
00011 #define MARACASDLL_API __declspec(dllexport)
00012 #else
00013 #define MARACASDLL_API __declspec(dllimport)
00014 #endif
00015 class wxMaracasApp;
00016 // This class is exported from the MaracasWin32Lib.dll
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 ) /*const*/ ;
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; //Snapshot
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 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1