areaDetector 1-8
|
00001 #ifndef NDPluginColorConvert_H 00002 #define NDPluginColorConvert_H 00003 00004 #include <epicsTypes.h> 00005 00006 #include "NDPluginDriver.h" 00007 00008 #define NDPluginColorConvertColorModeOutString "COLOR_MODE_OUT" /* (NDColorMode_t r/w) Output color mode */ 00009 #define NDPluginColorConvertFalseColorString "FALSE_COLOR" /* (NDColorMode_t r/w) Output color mode */ 00010 00026 class NDPluginColorConvert : public NDPluginDriver { 00027 public: 00028 NDPluginColorConvert(const char *portName, int queueSize, int blockingCallbacks, 00029 const char *NDArrayPort, int NDArrayAddr, 00030 int maxBuffers, size_t maxMemory, 00031 int priority, int stackSize); 00032 00033 /* These methods override the virtual methods in the base class */ 00034 void processCallbacks(NDArray *pArray); 00035 protected: 00036 int NDPluginColorConvertColorModeOut; 00037 #define FIRST_NDPLUGIN_COLOR_CONVERT_PARAM NDPluginColorConvertColorModeOut 00038 int NDPluginColorConvertFalseColor; 00039 #define LAST_NDPLUGIN_COLOR_CONVERT_PARAM NDPluginColorConvertFalseColor 00040 private: 00041 /* These methods are just for this class */ 00042 template <typename epicsType> void convertColor(NDArray *pArray); 00043 }; 00044 #define NUM_NDPLUGIN_COLOR_CONVERT_PARAMS (&LAST_NDPLUGIN_COLOR_CONVERT_PARAM - &FIRST_NDPLUGIN_COLOR_CONVERT_PARAM + 1) 00045 00046 #endif