15#ifndef SWABSTRACTBARWIDGET_H
16#define SWABSTRACTBARWIDGET_H
31 virtual void paintEvent( QPaintEvent* event )
override = 0;
48 void clearValueList();
50 void setColorRange(
const QStringList& colorlist );
51 void setColorRange(
const SWColorVec& colorlist );
56 virtual void onValueListChanged(
const SWDoubleVec& freshdata );
62 void setRange(
int rangeFrom,
int rangeTo );
63 QColor getBlockColor(
int x,
int y );
73 double _minValue = 0.0;
74 double _maxValue = 1.0;
80 int _maxNumBarsBlocks = -1;
81 double _sizeRatio = -1;
84 bool _barMode =
false;
85 bool _gradientMode =
true;
88 SWDoubleVec _valueList;