Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
Multiple Class Reference

Multiple graphics element. More...

#include <hV_Graphics.h>

Inheritance diagram for Multiple:
Collaboration diagram for Multiple:

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.
 

Detailed Description

Multiple graphics element.

Multiple display a graphic with up to 4 series

Constructor & Destructor Documentation

◆ Multiple()

Multiple::Multiple ( Graphics * graphics)

Constructor.

Parameters
graphics&graphics to which the element belongs

Member Function Documentation

◆ dDefine()

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.

Parameters
screen&screen to which the graphic belongs
x0point coordinate, x-axis
y0point coordinate, y-axis
dxlength, x-axis
dyheight, y-axis
serie1serie 1: name of the serie
valueMin1serie 1: minimum value for measures, already multiplied by unit
valueMax1serie 1: maximum value for measures, already multiplied by unit
unit1serie 1: multiplier for values, default = 1, 10 or 100
valueColour1serie 1: 16-bit colour for measures, default = black, optional
serie2serie 2: name of the serie, optional
valueMin2serie 2: minimum value for measures, already multiplied by unit, optional
valueMax2serie 2: maximum value for measures, already multiplied by unit, optional
unit2serie 2: multiplier for values, default = 1, 10 or 100
valueColour2serie 2: 16-bit colour for measures, default = black, optional
serie3serie 3: name of the serie, optional
valueMin3serie 3: minimum value for measures, already multiplied by unit, optional
valueMax3serie 3: maximum value for measures, already multiplied by unit, optional
unit3serie 3: multiplier for values, default = 1, 10 or 100
valueColour3serie 3: 16-bit colour for measures, default = black, optional
serie4serie 4: name of the serie, optional
valueMin4serie 4: minimum value for measures, already multiplied by unit, optional
valueMax4serie 4: maximum value for measures, already multiplied by unit, optional
unit4serie 4: multiplier for values, default = 1, 10 or 100
valueColour4serie 4: 16-bit colour for measures, default = black, optional
marksXgrid on the x or time axis every specified number measures, default = 0 = no grid
sectionsYnumber of sections on the y axis, default = 4, 0 = no grid
continoustrue = keep previous measures, default = false = over-write
Note
This graphic does not feature memory.
For series 2, 3 and 4, minimum and maximum values can't be both = 0.


More: Coordinates, Colours, Value

◆ define()

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.

Parameters
screen&screen to which the graphic belongs
x1top left coordinate, x-axis
y1top left coordinate, y-axis
x2bottom right coordinate, x-axis
y2bottom right coordinate, y-axis
serie1serie 1: name of the serie
valueMin1serie 1: minimum value for measures, already multiplied by unit
valueMax1serie 1: maximum value for measures, already multiplied by unit
unit1serie 1: multiplier for values, default = 1, 10 or 100
valueColour1serie 1: 16-bit colour for measures, default = black, optional
serie2serie 2: name of the serie, optional
valueMin2serie 2: minimum value for measures, already multiplied by unit, optional
valueMax2serie 2: maximum value for measures, already multiplied by unit, optional
unit2serie 2: multiplier for values, default = 1, 10 or 100
valueColour2serie 2: 16-bit colour for measures, default = black, optional
serie3serie 3: name of the serie, optional
valueMin3serie 3: minimum value for measures, already multiplied by unit, optional
valueMax3serie 3: maximum value for measures, already multiplied by unit, optional
unit3serie 3: multiplier for values, default = 1, 10 or 100
valueColour3serie 3: 16-bit colour for measures, default = black, optional
serie4serie 4: name of the serie, optional
valueMin4serie 4: minimum value for measures, already multiplied by unit, optional
valueMax4serie 4: maximum value for measures, already multiplied by unit, optional
unit4serie 4: multiplier for values, default = 1, 10 or 100
valueColour4serie 4: 16-bit colour for measures, default = black, optional
marksXgrid on the x or time axis every specified number measures, default = 0 = no grid
sectionsYnumber of sections on the y axis, default = 4, 0 = no grid
continoustrue = keep previous measures, default = false = over-write
Note
For series 2, 3 and 4, minimum and maximum values can't be both = 0.


More: Coordinates, Colours, Value

◆ draw()

void Multiple::draw ( int32_t value1,
int32_t value2 = 0,
int32_t value3 = 0,
int32_t value4 = 0 )

Update the graphic.

Parameters
value1serie 1: new measure, already multiplied by unit1
value2serie 2: new measure, already multiplied by unit2
value3serie 3: new measure, already multiplied by unit3
value4serie 4: new measure, already multiplied by unit4
Note
If value=1234 with unit=100, actual value is 1234/100=12.34


More: Value

◆ setStep()

void Multiple::setStep ( uint16_t step = 1)

Set the x-axis step.

Parameters
stepstep between two valuesn, x-axis, default = 1

The documentation for this class was generated from the following file: