Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Channels graphics element. More...
#include <hV_Graphics.h>
Public Member Functions | |
Channels (Graphics *graphics) | |
Constructor. | |
void | dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, int32_t valueMin, int32_t valueMax, int32_t unit=1, uint8_t channels=4, uint8_t sectionsY=4, uint16_t valueColour=myColours.black) |
Define the graphic, vector coordinates. | |
void | define (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, int32_t valueMin, int32_t valueMax, int32_t unit=1, uint8_t channels=4, uint8_t sectionsY=4, uint16_t valueColour=myColours.black) |
Define the graphic, rectangle coordinates. | |
void | draw (uint8_t channel, int32_t value) |
Update the graphic. | |
Public Member Functions inherited from mtgPanel | |
mtgPanel (Graphics *graphics) | |
Constructor. | |
Channels::Channels | ( | Graphics * | graphics | ) |
Constructor.
graphics | &graphics to which the element belongs |
void Channels::dDefine | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | dx, | ||
uint16_t | dy, | ||
int32_t | valueMin, | ||
int32_t | valueMax, | ||
int32_t | unit = 1, | ||
uint8_t | channels = 4, | ||
uint8_t | sectionsY = 4, | ||
uint16_t | valueColour = myColours.black ) |
Define the graphic, vector coordinates.
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
valueMin | minimum value for measures, already multiplied by unit |
valueMax | maximum value for measures, already multiplied by unit |
unit | multiplier for all values, default = 1, 10 or 100 |
channels | number of channels, default = 4 |
sectionsY | number of sections on the y axis, default = 4, 0 = no grid |
valueColour | 16-bit colour for measures, default = black, optional |
More: Coordinates, Colours, Value
void Channels::define | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2, | ||
int32_t | valueMin, | ||
int32_t | valueMax, | ||
int32_t | unit = 1, | ||
uint8_t | channels = 4, | ||
uint8_t | sectionsY = 4, | ||
uint16_t | valueColour = myColours.black ) |
Define the graphic, rectangle coordinates.
x1 | top left coordinate, x-axis |
y1 | top left coordinate, y-axis |
x2 | bottom right coordinate, x-axis |
y2 | bottom right coordinate, y-axis |
valueMin | minimum value for measures, already multiplied by unit |
valueMax | maximum value for measures, already multiplied by unit |
unit | multiplier for all values, default = 1, 10 or 100 |
channels | number of channels, default = 4 |
sectionsY | number of sections on the y axis, default = 4, 0 = no grid |
valueColour | 16-bit colour for measures, default = black, optional |
More: Coordinates, Colours, Value
void Channels::draw | ( | uint8_t | channel, |
int32_t | value ) |
Update the graphic.
channel | channel to update, 0..channels - 1 |
value | new measure, already multiplied by unit |
More: Value