def __init__(self, *a, **kw): self.xrot = math.degrees(math.atan(1 / math.sqrt(2))) self.yrot = 45. self.hoverHeight = 1024 super(IsoWorldView, self).__init__(*a, **kw) self.compassNode.yawPitch = self.yrot, 90 - self.xrot self.viewActions.extend( (MoveViewMouseAction(), ZoomWheelAction(), RotateMouseAction()))
def __init__(self, *a, **kw): WorldView.__init__(self, *a, **kw) self.scale = 1. self.compassNode.yawPitch = 180, 0 self.viewActions.extend((MoveViewMouseAction(), )) self.viewActions.extend(ZoomWheelActions()) self.worldScene.minlod = 2
def __init__(self, *a, **kw): axis = kw.pop('axis', 'x') WorldView.__init__(self, *a, **kw) self.axis = axis self.viewportMoved.connect(self.updateMeshPos) self.viewActions.extend(( MoveViewMouseAction(), CutawaySliceWheelAction() ))