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

GraphDots class

@class GraphDots GraphDots.hpp gui/common/GraphDots.hpp Simple widget capable of drawing a graph of dots. The graph consists of a number of points with different x values. Points on the graph can be added and removed and the coordinate system of the graph can easily be setup. @see CanvasWidget

Syntax

class GraphDots : public AbstractGraph { public:     GraphDots();     void setDotShape(int dotStartAngle, int dotAngleStep);     virtual bool drawCanvasWidget(const Rect& invalidatedArea) const; protected:     virtual Rect getMinimalRectContainingIndices(int firstIndex, int lastIndex) const;     int startAngle, angleStep; };

Fields

startAngle

No summary provided. Read more...

angleStep

No summary provided. Read more...

Methods

setDotShape()

@fn void GraphDots::setDotShape(int dotStartAngle, int dotAngleStep); Sets dot shape. Sets dot shape. Using the start angle and angle step various shapes can be made. Example shapes are (0,30) circle, (0,90) diamond, (0,120) triangle, (0,144) pentagram, (0,135) octagram, (45,90) square, (0,72) pentagon, etc. Read more...

drawCanvasWidget() const

@fn virtual bool GraphDots::drawCanvasWidget(const Rect& invalidatedArea) const; Draw the graph. Draw the graph. Care is taken not to spend time drawing graph dots that are outside the invalidated area. Read more...

getMinimalRectContainingIndices() const

@fn virtual Rect GraphDots::getMinimalRectContainingIndices(int firstIndex, int lastIndex) const; Gets minimal rectangle containing dots for the given indices. Gets minimal rectangle containing dots for the given range of indices. Line width is taken into account to get the right rectangle. Read more...

Class Tree

Child classes
GraphDots
all items filtered out
Variables of GraphDots type
GraphDots