areaDetector 1-9
|
Perform transformations (rotations, flips) on NDArrays. More...
#include <NDPluginTransform.h>
Perform transformations (rotations, flips) on NDArrays.
NDPluginTransform::NDPluginTransform | ( | const char * | portName, |
int | queueSize, | ||
int | blockingCallbacks, | ||
const char * | NDArrayPort, | ||
int | NDArrayAddr, | ||
int | maxBuffers, | ||
size_t | maxMemory, | ||
int | priority, | ||
int | stackSize | ||
) |
Constructor for NDPluginTransform; most parameters are simply passed to NDPluginDriver::NDPluginDriver.
After calling the base class constructor this method sets reasonable default values for all of the Transform 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] | 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. |
void NDPluginTransform::processCallbacks | ( | NDArray * | pArray | ) | [virtual] |
Callback function that is called by the NDArray driver with new NDArray data.
Grabs the current NDArray and applies the selected transforms to the data. Apply the transforms in order.
[in] | pArray | The NDArray from the callback. |
Need to treat RGB modes diferently
Reimplemented from NDPluginDriver.
asynStatus NDPluginTransform::writeInt32 | ( | asynUser * | pasynUser, |
epicsInt32 | value | ||
) | [virtual] |
Called when asyn clients call pasynInt32->write().
This function performs actions for some parameters, including transform type and origin. For other parameters it calls NDPluginDriver::writeInt32 to see if that method understands the parameter. For all parameters it sets the value in the parameter library and calls any registered callbacks..
[in] | pasynUser | pasynUser structure that encodes the reason and address. |
[in] | value | Value to write. |
Reimplemented from NDPluginDriver.
int NDPluginTransform::NDPluginTransform1Dim0MaxSize [protected] |
int NDPluginTransform::NDPluginTransform1Dim1MaxSize [protected] |
int NDPluginTransform::NDPluginTransform1Dim2MaxSize [protected] |
int NDPluginTransform::NDPluginTransform1Type [protected] |
int NDPluginTransform::NDPluginTransform2Dim0MaxSize [protected] |
int NDPluginTransform::NDPluginTransform2Dim1MaxSize [protected] |
int NDPluginTransform::NDPluginTransform2Dim2MaxSize [protected] |
int NDPluginTransform::NDPluginTransform2Type [protected] |
int NDPluginTransform::NDPluginTransform3Dim0MaxSize [protected] |
int NDPluginTransform::NDPluginTransform3Dim1MaxSize [protected] |
int NDPluginTransform::NDPluginTransform3Dim2MaxSize [protected] |
int NDPluginTransform::NDPluginTransform3Type [protected] |
int NDPluginTransform::NDPluginTransform4Dim0MaxSize [protected] |
int NDPluginTransform::NDPluginTransform4Dim1MaxSize [protected] |
int NDPluginTransform::NDPluginTransform4Dim2MaxSize [protected] |
int NDPluginTransform::NDPluginTransform4Type [protected] |
int NDPluginTransform::NDPluginTransformArraySize0 [protected] |
int NDPluginTransform::NDPluginTransformArraySize1 [protected] |
int NDPluginTransform::NDPluginTransformArraySize2 [protected] |
int NDPluginTransform::NDPluginTransformName [protected] |
int NDPluginTransform::NDPluginTransformOrigin [protected] |