mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
0031582: Configuration, CMake - OCCT fails to build with VTK 9.0
Handle "VTK::" prefix instead of "vtk" used by previous VTK versions for targets. Corrected unexpected location of endif() and broken indentation. Obsolete $VTK_USE_FILE is no more included (basing on VTK version check). Standard_WarningsDisable.hxx/Standard_WarningsRestore.hxx pair is now used to suppress VTK warnings instead of partial disabling.
This commit is contained in:
parent
ce9aefc8aa
commit
8e16477b50
@ -323,7 +323,7 @@ endif()
|
|||||||
|
|
||||||
# Update list of used VTK libraries if OpenGL2 Rendering BackEnd is used.
|
# Update list of used VTK libraries if OpenGL2 Rendering BackEnd is used.
|
||||||
# Add VTK_OPENGL2_BACKEND definition.
|
# Add VTK_OPENGL2_BACKEND definition.
|
||||||
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
|
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2" OR IS_VTK_9XX)
|
||||||
add_definitions(-DVTK_OPENGL2_BACKEND)
|
add_definitions(-DVTK_OPENGL2_BACKEND)
|
||||||
foreach (VTK_EXCLUDE_LIBRARY vtkRenderingOpenGL vtkRenderingFreeTypeOpenGL)
|
foreach (VTK_EXCLUDE_LIBRARY vtkRenderingOpenGL vtkRenderingFreeTypeOpenGL)
|
||||||
list (FIND USED_TOOLKITS_BY_CURRENT_PROJECT "${VTK_EXCLUDE_LIBRARY}" IS_VTK_OPENGL_FOUND)
|
list (FIND USED_TOOLKITS_BY_CURRENT_PROJECT "${VTK_EXCLUDE_LIBRARY}" IS_VTK_OPENGL_FOUND)
|
||||||
@ -347,6 +347,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
|
if(IS_VTK_9XX)
|
||||||
|
string (REGEX REPLACE "vtk" "VTK::" USED_TOOLKITS_BY_CURRENT_PROJECT "${USED_TOOLKITS_BY_CURRENT_PROJECT}")
|
||||||
|
endif()
|
||||||
target_link_libraries (${PROJECT_NAME} ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
target_link_libraries (${PROJECT_NAME} ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -66,10 +66,15 @@ if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
|
|||||||
set (ENV{VTK_DIR} ${CACHED_VTK_DIR})
|
set (ENV{VTK_DIR} ${CACHED_VTK_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
unset (IS_VTK_9XX)
|
||||||
if (VTK_FOUND)
|
if (VTK_FOUND)
|
||||||
|
message ("VTK version (${VTK_VERSION})")
|
||||||
# add compiler flags, preprocessor definitions, include and link dirs
|
if(VTK_MAJOR_VERSION EQUAL 8 AND VTK_MINOR_VERSION GREATER 9 OR VTK_MAJOR_VERSION GREATER 8)
|
||||||
include (${VTK_USE_FILE})
|
set (IS_VTK_9XX 1)
|
||||||
|
else()
|
||||||
|
# add compiler flags, preprocessor definitions, include and link dirs
|
||||||
|
include (${VTK_USE_FILE})
|
||||||
|
endif()
|
||||||
|
|
||||||
if (VTK_LIBRARIES)
|
if (VTK_LIBRARIES)
|
||||||
|
|
||||||
@ -81,79 +86,83 @@ if (VTK_FOUND)
|
|||||||
# endif()
|
# endif()
|
||||||
|
|
||||||
foreach (VTK_LIBRARY ${VTK_LIBRARIES})
|
foreach (VTK_LIBRARY ${VTK_LIBRARIES})
|
||||||
string (REGEX MATCH "^vtk" IS_VTK_LIBRARY ${VTK_LIBRARY})
|
if (IS_VTK_9XX)
|
||||||
if (IS_VTK_LIBRARY AND TARGET ${VTK_LIBRARY})
|
string (REGEX MATCH "^VTK::" IS_VTK_LIBRARY ${VTK_LIBRARY})
|
||||||
# get paths from corresponding variables
|
else()
|
||||||
if (${VTK_LIBRARY}_INCLUDE_DIRS AND EXISTS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
|
string (REGEX MATCH "^vtk" IS_VTK_LIBRARY ${VTK_LIBRARY})
|
||||||
list (APPEND 3RDPARTY_VTK_INCLUDE_DIRS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
|
endif()
|
||||||
|
if (NOT IS_VTK_LIBRARY OR NOT TARGET ${VTK_LIBRARY})
|
||||||
|
continue()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# get paths from corresponding variables
|
||||||
|
if (${VTK_LIBRARY}_INCLUDE_DIRS AND EXISTS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
|
||||||
|
list (APPEND 3RDPARTY_VTK_INCLUDE_DIRS "${${VTK_LIBRARY}_INCLUDE_DIRS}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (${VTK_LIBRARY}_LIBRARY_DIRS AND EXISTS "${${VTK_LIBRARY}_LIBRARY_DIRS}")
|
||||||
|
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${${VTK_LIBRARY}_LIBRARY_DIRS}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS AND EXISTS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
||||||
|
list (APPEND 3RDPARTY_VTK_DLL_DIRS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
||||||
|
if (NOT WIN32)
|
||||||
|
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# get paths from corresponding properties
|
||||||
|
get_target_property (TARGET_VTK_IMPORT_CONFS ${VTK_LIBRARY} IMPORTED_CONFIGURATIONS)
|
||||||
|
if (TARGET_VTK_IMPORT_CONFS)
|
||||||
|
list (GET TARGET_VTK_IMPORT_CONFS 0 CHOSEN_IMPORT_CONF)
|
||||||
|
|
||||||
|
# todo: choose configuration in connection with the build type
|
||||||
|
#if (CMAKE_BUILD_TYPE)
|
||||||
|
# foreach (IMPORT_CONF ${TARGET_VTK_IMPORT_CONFS})
|
||||||
|
# endforeach()
|
||||||
|
#endif()
|
||||||
|
|
||||||
|
# Work-around against link failure in case if VTK contains dependency
|
||||||
|
# on DirectX: its run-time is always present on Windows, but SDK can
|
||||||
|
# be absent on current workstation, while not actually needed for
|
||||||
|
# OCCT linking.
|
||||||
|
# VTK 6.1 for VC 10
|
||||||
|
get_target_property (TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${VTK_LIBRARY} IMPORTED_LINK_INTERFACE_LIBRARIES_${CHOSEN_IMPORT_CONF})
|
||||||
|
if(TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES)
|
||||||
|
string (REGEX MATCH "[^;]*d3d[0-9]+[.]lib" HARDCODED_D3D9_LIB "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
||||||
|
if (HARDCODED_D3D9_LIB)
|
||||||
|
message (STATUS "Warning: ${HARDCODED_D3D9_LIB} has been removed from imported dependencies of ${VTK_LIBRARY}")
|
||||||
|
|
||||||
|
list (REMOVE_ITEM TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${HARDCODED_D3D9_LIB})
|
||||||
|
set_target_properties (${VTK_LIBRARY} PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES_${CHOSEN_IMPORT_CONF} "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
# VTK 6.1 for VC 12, 14
|
||||||
|
get_target_property (TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${VTK_LIBRARY} INTERFACE_LINK_LIBRARIES)
|
||||||
|
if(TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES)
|
||||||
|
string (REGEX MATCH "[^;]*d3d[0-9]+[.]lib" HARDCODED_D3D9_LIB "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
||||||
|
if (HARDCODED_D3D9_LIB)
|
||||||
|
message (STATUS "Warning: ${HARDCODED_D3D9_LIB} has been removed from imported dependencies of ${VTK_LIBRARY}")
|
||||||
|
|
||||||
|
list (REMOVE_ITEM TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${HARDCODED_D3D9_LIB})
|
||||||
|
set_target_properties (${VTK_LIBRARY} PROPERTIES INTERFACE_LINK_LIBRARIES "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (${VTK_LIBRARY}_LIBRARY_DIRS AND EXISTS "${${VTK_LIBRARY}_LIBRARY_DIRS}")
|
get_target_property (TARGET_PROPERTY_IMP_PATH ${VTK_LIBRARY} IMPORTED_IMPLIB_${CHOSEN_IMPORT_CONF})
|
||||||
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${${VTK_LIBRARY}_LIBRARY_DIRS}")
|
if(TARGET_PROPERTY_IMP_PATH AND EXISTS "${TARGET_PROPERTY_IMP_PATH}")
|
||||||
endif()
|
get_filename_component (TARGET_PROPERTY_IMP_DIR "${TARGET_PROPERTY_IMP_PATH}" PATH)
|
||||||
|
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${TARGET_PROPERTY_IMP_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS AND EXISTS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
get_target_property (TARGET_PROPERTY_LOCATION_PATH ${VTK_LIBRARY} IMPORTED_LOCATION_${CHOSEN_IMPORT_CONF})
|
||||||
list (APPEND 3RDPARTY_VTK_DLL_DIRS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
if(TARGET_PROPERTY_LOCATION_PATH AND EXISTS "${TARGET_PROPERTY_LOCATION_PATH}")
|
||||||
if (NOT WIN32)
|
get_filename_component (TARGET_PROPERTY_LOCATION_DIR "${TARGET_PROPERTY_LOCATION_PATH}" PATH)
|
||||||
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${${VTK_LIBRARY}_RUNTIME_LIBRARY_DIRS}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# get paths from corresponding properties
|
if (WIN32)
|
||||||
get_target_property (TARGET_VTK_IMPORT_CONFS ${VTK_LIBRARY} IMPORTED_CONFIGURATIONS)
|
list (APPEND 3RDPARTY_VTK_DLL_DIRS "${TARGET_PROPERTY_LOCATION_DIR}")
|
||||||
|
else()
|
||||||
if (TARGET_VTK_IMPORT_CONFS)
|
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${TARGET_PROPERTY_LOCATION_DIR}")
|
||||||
list (GET TARGET_VTK_IMPORT_CONFS 0 CHOSEN_IMPORT_CONF)
|
|
||||||
|
|
||||||
# todo: choose configuration in connection with the build type
|
|
||||||
#if (CMAKE_BUILD_TYPE)
|
|
||||||
# foreach (IMPORT_CONF ${TARGET_VTK_IMPORT_CONFS})
|
|
||||||
# endforeach()
|
|
||||||
#endif()
|
|
||||||
|
|
||||||
# Work-around against link failure in case if VTK contains dependency
|
|
||||||
# on DirectX: its run-time is always present on Windows, but SDK can
|
|
||||||
# be absent on current workstation, while not actually needed for
|
|
||||||
# OCCT linking.
|
|
||||||
# VTK 6.1 for VC 10
|
|
||||||
get_target_property (TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${VTK_LIBRARY} IMPORTED_LINK_INTERFACE_LIBRARIES_${CHOSEN_IMPORT_CONF})
|
|
||||||
if(TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES)
|
|
||||||
string (REGEX MATCH "[^;]*d3d[0-9]+[.]lib" HARDCODED_D3D9_LIB "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
|
||||||
if (HARDCODED_D3D9_LIB)
|
|
||||||
message (STATUS "Warning: ${HARDCODED_D3D9_LIB} has been removed from imported dependencies of ${VTK_LIBRARY}")
|
|
||||||
|
|
||||||
list (REMOVE_ITEM TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${HARDCODED_D3D9_LIB})
|
|
||||||
set_target_properties (${VTK_LIBRARY} PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES_${CHOSEN_IMPORT_CONF} "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
# VTK 6.1 for VC 12, 14
|
|
||||||
get_target_property (TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${VTK_LIBRARY} INTERFACE_LINK_LIBRARIES)
|
|
||||||
if(TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES)
|
|
||||||
string (REGEX MATCH "[^;]*d3d[0-9]+[.]lib" HARDCODED_D3D9_LIB "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
|
||||||
if (HARDCODED_D3D9_LIB)
|
|
||||||
message (STATUS "Warning: ${HARDCODED_D3D9_LIB} has been removed from imported dependencies of ${VTK_LIBRARY}")
|
|
||||||
|
|
||||||
list (REMOVE_ITEM TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES ${HARDCODED_D3D9_LIB})
|
|
||||||
set_target_properties (${VTK_LIBRARY} PROPERTIES INTERFACE_LINK_LIBRARIES "${TARGET_PROPERTY_IMP_LINK_INTERFACE_LIBRARIES}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
get_target_property (TARGET_PROPERTY_IMP_PATH ${VTK_LIBRARY} IMPORTED_IMPLIB_${CHOSEN_IMPORT_CONF})
|
|
||||||
if(TARGET_PROPERTY_IMP_PATH AND EXISTS "${TARGET_PROPERTY_IMP_PATH}")
|
|
||||||
get_filename_component (TARGET_PROPERTY_IMP_DIR "${TARGET_PROPERTY_IMP_PATH}" PATH)
|
|
||||||
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${TARGET_PROPERTY_IMP_DIR}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
get_target_property (TARGET_PROPERTY_LOCATION_PATH ${VTK_LIBRARY} IMPORTED_LOCATION_${CHOSEN_IMPORT_CONF})
|
|
||||||
if(TARGET_PROPERTY_LOCATION_PATH AND EXISTS "${TARGET_PROPERTY_LOCATION_PATH}")
|
|
||||||
get_filename_component (TARGET_PROPERTY_LOCATION_DIR "${TARGET_PROPERTY_LOCATION_PATH}" PATH)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
list (APPEND 3RDPARTY_VTK_DLL_DIRS "${TARGET_PROPERTY_LOCATION_DIR}")
|
|
||||||
else()
|
|
||||||
list (APPEND 3RDPARTY_VTK_LIBRARY_DIRS "${TARGET_PROPERTY_LOCATION_DIR}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@ -187,6 +196,7 @@ if (VTK_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
# endif()
|
# endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_VTK_INCLUDE_DIR AND EXISTS "${3RDPARTY_VTK_INCLUDE_DIR}")
|
if (3RDPARTY_VTK_INCLUDE_DIR AND EXISTS "${3RDPARTY_VTK_INCLUDE_DIR}")
|
||||||
list (APPEND 3RDPARTY_INCLUDE_DIRS ${3RDPARTY_VTK_INCLUDE_DIR})
|
list (APPEND 3RDPARTY_INCLUDE_DIRS ${3RDPARTY_VTK_INCLUDE_DIR})
|
||||||
|
@ -51,10 +51,7 @@
|
|||||||
#include <IVtkDraw_Interactor.hxx>
|
#include <IVtkDraw_Interactor.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable: 4244)
|
|
||||||
#endif
|
|
||||||
#include <vtkAlgorithmOutput.h>
|
#include <vtkAlgorithmOutput.h>
|
||||||
#include <vtkAppendPolyData.h>
|
#include <vtkAppendPolyData.h>
|
||||||
#include <vtkBMPWriter.h>
|
#include <vtkBMPWriter.h>
|
||||||
@ -88,9 +85,7 @@
|
|||||||
#include <vtkXOpenGLRenderWindow.h>
|
#include <vtkXOpenGLRenderWindow.h>
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (VTK_MAJOR_VERSION > 8) || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1)
|
#if (VTK_MAJOR_VERSION > 8) || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1)
|
||||||
#define HAVE_VTK_SRGB
|
#define HAVE_VTK_SRGB
|
||||||
|
@ -16,9 +16,7 @@
|
|||||||
#include <IVtkDraw_HighlightAndSelectionPipeline.hxx>
|
#include <IVtkDraw_HighlightAndSelectionPipeline.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkRenderer.h>
|
#include <vtkRenderer.h>
|
||||||
#include <vtkActor.h>
|
#include <vtkActor.h>
|
||||||
#include <vtkPolyDataMapper.h>
|
#include <vtkPolyDataMapper.h>
|
||||||
@ -26,16 +24,13 @@
|
|||||||
#include <vtkAppendPolyData.h>
|
#include <vtkAppendPolyData.h>
|
||||||
#include <vtkProperty.h>
|
#include <vtkProperty.h>
|
||||||
#include <vtkRenderWindow.h>
|
#include <vtkRenderWindow.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <IVtkOCC_Shape.hxx>
|
#include <IVtkOCC_Shape.hxx>
|
||||||
#include <IVtkTools_DisplayModeFilter.hxx>
|
#include <IVtkTools_DisplayModeFilter.hxx>
|
||||||
#include <IVtkTools_ShapeDataSource.hxx>
|
#include <IVtkTools_ShapeDataSource.hxx>
|
||||||
#include <IVtkTools_ShapeObject.hxx>
|
#include <IVtkTools_ShapeObject.hxx>
|
||||||
|
|
||||||
|
|
||||||
IMPLEMENT_STANDARD_RTTIEXT(IVtkDraw_HighlightAndSelectionPipeline,Standard_Transient)
|
IMPLEMENT_STANDARD_RTTIEXT(IVtkDraw_HighlightAndSelectionPipeline,Standard_Transient)
|
||||||
|
|
||||||
//===========================================================
|
//===========================================================
|
||||||
|
@ -22,17 +22,13 @@
|
|||||||
#include <TopoDS_Shape.hxx>
|
#include <TopoDS_Shape.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkActor.h>
|
#include <vtkActor.h>
|
||||||
#include <vtkPolyData.h>
|
#include <vtkPolyData.h>
|
||||||
#include <vtkPolyDataMapper.h>
|
#include <vtkPolyDataMapper.h>
|
||||||
#include <vtkRenderer.h>
|
#include <vtkRenderer.h>
|
||||||
#include <vtkSmartPointer.h>
|
#include <vtkSmartPointer.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <IVtk_Types.hxx>
|
#include <IVtk_Types.hxx>
|
||||||
#include <IVtkTools_DisplayModeFilter.hxx>
|
#include <IVtkTools_DisplayModeFilter.hxx>
|
||||||
|
@ -14,9 +14,7 @@
|
|||||||
// commercial license or contractual agreement.
|
// commercial license or contractual agreement.
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <vtkWin32RenderWindowInteractor.h>
|
#include <vtkWin32RenderWindowInteractor.h>
|
||||||
#include <vtkWin32OpenGLRenderWindow.h>
|
#include <vtkWin32OpenGLRenderWindow.h>
|
||||||
@ -30,13 +28,10 @@
|
|||||||
#include <vtkCommand.h>
|
#include <vtkCommand.h>
|
||||||
#include <vtkObjectFactory.h>
|
#include <vtkObjectFactory.h>
|
||||||
#include <vtkSmartPointer.h>
|
#include <vtkSmartPointer.h>
|
||||||
|
#include <Standard_WarningsRestore.hxx>
|
||||||
|
|
||||||
#include <IVtkDraw_Interactor.hxx>
|
#include <IVtkDraw_Interactor.hxx>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <IVtkTools_ShapePicker.hxx>
|
#include <IVtkTools_ShapePicker.hxx>
|
||||||
#include <IVtkTools_SubPolyDataFilter.hxx>
|
#include <IVtkTools_SubPolyDataFilter.hxx>
|
||||||
#include <IVtkTools_DisplayModeFilter.hxx>
|
#include <IVtkTools_DisplayModeFilter.hxx>
|
||||||
|
@ -31,14 +31,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkRenderWindowInteractor.h>
|
#include <vtkRenderWindowInteractor.h>
|
||||||
#include <vtkSmartPointer.h>
|
#include <vtkSmartPointer.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <IVtkTools_ShapePicker.hxx>
|
#include <IVtkTools_ShapePicker.hxx>
|
||||||
#include <IVtkDraw_HighlightAndSelectionPipeline.hxx>
|
#include <IVtkDraw_HighlightAndSelectionPipeline.hxx>
|
||||||
|
@ -19,7 +19,10 @@
|
|||||||
#include <IVtkTools.hxx>
|
#include <IVtkTools.hxx>
|
||||||
#include <IVtkOCC_Shape.hxx>
|
#include <IVtkOCC_Shape.hxx>
|
||||||
#include <IVtkVTK_ShapeData.hxx>
|
#include <IVtkVTK_ShapeData.hxx>
|
||||||
|
|
||||||
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#include <vtkPolyDataAlgorithm.h>
|
#include <vtkPolyDataAlgorithm.h>
|
||||||
|
#include <Standard_WarningsRestore.hxx>
|
||||||
|
|
||||||
class vtkIdTypeArray;
|
class vtkIdTypeArray;
|
||||||
class vtkPolyData;
|
class vtkPolyData;
|
||||||
|
@ -20,15 +20,11 @@
|
|||||||
#include <IVtkOCC_Shape.hxx>
|
#include <IVtkOCC_Shape.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkDataObject.h>
|
#include <vtkDataObject.h>
|
||||||
#include <vtkSetGet.h>
|
#include <vtkSetGet.h>
|
||||||
#include <vtkWeakPointer.h>
|
#include <vtkWeakPointer.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class vtkActor;
|
class vtkActor;
|
||||||
class vtkDataSet;
|
class vtkDataSet;
|
||||||
|
@ -21,14 +21,10 @@
|
|||||||
#include <IVtkOCC_ShapePickerAlgo.hxx>
|
#include <IVtkOCC_ShapePickerAlgo.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkAbstractPropPicker.h>
|
#include <vtkAbstractPropPicker.h>
|
||||||
#include <vtkSmartPointer.h>
|
#include <vtkSmartPointer.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class vtkRenderer;
|
class vtkRenderer;
|
||||||
class vtkActorCollection;
|
class vtkActorCollection;
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
#include <IVtkTools.hxx>
|
#include <IVtkTools.hxx>
|
||||||
|
|
||||||
#include "vtkPolyDataAlgorithm.h"
|
#include <Standard_WarningsDisable.hxx>
|
||||||
|
#include <vtkPolyDataAlgorithm.h>
|
||||||
|
#include <Standard_WarningsRestore.hxx>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
|
@ -16,17 +16,13 @@
|
|||||||
#include <IVtkVTK_ShapeData.hxx>
|
#include <IVtkVTK_ShapeData.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkCellData.h>
|
#include <vtkCellData.h>
|
||||||
#include <vtkDoubleArray.h>
|
#include <vtkDoubleArray.h>
|
||||||
#include <vtkIdList.h>
|
#include <vtkIdList.h>
|
||||||
#include <vtkPoints.h>
|
#include <vtkPoints.h>
|
||||||
#include <vtkPolyData.h>
|
#include <vtkPolyData.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_ShapeData,IVtk_IShapeData)
|
IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_ShapeData,IVtk_IShapeData)
|
||||||
|
|
||||||
|
@ -19,15 +19,11 @@
|
|||||||
#include <IVtk_IShapeData.hxx>
|
#include <IVtk_IShapeData.hxx>
|
||||||
|
|
||||||
// prevent disabling some MSVC warning messages by VTK headers
|
// prevent disabling some MSVC warning messages by VTK headers
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#pragma warning(push)
|
|
||||||
#endif
|
|
||||||
#include <vtkPolyData.h>
|
#include <vtkPolyData.h>
|
||||||
#include <vtkSmartPointer.h>
|
#include <vtkSmartPointer.h>
|
||||||
#include <vtkIdTypeArray.h>
|
#include <vtkIdTypeArray.h>
|
||||||
#ifdef _MSC_VER
|
#include <Standard_WarningsRestore.hxx>
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class vtkIdTypeArray;
|
class vtkIdTypeArray;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user