14 #include <QtCore/QObject>
15 #include <QtCore/QPair>
16 #include <QtCore/QMap>
44 void addSet(
int set, QPen pen,
int initial,
bool valueCentered =
false );
47 void insertValue(
int set,
double percent,
int value );
50 virtual void resetAllValues(
int value );
53 virtual void resetValues(
int set,
int value );
56 virtual void clearValues(
int set );
59 virtual void clearAllValues();
63 virtual void offsetPercentages(
double percentOffset );
67 virtual void offsetPercentages(
int set,
double percentOffset );
71 virtual void setRange(
int min,
int max );
74 virtual int rangeMinimum()
const;
75 virtual int rangeMaximum()
const;
79 virtual bool autoScale()
const;
83 virtual void setAutoScale(
bool value );
86 virtual void setNegativeReflection(
bool positive );
89 virtual void useBackgroundGradient(
bool useIt );
92 virtual bool usesBackgroundGradient()
const;
96 virtual void drawAsVerticalLines(
bool useVerticalLines );
100 virtual bool usesVerticalLines()
const;
103 void forceUpdate(
bool widgetUpdate );
118 typedef std::map<int,DtProgressiveLineGraph::Set*>
SetMap;
121 virtual void resizeEvent( QResizeEvent* e );
124 virtual void paintEvent( QPaintEvent* );
127 virtual void draw( QPainter& painter,
const QRect& rect );
130 virtual void paintBackground( QPainter& painter );
133 virtual int getSeparation()
const;
136 virtual void paintLines( QPainter& painter,
Set& set );
139 virtual int desiredRange()
const;
143 int rangeHeight, QPainter& painter, QPen pen,
bool centered);
147 int rangeHeight, QPainter& painter, QPen pen );
150 int desiredMinimum()
const;
int myMax
Definition: progressiveLineGraph.h:114
std::map< int, DtProgressiveLineGraph::Set * > SetMap
Definition: progressiveLineGraph.h:118
bool myNegativeReflection
Definition: progressiveLineGraph.h:169
std::list< std::pair< double, int > > PercentValueMap
Definition: progressiveLineGraph.h:107
int myMaximumRange
Definition: progressiveLineGraph.h:156
bool myUseCachedGraph
Definition: progressiveLineGraph.h:165
QPixmap * myLineBuffer
Definition: progressiveLineGraph.h:162
int myInitialMinimumRange
Definition: progressiveLineGraph.h:152
int myInitialMaximumRange
Definition: progressiveLineGraph.h:153
bool myValuesCentered
Definition: progressiveLineGraph.h:113
int myMin
Definition: progressiveLineGraph.h:115
SetMap mySets
Definition: progressiveLineGraph.h:160
bool myGraphNeedsUpdating
Definition: progressiveLineGraph.h:167
#define DT_DLL_LIBPORTALAPP
Definition: include/portalApp/dllExport.h:20
PercentValueMap myValues
Definition: progressiveLineGraph.h:111
bool myAutoScale
Definition: progressiveLineGraph.h:157
Widget which draws a line graphic where the data is progressively added over time.
Definition: progressiveLineGraph.h:33
bool myUseGradient
Definition: progressiveLineGraph.h:166
bool myActive
Definition: progressiveLineGraph.h:158
QPixmap myGradBack
Definition: progressiveLineGraph.h:161
QPolygon * myPointCache
Definition: progressiveLineGraph.h:163
Definition: progressiveLineGraph.h:109
QPen myPen
Definition: progressiveLineGraph.h:112
int myMinimumRange
Definition: progressiveLineGraph.h:155
bool myUseVerticalLines
Definition: progressiveLineGraph.h:168