Graph is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

Graph class

Syntax

class Graph : public Container { public:     static const int NUMBER_OF_POINTS = 17;     Graph();     virtual ~Graph() { }     void setup(int newWidth, int newHeight, colortype lineColor, colortype backgroundColor);     bool addValue(int x, int y)     {         return graphLine.addValue(x, y);     }     bool deleteValue(int x)     {         return graphLine.deleteValue(x);     }     void clear()     {         graphLine.clearGraph();     }     void setRange(int left, int right, int top, int bottom) ;     void setLineVisible(bool lineVisible);     void setDotsVisible(bool dotsVisible);     void setDotsBackgroundVisible(bool dotsBackgroundVisible);     void setAreaVisible(bool areaVisible);     void setDotShape(int startAngle, int angleStep, int lineWidth);     void setDotBackgroundShape(int startAngle, int angleStep, int lineWidth);     uint8_t getAlpha()     {         return myAlpha;     }     void setAlpha(uint8_t alpha)     {         myAlpha = alpha;         graphLine.setAlpha(myAlpha);         graphArea.setAlpha(myAlpha);         graphDots.setAlpha(myAlpha);         graphDotsBackground.setAlpha(myAlpha);         invalidate();     } protected:     GraphLine graphLine;     GraphBelow graphArea;     GraphDots graphDots;     GraphDots graphDotsBackground;     GraphLine::GraphPoint graphBuffer[NUMBER_OF_POINTS]; #if !defined(USE_BPP) || USE_BPP==16     PainterRGB565 graphLinePainter;     PainterRGB565 graphDotsPainter;     PainterRGB565 graphDotsBackgroundPainter; #elif USE_BPP==24     PainterRGB888 graphLinePainter;     PainterRGB888 graphDotsPainter;     PainterRGB888 graphDotsBackgroundPainter; #elif USE_BPP==4     PainterGRAY4 graphLinePainter;     PainterGRAY4 graphDotsPainter;     PainterGRAY4 graphDotsBackgroundPainter; #elif USE_BPP==2     PainterGRAY2 graphLinePainter;     PainterGRAY2 graphDotsPainter;     PainterGRAY2 graphDotsBackgroundPainter; #else #error Unknown USE_BPP #endif     PainterVerticalAlpha graphAreaPainter;     uint8_t myAlpha; };

Fields

NUMBER_OF_POINTS

No summary provided. Read more...

graphLine

No summary provided. Read more...

graphArea

No summary provided. Read more...

graphDots

No summary provided. Read more...

graphDotsBackground

No summary provided. Read more...

graphBuffer

No summary provided. Read more...

graphLinePainter

No summary provided. Read more...

graphDotsPainter

No summary provided. Read more...

graphDotsBackgroundPainter

No summary provided. Read more...

graphAreaPainter

No summary provided. Read more...

myAlpha

No summary provided. Read more...

Methods

setup()

No summary provided. Read more...

addValue()

No summary provided. Read more...

deleteValue()

No summary provided. Read more...

clear()

No summary provided. Read more...

setRange()

No summary provided. Read more...

setLineVisible()

No summary provided. Read more...

setDotsVisible()

No summary provided. Read more...

setDotsBackgroundVisible()

No summary provided. Read more...

setAreaVisible()

No summary provided. Read more...

setDotShape()

No summary provided. Read more...

setDotBackgroundShape()

No summary provided. Read more...

getAlpha()

No summary provided. Read more...

setAlpha()

No summary provided. Read more...