Esempio n. 1
0
    def setUp(self):
        """
        Creates a window attached to BlockControls widget.
        """

        # The file to open
        self._filenames = Testing.get_chigger_input_list('diffusion_1.e', 'diffusion_2.e')
        self._widget, self._window = main(size=[600,600])
        self._widget.FilePlugin.onSetFilenames(self._filenames)
        self._window.onWindowRequiresUpdate()
Esempio n. 2
0
    def setUp(self):
        """
        Creates a window attached to BlockControls widget.
        """

        # The file to open
        self._filenames = Testing.get_chigger_input_list(
            'diffusion_1.e', 'diffusion_2.e')
        self._widget, self._window = main(size=[600, 600])
        self._widget.FilePlugin.onSetFilenames(self._filenames)
        self._window.onWindowRequiresUpdate()
Esempio n. 3
0
    def setUp(self):
        """
        Creates a window attached to BlockControls widget.
        """

        # The file to open
        self._filenames = Testing.get_chigger_input_list('mug_blocks_out.e', 'vector_out.e', 'displace.e')
        self._widget, self._window = main(size=[600,600])
        self._widget.FilePlugin.onSetFilenames(self._filenames)
        self._widget.FilePlugin.VariableList.setCurrentIndex(2)
        self._widget.FilePlugin.VariableList.currentIndexChanged.emit(2)
        self._window.onCameraChanged((-0.7786, 0.2277, 0.5847), (9.2960, -0.4218, 12.6685), (0.0000, 0.0000, 0.1250))
Esempio n. 4
0
    def setUp(self):
        """
        Creates a window attached to BlockControls widget.
        """

        # The file to open
        self._filenames = Testing.get_chigger_input_list(
            'mug_blocks_out.e', 'vector_out.e', 'displace.e')
        self._widget, self._window = main(size=[600, 600])
        self._widget.FilePlugin.onSetFilenames(self._filenames)
        self._widget.FilePlugin.VariableList.setCurrentIndex(2)
        self._widget.FilePlugin.VariableList.currentIndexChanged.emit(2)
        self._window.onCameraChanged((-0.7786, 0.2277, 0.5847),
                                     (9.2960, -0.4218, 12.6685),
                                     (0.0000, 0.0000, 0.1250))
Esempio n. 5
0
    def setUp(self):
        """
        Creates a window attached to BlockControls 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._window.onResultOptionsChanged({'variable': 'diffused'})
        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)
Esempio n. 6
0
    def setUp(self):
        """
        Creates a window attached to BlockControls 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._window.onResultOptionsChanged({'variable':'diffused'})
        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)