def updateColor(self, objectColor): self.data['color'] = objectColor callback = Callback(self.onUpdated, self.ACTION_UPDATE, self) self.figure.sendAction(self.ACTION_UPDATE, self.data, callback)
def updateSize(self, dimX, dimY, dimZ): self.data['dimX'] = dimX self.data['dimY'] = dimY self.data['dimZ'] = dimZ callback = Callback(self.onUpdated, self.ACTION_UPDATE, self) self.figure.sendAction(self.ACTION_UPDATE, self.data, callback)
def updatePosition(self, coordX, coordY, coordZ): self.data['coordX'] = coordX self.data['coordY'] = coordY self.data['coordZ'] = coordZ callback = Callback(self.onUpdated, self.ACTION_UPDATE, self) self.figure.sendAction(self.ACTION_UPDATE, self.data, callback)
def updateRotation(self, rotX, rotY, rotZ): self.data['rotX'] = rotX self.data['rotY'] = rotY self.data['rotZ'] = rotZ callback = Callback(self.onUpdated, self.ACTION_UPDATE, self) self.figure.sendAction(self.ACTION_UPDATE, self.data, callback)
def delete(self): self.exists = False self.data['id'] = self.id callback = Callback(self.onDeleted, self.ACTION_DELETE, self) self.figure.sendAction(self.ACTION_DELETE, self.data, callback)