areaDetector 1-9
|
Overlay graphics on top of an image. More...
#include <NDPluginOverlay.h>
Public Member Functions | |
NDPluginOverlay (const char *portName, int queueSize, int blockingCallbacks, const char *NDArrayPort, int NDArrayAddr, int maxOverlays, int maxBuffers, size_t maxMemory, int priority, int stackSize) | |
Constructor for NDPluginOverlay; most parameters are simply passed to NDPluginDriver::NDPluginDriver. | |
void | processCallbacks (NDArray *pArray) |
Callback function that is called by the NDArray driver with new NDArray data. | |
template<typename epicsType > | |
void | doOverlayT (NDArray *pArray, NDOverlay_t *pOverlay) |
int | doOverlay (NDArray *pArray, NDOverlay_t *pOverlay) |
template<typename epicsType > | |
void | setPixel (epicsType *pValue, NDOverlay_t *pOverlay) |
Protected Attributes | |
int | NDPluginOverlayMaxSizeX |
int | NDPluginOverlayMaxSizeY |
int | NDPluginOverlayName |
int | NDPluginOverlayUse |
int | NDPluginOverlayPositionX |
int | NDPluginOverlayPositionY |
int | NDPluginOverlaySizeX |
int | NDPluginOverlaySizeY |
int | NDPluginOverlayShape |
int | NDPluginOverlayDrawMode |
int | NDPluginOverlayRed |
int | NDPluginOverlayGreen |
int | NDPluginOverlayBlue |
Overlay graphics on top of an image.
Useful for highlighting ROIs and displaying cursors
NDPluginOverlay::NDPluginOverlay | ( | const char * | portName, |
int | queueSize, | ||
int | blockingCallbacks, | ||
const char * | NDArrayPort, | ||
int | NDArrayAddr, | ||
int | maxOverlays, | ||
int | maxBuffers, | ||
size_t | maxMemory, | ||
int | priority, | ||
int | stackSize | ||
) |
Constructor for NDPluginOverlay; most parameters are simply passed to NDPluginDriver::NDPluginDriver.
After calling the base class constructor this method sets reasonable default values for all of the ROI parameters.
[in] | portName | The name of the asyn port driver to be created. |
[in] | queueSize | The number of NDArrays that the input queue for this plugin can hold when NDPluginDriverBlockingCallbacks=0. Larger queues can decrease the number of dropped arrays, at the expense of more NDArray buffers being allocated from the underlying driver's NDArrayPool. |
[in] | blockingCallbacks | Initial setting for the NDPluginDriverBlockingCallbacks flag. 0=callbacks are queued and executed by the callback thread; 1 callbacks execute in the thread of the driver doing the callbacks. |
[in] | NDArrayPort | Name of asyn port driver for initial source of NDArray callbacks. |
[in] | NDArrayAddr | asyn port driver address for initial source of NDArray callbacks. |
[in] | maxOverlays | The maximum number ofoverlays this plugin supports. 1 is minimum. |
[in] | maxBuffers | The maximum number of NDArray buffers that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited number of buffers. |
[in] | maxMemory | The maximum amount of memory that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited amount of memory. |
[in] | priority | The thread priority for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
[in] | stackSize | The stack size for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
int NDPluginOverlay::doOverlay | ( | NDArray * | pArray, |
NDOverlay_t * | pOverlay | ||
) |
void NDPluginOverlay::doOverlayT | ( | NDArray * | pArray, |
NDOverlay_t * | pOverlay | ||
) |
void NDPluginOverlay::processCallbacks | ( | NDArray * | pArray | ) | [virtual] |
Callback function that is called by the NDArray driver with new NDArray data.
Draws overlays on top of the array.
[in] | pArray | The NDArray from the callback. |
Reimplemented from NDPluginDriver.
void NDPluginOverlay::setPixel | ( | epicsType * | pValue, |
NDOverlay_t * | pOverlay | ||
) |
int NDPluginOverlay::NDPluginOverlayBlue [protected] |
int NDPluginOverlay::NDPluginOverlayDrawMode [protected] |
int NDPluginOverlay::NDPluginOverlayGreen [protected] |
int NDPluginOverlay::NDPluginOverlayMaxSizeX [protected] |
int NDPluginOverlay::NDPluginOverlayMaxSizeY [protected] |
int NDPluginOverlay::NDPluginOverlayName [protected] |
int NDPluginOverlay::NDPluginOverlayPositionX [protected] |
int NDPluginOverlay::NDPluginOverlayPositionY [protected] |
int NDPluginOverlay::NDPluginOverlayRed [protected] |
int NDPluginOverlay::NDPluginOverlayShape [protected] |
int NDPluginOverlay::NDPluginOverlaySizeX [protected] |
int NDPluginOverlay::NDPluginOverlaySizeY [protected] |
int NDPluginOverlay::NDPluginOverlayUse [protected] |