示例#1
0
 def set_targets(self, targets, init=False):
     Atom = context.application.plugins.get_node("Atom")
     for target in targets:
         if not isinstance(target, Atom):
             raise TrajectoryError("References of the trajectory object can only point to atoms")
     self.set_children([Reference(prefix="Track") for target in targets])
     ReferentBase.set_targets(self, targets, init)
示例#2
0
 def initnonstate(self):
     ReferentBase.initnonstate(self)
     self.set_children(
         [Reference(prefix="First"),
          Reference(prefix="Second")])
示例#3
0
 def set_targets(self, targets, init=False):
     self.set_children([Reference(prefix="Selected") for target in targets])
     ReferentBase.set_targets(self, targets, init)
示例#4
0
 def initnonstate(self):
     ReferentBase.initnonstate(self)
     self.set_children([
         Reference(prefix="First"),
         Reference(prefix="Second")
     ])
示例#5
0
 def set_targets(self, targets, init=False):
     self.set_children([Reference(prefix="Selected") for target in targets])
     ReferentBase.set_targets(self, targets, init)