瀏覽代碼

Remove shadow function warning onBackfaceCullingChanged

The wrong signature was used (double instead of bool)
Julien Finet 14 年之前
父節點
當前提交
023efcc38b

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKSurfaceMaterialPropertyWidgetTest1.cpp

@@ -36,7 +36,7 @@
 int ctkVTKSurfaceMaterialPropertyWidgetTest1(int argc, char * argv [] )
 {
   QApplication app(argc, argv);
-
+ 
   ctkVTKSurfaceMaterialPropertyWidget propertyWidget(0);
   
   if (propertyWidget.isEnabled())
@@ -223,7 +223,7 @@ int ctkVTKSurfaceMaterialPropertyWidgetTest1(int argc, char * argv [] )
 
   propertyWidget.setBackfaceCulling(true);
   
-  if (property->GetBackfaceCulling() != true)
+  if (property->GetBackfaceCulling() != 1)
     {
     std::cerr << "ctkVTKSurfaceMaterialPropertyWidget::setBackfaceCulling() failed: "
               << property->GetBackfaceCulling() << std::endl;

+ 1 - 1
Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp

@@ -198,7 +198,7 @@ void ctkVTKSurfaceMaterialPropertyWidget::onSpecularPowerChanged(double newSpecu
 }
 
 // --------------------------------------------------------------------------
-void ctkVTKSurfaceMaterialPropertyWidget::onBackfaceCullingChanged(double newBackfaceCulling)
+void ctkVTKSurfaceMaterialPropertyWidget::onBackfaceCullingChanged(bool newBackfaceCulling)
 {
   Q_D(ctkVTKSurfaceMaterialPropertyWidget);
   this->Superclass::onBackfaceCullingChanged(newBackfaceCulling);

+ 1 - 1
Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.h

@@ -59,7 +59,7 @@ protected:
   virtual void onDiffuseChanged(double newDiffuse);
   virtual void onSpecularChanged(double newSpecular);
   virtual void onSpecularPowerChanged(double newSpecularPower);
-  virtual void onBackfaceCullingChanged(double newBackfaceCulling);
+  virtual void onBackfaceCullingChanged(bool newBackfaceCulling);
 
 private:
   Q_DECLARE_PRIVATE(ctkVTKSurfaceMaterialPropertyWidget);