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
gRoll Class Reference

Roll graphics element. More...

#include <hV_Graphics.h>

Inheritance diagram for gRoll:
Collaboration diagram for gRoll:

Public Member Functions

 gRoll (Graphics *graphics)
 Constructor.
 
void dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, int32_t unit=1, uint16_t valueColour=myColours.black)
 Define the graphic, vector coordinates.
 
void define (uint16_t x0, uint16_t y0, uint16_t radius, int32_t unit=1, uint16_t valueColour=myColours.black)
 Define the graphic, rectangle coordinates.
 
void draw (int32_t valueDegrees)
 Update the graphic.
 
- Public Member Functions inherited from mtgDial
 mtgDial (Graphics *graphics)
 Constructor.
 

Detailed Description

Roll graphics element.

Roll is a specific display for roll angle

Constructor & Destructor Documentation

◆ gRoll()

gRoll::gRoll ( Graphics * graphics)

Constructor.

Parameters
graphics&graphics to which the element belongs

Member Function Documentation

◆ dDefine()

void gRoll::dDefine ( uint16_t x0,
uint16_t y0,
uint16_t dx,
uint16_t dy,
int32_t unit = 1,
uint16_t valueColour = myColours.black )

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
unitmultiplier for all values, default = 1, 10 or 100
valueColour16-bit colour for measures, default = black, optional


More: Coordinates, Colours, Value

◆ define()

void gRoll::define ( uint16_t x0,
uint16_t y0,
uint16_t radius,
int32_t unit = 1,
uint16_t valueColour = myColours.black )

Define the graphic, rectangle coordinates.

Parameters
screen&screen to which the graphic belongs
x0center, point coordinate, x-axis
y0center, point coordinate, y-axis
radiusradius
unitmultiplier for all values, default = 1, 10 or 100
valueColour16-bit colour for measures, default = black, optional


More: Coordinates, Colours, Value

◆ draw()

void gRoll::draw ( int32_t valueDegrees)

Update the graphic.

Parameters
valueDegreesroll angle in degrees, already multiplied by unit
Note
If valueDegrees=9000 with unit=100, actual angle is 9000 / 100 = 90.00


More: Value


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