예제 #1
0
    def setUp(self):
        """
        Creates a window attached to FileControl widget.
        """

        # The file to open
        self._filename = Testing.get_chigger_input('mug_blocks_out.e')
        self._widget, self._window = main(size=[600,600])
        self._window.onFileChanged(self._filename)
        self._widget.VariablePlugin.VariableList.setCurrentIndex(2)
        self._widget.VariablePlugin.VariableList.currentIndexChanged.emit(2)
        self._window.onWindowRequiresUpdate()

        camera = vtk.vtkCamera()
        camera.SetViewUp(-0.7786, 0.2277, 0.5847)
        camera.SetPosition(9.2960, -0.4218, 12.6685)
        camera.SetFocalPoint(0.0000, 0.0000, 0.1250)
        self._window.onCameraChanged(camera)
예제 #2
0
    def setUp(self):
        """
        Creates a window attached to FileControl widget.
        """

        # The file to open
        self._filename = Testing.get_chigger_input('mug_blocks_out.e')
        self._widget, self._window = main(size=[600, 600])
        self._window.onFileChanged(self._filename)
        self._widget.VariablePlugin.VariableList.setCurrentIndex(2)
        self._widget.VariablePlugin.VariableList.currentIndexChanged.emit(2)
        self._window.onWindowRequiresUpdate()

        camera = vtk.vtkCamera()
        camera.SetViewUp(-0.7786, 0.2277, 0.5847)
        camera.SetPosition(9.2960, -0.4218, 12.6685)
        camera.SetFocalPoint(0.0000, 0.0000, 0.1250)
        self._window.onCameraChanged(camera)