2016-01-20 22:40:54 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2016-01-20 22:40:54 +00:00
|
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
## PURPOSE. See the above copyright notice for more information.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
set(headers
|
2016-06-02 21:43:30 +00:00
|
|
|
Actor.h
|
2016-05-25 21:32:10 +00:00
|
|
|
AxisAnnotation.h
|
|
|
|
AxisAnnotation2D.h
|
|
|
|
AxisAnnotation3D.h
|
2016-06-01 20:56:30 +00:00
|
|
|
BitmapFont.h
|
|
|
|
BitmapFontFactory.h
|
2016-05-25 21:32:10 +00:00
|
|
|
BoundingBoxAnnotation.h
|
2016-06-02 19:04:01 +00:00
|
|
|
Camera.h
|
2016-06-02 22:02:17 +00:00
|
|
|
Canvas.h
|
|
|
|
CanvasRayTracer.h
|
2016-01-20 22:40:54 +00:00
|
|
|
Color.h
|
2016-05-25 21:32:10 +00:00
|
|
|
ColorBarAnnotation.h
|
2017-07-28 17:31:19 +00:00
|
|
|
ColorLegendAnnotation.h
|
2017-06-17 21:28:45 +00:00
|
|
|
ConnectivityProxy.h
|
2018-09-11 02:25:42 +00:00
|
|
|
Cylinderizer.h
|
2022-04-01 10:33:57 +00:00
|
|
|
GlyphType.h
|
2017-09-14 16:40:23 +00:00
|
|
|
LineRenderer.h
|
2021-10-02 21:08:03 +00:00
|
|
|
LineRendererBatcher.h
|
2016-06-01 20:56:30 +00:00
|
|
|
MatrixHelpers.h
|
2016-02-09 13:59:26 +00:00
|
|
|
Scene.h
|
2016-06-02 19:41:14 +00:00
|
|
|
Mapper.h
|
2018-09-11 02:25:42 +00:00
|
|
|
MapperCylinder.h
|
2022-04-01 10:33:57 +00:00
|
|
|
MapperGlyphBase.h
|
|
|
|
MapperGlyphScalar.h
|
|
|
|
MapperGlyphVector.h
|
2018-09-11 02:25:42 +00:00
|
|
|
MapperPoint.h
|
|
|
|
MapperQuad.h
|
2016-06-02 19:41:14 +00:00
|
|
|
MapperRayTracer.h
|
|
|
|
MapperVolume.h
|
2017-06-17 21:28:45 +00:00
|
|
|
MapperConnectivity.h
|
2017-08-16 18:45:28 +00:00
|
|
|
MapperWireframer.h
|
2018-09-11 02:25:42 +00:00
|
|
|
Quadralizer.h
|
2020-02-18 03:00:09 +00:00
|
|
|
ScalarRenderer.h
|
2016-06-01 20:56:30 +00:00
|
|
|
TextAnnotation.h
|
2016-09-01 15:46:37 +00:00
|
|
|
TextAnnotationBillboard.h
|
|
|
|
TextAnnotationScreen.h
|
2017-09-07 16:51:41 +00:00
|
|
|
TextRenderer.h
|
2021-10-02 21:08:03 +00:00
|
|
|
TextRendererBatcher.h
|
2017-09-18 22:18:33 +00:00
|
|
|
Texture2D.h
|
2016-01-20 22:40:54 +00:00
|
|
|
Triangulator.h
|
2016-06-02 21:43:30 +00:00
|
|
|
View.h
|
2016-11-23 15:48:22 +00:00
|
|
|
View1D.h
|
2016-09-01 18:33:28 +00:00
|
|
|
View2D.h
|
|
|
|
View3D.h
|
2019-01-29 19:28:19 +00:00
|
|
|
Wireframer.h
|
2016-05-25 21:32:10 +00:00
|
|
|
WorldAnnotator.h
|
|
|
|
)
|
|
|
|
|
2016-08-25 23:54:32 +00:00
|
|
|
set(sources
|
2021-08-12 20:48:39 +00:00
|
|
|
Actor.cxx
|
|
|
|
AxisAnnotation.cxx
|
|
|
|
AxisAnnotation2D.cxx
|
|
|
|
AxisAnnotation3D.cxx
|
2016-08-26 19:30:52 +00:00
|
|
|
BitmapFont.cxx
|
|
|
|
BitmapFontFactory.cxx
|
2021-08-12 20:48:39 +00:00
|
|
|
BoundingBoxAnnotation.cxx
|
2016-08-26 19:52:07 +00:00
|
|
|
Camera.cxx
|
2016-11-23 18:45:03 +00:00
|
|
|
Color.cxx
|
2021-08-12 20:48:39 +00:00
|
|
|
ColorBarAnnotation.cxx
|
|
|
|
ColorLegendAnnotation.cxx
|
|
|
|
LineRenderer.cxx
|
|
|
|
Mapper.cxx
|
|
|
|
MapperConnectivity.cxx
|
|
|
|
Scene.cxx
|
|
|
|
TextAnnotation.cxx
|
|
|
|
TextAnnotationBillboard.cxx
|
|
|
|
TextAnnotationScreen.cxx
|
|
|
|
TextRenderer.cxx
|
|
|
|
View.cxx
|
|
|
|
View1D.cxx
|
|
|
|
View2D.cxx
|
|
|
|
View3D.cxx
|
|
|
|
WorldAnnotator.cxx
|
|
|
|
|
2019-04-17 17:59:49 +00:00
|
|
|
raytracing/Logger.cxx
|
2021-08-12 20:48:39 +00:00
|
|
|
raytracing/MeshConnectivityContainers.cxx
|
|
|
|
raytracing/TriangleExtractor.cxx
|
2019-04-17 17:59:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# This list of sources has code that uses devices and so might need to be
|
|
|
|
# compiled with a device-specific compiler (like CUDA).
|
|
|
|
set(device_sources
|
|
|
|
Canvas.cxx
|
|
|
|
CanvasRayTracer.cxx
|
|
|
|
ConnectivityProxy.cxx
|
2021-10-02 21:08:03 +00:00
|
|
|
LineRendererBatcher.cxx
|
2018-09-11 02:25:42 +00:00
|
|
|
MapperCylinder.cxx
|
2022-04-01 10:33:57 +00:00
|
|
|
MapperGlyphBase.cxx
|
|
|
|
MapperGlyphScalar.cxx
|
|
|
|
MapperGlyphVector.cxx
|
2018-09-11 02:25:42 +00:00
|
|
|
MapperPoint.cxx
|
|
|
|
MapperQuad.cxx
|
2016-08-29 21:50:47 +00:00
|
|
|
MapperRayTracer.cxx
|
|
|
|
MapperVolume.cxx
|
2019-04-17 17:59:49 +00:00
|
|
|
MapperWireframer.cxx
|
2020-02-18 03:00:09 +00:00
|
|
|
ScalarRenderer.cxx
|
2021-10-02 21:08:03 +00:00
|
|
|
TextRendererBatcher.cxx
|
2019-04-17 17:59:49 +00:00
|
|
|
|
|
|
|
internal/RunTriangulator.cxx
|
2021-08-12 20:48:39 +00:00
|
|
|
|
2019-04-17 17:59:49 +00:00
|
|
|
raytracing/BoundingVolumeHierarchy.cxx
|
|
|
|
raytracing/Camera.cxx
|
|
|
|
raytracing/ChannelBuffer.cxx
|
|
|
|
raytracing/ConnectivityTracer.cxx
|
|
|
|
raytracing/CylinderExtractor.cxx
|
|
|
|
raytracing/CylinderIntersector.cxx
|
2022-04-01 10:33:57 +00:00
|
|
|
raytracing/GlyphExtractor.cxx
|
|
|
|
raytracing/GlyphExtractorVector.cxx
|
|
|
|
raytracing/GlyphIntersector.cxx
|
|
|
|
raytracing/GlyphIntersectorVector.cxx
|
2019-04-17 17:59:49 +00:00
|
|
|
raytracing/MeshConnectivityBuilder.cxx
|
|
|
|
raytracing/QuadExtractor.cxx
|
|
|
|
raytracing/QuadIntersector.cxx
|
|
|
|
raytracing/RayOperations.cxx
|
2021-08-12 20:48:39 +00:00
|
|
|
raytracing/RayTracer.cxx
|
2020-02-08 04:30:55 +00:00
|
|
|
raytracing/ScalarRenderer.cxx
|
2019-04-17 17:59:49 +00:00
|
|
|
raytracing/ShapeIntersector.cxx
|
|
|
|
raytracing/SphereExtractor.cxx
|
|
|
|
raytracing/SphereIntersector.cxx
|
|
|
|
raytracing/TriangleIntersector.cxx
|
|
|
|
raytracing/VolumeRendererStructured.cxx
|
2016-08-25 23:54:32 +00:00
|
|
|
)
|
|
|
|
|
2017-10-05 14:28:44 +00:00
|
|
|
# the None backend supports not building the opengl version
|
2016-08-26 21:58:21 +00:00
|
|
|
|
2016-01-20 22:40:54 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2017-02-22 23:18:23 +00:00
|
|
|
vtkm_library(
|
2017-10-05 14:28:44 +00:00
|
|
|
NAME vtkm_rendering
|
2017-02-22 23:18:23 +00:00
|
|
|
SOURCES ${sources}
|
2017-10-05 14:28:44 +00:00
|
|
|
HEADERS ${headers}
|
2019-07-08 18:09:09 +00:00
|
|
|
DEVICE_SOURCES ${device_sources}
|
2017-02-22 23:18:23 +00:00
|
|
|
)
|
2016-05-25 21:32:10 +00:00
|
|
|
|
2017-10-05 14:28:44 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2017-07-08 16:14:08 +00:00
|
|
|
if(UNIX AND NOT APPLE)
|
2019-04-17 17:59:49 +00:00
|
|
|
target_link_libraries(vtkm_rendering PRIVATE rt)
|
2017-07-08 16:14:08 +00:00
|
|
|
endif()
|
|
|
|
|
2017-10-05 14:28:44 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2016-11-23 19:14:44 +00:00
|
|
|
add_subdirectory(internal)
|
|
|
|
add_subdirectory(raytracing)
|
2022-02-16 12:50:39 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Pretty much obsolete, but might be expected to be exported.
|
|
|
|
include(VTKmRenderingContexts)
|