]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
Porting to ParaView-5.8 rnv/pv58_2
authorrnv <rnv@opencascade.com>
Mon, 17 Feb 2020 15:37:39 +0000 (18:37 +0300)
committervsr <vsr@opencascade.com>
Thu, 5 Mar 2020 14:06:05 +0000 (17:06 +0300)
src/HEXABLOCK/CMakeLists.txt
src/HEXABLOCKGUI/CMakeLists.txt
src/HEXABLOCKGUI/HEXABLOCKGUI_VtkDocumentGraphicView.cxx
src/HEXABLOCK_SWIG/CMakeLists.txt

index a4243807a85626591aa2f3beae057bb21bfe8cd6..9194c089183b95e7c6b979be49038cce20c09d5e 100644 (file)
@@ -23,7 +23,6 @@ INCLUDE_DIRECTORIES(
   ${KERNEL_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${OpenCASCADE_INCLUDE_DIR}
-  ${VTK_INCLUDE_DIRS}
   ${GEOM_INCLUDE_DIRS}
   ${Boost_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
index 7db817d0d33a6925df22011f16ee864adae4b1d2..8b007cf9771625728e801f922d5afe4dd3d32e02 100644 (file)
@@ -30,7 +30,6 @@ INCLUDE_DIRECTORIES(
   ${LIBXML2_INCLUDE_DIR}
   ${Boost_INCLUDE_DIRS}
   ${OpenCASCADE_INCLUDE_DIR}
-  ${VTK_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${GUI_INCLUDE_DIRS}
   ${GEOM_INCLUDE_DIRS}
index 4a034ca8fdcc5c3424df5761a31fa31403487d24..23327993a302504a1c826ce24a29d7f76a2af899 100644 (file)
@@ -22,6 +22,7 @@
 // VTK includes
 #include <vtkRenderer.h>
 #include <vtkUnstructuredGrid.h>
+#include <vtkUnsignedCharArray.h>
 #include <vtkDataSetMapper.h>
 #include "vtkCellArray.h"
 #include "vtkPolyData.h"
@@ -223,7 +224,8 @@ vtkUnstructuredGrid* Document_Actor::getUnstructuredGrid()
     //   std::cout << "aNbCells =>" << aNbCells << std::endl;
 
     aConnectivity->InitTraversal();
-    for( vtkIdType idType = 0, *pts, npts; aConnectivity->GetNextCell( npts, pts ); idType++ ){
+       vtkIdType const *pts(nullptr);
+    for( vtkIdType idType = 0, npts; aConnectivity->GetNextCell( npts, pts ); idType++ ){
         aCellLocationsArray->SetValue( idType, aConnectivity->GetTraversalLocation( npts ) );
     }
     theGrid->SetCells( aCellTypesArray, aCellLocationsArray,aConnectivity );
@@ -413,7 +415,8 @@ vtkUnstructuredGrid* Associate_Actor::getUnstructuredGrid()
     //   std::cout << "aNbCells =>" << aNbCells << std::endl;
 
     aConnectivity->InitTraversal();
-    for( vtkIdType idType = 0, *pts, npts; aConnectivity->GetNextCell( npts, pts ); idType++ ){
+       vtkIdType const *pts(nullptr);
+    for( vtkIdType idType = 0, npts; aConnectivity->GetNextCell( npts, pts ); idType++ ){
         aCellLocationsArray->SetValue( idType, aConnectivity->GetTraversalLocation( npts ) );
     }
     theGrid->SetCells( aCellTypesArray, aCellLocationsArray,aConnectivity );
index 622bc0dfcbae749cd62826f868a49223d2a4e8da..f248d1bb068e5a0ec1f68a20bf4beb242ada9ecd 100644 (file)
@@ -25,7 +25,6 @@ INCLUDE_DIRECTORIES(
   ${KERNEL_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${OpenCASCADE_INCLUDE_DIR}
-  ${VTK_INCLUDE_DIRS}
   ${GEOM_INCLUDE_DIRS}
   ${Boost_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
@@ -42,7 +41,6 @@ ADD_DEFINITIONS(
 # libraries to link to
 SET(_link_LIBRARIES
   ${PYTHON_LIBRARIES}
-  ${GEOM_GEOMBase}
   ${OpenCASCADE_ModelingData_LIBRARIES}
   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
   ${KERNEL_SALOMELocalTrace}