Exemplo n.º 1
0
 def getRenderInfo(self):
     sga = SceneGraphAnalyzer()
     sga.addNode(self.scene.scene.node())
     
     ls = LineStream()
     sga.write(ls)
     desc = []
     while ls.isTextAvailable():
         desc.append(ls.getLine())
     desc = '\n'.join(desc)
     return desc
    def doAnalyzeScene(self):
        render.analyze()

        ls = LineStream()
        sga = SceneGraphAnalyzer()
        sga.addNode(render.node())
        sga.write(ls)
        text = ""
        while ls.isTextAvailable():
            text += ls.getLine() + "\n"
        self.acceptOnce('analyzedone', self.__handleAnalyzeDone)
        self.analyzeDlg = GlobalDialog(message=text,
                                       style=Ok,
                                       doneEvent='analyzedone',
                                       text_scale=0.05)
        self.analyzeDlg.show()