Exemple #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)
Exemple #2
0
 def initnonstate(self):
     ReferentBase.initnonstate(self)
     self.set_children(
         [Reference(prefix="First"),
          Reference(prefix="Second")])
Exemple #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)
Exemple #4
0
 def initnonstate(self):
     ReferentBase.initnonstate(self)
     self.set_children([
         Reference(prefix="First"),
         Reference(prefix="Second")
     ])
Exemple #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)