Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / PIPELINE / VISU_PipeLine.cxx
index 9f328f2ed00b22635270c0c49bb6bcdc51940444..84aa9aa94735b4de402c894ee0b1c26b43be16f4 100644 (file)
@@ -183,7 +183,7 @@ bool
 VISU_PipeLine
 ::IsPlanarInput()
 {
-  vtkFloatingPointType aBounds[6];
+  double aBounds[6];
   GetInput()->GetBounds( aBounds ); // xmin,xmax, ymin,ymax, zmin,zmax
   if (fabs( aBounds[0] - aBounds[1] ) <= FLT_MIN ||
       fabs( aBounds[2] - aBounds[3] ) <= FLT_MIN ||
@@ -237,7 +237,7 @@ VISU_PipeLine
 }
 
 //----------------------------------------------------------------------------
-vtkFloatingPointType* 
+double* 
 VISU_PipeLine
 ::GetNodeCoord(vtkIdType theObjID)
 {
@@ -393,13 +393,13 @@ VISU_PipeLine
 //----------------------------------------------------------------------------
 void
 VISU_PipeLine
-::SetPlaneParam(vtkFloatingPointType theDir[3], 
-                vtkFloatingPointType theDist, 
+::SetPlaneParam(double theDir[3], 
+                double theDist, 
                 vtkPlane* thePlane)
 {
   thePlane->SetNormal(theDir);
 
-  vtkFloatingPointType anOrigin[3];
+  double anOrigin[3];
 
   //Make sure that bounds are calculated
   ComputeVisibleBounds();
@@ -415,13 +415,13 @@ VISU_PipeLine
 //----------------------------------------------------------------------------
 void
 VISU_PipeLine
-::GetPlaneParam(vtkFloatingPointType theDir[3], 
-                vtkFloatingPointType& theDist, 
+::GetPlaneParam(double theDir[3], 
+                double& theDist, 
                 vtkPlane* thePlane)
 {
   thePlane->GetNormal(theDir);
   
-  vtkFloatingPointType anOrigin[3];
+  double anOrigin[3];
   thePlane->GetOrigin(anOrigin);
   
   //Make sure that bounds are calculated
@@ -486,7 +486,7 @@ void VISU_PipeLine::ComputeVisibleBounds() {
 }
 
 //----------------------------------------------------------------------------
-void VISU_PipeLine::GetVisibleBounds(vtkFloatingPointType theBounds[6]) {
+void VISU_PipeLine::GetVisibleBounds(double theBounds[6]) {
   // Compute or get cached bounds
   ComputeVisibleBounds(); 
   for (int i=0; i<6; i++) {