Esempio n. 1
0
    def __init__(self, inputs):
        html_logging = True
        GuiCommon2.__init__(self, html_logging, inputs)

        NastranIO.__init__(self)
        Cart3dIO.__init__(self)
        PanairIO.__init__(self)
        ShabpIO.__init__(self)
        LaWGS_IO.__init__(self)
        STL_IO.__init__(self)
        TetgenIO.__init__(self)
        Usm3dIO.__init__(self)
        Plot3d_io.__init__(self)

        fmt_order = [
            'nastran', 'cart3d', 'panair', 'shabp', 'usm3d',  # results
            'lawgs', 'tetgen', 'stl',  #'plot3d',  # no results
        ]
        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.set_logo(logo)
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 2
0
    def __init__(self, inputs, **kwds):
        """
        inputs=None
        """
        html_logging = True
        fmt_order = [
            # results
            'cart3d',

            # no results
            'stl',
        ]
        kwds['inputs'] = inputs
        kwds['fmt_order'] = fmt_order
        kwds['html_logging'] = html_logging
        super(MainWindow, self).__init__(**kwds)
        #fmt_order=fmt_order, inputs=inputs,
        #html_logging=html_logging,

        if qt_version in [4, 5]:
            Cart3dIO.__init__(self)
            STL_IO.__init__(self)

        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.logo = logo
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 3
0
    def __init__(self, inputs):
        html_logging = True
        GuiCommon2.__init__(self, html_logging, inputs)

        NastranIO.__init__(self)
        Cart3dIO.__init__(self)
        PanairIO.__init__(self)
        ShabpIO.__init__(self)
        LaWGS_IO.__init__(self)
        STL_IO.__init__(self)
        TetgenIO.__init__(self)
        Usm3dIO.__init__(self)
        Plot3d_io.__init__(self)
        ADB_IO.__init__(self)
        FastIO.__init__(self)

        fmt_order = [
            'nastran', 'cart3d', 'panair', 'shabp', 'usm3d', 'openvsp', # results
            'lawgs', 'tetgen', 'stl', 'fast', #'plot3d',  # no results
        ]
        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.set_logo(logo)
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 4
0
    def __init__(self, inputs, **kwds):
        """
        inputs=None
        """
        html_logging = True
        fmt_order = [
            # results
            'nastran', 'cart3d', 'panair', 'shabp', 'usm3d',
            'tecplot', 'surf', 'ugrid',

            # no results
            'lawgs', 'stl', 'fast',
            'bedge', 'su2', 'tetgen', 'avus', 'abaqus',
        ]
        #GuiCommon2.__init__(self, fmt_order, html_logging, inputs, parent)
        kwds['inputs'] = inputs
        kwds['fmt_order'] = fmt_order
        kwds['html_logging'] = html_logging
        super(MainWindow, self).__init__(**kwds)
        #fmt_order=fmt_order, inputs=inputs,
        #html_logging=html_logging,

        if qt_version in [4, 5]:
            ADB_IO.__init__(self)
            AvusIO.__init__(self)
            BEdge_IO.__init__(self)
            NastranIO.__init__(self)
            Cart3dIO.__init__(self)
            DegenGeomIO.__init__(self)
            FastIO.__init__(self)
            LaWGS_IO.__init__(self)
            PanairIO.__init__(self)
            #Plot3d_io.__init__(self)
            STL_IO.__init__(self)
            ShabpIO.__init__(self)
            SurfIO.__init__(self)
            TetgenIO.__init__(self)
            TecplotIO.__init__(self)
            Usm3dIO.__init__(self)
            UGRID_IO.__init__(self)
            AbaqusIO.__init__(self)
            SU2_IO.__init__(self)

        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.logo = logo
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
        self._check_for_latest_version(inputs['no_update'])
Esempio n. 5
0
    def __init__(self, inputs, **kwds):
        """
        inputs=None
        """
        html_logging = True
        fmt_order = [
            # results
            'nastran', 'cart3d', 'panair', 'shabp', 'usm3d', #'openvsp',
            'degen_geom', 'tecplot',
            'surf', 'ugrid',

            # no results
            'lawgs', 'stl', 'fast', 'avus', 'abaqus', #'plot3d', 'tetgen',
            'bedge',
        ]
        #GuiCommon2.__init__(self, fmt_order, html_logging, inputs, parent)
        kwds['inputs'] = inputs
        kwds['fmt_order'] = fmt_order
        kwds['html_logging'] = html_logging
        super(MainWindow, self).__init__(**kwds)
        #fmt_order=fmt_order, inputs=inputs,
        #html_logging=html_logging,

        if qt_version in [4, 5]:
            ADB_IO.__init__(self)
            AvusIO.__init__(self)
            BEdge_IO.__init__(self)
            NastranIO.__init__(self)
            Cart3dIO.__init__(self)
            DegenGeomIO.__init__(self)
            FastIO.__init__(self)
            LaWGS_IO.__init__(self)
            PanairIO.__init__(self)
            Plot3d_io.__init__(self)
            STL_IO.__init__(self)
            ShabpIO.__init__(self)
            SurfIO.__init__(self)
            TetgenIO.__init__(self)
            TecplotIO.__init__(self)
            Usm3dIO.__init__(self)
            UGRID_IO.__init__(self)
            AbaqusIO.__init__(self)

        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.logo = logo
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
        self._check_for_latest_version(inputs['no_update'])
Esempio n. 6
0
    def __init__(self, *args, **kwargs):

        self.grid = vtk.vtkUnstructuredGrid()
        #gridResult = vtk.vtkFloatArray()
        #self.emptyResult = vtk.vtkFloatArray()
        #self.vectorResult = vtk.vtkFloatArray()
        self.grid2 = vtk.vtkUnstructuredGrid()

        # edges
        self.edgeActor = vtk.vtkActor()
        self.edgeMapper = vtk.vtkPolyDataMapper()

        self.is_edges = kwargs['is_edges']
        self.is_nodal = kwargs['is_nodal']
        self.is_centroidal = kwargs['is_centroidal']
        self.magnify = kwargs['magnify']
        self.debug = True

        gui_parent = kwargs['gui_parent']
        if 'log' in kwargs:
            self.log = kwargs['log']
            del kwargs['log']
        del kwargs['gui_parent']
        del kwargs['is_edges']
        del kwargs['is_nodal']
        del kwargs['is_centroidal']
        del kwargs['magnify']
        #del kwargs['rotation']
        wx.Panel.__init__(self, *args, **kwargs)
        NastranIO.__init__(self)
        Cart3dIO.__init__(self)
        LaWGS_IO.__init__(self)
        PanairIO.__init__(self)
        STL_IO.__init__(self)
        TetgenIO.__init__(self)
        Usm3dIO.__init__(self)


        self.nCases = 0

        #print("is_edges = %r" % self.is_edges)
        self.widget = pyWidget(self, -1)

        window = self.widget.GetRenderWindow()
        self.iren = vtk.vtkRenderWindowInteractor()

        if platform.system == 'Windows':
            self.iren.SetRenderWindow(window)

        self.iText = 0
        self.textActors = {}
Esempio n. 7
0
    def __init__(self, *args, **kwargs):

        self.grid = vtk.vtkUnstructuredGrid()
        #gridResult = vtk.vtkFloatArray()
        #self.emptyResult = vtk.vtkFloatArray()
        #self.vectorResult = vtk.vtkFloatArray()
        self.grid2 = vtk.vtkUnstructuredGrid()

        # edges
        self.edgeActor = vtk.vtkActor()
        self.edgeMapper = vtk.vtkPolyDataMapper()

        self.is_edges = kwargs['is_edges']
        self.is_nodal = kwargs['is_nodal']
        self.is_centroidal = kwargs['is_centroidal']
        self.magnify = kwargs['magnify']
        self.debug = True

        gui_parent = kwargs['gui_parent']
        if 'log' in kwargs:
            self.log = kwargs['log']
            del kwargs['log']
        del kwargs['gui_parent']
        del kwargs['is_edges']
        del kwargs['is_nodal']
        del kwargs['is_centroidal']
        del kwargs['magnify']
        #del kwargs['rotation']
        wx.Panel.__init__(self, *args, **kwargs)
        NastranIO.__init__(self)
        Cart3dIO.__init__(self)
        LaWGS_IO.__init__(self)
        PanairIO.__init__(self)
        STL_IO.__init__(self)
        TetgenIO.__init__(self)
        Usm3dIO.__init__(self)

        self.nCases = 0

        #print("is_edges = %r" % self.is_edges)
        self.widget = pyWidget(self, -1)

        window = self.widget.GetRenderWindow()
        self.iren = vtk.vtkRenderWindowInteractor()

        if platform.system == 'Windows':
            self.iren.SetRenderWindow(window)

        self.iText = 0
        self.textActors = {}
Esempio n. 8
0
    def __init__(self, inputs):
        html_logging = True
        GuiCommon2.__init__(self, html_logging, inputs)
        Cart3dIO.__init__(self)
        self.base_window_title = "pyCart3d v%s"  % pyNastran.__version__

        fmt_order = ['cart3d']
        self.build_fmts(fmt_order, stop_on_failure=True)
        logo = os.path.join(icon_path, 'logo.png')
        self.set_logo(logo)
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 9
0
    def __init__(self, inputs):
        html_logging = True
        GuiCommon2.__init__(self, html_logging, inputs)
        Cart3dIO.__init__(self)
        self.base_window_title = "pyCart3d v%s"  % pyNastran.__version__

        fmt_order = ['cart3d']
        self.build_fmts(fmt_order, stop_on_failure=True)
        logo = os.path.join(icon_path, 'logo.png')
        self.set_logo(logo)
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 10
0
    def __init__(self, inputs, **kwds):
        html_logging = True
        fmt_order = ['cart3d']

        kwds['inputs'] = inputs
        kwds['fmt_order'] = fmt_order
        kwds['html_logging'] = html_logging
        super(MainWindow, self).__init__(**kwds)
        Cart3dIO.__init__(self)
        self.base_window_title = "pyCart3d v%s"  % pyNastran.__version__

        self.build_fmts(fmt_order, stop_on_failure=True)
        logo = os.path.join(icon_path, 'logo.png')
        self.logo = logo
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 11
0
    def __init__(self, inputs, **kwds):
        html_logging = True
        fmt_order = ['cart3d']

        kwds['inputs'] = inputs
        kwds['fmt_order'] = fmt_order
        kwds['html_logging'] = html_logging
        super(MainWindow, self).__init__(**kwds)
        Cart3dIO.__init__(self)
        self.base_window_title = "pyCart3d v%s" % pyNastran.__version__

        self.build_fmts(fmt_order, stop_on_failure=True)
        logo = os.path.join(icon_path, 'logo.png')
        self.logo = logo
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
Esempio n. 12
0
    def __init__(self, inputs):
        html_logging = True
        fmt_order = [
            # results
            'nastran', 'cart3d', 'panair', 'shabp', 'usm3d', 'openvsp', 'degen_geom', 'tecplot',
            'surf', 'ugrid',

            # no results
            'lawgs', 'stl', 'fast', 'avus', #'plot3d', 'tetgen',
        ]
        GuiCommon2.__init__(self, fmt_order, html_logging, inputs)

        ADB_IO.__init__(self)
        AvusIO.__init__(self)
        NastranIO.__init__(self)
        Cart3dIO.__init__(self)
        DegenGeomIO.__init__(self)
        FastIO.__init__(self)
        LaWGS_IO.__init__(self)
        PanairIO.__init__(self)
        Plot3d_io.__init__(self)
        STL_IO.__init__(self)
        ShabpIO.__init__(self)
        SurfIO.__init__(self)
        TetgenIO.__init__(self)
        TecplotIO.__init__(self)
        Usm3dIO.__init__(self)
        UGRID_IO.__init__(self)

        self.build_fmts(fmt_order, stop_on_failure=False)

        logo = os.path.join(icon_path, 'logo.png')
        self.set_logo(logo)
        self.set_script_path(script_path)
        self.set_icon_path(icon_path)

        self.setup_gui()
        self.setup_post(inputs)
        self._check_for_latest_version()