Commit a2d4265e authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkRenderingVolumeOpenGL2: update to the new module system

parent da0cf170
include(vtkObjectFactory)
set(Module_SRCS
vtkMultiBlockVolumeMapper.cxx
vtkOpenGLGPUVolumeRayCastMapper.cxx
vtkOpenGLProjectedTetrahedraMapper.cxx
vtkOpenGLRayCastImageDisplayHelper.cxx
vtkSmartVolumeMapper.cxx
vtkVolumeTexture.cxx
vtkVolumeInputHelper.cxx
vtkOpenGLVolumeRGBTable.cxx
vtkOpenGLVolumeOpacityTable.cxx
vtkOpenGLVolumeGradientOpacityTable.cxx
vtkOpenGLTransferFunction2D.cxx
vtkOpenGLUniforms.cxx
)
set(classes
vtkMultiBlockVolumeMapper
vtkOpenGLGPUVolumeRayCastMapper
vtkOpenGLProjectedTetrahedraMapper
vtkOpenGLRayCastImageDisplayHelper
vtkOpenGLTransferFunction2D
vtkOpenGLUniforms
vtkOpenGLVolumeGradientOpacityTable
vtkOpenGLVolumeOpacityTable
vtkOpenGLVolumeRGBTable
vtkSmartVolumeMapper
vtkVolumeInputHelper
vtkVolumeTexture)
set(shader_files
shaders/raycasterfs.glsl
shaders/raycastervs.glsl
shaders/vtkglProjectedTetrahedraVS.glsl
shaders/vtkglProjectedTetrahedraFS.glsl
)
shaders/vtkglProjectedTetrahedraFS.glsl)
unset(shader_h_files)
foreach(file ${shader_files})
set(sources)
set(headers)
foreach (shader_file IN LISTS shader_files)
vtk_encode_string(
INPUT "${file}"
INPUT "${shader_file}"
EXPORT_SYMBOL "VTKRENDERINGVOLUMEOPENGL2_EXPORT"
EXPORT_HEADER "vtkRenderingVolumeOpenGL2Module.h"
HEADER_OUTPUT header
SOURCE_OUTPUT source)
list(APPEND Module_SRCS ${source})
endforeach()
list(APPEND sources ${source})
list(APPEND header ${header})
endforeach ()
# Now for the object factory.
set(opengl_overrides
GPUVolumeRayCastMapper
ProjectedTetrahedraMapper
RayCastImageDisplayHelper
)
RayCastImageDisplayHelper)
foreach(_override ${opengl_overrides})
vtk_add_override(vtk${_override} vtkOpenGL${_override})
endforeach()
vtk_object_factory_configure("${vtk_module_overrides}")
foreach (opengl_override IN LISTS opengl_overrides)
vtk_object_factory_declare(
BASE "vtk${opengl_override}"
OVERRIDE "vtkOpenGL${opengl_override}")
endforeach ()
list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKRENDERINGVOLUMEOPENGL2_EXPORT")
vtk_module_library(vtkRenderingVolumeOpenGL2 ${Module_SRCS})
include(vtkOpenGL)
vtk_opengl_link(vtkRenderingVolumeOpenGL2)
vtk_module_add_module(VTK::RenderingVolumeOpenGL2
CLASSES ${classes}
SOURCES ${sources} ${vtk_object_factory_source}
PRIVATE_HEADERS ${headers} ${vtk_object_factory_header})
vtk_module(vtkRenderingVolumeOpenGL2
IMPLEMENTS
vtkRenderingVolume
BACKEND
OpenGL2
IMPLEMENTATION_REQUIRED_BY_BACKEND
TEST_DEPENDS
vtkFiltersModeling
vtkTestingCore
vtkTestingRendering
vtkImagingSources
vtkImagingGeneral
vtkInteractionStyle
vtkInteractionWidgets
vtkIOLegacy
KIT
vtkOpenGL
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkImagingCore
vtkImagingMath
vtkRenderingCore
vtkRenderingOpenGL2
vtkRenderingVolume
vtkglew
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonSystem
vtkCommonTransforms
vtkFiltersCore
vtkFiltersGeneral
vtkFiltersSources
vtksys
)
NAME
VTK::RenderingVolumeOpenGL2
LIBRARY_NAME
vtkRenderingVolumeOpenGL2
KIT
VTK::OpenGL
IMPLEMENTS
VTK::RenderingVolume
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::ImagingCore
VTK::ImagingMath
VTK::RenderingCore
VTK::RenderingOpenGL2
VTK::RenderingVolume
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonSystem
VTK::CommonTransforms
VTK::FiltersCore
VTK::FiltersGeneral
VTK::FiltersSources
VTK::glew
VTK::opengl
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersModeling
VTK::IOImage
VTK::IOLegacy
VTK::IOXML
VTK::ImagingGeneral
VTK::ImagingSources
VTK::InteractionStyle
VTK::InteractionWidgets
VTK::TestingCore
VTK::TestingRendering
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