Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/visu.git] / src / PIPELINE / VISU_WidgetCtrl.cxx
index bb62dc630599e5adac54175b432c2d9188a5be50..3e970a52153e5ca9e2f543b7b29ea8ad6d951b7d 100644 (file)
@@ -268,7 +268,7 @@ VISU_SphereWidget* VISU_WidgetCtrl::GetSphereWidget()
 // function: PlaceWidget
 // purpose :
 //==================================================================
-void VISU_WidgetCtrl::PlaceWidget(float theBounds[6])
+void VISU_WidgetCtrl::PlaceWidget(vtkFloatingPointType theBounds[6])
 {
   for (int i=0; i<myNbWidgets; ++i) { 
     myWidgets[i]->PlaceWidget(theBounds);
@@ -298,7 +298,7 @@ vtkRenderWindowInteractor* VISU_WidgetCtrl::GetInteractor()
 // function: SetPlaceFactor
 // purpose :
 //==================================================================
-void VISU_WidgetCtrl::SetPlaceFactor(float theFactor)
+void VISU_WidgetCtrl::SetPlaceFactor(vtkFloatingPointType theFactor)
 {
   for (int i=0; i<myNbWidgets; ++i) {
     myWidgets[i]->SetPlaceFactor(theFactor);
@@ -310,7 +310,7 @@ void VISU_WidgetCtrl::SetPlaceFactor(float theFactor)
 // function: GetPlaceFactor
 // purpose :
 //==================================================================
-float VISU_WidgetCtrl::GetPlaceFactor()
+vtkFloatingPointType VISU_WidgetCtrl::GetPlaceFactor()
 {
   return myWidgets[0]->GetPlaceFactor();
 }
@@ -324,9 +324,9 @@ vtkImplicitFunction* VISU_WidgetCtrl::ImplicitFunction()
 }
 
 //==================================================================
-float  
+vtkFloatingPointType   
 VISU_WidgetCtrl
-::EvaluateFunction(float theX[3])
+::EvaluateFunction(vtkFloatingPointType theX[3])
 {
   if(VISU_ImplicitFunctionWidget* aWidget = GetActiveWidget()){
     if(vtkImplicitFunction* aFunction = aWidget->ImplicitFunction())
@@ -338,7 +338,8 @@ VISU_WidgetCtrl
 //==================================================================
 void   
 VISU_WidgetCtrl
-::EvaluateGradient(float theX[3], float theG[3])
+::EvaluateGradient(vtkFloatingPointType theX[3], 
+                  vtkFloatingPointType theG[3])
 {
   theG[0] = theG[1] = theG[2] = 0.0;
   if(VISU_ImplicitFunctionWidget* aWidget = GetActiveWidget()){