예제 #1
0
 def create_Well_Log_View(self):
     if not hasattr(self, "tab_well_log_view"):
         self.tab_well_log_view = self.create_new_tab(
             "tab_well_log_view", "Well Logs")
         self.tab_well_log_view.view_type = "WellLogView"
         layout = QGridLayout(self.tab_well_log_view)
         self.well_log_view = WellLogView(self.tab_well_log_view)
         layout.addWidget(self.well_log_view)
         self.tabWidget.setCurrentWidget(self.tab_well_log_view)
     else:
         self.statusBar().showMessage('Well Log View already opened.')
예제 #2
0
    def initUI(self):
        # uic.loadUi('pygeopressure_gui/ui/pygeopressure.ui', self)
        self.setWindowIcon(QIcon(':/icon.png'))
        self.setWindowTitle("pyGeoPressure V1.0")

        layout = QGridLayout(self.tab_seis)
        self.mayavi_widget = MayaviQWidget(self.tab_seis)
        layout.addWidget(self.mayavi_widget)

        self.populate_treeWidget()
        self.update_velocity_conversion_panel(0)
        self.show()
예제 #3
0
 def create_Map_View(self):
     "Create a New Tab containing the MapView in the main TabWidget"
     if not hasattr(self, "tab_map_view"):
         self.tab_map_view = self.create_new_tab("tab_map_view", "Map View")
         # add adtional info
         self.tab_map_view.view_type = "MapView"
         layout = QGridLayout(self.tab_map_view)
         self.map_view = MapView(self.tab_map_view)
         layout.addWidget(self.map_view)
         self.init_map_view()
         self.tabWidget.setCurrentWidget(self.tab_new)
         # return the current tab
         # self.tabWidget.currentWidget()
     else:
         self.statusBar().showMessage('Map View already opened.')
예제 #4
0
    def create_Section_View(self):
        if not hasattr(self, "tab_section_view"):
            self.tab_section_view = self.create_new_tab(
                "tab_section_view", "Section View")
            # add adtional info
            self.tab_section_view.view_type = "SectionView"
            layout = QGridLayout(self.tab_section_view)
            self.section_view = SectionView(self.tab_section_view)
            layout.addWidget(self.section_view)
            self.tabWidget.setCurrentWidget(self.tab_section_view)

            file_path = Path(CONF.data_root) / CONF.current_survey / ".survey"
            if file_path.exists():
                survey_set = ppp.SurveySetting(ppp.ThreePoints(str(file_path)))
                inline_SpinBox = \
                    self.section_view.control_widget.inline_SpinBox
                inline_SpinBox.setMaximum(survey_set.endInline)
                inline_SpinBox.setMinimum(survey_set.startInline)
                inline_SpinBox.setSingleStep(survey_set.stepInline)
                inline_SpinBox.setValue(survey_set.startInline)
                crline_SpinBox = \
                    self.section_view.control_widget.crline_SpinBox
                crline_SpinBox.setMaximum(survey_set.endCrline)
                crline_SpinBox.setMinimum(survey_set.startCrline)
                crline_SpinBox.setSingleStep(survey_set.stepCrline)
                crline_SpinBox.setValue(survey_set.stepCrline)
                step_inline_SpinBox = \
                    self.section_view.control_widget.step_inline_SpinBox
                step_inline_SpinBox.setMinimum(survey_set.stepInline)
                step_inline_SpinBox.setMaximum(survey_set.stepInline *
                                               (survey_set.nEast - 1))
                step_inline_SpinBox.setSingleStep(survey_set.stepInline)
                step_crline_SpinBox = \
                    self.section_view.control_widget.step_crline_SpinBox
                step_crline_SpinBox.setMinimum(survey_set.stepCrline)
                step_crline_SpinBox.setMaximum(survey_set.stepCrline *
                                               (survey_set.nEast - 1))
                step_crline_SpinBox.setSingleStep(survey_set.stepCrline)
                # seis_path = Path(CONF.data_root) / \
                #     CONF.current_survey / "Seismics" / ".seismics"
                # self.section_view.load_data_list(seis_path)

                self.section_view.status.connect(self.show_section_view_status)
        else:
            self.statusBar().showMessage('Section View already opened.')