0026511: Build fails with VTK 6.3rc1
[occt.git] / src / IVtkVTK / IVtkVTK_View.cxx
index 39cff7c..15a0d31 100644 (file)
@@ -21,6 +21,8 @@
 #include <vtkRenderWindow.h>
 #include <vtkTransform.h>
 
+IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_View,IVtk_IView)
+
 // Initialization of VTK object factories.
 // Since VTK 6 the factory methods require "auto-initialization" depending on
 // what modules are enabled at VTK configure time.
@@ -29,8 +31,7 @@ VTK_MODULE_INIT(vtkRenderingOpenGL);
 VTK_MODULE_INIT(vtkInteractionStyle);
 
 // Handle implementation
-IMPLEMENT_STANDARD_HANDLE(IVtkVTK_View, IVtk_IView)
-IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_View, IVtk_IView)
+
 
 //================================================================
 // Function : Constructor
@@ -150,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;