Example #1
0
    def __init__(self, camera_name="camera1", default_colortable=None, **kwds):
        super().__init__(**kwds)

        self.frame_viewer = cameraFrameViewer.CameraFrameViewer(
            display_name=self.module_name,
            feed_name=camera_name,
            default_colortable=default_colortable)
        self.params_viewer = paramsViewer.ParamsViewer(
            viewer_name=self.module_name, viewer_ui=cameraParamsDetachedUi)

        self.ui = cameraDetachedUi.Ui_Dialog()
        self.ui.setupUi(self)

        layout = QtWidgets.QGridLayout(self.ui.cameraFrame)
        layout.setContentsMargins(2, 2, 2, 2)
        layout.addWidget(self.frame_viewer)

        layout = QtWidgets.QGridLayout(self.ui.cameraParamsFrame)
        layout.setContentsMargins(2, 2, 2, 2)
        layout.addWidget(self.params_viewer)

        self.frame_viewer.feedChange.connect(self.handleFeedChange)
        self.frame_viewer.guiMessage.connect(self.handleGuiMessage)
        self.frame_viewer.ui.recordButton.clicked.connect(
            self.handleRecordButton)
Example #2
0
    def __init__(self, camera_name = "camera1", default_colortable = None, **kwds):
        super().__init__(**kwds)

        self.frame_viewer = cameraFrameViewer.CameraFrameViewer(display_name = self.module_name,
                                                                feed_name = camera_name,
                                                                default_colortable = default_colortable)

        self.ui = feedViewerUi.Ui_Dialog()
        self.ui.setupUi(self)
        layout = QtWidgets.QGridLayout(self.ui.cameraFrame)
        layout.setContentsMargins(2,2,2,2)
        layout.addWidget(self.frame_viewer)

        self.frame_viewer.feedChange.connect(self.handleFeedChange)
        self.frame_viewer.guiMessage.connect(self.handleGuiMessage)
Example #3
0
    def __init__(self, module_name = "", camera_name = "camera1", default_colortable = None, **kwds):
        super().__init__(**kwds)
        self.module_name = module_name

        self.frame_viewer = cameraFrameViewer.CameraFrameViewer(display_name = self.module_name,
                                                                feed_name = camera_name,
                                                                default_colortable = default_colortable)
        self.params_viewer = paramsViewer.ParamsViewer(viewer_name = self.module_name,
                                                       viewer_ui = cameraParamsUi)

        self.frame_viewer.showRecord(True)

        self.frame_viewer.feedChange.connect(self.handleFeedChange)
        self.frame_viewer.guiMessage.connect(self.handleGuiMessage)
        self.frame_viewer.ui.recordButton.clicked.connect(self.handleRecordButton)