VectorWidget.ui 10.9 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>VectorWidget</class>
 <widget class="QWidget" name="VectorWidget">
5 6 7 8 9 10 11 12
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>325</width>
    <height>201</height>
   </rect>
  </property>
13 14 15
  <property name="windowTitle">
   <string>Property Visualization</string>
  </property>
16 17 18
  <property name="toolTip">
   <string>Vectors are normalized and then transformed to the [0,1] range</string>
  </property>
19
  <layout class="QVBoxLayout" name="verticalLayout_7">
20 21 22 23 24 25 26 27 28 29
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
30 31 32 33 34 35 36 37
    <number>0</number>
   </property>
   <item>
    <widget class="QGroupBox" name="paramVector">
     <property name="title">
      <string>3D Vector Parameters</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
      <item>
       <widget class="QWidget" name="vector_edgeColors_widget" native="true">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="visible">
         <bool>false</bool>
        </property>
        <layout class="QHBoxLayout" name="horizontalLayout_15">
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QDoubleSpinBox" name="vectors_edges_alpha">
           <property name="sizePolicy">
            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="prefix">
            <string>α = </string>
           </property>
           <property name="decimals">
            <number>4</number>
           </property>
           <property name="maximum">
            <double>1.000000000000000</double>
           </property>
           <property name="singleStep">
            <double>0.100000000000000</double>
           </property>
           <property name="value">
            <double>0.400000000000000</double>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QLabel" name="label_4">
           <property name="text">
            <string></string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QDoubleSpinBox" name="vectors_edges_beta">
           <property name="sizePolicy">
            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="prefix">
            <string>β = </string>
           </property>
           <property name="decimals">
            <number>4</number>
           </property>
           <property name="maximum">
            <double>1.000000000000000</double>
           </property>
           <property name="singleStep">
            <double>0.100000000000000</double>
           </property>
           <property name="value">
            <double>0.600000000000000</double>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
116
      <item>
117
       <layout class="QGridLayout" name="gridLayout">
118 119
        <item row="0" column="1">
         <widget class="QRadioButton" name="vectors_colors_rb">
120
          <property name="text">
121
           <string>Encode as RGB</string>
122 123 124 125 126 127
          </property>
          <attribute name="buttonGroup">
           <string notr="true">vector_buttonGroup</string>
          </attribute>
         </widget>
        </item>
128 129
        <item row="1" column="1">
         <widget class="QRadioButton" name="vectors_length_color_rb">
130
          <property name="text">
131
           <string>Length as Color</string>
132 133 134 135 136 137
          </property>
          <attribute name="buttonGroup">
           <string notr="true">vector_buttonGroup</string>
          </attribute>
         </widget>
        </item>
138 139
        <item row="0" column="0">
         <widget class="QRadioButton" name="vectors_strokes_rb">
140
          <property name="text">
141 142 143 144
           <string>Strokes</string>
          </property>
          <property name="checked">
           <bool>true</bool>
145 146 147 148 149 150
          </property>
          <attribute name="buttonGroup">
           <string notr="true">vector_buttonGroup</string>
          </attribute>
         </widget>
        </item>
151 152
        <item row="1" column="0">
         <widget class="QRadioButton" name="vectors_edges_rb">
153
          <property name="text">
154 155
           <string>Color Edges According
 to Angle btw. Vectors</string>
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
          </property>
          <attribute name="buttonGroup">
           <string notr="true">vector_buttonGroup</string>
          </attribute>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QWidget" name="vector_strokes_widget" native="true">
        <layout class="QVBoxLayout" name="verticalLayout_11">
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QCheckBox" name="normalize">
           <property name="text">
            <string>Normalize</string>
           </property>
           <property name="checked">
            <bool>false</bool>
           </property>
          </widget>
         </item>
         <item>
187 188
          <layout class="QGridLayout" name="gridLayout_2">
           <item row="0" column="1">
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
            <widget class="QDoubleSpinBox" name="scaleBox">
             <property name="enabled">
              <bool>false</bool>
             </property>
             <property name="decimals">
              <number>7</number>
             </property>
             <property name="maximum">
              <double>1000.000000000000000</double>
             </property>
             <property name="value">
              <double>0.200000000000000</double>
             </property>
            </widget>
           </item>
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
           <item row="1" column="1">
            <widget class="QDoubleSpinBox" name="lineWidth">
             <property name="minimum">
              <double>0.100000000000000</double>
             </property>
             <property name="maximum">
              <double>50.000000000000000</double>
             </property>
             <property name="value">
              <double>1.000000000000000</double>
             </property>
            </widget>
           </item>
           <item row="0" column="0">
            <widget class="QCheckBox" name="scale">
             <property name="text">
              <string>Scale with factor</string>
             </property>
             <property name="checked">
              <bool>false</bool>
             </property>
            </widget>
           </item>
           <item row="1" column="0">
            <widget class="QLabel" name="lineWidthLabel">
             <property name="text">
              <string>Line width</string>
             </property>
            </widget>
           </item>
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
          </layout>
         </item>
         <item>
          <widget class="QtColorChooserButton" name="lineColor">
           <property name="text">
            <string>Line color: </string>
           </property>
           <property name="color" stdset="0">
            <color>
             <red>198</red>
             <green>0</green>
             <blue>3</blue>
            </color>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
      <item>
254 255 256 257
       <widget class="QCheckBox" name="normalize_colors">
        <property name="enabled">
         <bool>true</bool>
        </property>
258 259 260
        <property name="visible">
         <bool>false</bool>
        </property>
261 262 263 264 265 266
        <property name="toolTip">
         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Vectors are first normalized and then scaled to the [0,1] range&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
        <property name="text">
         <string>Normalize</string>
        </property>
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <spacer name="verticalSpacer_3">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>0</width>
       <height>0</height>
      </size>
     </property>
    </spacer>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>QtColorChooserButton</class>
   <extends>QPushButton</extends>
   <header>ACG/QtWidgets/QtColorChooserButton.hh</header>
  </customwidget>
 </customwidgets>
 <tabstops>
295 296 297 298 299
  <tabstop>vectors_strokes_rb</tabstop>
  <tabstop>vectors_colors_rb</tabstop>
  <tabstop>vectors_edges_rb</tabstop>
  <tabstop>vectors_length_color_rb</tabstop>
  <tabstop>normalize</tabstop>
300 301
  <tabstop>scale</tabstop>
  <tabstop>scaleBox</tabstop>
302 303 304
  <tabstop>lineColor</tabstop>
  <tabstop>vectors_edges_alpha</tabstop>
  <tabstop>vectors_edges_beta</tabstop>
305 306 307 308 309 310 311 312 313 314
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>scale</sender>
   <signal>toggled(bool)</signal>
   <receiver>scaleBox</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
315 316
     <x>172</x>
     <y>142</y>
317 318
    </hint>
    <hint type="destinationlabel">
319 320
     <x>324</x>
     <y>145</y>
321 322 323
    </hint>
   </hints>
  </connection>
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
  <connection>
   <sender>vectors_edges_rb</sender>
   <signal>toggled(bool)</signal>
   <receiver>vector_edgeColors_widget</receiver>
   <slot>setVisible(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>88</x>
     <y>86</y>
    </hint>
    <hint type="destinationlabel">
     <x>65</x>
     <y>209</y>
    </hint>
   </hints>
  </connection>
340 341 342 343 344 345 346
  <connection>
   <sender>vectors_strokes_rb</sender>
   <signal>toggled(bool)</signal>
   <receiver>vector_strokes_widget</receiver>
   <slot>setVisible(bool)</slot>
   <hints>
    <hint type="sourcelabel">
347 348
     <x>122</x>
     <y>45</y>
349 350
    </hint>
    <hint type="destinationlabel">
351 352
     <x>63</x>
     <y>178</y>
353 354 355 356
    </hint>
   </hints>
  </connection>
  <connection>
357
   <sender>vectors_colors_rb</sender>
358
   <signal>toggled(bool)</signal>
359
   <receiver>normalize_colors</receiver>
360 361 362
   <slot>setVisible(bool)</slot>
   <hints>
    <hint type="sourcelabel">
363 364
     <x>249</x>
     <y>71</y>
365 366
    </hint>
    <hint type="destinationlabel">
367 368
     <x>162</x>
     <y>229</y>
369 370 371 372 373 374 375 376
    </hint>
   </hints>
  </connection>
 </connections>
 <buttongroups>
  <buttongroup name="vector_buttonGroup"/>
 </buttongroups>
</ui>