28 #ifndef SHAPELEGENDWIDGET_H 29 #define SHAPELEGENDWIDGET_H 35 #include "../common/commonGlobal.h" 36 #include "../common/typeDefs.h" 37 #include "../common/shape.h" 39 #include "commonWidgets.h" 41 #if QT_VERSION < 0x050000 42 #include <qtreewidget.h> 44 #include <qpainterpath.h> 46 #include <QtWidgets/qtreewidget.h> 47 #include <QtGui/qpainterpath.h> 75 void setItem2Point(QTreeWidgetItem* curItem,
const ito::Shape &element);
76 void setItem2Line(QTreeWidgetItem* curItem,
const ito::Shape &element);
77 void setItem2Circle(QTreeWidgetItem* curItem,
const ito::Shape &element);
78 void setItem2Ellipse(QTreeWidgetItem* curItem,
const ito::Shape &element);
79 void setItem2Square(QTreeWidgetItem* curItem,
const ito::Shape &element);
80 void setItem2Rect(QTreeWidgetItem* curItem,
const ito::Shape &element);
81 void setItem2Poly(QTreeWidgetItem* curItem,
const ito::Shape &element);
83 QHash< int, relation> m_relationHash;
90 void updateShapes(
const QVector< ito::Shape > elements);
92 void removeShape(
int index);
95 void addRelation(
const int index1,
const int index2,
const int relationType);
96 void removeRelation(
const int index1,
const int index2);
97 void removeRelations(
const int index1,
const int index2);
98 void removeRelations(
const int index);
99 void removeRelations();
101 QPainterPath renderToPainterPath(
const int xsize,
const int ysize,
const int fontSize);
110 #endif // SHAPELEGENDWIDGET_H Definition: plotInfoShapes.h:51
Definition: plotInfoShapes.h:67