Ver código fonte

Use better default values for ctkMaterialPropertyWidget

Julien Finet 14 anos atrás
pai
commit
e97fd0b1c5

+ 3 - 25
Libs/Widgets/Resources/UI/ctkMaterialPropertyWidget.ui

@@ -49,6 +49,9 @@
      <property name="maximum">
       <double>1.000000000000000</double>
      </property>
+     <property name="value">
+      <double>1.000000000000000</double>
+     </property>
     </widget>
    </item>
    <item row="4" column="0">
@@ -109,31 +112,6 @@
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
-     <property name="ambient">
-      <double>0.000000000000000</double>
-     </property>
-     <property name="diffuse">
-      <double>0.000000000000000</double>
-     </property>
-     <property name="specular">
-      <double>0.000000000000000</double>
-     </property>
-     <property name="specularPower">
-      <double>1.000000000000000</double>
-     </property>
-     <property name="color">
-      <color alpha="0">
-       <red>255</red>
-       <green>255</green>
-       <blue>255</blue>
-      </color>
-     </property>
-     <property name="opacity">
-      <double>1.000000000000000</double>
-     </property>
-     <property name="gridOpacity">
-      <double>0.600000000000000</double>
-     </property>
     </widget>
    </item>
    <item row="8" column="3">

+ 4 - 4
Libs/Widgets/ctkMaterialPropertyPreviewLabel.cpp

@@ -58,10 +58,10 @@ ctkMaterialPropertyPreviewLabelPrivate::ctkMaterialPropertyPreviewLabelPrivate(c
 {
   this->Color = Qt::white;
   this->Opacity = 1.;
-  this->Ambient = 0.5;
-  this->Diffuse = 0.5;
-  this->Specular = 0.5;
-  this->SpecularPower = 50;
+  this->Ambient = 0.0;
+  this->Diffuse = 1.0;
+  this->Specular = 0.0;
+  this->SpecularPower = 1;
   
   this->GridOpacity = 0.6;
 }