Browse Source

Make Libs/Visualization/VTK/Core compile with VTK 5.8

closes #265
Marco Nolden 12 years ago
parent
commit
f34926277c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Libs/Visualization/VTK/Core/vtkLightBoxRendererManager.cpp

+ 3 - 1
Libs/Visualization/VTK/Core/vtkLightBoxRendererManager.cpp

@@ -189,7 +189,9 @@ void RenderWindowItem::SetupHighlightedBoxActor(const double highlightedBoxColor
   vtkNew<vtkPolyDataMapper2D> polyDataMapper;
   polyDataMapper->SetInput(poly.GetPointer());
   polyDataMapper->SetTransformCoordinate(coordinate.GetPointer());
-  polyDataMapper->SetTransformCoordinateUseDouble(true);
+  #if ! (VTK_MAJOR_VERSION == 5 && VTK_MINOR_VERSION == 8)
+    polyDataMapper->SetTransformCoordinateUseDouble(true);
+  #endif
 
   this->HighlightedBoxActor = vtkSmartPointer<vtkActor2D>::New();
   this->HighlightedBoxActor->SetMapper(polyDataMapper.GetPointer());