示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)