summaryrefslogtreecommitdiff
path: root/graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff
blob: 9062cc5cd7704edf2237c90a46cee5bb24b35fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- src/IVtkVTK/IVtkVTK_ShapeData.cxx.orig	2018-05-29 11:14:02.000000000 +0100
+++ src/IVtkVTK/IVtkVTK_ShapeData.cxx	2018-05-31 14:07:39.166422383 +0100
@@ -81,9 +81,15 @@
   vtkIdType aPointIdVTK = thePointId;
   myPolyData->InsertNextCell (VTK_VERTEX, 1, &aPointIdVTK);
   const vtkIdType aShapeIDVTK = theShapeID;
+#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0)
   mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
   myMeshTypes->InsertNextTupleValue (&aType);
+#else
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
+  const vtkIdType aType = theMeshType;
+  myMeshTypes->InsertNextTypedTuple (&aType);
+#endif
 }
 
 //================================================================
@@ -98,9 +104,15 @@
   vtkIdType aPoints[2] = { thePointId1, thePointId2 };
   myPolyData->InsertNextCell (VTK_LINE, 2, aPoints);
   const vtkIdType aShapeIDVTK = theShapeID;
+#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0)
   mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
   myMeshTypes->InsertNextTupleValue (&aType);
+#else
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
+  const vtkIdType aType = theMeshType;
+  myMeshTypes->InsertNextTypedTuple (&aType);
+#endif
 }
 
 //================================================================
@@ -125,9 +137,15 @@
 
     myPolyData->InsertNextCell (VTK_POLY_LINE, anIdList);
     const vtkIdType aShapeIDVTK = theShapeID;
+#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0)
     mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
     const vtkIdType aType = theMeshType;
     myMeshTypes->InsertNextTupleValue (&aType);
+#else
+    mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
+    const vtkIdType aType = theMeshType;
+    myMeshTypes->InsertNextTypedTuple (&aType);
+#endif
   }
 }
 
@@ -144,7 +162,13 @@
   vtkIdType aPoints[3] = { thePointId1, thePointId2, thePointId3 };
   myPolyData->InsertNextCell (VTK_TRIANGLE, 3, aPoints);
   const vtkIdType aShapeIDVTK = theShapeID;
+#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0)
   mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
   myMeshTypes->InsertNextTupleValue (&aType);
+#else
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
+  const vtkIdType aType = theMeshType;
+  myMeshTypes->InsertNextTypedTuple (&aType);
+#endif
 }