Skip to content

Commit

Permalink
Merge branch 'VoxelVtu' into 'master'
Browse files Browse the repository at this point in the history
[DataExplorer] Include Vtu2Grid

See merge request ogs/ogs!4651
  • Loading branch information
endJunction committed Jul 17, 2023
2 parents a22713b + a7cc8ac commit 26e7598
Show file tree
Hide file tree
Showing 9 changed files with 545 additions and 22 deletions.
2 changes: 2 additions & 0 deletions Applications/DataExplorer/DataView/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ set(SOURCES
StationTreeView.cpp
SurfaceExtractionDialog.cpp
TranslateDataDialog.cpp
Vtu2GridDialog.cpp
)

set(HEADERS
Expand Down Expand Up @@ -98,6 +99,7 @@ set(HEADERS
StationTreeModel.h
StationTreeView.h
SurfaceExtractionDialog.h
Vtu2GridDialog.h
)

# Visual Studio folder
Expand Down
204 changes: 204 additions & 0 deletions Applications/DataExplorer/DataView/Vtu2Grid.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Vtu2Grid</class>
<widget class="QDialog" name="Vtu2Grid">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>253</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>30</x>
<y>200</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QComboBox" name="meshListBox">
<property name="geometry">
<rect>
<x>100</x>
<y>30</y>
<width>274</width>
<height>28</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QLabel" name="meshListLabel">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>110</width>
<height>28</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>110</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string> Select mesh:</string>
</property>
</widget>
<widget class="QGroupBox" name="VoxelSizeBox">
<property name="geometry">
<rect>
<x>70</x>
<y>90</y>
<width>281</width>
<height>69</height>
</rect>
</property>
<property name="title">
<string>Voxel size</string>
</property>
<widget class="QLabel" name="xLengthLabel">
<property name="geometry">
<rect>
<x>12</x>
<y>32</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>x:</string>
</property>
</widget>
<widget class="QLineEdit" name="xlineEdit">
<property name="geometry">
<rect>
<x>31</x>
<y>32</y>
<width>51</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="yLengthLabel">
<property name="geometry">
<rect>
<x>100</x>
<y>32</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>y:</string>
</property>
</widget>
<widget class="QLineEdit" name="ylineEdit">
<property name="geometry">
<rect>
<x>120</x>
<y>32</y>
<width>51</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="zLengthLabel">
<property name="geometry">
<rect>
<x>190</x>
<y>32</y>
<width>16</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>z:</string>
</property>
</widget>
<widget class="QLineEdit" name="zlineEdit">
<property name="geometry">
<rect>
<x>210</x>
<y>32</y>
<width>51</width>
<height>25</height>
</rect>
</property>
</widget>
</widget>
<widget class="QLabel" name="expectedVoxelLabel">
<property name="geometry">
<rect>
<x>40</x>
<y>170</y>
<width>291</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Expected Voxel: </string>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Vtu2Grid</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Vtu2Grid</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
Loading

0 comments on commit 26e7598

Please sign in to comment.