git-svn-id: svn://db.shs.com.ru/libs@44 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-11-20 21:19:36 +00:00
parent cabaead1c6
commit 104a7f99ad
48 changed files with 1973 additions and 1273 deletions

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>327</width>
<height>593</height>
<width>470</width>
<height>692</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
@@ -23,79 +23,124 @@
<property name="verticalSpacing">
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<item row="0" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Diffuse</string>
</property>
<layout class="QFormLayout" name="formLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Color:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="ColorButton" name="colorDiffuse">
<property name="useAlphaChannel">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="MaterialMapEditor" name="mapDiffuse" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="ColorButton" name="colorDiffuse">
<property name="useAlphaChannel">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Specular</string>
</property>
<layout class="QFormLayout" name="formLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Color:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="ColorButton" name="colorSpecular">
<property name="useAlphaChannel">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="MaterialMapEditor" name="mapSpecular" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="ColorButton" name="colorSpecular">
<property name="useAlphaChannel">
<bool>true</bool>
<item row="2" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Self illumination</string>
</property>
<layout class="QFormLayout" name="formLayout_5">
<item row="0" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Color:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="ColorButton" name="colorSelfIllum">
<property name="useAlphaChannel">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="MaterialMapEditor" name="mapSelfIllum" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_3">
<item row="4" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>Bump</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="MaterialMapEditor" name="mapBump" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Relief</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="MaterialMapEditor" name="mapRelief" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="6" column="1">
<widget class="QCheckBox" name="checkGlass">
<property name="text">
<string>Light model</string>
<string>Glass</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="comboModel">
<item>
<property name="text">
<string>Phong</string>
</property>
</item>
<item>
<property name="text">
<string>Cook-Torrance</string>
</property>
</item>
<item>
<property name="text">
<string>Minnaert</string>
</property>
</item>
<item>
<property name="text">
<string>Strauss</string>
</property>
</item>
<item>
<property name="text">
<string>Oren-Nayar</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0">
<item row="7" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Shininess</string>
<string>Roughness</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="SpinSlider" name="spinShine">
<item row="7" column="1">
<widget class="SpinSlider" name="spinRoughness">
<property name="maximum">
<double>1.000000000000000</double>
</property>
@@ -110,15 +155,15 @@
</property>
</widget>
</item>
<item row="6" column="0">
<item row="8" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Shine strength</string>
<string>Specular</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="SpinSlider" name="spinShineStrength">
<item row="8" column="1">
<widget class="SpinSlider" name="spinSpecular">
<property name="maximum">
<double>64.000000000000000</double>
</property>
@@ -139,14 +184,14 @@
</property>
</widget>
</item>
<item row="7" column="0">
<item row="9" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Transparency</string>
</property>
</widget>
</item>
<item row="7" column="1">
<item row="9" column="1">
<widget class="SpinSlider" name="spinTransparent">
<property name="maximum">
<double>1.000000000000000</double>
@@ -162,14 +207,14 @@
</property>
</widget>
</item>
<item row="8" column="0">
<item row="10" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Reflectivity</string>
</property>
</widget>
</item>
<item row="8" column="1">
<item row="10" column="1">
<widget class="SpinSlider" name="spinReflect">
<property name="maximum">
<double>1.000000000000000</double>
@@ -185,101 +230,6 @@
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Bump scale</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="SpinSlider" name="spinBump">
<property name="maximum">
<double>4.000000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
<property name="pageStep">
<double>0.100000000000000</double>
</property>
</widget>
</item>
<item row="13" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Diffuse map</string>
</property>
</widget>
</item>
<item row="13" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QLineEdit" name="lineDiffuse"/>
</item>
<item>
<widget class="QToolButton" name="buttonDiffuseClear">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonDiffuseSelect">
<property name="text">
<string>^</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="14" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Bump map</string>
</property>
</widget>
</item>
<item row="14" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QLineEdit" name="lineBump"/>
</item>
<item>
<widget class="QToolButton" name="buttonBumpClear">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonBumpSelect">
<property name="text">
<string>^</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="checkGlass">
<property name="text">
<string>Glass</string>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
@@ -306,29 +256,41 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_12">
<item row="12" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Self-illumination</string>
<string>Dispersion</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="ColorButton" name="colorSelfIllum">
<property name="useAlphaChannel">
<bool>true</bool>
<item row="12" column="1">
<widget class="SpinSlider" name="spinDispersion">
<property name="maximum">
<double>1.000000000000000</double>
</property>
<property name="value">
<double>0.100000000000000</double>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
<property name="pageStep">
<double>0.100000000000000</double>
</property>
</widget>
</item>
<item row="16" column="0">
<item row="13" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Reflection map</string>
</property>
</widget>
</item>
<item row="16" column="1">
<widget class="QFrame" name="frame">
<item row="13" column="1">
<widget class="QFrame" name="frameReflection">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
@@ -532,87 +494,16 @@
</layout>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Dispersion</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="SpinSlider" name="spinDispersion">
<property name="maximum">
<double>1.000000000000000</double>
</property>
<property name="value">
<double>0.100000000000000</double>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
<property name="pageStep">
<double>0.100000000000000</double>
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Relief map</string>
</property>
</widget>
</item>
<item row="15" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QLineEdit" name="lineRelief"/>
</item>
<item>
<widget class="QToolButton" name="buttonReliefClear">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonReliefSelect">
<property name="text">
<string>^</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_17">
<property name="text">
<string>Relief scale</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="SpinSlider" name="spinRelief">
<property name="maximum">
<double>4.000000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
<property name="decimals">
<number>2</number>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
<property name="pageStep">
<double>0.100000000000000</double>
<item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>Roughness</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="MaterialMapEditor" name="mapRoughness" native="true"/>
</item>
</layout>
</widget>
</item>
</layout>
@@ -628,6 +519,15 @@
<extends>QPushButton</extends>
<header>colorbutton.h</header>
</customwidget>
<customwidget>
<class>MaterialMapEditor</class>
<extends>QWidget</extends>
<header>material_map_editor.h</header>
<container>1</container>
<slots>
<signal>changed()</signal>
</slots>
</customwidget>
</customwidgets>
<resources/>
<connections>
@@ -638,8 +538,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>272</x>
<y>17</y>
<x>326</x>
<y>49</y>
</hint>
<hint type="destinationlabel">
<x>282</x>
@@ -654,8 +554,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>271</x>
<y>39</y>
<x>325</x>
<y>128</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
@@ -664,30 +564,14 @@
</hints>
</connection>
<connection>
<sender>comboModel</sender>
<signal>currentIndexChanged(int)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>98</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
<y>70</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinShine</sender>
<sender>spinRoughness</sender>
<signal>valueChanged(double)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>127</y>
<x>443</x>
<y>404</y>
</hint>
<hint type="destinationlabel">
<x>280</x>
@@ -696,14 +580,14 @@
</hints>
</connection>
<connection>
<sender>spinShineStrength</sender>
<sender>spinSpecular</sender>
<signal>valueChanged(double)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>153</y>
<x>443</x>
<y>426</y>
</hint>
<hint type="destinationlabel">
<x>283</x>
@@ -718,8 +602,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>179</y>
<x>443</x>
<y>448</y>
</hint>
<hint type="destinationlabel">
<x>283</x>
@@ -734,8 +618,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>204</y>
<x>443</x>
<y>470</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
@@ -743,54 +627,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>spinBump</sender>
<signal>valueChanged(double)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>230</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
<y>202</y>
</hint>
</hints>
</connection>
<connection>
<sender>lineDiffuse</sender>
<signal>textChanged(QString)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>264</x>
<y>349</y>
</hint>
<hint type="destinationlabel">
<x>99</x>
<y>211</y>
</hint>
</hints>
</connection>
<connection>
<sender>lineBump</sender>
<signal>textChanged(QString)</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>264</x>
<y>376</y>
</hint>
<hint type="destinationlabel">
<x>98</x>
<y>245</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinIOF</sender>
<signal>valueChanged(double)</signal>
@@ -798,8 +634,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>291</y>
<x>443</x>
<y>492</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
@@ -814,8 +650,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>279</x>
<y>121</y>
<x>443</x>
<y>382</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
@@ -830,8 +666,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>322</x>
<y>63</y>
<x>376</x>
<y>202</y>
</hint>
<hint type="destinationlabel">
<x>326</x>
@@ -846,8 +682,8 @@
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>313</x>
<y>313</y>
<x>460</x>
<y>514</y>
</hint>
<hint type="destinationlabel">
<x>326</x>
@@ -856,34 +692,98 @@
</hints>
</connection>
<connection>
<sender>lineRelief</sender>
<signal>textChanged(QString)</signal>
<sender>mapDiffuse</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>123</x>
<y>391</y>
<x>445</x>
<y>63</y>
</hint>
<hint type="destinationlabel">
<x>17</x>
<y>364</y>
<x>469</x>
<y>63</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinRelief</sender>
<signal>valueChanged(double)</signal>
<sender>mapSpecular</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>317</x>
<y>260</y>
<x>443</x>
<y>143</y>
</hint>
<hint type="destinationlabel">
<x>327</x>
<y>261</y>
<x>467</x>
<y>143</y>
</hint>
</hints>
</connection>
<connection>
<sender>mapSelfIllum</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>447</x>
<y>216</y>
</hint>
<hint type="destinationlabel">
<x>468</x>
<y>216</y>
</hint>
</hints>
</connection>
<connection>
<sender>mapBump</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>450</x>
<y>308</y>
</hint>
<hint type="destinationlabel">
<x>469</x>
<y>260</y>
</hint>
</hints>
</connection>
<connection>
<sender>mapRelief</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>450</x>
<y>353</y>
</hint>
<hint type="destinationlabel">
<x>469</x>
<y>304</y>
</hint>
</hints>
</connection>
<connection>
<sender>mapRoughness</sender>
<signal>changed()</signal>
<receiver>MaterialEditor</receiver>
<slot>materialChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>442</x>
<y>257</y>
</hint>
<hint type="destinationlabel">
<x>474</x>
<y>250</y>
</hint>
</hints>
</connection>