Commit cc72646a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkRenderingLICOpenGL2: update to the new module system

parent 9cd575b8
set(Module_SRCS
vtkImageDataLIC2D.cxx
vtkLICNoiseHelper.cxx
vtkLineIntegralConvolution2D.cxx
vtkPainterCommunicator.h
vtkStructuredGridLIC2D.cxx
vtkSurfaceLICComposite.cxx
vtkSurfaceLICHelper.cxx
vtkSurfaceLICInterface.cxx
vtkSurfaceLICMapper.cxx
vtkCompositeSurfaceLICMapper.cxx
vtkTextureIO.cxx
)
set(classes
vtkCompositeSurfaceLICMapper
vtkImageDataLIC2D
vtkLICNoiseHelper
vtkLineIntegralConvolution2D
vtkStructuredGridLIC2D
vtkSurfaceLICComposite
vtkSurfaceLICHelper
vtkSurfaceLICInterface
vtkSurfaceLICMapper
vtkTextureIO)
if (VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER)
add_definitions("-DvtkSurfaceLICPainterTIME")
endif()
if (VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER)
add_definitions("-DvtkLineIntegralConvolution2DTIME")
endif()
set(headers
vtkPainterCommunicator.h)
set(shader_files
vtkLineIntegralConvolution2D_VT.glsl
vtkLineIntegralConvolution2D_AAH.glsl
vtkLineIntegralConvolution2D_AAV.glsl
vtkLineIntegralConvolution2D_CE.glsl
vtkLineIntegralConvolution2D_EE.glsl
vtkLineIntegralConvolution2D_LIC0.glsl
vtkLineIntegralConvolution2D_LICI.glsl
vtkLineIntegralConvolution2D_LICN.glsl
vtkLineIntegralConvolution2D_EE.glsl
vtkLineIntegralConvolution2D_CE.glsl
vtkLineIntegralConvolution2D_AAH.glsl
vtkLineIntegralConvolution2D_AAV.glsl
vtkLineIntegralConvolution2D_VT.glsl
vtkStructuredGridLIC2D_fs.glsl
vtkSurfaceLICInterface_SC.glsl
vtkSurfaceLICInterface_CE.glsl
vtkSurfaceLICInterface_DCpy.glsl
)
unset(shader_h_files)
foreach(file ${shader_files})
vtkSurfaceLICInterface_SC.glsl)
set(shader_h_files)
set(shader_cxx_files)
foreach (shader_file IN LISTS shader_files)
vtk_encode_string(
INPUT "${file}"
INPUT "${shader_file}"
EXPORT_SYMBOL "VTKRENDERINGLICOPENGL2_EXPORT"
EXPORT_HEADER "vtkRenderingLICOpenGL2Module.h"
HEADER_OUTPUT header
SOURCE_OUTPUT source)
list(APPEND Module_SRCS ${source})
endforeach()
list(APPEND shader_cxx_files ${source})
list(APPEND shader_h_files ${header})
endforeach ()
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_module_add_module(VTK::RenderingLICOpenGL2
CLASSES ${classes}
SOURCES ${shader_cxx_files}
HEADERS ${headers}
PRIVATE_HEADERS ${shader_h_files})
include(vtkOpenGL)
vtk_opengl_link(${vtk-module})
if (VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER)
vtk_module_definitions(VTK::RenderingLICOpenGL2
PRIVATE
vtkSurfaceLICPainterTIME)
endif ()
if (VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER)
vtk_module_definitions(VTK::RenderingLICOpenGL2
PRIVATE
vtkLineIntegralConvolution2DTIME)
endif ()
vtk_module_test_data(
Data/SurfaceVectors.vtk
Data/noise.png
Data/timestep_0_15.vts)
add_subdirectory(Cxx)
......@@ -21,58 +21,55 @@ vtk_test_cxx_executable(vtkRenderingLICOpenGL2CxxTests tests
vtkStructuredGridLIC2DTestDriver.cxx
vtkSurfaceLICTestDriver.cxx
)
# vtkSurfaceLICTestDriver needs OpenGL
include(vtkOpenGL)
vtk_opengl_link(vtkRenderingLICOpenGL2CxxTests)
# surface lic on a curved surface
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaults
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaults
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedDefaults.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedDefaults.png,:}"
--step-size=0.4
--num-steps=40
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlended
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlended
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedBlended.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedBlended.png,:}"
--step-size=0.4
--num-steps=40
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--enhance-contrast=1
--lic-intensity=0.8
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMapped
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMapped
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMapped.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMapped.png,:}"
--step-size=0.4
--num-steps=40
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--enhance-contrast=4
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedEnhancedVectorNormalizeOff
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedEnhancedVectorNormalizeOff
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedEnhancedVectorNormalizeOff.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedEnhancedVectorNormalizeOff.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--camera-config=1
--vectors=V
--normalize-vectors=0
......@@ -81,14 +78,14 @@ ExternalData_add_test(VTKData
--enhance-contrast=1
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlendedSmallGrain
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlendedSmallGrain
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedBlendedSmallGrain.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedBlendedSmallGrain.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -100,14 +97,14 @@ ExternalData_add_test(VTKData
--enhance-contrast=1
--lic-intensity=0.8
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallGrain
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallGrain
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMappedSmallGrain.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMappedSmallGrain.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -118,13 +115,13 @@ ExternalData_add_test(VTKData
--enhance-contrast=4
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallVectorNormalizeOff
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallVectorNormalizeOff
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMappedSmallVectorNormalizeOff.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedMappedSmallVectorNormalizeOff.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--camera-config=1
--vectors=V
--normalize-vectors=0
......@@ -138,27 +135,27 @@ ExternalData_add_test(VTKData
--low-lic-contrast-enhancement-factor=0.05
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaultsColor
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaultsColor
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedDefaultsColor.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedDefaultsColor.png,:}"
--step-size=0.4
--num-steps=40
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--color-by-mag=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrain
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrain
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorBlendedSmallGrain.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorBlendedSmallGrain.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -171,14 +168,14 @@ ExternalData_add_test(VTKData
--color-by-mag=1
--lic-intensity=0.6
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrain
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrain
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorMappedSmallGrain.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorMappedSmallGrain.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -190,14 +187,14 @@ ExternalData_add_test(VTKData
--color-by-mag=1
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrainMask
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrainMask
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorBlendedSmallGrainMask.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorBlendedSmallGrainMask.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -212,14 +209,14 @@ ExternalData_add_test(VTKData
--mask-intensity=0.2
--mask-color 1.0 1.0 1.0
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrainMask
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrainMask
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorMappedSmallGrainMask.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedColorMappedSmallGrainMask.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--step-size=0.4
--num-steps=40
......@@ -235,14 +232,14 @@ ExternalData_add_test(VTKData
--mask-intensity=0.2
--mask-color 1.0 1.0 1.0
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedSmallGrainMask
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedSmallGrainMask
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedSmallGrainMask.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICCurvedContrastEnhancedSmallGrainMask.png,:}"
--camera-config=1
--data=${VTK_TEST_DATA_DIR}/Data/disk_out_ref_surface.vtp
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/disk_out_ref_surface.vtp}
--vectors=V
--normalize-vectors=0
--step-size=0.5
......@@ -258,26 +255,26 @@ ExternalData_add_test(VTKData
--mask-intensity=0.2
)
# surface lic on a slice
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICPlanarDefaults
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarDefaults
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICPlanarDefaults.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/SurfaceVectors.vtk
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICPlanarDefaults.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/SurfaceVectors.vtk}
--camera-config=3
--vectors=V
--step-size=1
--num-steps=40
--lic-intensity=0.8
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICPlanarContrastEnhanced
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarContrastEnhanced
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICPlanarContrastEnhanced.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/SurfaceVectors.vtk
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICPlanarContrastEnhanced.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/SurfaceVectors.vtk}
--camera-config=3
--vectors=V
--step-size=1
......@@ -285,13 +282,13 @@ ExternalData_add_test(VTKData
--enhance-contrast=1
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOff
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOff
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOff.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/SurfaceVectors.vtk
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOff.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/SurfaceVectors.vtk}
--camera-config=3
--vectors=V
--normalize-vectors=0
......@@ -306,13 +303,13 @@ ExternalData_add_test(VTKData
--color-by-mag=1
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainUniform
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainUniform
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOffMediumGrainUniform.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/SurfaceVectors.vtk
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOffMediumGrainUniform.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/SurfaceVectors.vtk}
--camera-config=3
--vectors=V
--enhanced-lic=0
......@@ -328,13 +325,13 @@ ExternalData_add_test(VTKData
--color-by-mag=1
--color-mode=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainPerlin
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainPerlin
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOffMediumGrainPerlin.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/SurfaceVectors.vtk
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICPlanarVectorNormalizeOffMediumGrainPerlin.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/SurfaceVectors.vtk}
--camera-config=3
--vectors=V
--normalize-vectors=0
......@@ -350,13 +347,17 @@ ExternalData_add_test(VTKData
--color-mode=1
--anti-alias=1
)
ExternalData_add_test(VTKData
NAME vtkRenderingLICOpenGL2Cxx-SurfaceLICMultiBlockContrastEnhancedPerlin
vtk_module_test_data(
Data/ex-blow_5/,REGEX:.*)
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME VTK::RenderingLICOpenGL2Cxx-SurfaceLICMultiBlockContrastEnhancedPerlin
COMMAND vtkRenderingLICOpenGL2CxxTests TestSurfaceLIC
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestSurfaceLICMultiBlockContrastEnhancedPerlin.png,:}"
--data=${VTK_TEST_DATA_DIR}/Data/ex-blow_5.vtm
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestSurfaceLICMultiBlockContrastEnhancedPerlin.png,:}"
--data=DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/ex-blow_5.vtm}
--camera-config=4
--vectors=DISPLACEMENT_
--step-size=0.1
......
vtk_module(vtkRenderingLICOpenGL2
BACKEND
OpenGL2
TEST_DEPENDS
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
KIT
vtkOpenGL
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkRenderingOpenGL2
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonSystem
vtkIOCore
vtkIOLegacy
vtkIOXML
vtkImagingCore
vtkImagingSources
vtkRenderingCore
vtkglew
vtksys
)
NAME
VTK::RenderingLICOpenGL2
LIBRARY_NAME
vtkRenderingLICOpenGL2
IMPLEMENTABLE
KIT
VTK::OpenGL
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::RenderingOpenGL2
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonSystem
VTK::IOCore
VTK::IOLegacy
VTK::IOXML
VTK::ImagingCore
VTK::ImagingSources
VTK::RenderingCore
VTK::glew
VTK::opengl
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersExtraction
VTK::FiltersGeometry
VTK::FiltersSources
VTK::IOImage
VTK::IOLegacy
VTK::IOXML
VTK::ImagingCore
VTK::InteractionStyle
VTK::TestingCore
VTK::TestingRendering
VTK::opengl
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment