0026511: Build fails with VTK 6.3rc1
authorabv <abv@opencascade.com>
Thu, 14 Jan 2016 05:34:44 +0000 (08:34 +0300)
committerabv <abv@opencascade.com>
Thu, 14 Jan 2016 05:36:58 +0000 (08:36 +0300)
Obsolete typedef "vtkFloatingPointType" is replaced by "double" in VIS and DRAW

src/IVtkTools/IVtkTools_ShapePicker.cxx
src/IVtkTools/IVtkTools_ShapePicker.hxx
src/IVtkVTK/IVtkVTK_View.cxx

index ffdf1ee..2a0dd63 100644 (file)
@@ -73,15 +73,15 @@ float IVtkTools_ShapePicker::GetTolerance( ) const
 //  Method: convertDisplayToWorld
 // Purpose: Convert display coordinates to world coordinates
 //============================================================================
-bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer         *theRenderer,
-                                                   vtkFloatingPointType theDisplayCoord[3],
-                                                   vtkFloatingPointType theWorldCoord[3])
+bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer *theRenderer,
+                                                   double theDisplayCoord[3],
+                                                   double theWorldCoord[3])
 {
   // Convert the selection point into world coordinates.
   theRenderer->SetDisplayPoint (theDisplayCoord[0], theDisplayCoord[1], theDisplayCoord[2]);
   theRenderer->DisplayToWorld();
 
-  vtkFloatingPointType* const aCoords = theRenderer->GetWorldPoint();
+  double* const aCoords = theRenderer->GetWorldPoint();
   if (aCoords[3] == 0.0)
   {
     return false;
index 282212d..9c181a5 100644 (file)
@@ -124,8 +124,8 @@ protected:
 
   //! Convert display coordinates to world coordinates
   static bool convertDisplayToWorld (vtkRenderer *theRenderer,
-                                     vtkFloatingPointType theDisplayCoord[3],
-                                     vtkFloatingPointType theWorldCoord[3] );
+                                     double theDisplayCoord[3],
+                                     double theWorldCoord[3] );
 
 private: // not copyable
   IVtkTools_ShapePicker (const IVtkTools_ShapePicker&);
index dfd3cb7..15a0d31 100644 (file)
@@ -151,7 +151,7 @@ bool IVtkVTK_View::DisplayToWorld (const gp_XY& theDisplayPnt, gp_XYZ& theWorldP
   myRenderer->SetDisplayPoint (theDisplayPnt.X(), theDisplayPnt.Y(), 0.0);
   myRenderer->DisplayToWorld();
 
-  vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
+  double* const aCoords = myRenderer->GetWorldPoint();
   if (aCoords[3] == 0.0) // Point at infinity in homogeneous coordinates
   {
     return false;