21 #ifndef CAPTIONGRAPHICSITEM_H 22 #define CAPTIONGRAPHICSITEM_H 30 class QGraphicsProxyWidget;
31 class QGraphicsSimpleTextItem;
38 class CaptionGraphicsBackgroundItem;
40 class CaptionGraphicsItem :
public QObject {
45 CaptionGraphicsItem(View *view);
46 ~CaptionGraphicsItem()
override;
48 void setType(
unsigned int type);
50 void loadConfiguration();
52 void generateColorCaption(
const QGradient &activeGradient,
const QGradient &hideGradient,
53 const std::string &propertyName,
double minValue,
double maxValue);
55 void generateSizeCaption(
const std::vector<std::pair<double, float>> &metricToSizeFilteredList,
56 const std::string &propertyName,
double minValue,
double maxValue);
58 CaptionGraphicsBackgroundItem *getCaptionItem()
const {
59 return _rondedRectItem;
62 std::string usedProperty();
66 void filterChanged(
float begin,
float end);
67 void selectedPropertyChanged(std::string propertyName);
71 void filterChangedSlot(
float begin,
float end);
72 void selectPropertyButtonClicked();
73 void propertySelectedSlot();
76 QString wrappedPropName(
const QString &originalName)
const;
78 void constructConfigWidget();
82 CaptionGraphicsBackgroundItem *_rondedRectItem;
84 QGraphicsProxyWidget *_confPropertySelectionItem;
85 QGraphicsSimpleTextItem *_nodesEdgesTextItem;
86 QPushButton *_confPropertySelectionWidget;
90 #endif // CAPTIONGRAPHICSITEM_H