Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / OBJECT / VISU_GaussPtsDeviceActor.cxx
index bffbfcf5dba2ec5db5c9335ceab21b7a3f6b2b96..6e133494f193e46b1a1c82d78b1f6aeac5ea5138 100644 (file)
@@ -396,28 +396,28 @@ VISU_CursorPyramid
     }
 
   this->SetScale(1.0);
-  vtkFloatingPointType aMRadius = myRadius*myMagnification;
+  double aMRadius = myRadius*myMagnification;
   Init(myHeight,aMRadius*myCursorSize);
 
   if(myClamp > 0.0f){
-    vtkFloatingPointType aPoint1[3] = {0.0, 0.0, 0.0};
+    double aPoint1[3] = {0.0, 0.0, 0.0};
     ren->SetDisplayPoint(aPoint1);
     ren->DisplayToWorld();
     ren->GetWorldPoint(aPoint1);
 
-    vtkFloatingPointType aPoint2[3] = {0.0, myClamp, 0.0};
+    double aPoint2[3] = {0.0, myClamp, 0.0};
     ren->SetDisplayPoint(aPoint2);
     ren->DisplayToWorld();
     ren->GetWorldPoint(aPoint2);
     
-    vtkFloatingPointType aWorldClamp = 
+    double aWorldClamp = 
       (aPoint2[0] - aPoint1[0])*(aPoint2[0] - aPoint1[0]) + 
       (aPoint2[1] - aPoint1[1])*(aPoint2[1] - aPoint1[1]) + 
       (aPoint2[2] - aPoint1[2])*(aPoint2[2] - aPoint1[2]); 
     
     aWorldClamp = sqrt(aWorldClamp);
-    vtkFloatingPointType aMDiameter = 2.0 * aMRadius;
-    vtkFloatingPointType aCoeff = aWorldClamp / aMDiameter;
+    double aMDiameter = 2.0 * aMRadius;
+    double aCoeff = aWorldClamp / aMDiameter;
 
     if(aCoeff < 1.0){
       this->SetScale(aCoeff);
@@ -478,8 +478,8 @@ VISU_CursorPyramid
 //----------------------------------------------------------------------------
 void 
 VISU_CursorPyramid
-::SetPreferences(vtkFloatingPointType theHeight,
-                 vtkFloatingPointType theCursorSize)
+::SetPreferences(double theHeight,
+                 double theCursorSize)
 {
   Init(theHeight, theCursorSize, myRadius, myMagnification, myClamp, GetPosition(), GetProperty()->GetColor());
 }
@@ -487,13 +487,13 @@ VISU_CursorPyramid
 //----------------------------------------------------------------------------
 void
 VISU_CursorPyramid
-::Init(vtkFloatingPointType theHeight,
-       vtkFloatingPointType theCursorSize,
-       vtkFloatingPointType theRadius,
-       vtkFloatingPointType theMagnification,
-       vtkFloatingPointType theClamp,
-       vtkFloatingPointType thePos[3],
-       vtkFloatingPointType theColor[3])
+::Init(double theHeight,
+       double theCursorSize,
+       double theRadius,
+       double theMagnification,
+       double theClamp,
+       double thePos[3],
+       double theColor[3])
 {
   Init(theHeight,theRadius*theMagnification*theCursorSize);
   SetPosition(thePos[0],thePos[1],thePos[2]);
@@ -512,8 +512,8 @@ VISU_CursorPyramid
 
 void
 VISU_CursorPyramid
-::Init(vtkFloatingPointType theHeight,
-       vtkFloatingPointType theRadius)
+::Init(double theHeight,
+       double theRadius)
 {
   for(int i = 0; i < myNbCones; ++i){
     vtkConeSource* aSource = mySources[i].GetPointer();
@@ -523,7 +523,7 @@ VISU_CursorPyramid
     aSource->SetAngle(20.0);
   }
   
-  vtkFloatingPointType aDisplacement = -0.5*theHeight - theRadius;
+  double aDisplacement = -0.5*theHeight - theRadius;
   
   // X
   mySources[0]->SetDirection(1.0, 0.0, 0.0);