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)
def __init__(self, inputs, **kwds): """ inputs=None """ html_logging = True # these are in alphabetical order except for Nastran # this includes the bedge, surf, ugrid line (listed as AFLR in the gui) fmt_order = [ # no results unless specified 'nastran', # results 'abaqus', 'avus', 'bedge', 'surf', 'ugrid', 'ugrid3d', # aflr 'cart3d', # results 'degen_geom', 'fast', 'lawgs', 'obj', 'openfoam_hex', 'openfoam_shell', 'openfoam_faces', # openfoam - results 'panair', # results 'shabp', # results 'stl', 'su2', 'tecplot', # results 'tetgen', 'usm3d', # results 'avl', ] #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 ['pyqt4', 'pyqt5', 'pyside', 'pyside2']: NastranIO.__init__(self) else: raise NotImplementedError('qt_version=%r is not supported' % qt_version) 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.start_logging() self._load_plugins() self.setup_gui() self.setup_post(inputs) self._check_for_latest_version(inputs['no_update'])
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)
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'])
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'])
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 = {}
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', 'degen_geom', 'obj', # openfoam 'openfoam_hex', 'openfoam_shell', 'openfoam_faces', ] #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) BEdge_IO.__init__(self) NastranIO.__init__(self) DegenGeomIO.__init__(self) FastIO.__init__(self) #Plot3d_io.__init__(self) SurfIO.__init__(self) UGRID_IO.__init__(self) AbaqusIO.__init__(self) OpenFoamIO.__init__(self) ObjIO.__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'])
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()