Ejemplo n.º 1
0
 def changeBarStyle(self, style):
     """Change the visual style of the bars."""
     combo_box = self.sender()
     if isinstance(combo_box, QComboBox):
         self.bar_style = QAbstract3DSeries.Mesh(combo_box.itemData(style))
         for series in self.graph.seriesList():
             series.setMesh(self.bar_style)
Ejemplo n.º 2
0
 def ledClicked(
     self, serie: QAbstract3DSeries
 ):  #Colored the led if not already set to the given color, erase it otherwise
     if self.interactive:
         self.m_graph.clearSelection()  #Avoid selected item color shifting
         if serie is not None:
             xStr, yStr, zStr = serie.name().split()
             x = int(xStr)
             y = int(yStr)
             z = int(zStr)
             currentColor = self.getCurrentColor()
             if self.matrixLEDserie[x][y][z].baseColor() == currentColor:
                 self.eraseColor_signal.emit(int(xStr), int(yStr),
                                             int(zStr))
             else:
                 self.newColor_signal.emit(int(xStr), int(yStr), int(zStr),
                                           currentColor)
Ejemplo n.º 3
0
 def changeStyle(self, style):
     comboBox = self.sender()
     if isinstance(comboBox, QComboBox):
         self.m_style = QAbstract3DSeries.Mesh(comboBox.itemData(style))
         self.m_graph.seriesList()[0].setMesh(self.m_style)
Ejemplo n.º 4
0
 def changeStyle(self, style):
     comboBox = self.sender()
     if isinstance(comboBox, QComboBox):
         self.m_barMesh = QAbstract3DSeries.Mesh(comboBox.itemData(style))
         self.m_primarySeries.setMesh(self.m_barMesh)
         self.m_secondarySeries.setMesh(self.m_barMesh)