superkaramba
meters/graph.cpp
Go to the documentation of this file.
196 qreal v_step = ((qreal) height * plotDir) / (m_maxValue - m_minValue) * -1; //neg one shows up here to make subtracting from h (bottom) easier later, can just add the two and not worry about order
213 v = ((raw - m_minValue) * v_step) + bottom; // since the coordinate system is one with 0 at the top and h at the bottom for the default case
Definition: karamba.h:52
Graph()
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Notes on graphing rewrite - jwm.
Definition: meters/graph.cpp:172
Definition: meters/meter.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.