Esempio n. 1
0
 def GetClientToolsScene(self):
     if self.clientToolsScene is not None:
         return self.clientToolsScene
     rj = sm.GetService('sceneManager').fisRenderJob
     scene = rj.GetClientToolsScene()
     if scene is not None:
         self.clientToolsScene = scene
         return self.clientToolsScene
     self.clientToolsScene = trinity.Tr2PrimitiveScene()
     rj.SetClientToolsScene(self.clientToolsScene)
     return self.clientToolsScene
 def GetClientToolsScene(self):
     """
     This function attempts to get the client tools scene from the RenderJob.  If it
     doesn't exist yet, then a new primitive scene is created and added to the
     RenderJob.
     """
     if self.clientToolsScene is not None:
         return self.clientToolsScene
     rj = sm.GetService('sceneManager').fisRenderJob
     scene = rj.GetClientToolsScene()
     if scene is not None:
         self.clientToolsScene = scene
         return self.clientToolsScene
     self.clientToolsScene = trinity.Tr2PrimitiveScene()
     rj.SetClientToolsScene(self.clientToolsScene)
     return self.clientToolsScene