28 #ifndef PLOTINFOSHAPES_H
29 #define PLOTINFOSHAPES_H
35 #include "../common/commonGlobal.h"
36 #include "../common/typeDefs.h"
37 #include "../common/shape.h"
39 #include "commonWidgets.h"
41 #include <QtWidgets/qtreewidget.h>
42 #include <QtGui/qpainterpath.h>
68 void setItem2Point(QTreeWidgetItem* curItem,
const ito::Shape &element);
69 void setItem2Line(QTreeWidgetItem* curItem,
const ito::Shape &element);
70 void setItem2Circle(QTreeWidgetItem* curItem,
const ito::Shape &element);
71 void setItem2Ellipse(QTreeWidgetItem* curItem,
const ito::Shape &element);
72 void setItem2Square(QTreeWidgetItem* curItem,
const ito::Shape &element);
73 void setItem2Rect(QTreeWidgetItem* curItem,
const ito::Shape &element);
74 void setItem2Poly(QTreeWidgetItem* curItem,
const ito::Shape &element);
76 void adjustNumberOfChildItems(QTreeWidgetItem* curItem,
int count);
78 QHash< int, relation> m_relationHash;
85 void updateShapes(
const QVector< ito::Shape > elements);
87 void removeShape(
int index);
90 void addRelation(
const int index1,
const int index2,
const int relationType);
91 void removeRelation(
const int index1,
const int index2);
92 void removeRelations(
const int index1,
const int index2);
93 void removeRelations(
const int index);
94 void removeRelations();
96 QPainterPath renderToPainterPath(
const int xsize,
const int ysize,
const int fontSize);
105 #endif // SHAPELEGENDWIDGET_H
Definition: plotInfoShapes.h:44
Definition: plotInfoShapes.h:60