Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Multiple graphics element. More...
#include <hV_Graphics.h>
Public Member Functions | |
Multiple (Graphics *graphics) | |
Constructor. | |
void | dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, STRING_CONST_TYPE serie1, int32_t valueMin1, int32_t valueMax1, int32_t unit1=1, uint16_t valueColour1=myColours.black, STRING_CONST_TYPE serie2="", int32_t valueMin2=0, int32_t valueMax2=0, int32_t unit2=1, uint16_t valueColour2=myColours.black, STRING_CONST_TYPE serie3="", int32_t valueMin3=0, int32_t valueMax3=0, int32_t unit3=1, uint16_t valueColour3=myColours.black, STRING_CONST_TYPE serie4="", int32_t valueMin4=0, int32_t valueMax4=0, int32_t unit4=1, uint16_t valueColour4=myColours.black, uint16_t marksX=0, uint16_t sectionsY=4, bool continous=false) |
Define the graphic, vector coordinates. | |
void | define (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, STRING_CONST_TYPE serie1, int32_t valueMin1, int32_t valueMax1, int32_t unit1=1, uint16_t valueColour1=myColours.black, STRING_CONST_TYPE serie2="", int32_t valueMin2=0, int32_t valueMax2=0, int32_t unit2=1, uint16_t valueColour2=myColours.black, STRING_CONST_TYPE serie3="", int32_t valueMin3=0, int32_t valueMax3=0, int32_t unit3=1, uint16_t valueColour3=myColours.black, STRING_CONST_TYPE serie4="", int32_t valueMin4=0, int32_t valueMax4=0, int32_t unit4=1, uint16_t valueColour4=myColours.black, uint16_t marksX=0, uint16_t sectionsY=4, bool continous=false) |
Define the graphic, rectangle coordinates. | |
void | draw (int32_t value1, int32_t value2=0, int32_t value3=0, int32_t value4=0) |
Update the graphic. | |
void | setStep (uint16_t step=1) |
Set the x-axis step. | |
Public Member Functions inherited from mtgPanel | |
mtgPanel (Graphics *graphics) | |
Constructor. | |
Multiple::Multiple | ( | Graphics * | graphics | ) |
Constructor.
graphics | &graphics to which the element belongs |
void Multiple::dDefine | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | dx, | ||
uint16_t | dy, | ||
STRING_CONST_TYPE | serie1, | ||
int32_t | valueMin1, | ||
int32_t | valueMax1, | ||
int32_t | unit1 = 1, | ||
uint16_t | valueColour1 = myColours.black, | ||
STRING_CONST_TYPE | serie2 = "", | ||
int32_t | valueMin2 = 0, | ||
int32_t | valueMax2 = 0, | ||
int32_t | unit2 = 1, | ||
uint16_t | valueColour2 = myColours.black, | ||
STRING_CONST_TYPE | serie3 = "", | ||
int32_t | valueMin3 = 0, | ||
int32_t | valueMax3 = 0, | ||
int32_t | unit3 = 1, | ||
uint16_t | valueColour3 = myColours.black, | ||
STRING_CONST_TYPE | serie4 = "", | ||
int32_t | valueMin4 = 0, | ||
int32_t | valueMax4 = 0, | ||
int32_t | unit4 = 1, | ||
uint16_t | valueColour4 = myColours.black, | ||
uint16_t | marksX = 0, | ||
uint16_t | sectionsY = 4, | ||
bool | continous = false ) |
Define the graphic, vector coordinates.
screen | &screen to which the graphic belongs |
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
serie1 | serie 1: name of the serie |
valueMin1 | serie 1: minimum value for measures, already multiplied by unit |
valueMax1 | serie 1: maximum value for measures, already multiplied by unit |
unit1 | serie 1: multiplier for values, default = 1, 10 or 100 |
valueColour1 | serie 1: 16-bit colour for measures, default = black, optional |
serie2 | serie 2: name of the serie, optional |
valueMin2 | serie 2: minimum value for measures, already multiplied by unit, optional |
valueMax2 | serie 2: maximum value for measures, already multiplied by unit, optional |
unit2 | serie 2: multiplier for values, default = 1, 10 or 100 |
valueColour2 | serie 2: 16-bit colour for measures, default = black, optional |
serie3 | serie 3: name of the serie, optional |
valueMin3 | serie 3: minimum value for measures, already multiplied by unit, optional |
valueMax3 | serie 3: maximum value for measures, already multiplied by unit, optional |
unit3 | serie 3: multiplier for values, default = 1, 10 or 100 |
valueColour3 | serie 3: 16-bit colour for measures, default = black, optional |
serie4 | serie 4: name of the serie, optional |
valueMin4 | serie 4: minimum value for measures, already multiplied by unit, optional |
valueMax4 | serie 4: maximum value for measures, already multiplied by unit, optional |
unit4 | serie 4: multiplier for values, default = 1, 10 or 100 |
valueColour4 | serie 4: 16-bit colour for measures, default = black, optional |
marksX | grid on the x or time axis every specified number measures, default = 0 = no grid |
sectionsY | number of sections on the y axis, default = 4, 0 = no grid |
continous | true = keep previous measures, default = false = over-write |
More: Coordinates, Colours, Value
void Multiple::define | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2, | ||
STRING_CONST_TYPE | serie1, | ||
int32_t | valueMin1, | ||
int32_t | valueMax1, | ||
int32_t | unit1 = 1, | ||
uint16_t | valueColour1 = myColours.black, | ||
STRING_CONST_TYPE | serie2 = "", | ||
int32_t | valueMin2 = 0, | ||
int32_t | valueMax2 = 0, | ||
int32_t | unit2 = 1, | ||
uint16_t | valueColour2 = myColours.black, | ||
STRING_CONST_TYPE | serie3 = "", | ||
int32_t | valueMin3 = 0, | ||
int32_t | valueMax3 = 0, | ||
int32_t | unit3 = 1, | ||
uint16_t | valueColour3 = myColours.black, | ||
STRING_CONST_TYPE | serie4 = "", | ||
int32_t | valueMin4 = 0, | ||
int32_t | valueMax4 = 0, | ||
int32_t | unit4 = 1, | ||
uint16_t | valueColour4 = myColours.black, | ||
uint16_t | marksX = 0, | ||
uint16_t | sectionsY = 4, | ||
bool | continous = false ) |
Define the graphic, rectangle coordinates.
screen | &screen to which the graphic belongs |
x1 | top left coordinate, x-axis |
y1 | top left coordinate, y-axis |
x2 | bottom right coordinate, x-axis |
y2 | bottom right coordinate, y-axis |
serie1 | serie 1: name of the serie |
valueMin1 | serie 1: minimum value for measures, already multiplied by unit |
valueMax1 | serie 1: maximum value for measures, already multiplied by unit |
unit1 | serie 1: multiplier for values, default = 1, 10 or 100 |
valueColour1 | serie 1: 16-bit colour for measures, default = black, optional |
serie2 | serie 2: name of the serie, optional |
valueMin2 | serie 2: minimum value for measures, already multiplied by unit, optional |
valueMax2 | serie 2: maximum value for measures, already multiplied by unit, optional |
unit2 | serie 2: multiplier for values, default = 1, 10 or 100 |
valueColour2 | serie 2: 16-bit colour for measures, default = black, optional |
serie3 | serie 3: name of the serie, optional |
valueMin3 | serie 3: minimum value for measures, already multiplied by unit, optional |
valueMax3 | serie 3: maximum value for measures, already multiplied by unit, optional |
unit3 | serie 3: multiplier for values, default = 1, 10 or 100 |
valueColour3 | serie 3: 16-bit colour for measures, default = black, optional |
serie4 | serie 4: name of the serie, optional |
valueMin4 | serie 4: minimum value for measures, already multiplied by unit, optional |
valueMax4 | serie 4: maximum value for measures, already multiplied by unit, optional |
unit4 | serie 4: multiplier for values, default = 1, 10 or 100 |
valueColour4 | serie 4: 16-bit colour for measures, default = black, optional |
marksX | grid on the x or time axis every specified number measures, default = 0 = no grid |
sectionsY | number of sections on the y axis, default = 4, 0 = no grid |
continous | true = keep previous measures, default = false = over-write |
More: Coordinates, Colours, Value
void Multiple::draw | ( | int32_t | value1, |
int32_t | value2 = 0, | ||
int32_t | value3 = 0, | ||
int32_t | value4 = 0 ) |
Update the graphic.
value1 | serie 1: new measure, already multiplied by unit1 |
value2 | serie 2: new measure, already multiplied by unit2 |
value3 | serie 3: new measure, already multiplied by unit3 |
value4 | serie 4: new measure, already multiplied by unit4 |
More: Value
void Multiple::setStep | ( | uint16_t | step = 1 | ) |
Set the x-axis step.
step | step between two valuesn, x-axis, default = 1 |