Skip to content
Snippets Groups Projects
Commit 07dee595 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

Forgot to check major and minor version

Former-commit-id: 03d105d1
parent a1fb6a5f
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter =
vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(tmp_rW);
#if VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 90
#if VTK_MAJOR_VERSION >= 8 || VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90
windowToImageFilter->SetScale(2); // image quality
#else
windowToImageFilter->SetMagnification(2); //image quality
......
......@@ -49,7 +49,8 @@ int main(int, char *argv[])
std::cout << "Point " << i << ": " << selectEnclosedPoints->IsInside(i) << std::endl;
}
vtkDataArray* insideArray = vtkDataArray::SafeDownCast(selectEnclosedPoints->GetOutput()->GetPointData()->GetArray("SelectedPoints"));
vtkDataArray* insideArray =
vtkDataArray::SafeDownCast(selectEnclosedPoints->GetOutput()->GetPointData()->GetArray("SelectedPoints"));
for(vtkIdType i = 0; i < insideArray->GetNumberOfTuples(); i++)
{
......
......@@ -47,7 +47,7 @@ int main(int, char *[])
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter =
vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(renderWindow);
#if VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 90
#if VTK_MAJOR_VERSION >= 8 || VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90
windowToImageFilter->SetScale(2); // image quality
#else
windowToImageFilter->SetMagnification(2); //image quality
......
......@@ -52,7 +52,7 @@ int main(int argc, char* argv[])
// Create Depth Map
filter->SetInput(renWin);
#if VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 90
#if VTK_MAJOR_VERSION >= 8 || VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90
filter->SetScale(1);
#else
filter->SetMagnification(1);
......
......@@ -450,7 +450,7 @@ void Screenshot(std::string fileName, vtkRenderWindow* renWin)
vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(renWin);
#if VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 90
#if VTK_MAJOR_VERSION >= 8 || VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90
windowToImageFilter->SetScale(1); // image quality
#else
windowToImageFilter->SetMagnification(1); // image quality
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment