def drawBoundaryTypes(self):
     f = SymbolFactory()
     for bt in self.bed.boundaryTypes:
         if bt.boundaryType.hasSvgItem():
             pm = f.pixmapFromSvgItem(bt.boundaryType.svgItem, self.rect().width(), Qt.IgnoreAspectRatio)
             itm = QGraphicsPixmapItem(self, self.scene())
             itm.setPixmap(pm)
             itm.setPos(0, self.rect().height() - bt.begin * self.rect().height() / 100)
 def drawDatasetSymbol(self):
     w = self.rect().width() * 0.8
     self.symbolItm = QGraphicsRectItem(self, self.scene())
     self.symbolItm.setRect(QRectF(0, 0, w, w))
     if self.dataset.hasSvgItem():
         f = SymbolFactory()
         pm = f.pixmapFromSvgItem(self.dataset.svgItem, w, Qt.IgnoreAspectRatio)
         pmItm = QGraphicsPixmapItem(self.symbolItm, self.scene())
         pmItm.setPixmap(pm)
         pmItm.setPos(QPointF(0, (self.symbolItm.rect().height() - pmItm.boundingRect().height()) / 2))
     self.symbolItm.setPos(QPointF(self.rect().width() * 0.2 / 2, self.rect().width() * 0.2 / 2))