#include <EDDPlotDataSource.h>
Public Types | |
enum | teAxis { eeX = 0, eeY = 1, eeZ = 2 } |
Public Member Functions | |
tcEDDPlotDataSource (char *apDesc, bool abIsContinuous=false, int anMaxContPoints=1024) | |
virtual | ~tcEDDPlotDataSource (void) |
virtual int | HandleMsg (tsEDDMsgHdr *apMsg) |
int | SetLabel (teAxis, char *apLabel) |
int | SetDescription (char *apDesc) |
int | SetOffset (teAxis aeAxis, float anOffset) |
int | SetScale (teAxis aeAxis, float anScale) |
int | SendPlotData (float *X, float *Y, int N) |
int | SendPlotData (int32_t *X, int32_t *Y, int N) |
int | SendPlotData (int16_t *X, int16_t *Y, int N) |
int | SendPlotData (int8_t *X, int8_t *Y, int N) |
int | SendPlotData (uint32_t *X, uint32_t *Y, int N) |
int | SendPlotData (uint16_t *X, uint16_t *Y, int N) |
int | SendPlotData (uint8_t *X, uint8_t *Y, int N) |
int | SendPlotData (float *Y, int N) |
int | SendPlotData (uint32_t *Y, int N) |
int | SendPlotData (uint16_t *Y, int N) |
int | SendPlotData (uint8_t *Y, int N) |
int | SendPlotData (int32_t *Y, int N) |
int | SendPlotData (int16_t *Y, int N) |
int | SendPlotData (int8_t *Y, int N) |
Static Public Attributes | |
static const int | gnMaxStringLen = 64 |
Protected Member Functions | |
int | Send2DData (void *Xdata, void *Ydata, int N, int WordSizeBytes, uint8_t anDataType) |
int | Send1DData (void *Ydata, int N, int WordSizeBytes, uint8_t anDataType) |
void | SendPlotDescriptor (int32_t anNumPoints, uint8_t anType) |
void | BuildOutputBuffer (void) |
Protected Attributes | |
int | mnPlotType |
defines the type of plot that will be generated | |
char | maDescription [gnMaxStringLen] |
plot description (plot name) | |
char | maXLabel [gnMaxStringLen] |
x-label for plot | |
char | maYLabel [gnMaxStringLen] |
y-label for plot | |
char | maZLabel [gnMaxStringLen] |
z-label for plot | |
float | maScale [3] |
scale factor for plot data (x,y,z indices) | |
float | maOffset [3] |
offsets for plot data (x,y,z indices) | |
uint16_t | mnPlotNo |
rolling plot number for plot output cycles | |
char * | mpOutputBuffer |
working buffer for plot messages | |
int | mnOutputBufferLen |
size of the working buffer | |
int | mnMaxContPoints |
maximum number of continuous points for rolling plots | |
bool | mbIsContinuous |
when true, plots are continuous outputs |
Implementation class for sending 2 dimensional plot data to an Embedded Data Display Client.
Definition at line 18 of file EDDPlotDataSource.h.
This enumeration is used for arguements requiring axis qualification
Definition at line 22 of file EDDPlotDataSource.h.
tcEDDPlotDataSource::tcEDDPlotDataSource | ( | char * | apDesc, | |
bool | abIsContinuous = false , |
|||
int | anMaxContPoints = 1024 | |||
) |
Constructor
apDesc | default description for plot source. | |
abIsContinuous | when true data intended to form a rolling plot (default false) | |
anMaxContPoints | may be used to provide a hint to the client as to max numnber of points to save / display (default 0 - client choice) |
Definition at line 45 of file EDDPlotDataSource.cpp.
tcEDDPlotDataSource::~tcEDDPlotDataSource | ( | void | ) | [virtual] |
Desctructor
Definition at line 72 of file EDDPlotDataSource.cpp.
void tcEDDPlotDataSource::BuildOutputBuffer | ( | void | ) | [protected] |
Definition at line 432 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::HandleMsg | ( | tsEDDMsgHdr * | apMsg | ) | [virtual] |
Implementation of message handler for all Data Source objects.
apMsg | valid input message to process |
Implements tcEDDDataSource.
Definition at line 89 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::Send1DData | ( | void * | Ydata, | |
int | N, | |||
int | WordSizeBytes, | |||
uint8_t | anDataType | |||
) | [protected] |
Definition at line 318 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::Send2DData | ( | void * | Xdata, | |
void * | Ydata, | |||
int | N, | |||
int | WordSizeBytes, | |||
uint8_t | anDataType | |||
) | [protected] |
Definition at line 262 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int8_t * | Y, | |
int | N | |||
) |
Definition at line 251 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int16_t * | Y, | |
int | N | |||
) |
Definition at line 240 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int32_t * | Y, | |
int | N | |||
) |
Definition at line 229 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint8_t * | Y, | |
int | N | |||
) |
Definition at line 218 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint16_t * | Y, | |
int | N | |||
) |
Definition at line 207 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint32_t * | Y, | |
int | N | |||
) |
Definition at line 196 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | float * | Y, | |
int | N | |||
) |
Send Y data (with assuming linearly changing X data and/or Z data).
[in] | Y | pointer to Y data to send |
[in] | N | number of points to send |
Definition at line 185 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint8_t * | X, | |
uint8_t * | Y, | |||
int | N | |||
) |
Definition at line 175 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint16_t * | X, | |
uint16_t * | Y, | |||
int | N | |||
) |
Definition at line 165 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | uint32_t * | X, | |
uint32_t * | Y, | |||
int | N | |||
) |
Definition at line 155 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int8_t * | X, | |
int8_t * | Y, | |||
int | N | |||
) |
Definition at line 145 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int16_t * | X, | |
int16_t * | Y, | |||
int | N | |||
) |
Definition at line 135 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | int32_t * | X, | |
int32_t * | Y, | |||
int | N | |||
) |
Definition at line 125 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SendPlotData | ( | float * | X, | |
float * | Y, | |||
int | N | |||
) |
Send a full (contained) set of plot data to any subscribers.
X | pointer to array of X axis data | |
Y | pointer to array of Y axis data | |
N | number of axis points |
Definition at line 115 of file EDDPlotDataSource.cpp.
void tcEDDPlotDataSource::SendPlotDescriptor | ( | int32_t | anNumPoints, | |
uint8_t | anType | |||
) | [protected] |
Definition at line 413 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SetDescription | ( | char * | apDesc | ) |
Sets Description of Plot Data Source
apDesc | new Description text (must be less than gnMaxStringLen bytes) |
Definition at line 406 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SetLabel | ( | teAxis | aeAxis, | |
char * | apLabel | |||
) |
Sets effective label for an axis according to the input text.
aeAxis | label of axis to change | |
apLabel | new label text (must be less than gnMaxStringLen bytes) |
Definition at line 378 of file EDDPlotDataSource.cpp.
int tcEDDPlotDataSource::SetOffset | ( | teAxis | aeAxis, | |
float | anOffset | |||
) | [inline] |
Definition at line 75 of file EDDPlotDataSource.h.
int tcEDDPlotDataSource::SetScale | ( | teAxis | aeAxis, | |
float | anScale | |||
) | [inline] |
Definition at line 76 of file EDDPlotDataSource.h.
const int tcEDDPlotDataSource::gnMaxStringLen = 64 [static] |
Definition at line 78 of file EDDPlotDataSource.h.
char tcEDDPlotDataSource::maDescription[gnMaxStringLen] [protected] |
float tcEDDPlotDataSource::maOffset[3] [protected] |
float tcEDDPlotDataSource::maScale[3] [protected] |
char tcEDDPlotDataSource::maXLabel[gnMaxStringLen] [protected] |
char tcEDDPlotDataSource::maYLabel[gnMaxStringLen] [protected] |
char tcEDDPlotDataSource::maZLabel[gnMaxStringLen] [protected] |
bool tcEDDPlotDataSource::mbIsContinuous [protected] |
int tcEDDPlotDataSource::mnMaxContPoints [protected] |
maximum number of continuous points for rolling plots
Definition at line 97 of file EDDPlotDataSource.h.
int tcEDDPlotDataSource::mnOutputBufferLen [protected] |
uint16_t tcEDDPlotDataSource::mnPlotNo [protected] |
int tcEDDPlotDataSource::mnPlotType [protected] |
char* tcEDDPlotDataSource::mpOutputBuffer [protected] |