Exemplo n.º 1
0
 def resetView(self):
     cam = self.modelCamera
     animation3d.animate(self, 0.20, [
         self.rotateAction([0.0, 0.0, 0.0]),
         animation3d.CameraAction(cam, None, [
             cam.eyeX, cam.eyeY, 60.0, cam.focusX, cam.focusY, cam.focusZ,
             0, 1, 0
         ])
     ])
Exemplo n.º 2
0
 def resetView(self):
     cam = self.modelCamera
     animation3d.animate(self, 0.20, [
         self.rotateAction([0.0, 0.0, 0.0]),
         animation3d.PathAction(
             self.modelCamera,
             [self.modelCamera.getPosition(), [0.0, 0.0, 0.0]]),
         animation3d.ZoomAction(self.modelCamera,
                                self.modelCamera.zoomFactor, 1.0)
     ])
Exemplo n.º 3
0
 def resetView(self):
     cam = self.modelCamera
     animation3d.animate(self, 0.20, [
         self.rotateAction([0.0, 0.0, 0.0]),
         animation3d.CameraAction(cam, None, [cam.eyeX, cam.eyeY, 60.0, cam.focusX, cam.focusY, cam.focusZ, 0, 1, 0])])
Exemplo n.º 4
0
 def axisView(self, axis):
     animation3d.animate(self, 0.20, [self.rotateAction(axis)])
Exemplo n.º 5
0
 def axisView(self, axis):
     animation3d.animate(self, 0.20, [self.rotateAction(axis)])
Exemplo n.º 6
0
 def axisView(self, axis):
     tmp = self.modelCamera.limitInclination
     self.modelCamera.limitInclination = False
     animation3d.animate(self, 0.20, [self.rotateAction(axis)])
     self.modelCamera.limitInclination = tmp