Skip to content

Commit

Permalink
Merge pull request #494 from lhofmann/vtk_version
Browse files Browse the repository at this point in the history
Missing vtkVersion includes
  • Loading branch information
julien-tierny authored Sep 18, 2020
2 parents 4648ca9 + 1479b7a commit 486484b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/vtk/ttkCinemaImaging/ttkCinemaImaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ void addValuePass(vtkDataSet *object,
size_t nComponents = field->GetNumberOfComponents();
for(size_t c = 0; c < nComponents; c++) {
auto valuePass = vtkSmartPointer<vtkValuePass>::New();
#if VTK_MAJOR_VERSION < 8 || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION < 90)
valuePass->SetRenderingMode(vtkValuePass::FLOATING_POINT);
#endif
valuePass->SetInputArrayToProcess(fieldType == 0
? VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
: VTK_SCALAR_MODE_USE_CELL_FIELD_DATA,
Expand Down
1 change: 1 addition & 0 deletions core/vtk/ttkCinemaQuery/ttkCinemaQuery.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <ttkCinemaQuery.h>

#include <vtkVersion.h>
#include <vtkInformation.h>

#include <vtkDelimitedTextReader.h>
Expand Down
2 changes: 1 addition & 1 deletion core/vtk/ttkContourAroundPoint/ttkContourAroundPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <ttkMacros.h>
#include <ttkUtils.h>

// #include <vtkVersion.h>
#include <vtkVersion.h>
#include <vtkInformation.h>
#include <vtkInformationVector.h>

Expand Down
1 change: 1 addition & 0 deletions core/vtk/ttkTriangulationAlgorithm/macro.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <vtkVersion.h>
#include <vtkIdTypeArray.h>
#include <vtkImageData.h>
#include <vtkInformationVector.h>
Expand Down

0 comments on commit 486484b

Please sign in to comment.