QMessageBox::critical(this, tr("Volume Rendering"), tr(e), QMessageBox::Ok);
}
}
+
+void QtVolumeRendererPanel::on_radioButtonMIP_clicked(bool checked)
+{
+ if(checked){
+ this->changeCompositeMIPFunction(1);
+ }
+}
+
+void QtVolumeRendererPanel::on_radioButtonComposite_clicked(bool checked)
+{
+ if(checked){
+ this->changeCompositeMIPFunction(0);
+ }
+}
<rect>
<x>0</x>
<y>0</y>
- <width>147</width>
- <height>107</height>
+ <width>186</width>
+ <height>137</height>
</rect>
</property>
<property name="windowTitle">
</layout>
</item>
<item>
- <layout class="QFormLayout" name="formLayout">
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QRadioButton" name="radioButtonComposite">
+ <property name="text">
+ <string>Composite</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <attribute name="buttonGroup">
+ <string>buttonGroup</string>
+ </attribute>
+ </widget>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="radioButtonMIP">
+ <property name="text">
+ <string>MIP </string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <attribute name="buttonGroup">
+ <string>buttonGroup</string>
+ </attribute>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<y>30</y>
</hint>
<hint type="destinationlabel">
- <x>47</x>
- <y>86</y>
+ <x>57</x>
+ <y>126</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>checkBoxShowVolume</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>radioButtonComposite</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>41</x>
+ <y>23</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>36</x>
+ <y>54</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>checkBoxShowVolume</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>radioButtonMIP</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>69</x>
+ <y>16</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>143</x>
+ <y>46</y>
</hint>
</hints>
</connection>
</connections>
+ <buttongroups>
+ <buttongroup name="buttonGroup">
+ <property name="exclusive">
+ <bool>true</bool>
+ </property>
+ </buttongroup>
+ </buttongroups>
</ui>