utils.gui.pyqt.main_window.MainWindow.MainWindow
- class utils.gui.pyqt.main_window.MainWindow.MainWindow(parent=None)
Bases:
QMainWindow,Ui_MainWindowMain window of the application, it contains all the UI elements
Methods
acceptDropsaccessibleDescriptionaccessibleNameactionEventactionsactivateWindowaddActionaddActionsaddDockWidgetaddToolBaraddToolBarBreakadjustSizeautoFillBackgroundbackgroundRolebaseSizeblockSignalscentralWidgetchangeEventCheck if the input file is valid by checking:
Check if the output folder is valid by cheking if it exists.
childAtchildEventchildrenchildrenRectchildrenRegionclearFocusclearMaskClear the graphs
clear_slotclosecloseEventcolorCountconnectNotifycontentsMarginscontentsRectcontextMenuEventcontextMenuPolicycornercreatecreatePopupMenucreateWindowContainercursorcustomEventdeleteLaterdepthdestroydevTypedevicePixelRatiodevicePixelRatioFdevicePixelRatioFScaledisconnectdisconnectNotifydockOptionsdockWidgetAreadocumentModedragEnterEventdragLeaveEventdragMoveEventdropEventdumpObjectInfodumpObjectTreedynamicPropertyNameseffectiveWinIdensurePolishedenterEventeventeventFilterExport the advanced data to a file
findfindChildfindChildrenFinish the analyse
focusInEventfocusNextChildfocusNextPrevChildfocusOutEventfocusPolicyfocusPreviousChildfocusProxyfocusWidgetfontfontInfofontMetricsforegroundRoleframeGeometryframeSizegeometrygetContentsMarginsgrabgrabGesturegrabKeyboardgrabMousegrabShortcutUpdate the number of graphs
graphicsEffectgraphicsProxyWidgethasFocushasHeightForWidthhasMouseTrackinghasTabletTrackingheightheightForWidthheightMMhidehideEventiconSizeinheritsinitPainterinputMethodEventinputMethodHintsinputMethodQueryinsertActioninsertActionsinsertToolBarinsertToolBarBreakinstallEventFilterisActiveWindowisAncestorOfisAnimatedisDockNestingEnabledisEnabledisEnabledToisFullScreenisHiddenisLeftToRightisMaximizedisMinimizedisModalisRightToLeftisSeparatorisSignalConnectedisVisibleisVisibleToisWidgetTypeisWindowisWindowModifiedisWindowTypekeyPressEventkeyReleaseEventkeyboardGrabberkillTimerlayer_changedlayoutlayoutDirectionleaveEventlocalelogicalDpiXlogicalDpiYlowermapFrommapFromGlobalmapFromParentmapTomapToGlobalmapToParentmaskmaximumHeightmaximumSizemaximumWidthmenuBarmenuWidgetmetaObjectmetricminimumHeightminimumSizeminimumSizeHintminimumWidthmouseDoubleClickEventmouseGrabbermouseMoveEventmousePressEventmouseReleaseEventmovemoveEventmoveToThreadnativeEventnativeParentWidgetnextInFocusChainnormalGeometryobjectNameoverrideWindowFlagsoverrideWindowStatepaintEnginepaintEventpaintingActivepaletteparentparentWidgetphysicalDpiXphysicalDpiYpospreviousInFocusChainStart the analyse, create the thread and connect the signals.
Start the analyse, create the thread and connect the signals.
Start the analyse, create the thread and connect the signals.
propertypyqtConfigureEach keyword argument is either the name of a Qt property or a Qt signal.
raise_receiversrectStart the analyse, create the thread and connect the signals.
releaseKeyboardreleaseMousereleaseShortcutremoveActionremoveDockWidgetremoveEventFilterremoveToolBarremoveToolBarBreakrenderRender the graphs
repaintresizeresizeDocksresizeEventrestoreDockWidgetrestoreGeometryrestoreStateretranslateUisaveGeometrysaveStateSave the model to a file
screenscrollOpen a file dialog to select the input file, if the folder_path is empty, it fills it with the files folder.
Open a file dialog to select the output folder
sendersenderSignalIndexsetAcceptDropssetAccessibleDescriptionsetAccessibleNamesetAnimatedsetAttributesetAutoFillBackgroundsetBackgroundRolesetBaseSizesetCentralWidgetsetContentsMarginssetContextMenuPolicysetCornersetCursorsetDisabledsetDockNestingEnabledsetDockOptionssetDocumentModesetEnabledsetFixedHeightsetFixedSizesetFixedWidthsetFocussetFocusPolicysetFocusProxysetFontsetForegroundRolesetGeometrysetGraphicsEffectsetHiddensetIconSizesetInputMethodHintssetLayoutsetLayoutDirectionsetLocalesetMasksetMaximumHeightsetMaximumSizesetMaximumWidthsetMenuBarsetMenuWidgetsetMinimumHeightsetMinimumSizesetMinimumWidthsetMouseTrackingsetObjectNamesetPalettesetParentsetPropertysetShortcutAutoRepeatsetShortcutEnabledsetSizeIncrementsetSizePolicysetStatusBarsetStatusTipsetStylesetStyleSheetsetTabOrdersetTabPositionsetTabShapesetTabletTrackingsetToolButtonStylesetToolTipsetToolTipDurationsetUnifiedTitleAndToolBarOnMacsetUpdatesEnabledsetVisiblesetWhatsThissetWindowFilePathsetWindowFlagsetWindowFlagssetWindowIconsetWindowIconTextsetWindowModalitysetWindowModifiedsetWindowOpacitysetWindowRolesetWindowStatesetWindowTitlePersists the calculated raw data and show the values
Persists the calculated discrete data
Persists the pre-processed obj
Persists the calculated raw data
Set the status of the analyse
setupUisharedPaintershowshowEventshowFullScreenshowMaximizedshowMinimizedshowNormalShow the about window
Show the settings window
signalsBlockedsizesizeHintsizeIncrementsizePolicysplitDockWidgetstackUnderstartTimerStart the analyse, create the thread and connect the signals.
statusBarstatusTipstylestyleSheettabPositiontabShapetabifiedDockWidgetstabifyDockWidgettabletEventtakeCentralWidgettestAttributethreadtimerEventShow or hide the graphs
toolBarAreatoolBarBreaktoolButtonStyletoolTiptoolTipDurationtrunderMouseungrabGestureunifiedTitleAndToolBarOnMacunsetCursorunsetLayoutDirectionunsetLocaleupdateupdateGeometryupdateMicroFocusUpdate the progress bar
updatesEnabledvisibleRegionwhatsThiswheelEventwidthwidthMMwinIdwindowwindowFilePathwindowFlagswindowHandlewindowIconwindowIconTextwindowModalitywindowOpacitywindowRolewindowStatewindowTitlewindowTypexyAttributes
AllowNestedDocksAllowTabbedDocksAnimatedDocksDrawChildrenDrawWindowBackgroundForceTabbedDocksGroupedDraggingIgnoreMaskPdmDepthPdmDevicePixelRatioPdmDevicePixelRatioScaledPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMVerticalTabscustomContextMenuRequestedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
destroyedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
iconSizeChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObjecttabifiedDockWidgetActivatedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
toolButtonStyleChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowIconChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowIconTextChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowTitleChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- check_input_file()
- Check if the input file is valid by checking:
if it exists
if its extension is .obj
- check_output_folder()
Check if the output folder is valid by cheking if it exists.
- clear_graphs()
Clear the graphs
- export_advanced_data()
Export the advanced data to a file
- finish_analyse()
Finish the analyse
- graph_type_changed()
Update the number of graphs
- process_advanced_data(discrete_data: dict, refresh: bool = False)
Start the analyse, create the thread and connect the signals.
- process_discrete_data(obj: ScannedObject)
Start the analyse, create the thread and connect the signals.
- process_raw_data(obj: ScannedObject)
Start the analyse, create the thread and connect the signals.
- refresh_advanced_data()
Start the analyse, create the thread and connect the signals.
- renderDiscreteGraphs(obj: ScannedObject, raw_data: dict, discrete_data: dict)
- renderGraphs(obj: ScannedObject, raw_data: dict, discrete_data: dict)
Render the graphs
- Parameters:
obj – The scanned object
raw_data – The raw data
discrete_data – The discrete data
- save_model()
Save the model to a file
- select_file()
Open a file dialog to select the input file, if the folder_path is empty, it fills it with the files folder.
- select_folder()
Open a file dialog to select the output folder
- set_advanced_data(advanced_data: dict)
Persists the calculated raw data and show the values
- set_discrete_data(discrete_data: dict)
Persists the calculated discrete data
- set_obj(obj: ScannedObject)
Persists the pre-processed obj
- set_raw_data(raw_data: dict)
Persists the calculated raw data
- set_status(status: str)
Set the status of the analyse
- show_about()
Show the about window
- show_settings()
Show the settings window
- start_preprocess()
Start the analyse, create the thread and connect the signals.
- toggle_graphs()
Show or hide the graphs
- update_progress_bar(value)
Update the progress bar