27 gfx.SceneObserver.__init__(self)
31 self.
obs_obs_.append(ob)
34 self.
obs_obs_.remove(ob)
37 for ob
in self.
obs_obs_ :
38 if hasattr(ob,
"NodeAdded"):
42 for ob
in self.
obs_obs_ :
43 if hasattr(ob,
"NodeRemoved"):
47 for ob
in self.
obs_obs_ :
48 if hasattr(ob,
"NodeChanged"):
52 for ob
in self.
obs_obs_ :
53 if hasattr(ob,
"SelectionModeChanged"):
54 ob.SelectionModeChanged(node)
57 for ob
in self.
obs_obs_ :
58 if hasattr(ob,
"SelectionChanged"):
59 ob.SelectionChanged(node)
62 for ob
in self.
obs_obs_ :
63 if hasattr(ob,
"NodeTransformed"):
64 ob.NodeTransformed(node)
67 for ob
in self.
obs_obs_ :
68 if hasattr(ob,
"NodeRemovedDefault"):
69 ob.NodeRemovedDefault(node)
72 for ob
in self.
obs_obs_ :
73 if hasattr(ob,
"RenderModeChanged"):
74 ob.RenderModeChanged(node)
Interface for observing graphical objects.
def NodeTransformed(self, node)
def NodeRemoved(self, node)
def RenderModeChanged(self, node)
def NodeChanged(self, node)
def NodeRemovedDefault(self, node)
def SelectionModeChanged(self, sel_mode)
def AttachObserver(self, ob)
def NodeAdded(self, node)
def SelectionChanged(self, obj, sel)
def DettachObserver(self, ob)