Exemplo n.º 1
0
 def reconnect(self):
     """ recreate is called after all classes of the session have been unpickled """
     #do not recreate default viewpoints
     if self.params.view == 'default' or self.params.id == None:
         return
     self.params.confirmed = False
     self.params.changed = False
     # the id is not used by cover
     # could be out of sync
     msg = coGRCreateViewpointMsg( self.params.name, self.params.id, self.params.view, self.params.clipplane  )
     covise.sendRendMsg(msg.c_str())
Exemplo n.º 2
0
 def reconnect(self):
     """ recreate is called after all classes of the session have been unpickled """
     #do not recreate default viewpoints
     if self.params.view == 'default' or self.params.id == None:
         return
     self.params.confirmed = False
     self.params.changed = False
     # the id is not used by cover
     # could be out of sync
     msg = coGRCreateViewpointMsg(self.params.name, self.params.id,
                                  self.params.view, self.params.clipplane)
     covise.sendRendMsg(msg.c_str())
Exemplo n.º 3
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     coViewpointParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     #do not recreate default viewpoints
     if self.params.view == 'default' or self.params.id == None:
         self.delete(False, negMsgHandler)
         return
     VisItem.recreate(self, negMsgHandler, parentKey, offset)
     self.params.confirmed = False
     self.params.changed = False
     # the id is not used by cover
     # could be out of sync
     msg = coGRCreateViewpointMsg( self.params.name, self.params.id, self.params.view, self.params.clipplane )
     covise.sendRendMsg(msg.c_str())
Exemplo n.º 4
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     coViewpointParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     #do not recreate default viewpoints
     if self.params.view == 'default' or self.params.id == None:
         self.delete(False, negMsgHandler)
         return
     VisItem.recreate(self, negMsgHandler, parentKey, offset)
     self.params.confirmed = False
     self.params.changed = False
     # the id is not used by cover
     # could be out of sync
     msg = coGRCreateViewpointMsg(self.params.name, self.params.id,
                                  self.params.view, self.params.clipplane)
     covise.sendRendMsg(msg.c_str())