Beispiel #1
0
 def setupSoQt(self):
     self.root = self.getRoot()
     self.examiner = SoQtExaminerViewer(self)
     self.examiner.setSceneGraph(self.root)
     for attr in [
             "viewAll", "setDecoration", "setHeadlight",
             "setTransparencyType"
     ]:
         setattr(self, attr, getattr(self.examiner, attr))
Beispiel #2
0
    def setupSoQt(self):
        root = SoSeparator()
        self.rotxyz = SoRotationXYZ()
        self.gate = SoGate(SoMFFloat.getClassTypeId())
        self.elapsedTime = SoElapsedTime()
        self.gate.enable = False
        self.gate.input.connectFrom(self.elapsedTime.timeOut)
        self.rotxyz.angle.connectFrom(self.gate.output)        
        self.material = SoMaterial()
        self.material.diffuseColor = (0.0, 1.0, 1.0)
        self.cone = SoCone()
        root.addChild(self.rotxyz)
        root.addChild(self.material)
        root.addChild(self.cone)

        self.exam = SoQtExaminerViewer(self.examiner)
        self.exam.setSceneGraph(root)