#include <EDDImageDataSource.h>
Public Types | |
enum | teAxis { eeX, eeY, eeZ } |
Public Member Functions | |
tcEDDImageDataSource (char *apDesc) | |
virtual | ~tcEDDImageDataSource (void) |
virtual int | HandleMsg (tsEDDMsgHdr *apMsg) |
int | SetLabel (teAxis aeAxis, char *apLabel) |
int | SetDescription (char *apDesc) |
int | SendImageData (uint16_t *apData, uint16_t anRows, uint16_t anCols, uint8_t anType=EDDIMGMSG_MONO_16BIT) |
Send an Image. | |
int | SendImageData (uint8_t *apData, uint16_t anRows, uint16_t anCols, uint8_t anType=EDDIMGMSG_MONO_8BIT) |
int | SendSparseImageData (uint16_t anDefault, uint16_t anRows, uint16_t anCols, uint32_t *apImageOffset, uint16_t *apValue, uint16_t anNumPts, uint8_t anType=EDDIMGMSG_MONO_16BIT) |
send an image consisting of sparse data | |
int | SendSparseImageData (uint8_t anDefault, uint16_t anRows, uint16_t anCols, uint32_t *apImageOffset, uint8_t *apValue, uint16_t anNumPts, uint8_t anType=EDDIMGMSG_MONO_8BIT) |
Static Public Attributes | |
static const int | gnMaxStringLen = 64 |
maximum length of labels | |
Protected Member Functions | |
void | BuildOutputBuffer (void) |
void | SendImageDescriptor (uint16_t anRows, uint16_t anCols, uint8_t anType, uint8_t anFlags) |
int | Send3DData (void *apData, uint16_t anRows, uint16_t anCols, int WordSizeBytes, uint8_t anDataType) |
int | SendSparseData (void *apDefault, uint16_t anRows, uint16_t anCols, uint32_t *apImageOffset, void *apValue, uint16_t anNumPts, int WordSizeBytes, uint8_t anType) |
Protected Attributes | |
int | mnImageType |
type of image data to transmit | |
char | maDescription [gnMaxStringLen] |
image description (name) | |
char | maXLabel [gnMaxStringLen] |
image x-axis label | |
char | maYLabel [gnMaxStringLen] |
image y-axis label | |
char | maZLabel [gnMaxStringLen] |
image z-axis (scale) label | |
uint16_t | mnImageNo |
rolling image number | |
char * | mpOutputBuffer |
working buffer for sending image messages | |
int | mnOutputBufferLen |
size of the working buffer |
The tcEDDImageDataSource class implements a 3 dimensional (e.g., image) image data transport using the EDD protocol.
Definition at line 17 of file EDDImageDataSource.h.
This enumeration is used for arguements requiring axis qualification
Definition at line 21 of file EDDImageDataSource.h.
tcEDDImageDataSource::tcEDDImageDataSource | ( | char * | apDesc | ) |
Definition at line 31 of file EDDImageDataSource.cpp.
tcEDDImageDataSource::~tcEDDImageDataSource | ( | void | ) | [virtual] |
Definition at line 47 of file EDDImageDataSource.cpp.
void tcEDDImageDataSource::BuildOutputBuffer | ( | void | ) | [protected] |
Definition at line 80 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::HandleMsg | ( | tsEDDMsgHdr * | apMsg | ) | [virtual] |
Handle a directed message from an EDD client, typically a data information/description request.
Implements tcEDDDataSource.
Definition at line 57 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::Send3DData | ( | void * | apData, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
int | WordSizeBytes, | |||
uint8_t | anDataType | |||
) | [protected] |
Definition at line 199 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SendImageData | ( | uint8_t * | apData, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
uint8_t | anType = EDDIMGMSG_MONO_8BIT | |||
) |
Definition at line 187 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SendImageData | ( | uint16_t * | apData, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
uint8_t | anType = EDDIMGMSG_MONO_16BIT | |||
) |
Send an Image.
This method will send an image to any connected EDD client for display.
apData | pointer to the data to send | |
anRows | number of rows in the image | |
anCols | number of columns in the image | |
anType | specifies the data type to be sent (see tcEDDImageDataMsg) |
Definition at line 193 of file EDDImageDataSource.cpp.
void tcEDDImageDataSource::SendImageDescriptor | ( | uint16_t | anRows, | |
uint16_t | anCols, | |||
uint8_t | anType, | |||
uint8_t | anFlags | |||
) | [protected] |
Definition at line 96 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SendSparseData | ( | void * | apDefault, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
uint32_t * | apImageOffset, | |||
void * | apValue, | |||
uint16_t | anNumPts, | |||
int | WordSizeBytes, | |||
uint8_t | anType | |||
) | [protected] |
Definition at line 131 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SendSparseImageData | ( | uint8_t | anDefault, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
uint32_t * | apImageOffset, | |||
uint8_t * | apValue, | |||
uint16_t | anNumPts, | |||
uint8_t | anType = EDDIMGMSG_MONO_8BIT | |||
) |
Definition at line 123 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SendSparseImageData | ( | uint16_t | anDefault, | |
uint16_t | anRows, | |||
uint16_t | anCols, | |||
uint32_t * | apImageOffset, | |||
uint16_t * | apValue, | |||
uint16_t | anNumPts, | |||
uint8_t | anType = EDDIMGMSG_MONO_16BIT | |||
) |
send an image consisting of sparse data
This method will send an image to any connected EDD client for display. The data will be transmitted using sparse data packing rules.
anDefault | default value for non-specified pixel locations | |
anRows | number of rows in the image | |
anCols | number of cols in the image | |
apImageOffset | pointer to array of image offset locations | |
apValue | pointer to array of sparse data values | |
anNumPts | number of sparsely defined data points | |
anType | specifies the data type to be sent (see tcEDDImageDataMsg) |
Definition at line 115 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SetDescription | ( | char * | apDesc | ) |
Definition at line 267 of file EDDImageDataSource.cpp.
int tcEDDImageDataSource::SetLabel | ( | teAxis | aeAxis, | |
char * | apLabel | |||
) |
Definition at line 246 of file EDDImageDataSource.cpp.
const int tcEDDImageDataSource::gnMaxStringLen = 64 [static] |
char tcEDDImageDataSource::maDescription[gnMaxStringLen] [protected] |
char tcEDDImageDataSource::maXLabel[gnMaxStringLen] [protected] |
char tcEDDImageDataSource::maYLabel[gnMaxStringLen] [protected] |
char tcEDDImageDataSource::maZLabel[gnMaxStringLen] [protected] |
uint16_t tcEDDImageDataSource::mnImageNo [protected] |
int tcEDDImageDataSource::mnImageType [protected] |
int tcEDDImageDataSource::mnOutputBufferLen [protected] |
char* tcEDDImageDataSource::mpOutputBuffer [protected] |