mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
167222c814
Merging Dashboard branch that introduces the Dashboard, DashboardItem and moves most of the screen rendering code into a component-based layout that can also be displayed as a screenspace renderable * Add Onscreen Dashboard * Add Dashboard class * Add DashboardItem classes and subclasses * Added font and fontsize customization to dashboarditems * Add default dashboard specifications to all scenes * Add tests.scene to test dashboard items * Add configuration options to DashboardItemDistance * Fix distance conversion to correctly use singular or plural values * Make DashboardItems unique when adding them to a dashboard * Correctly position test with different font sizes * Add Dashboard Item that enables spacing between other items * Add performance measurement to dashboard rendering * Add method to DashboardItemDistance that computes distance to surface * Add DashboardItemAngle that computes and prints the angle between three objects * Add DashboardItemInstruments that shows the instruments on New Horizons * Add ability to OpenSpaceModules to return a list of Luascripts defined by child objects * Make it possible for ScreenSpaceDashboard to work with its own dashboard or the main one
95 lines
5.4 KiB
CMake
95 lines
5.4 KiB
CMake
##########################################################################################
|
|
# #
|
|
# OpenSpace #
|
|
# #
|
|
# Copyright (c) 2014-2017 #
|
|
# #
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this #
|
|
# software and associated documentation files (the "Software"), to deal in the Software #
|
|
# without restriction, including without limitation the rights to use, copy, modify, #
|
|
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to #
|
|
# permit persons to whom the Software is furnished to do so, subject to the following #
|
|
# conditions: #
|
|
# #
|
|
# The above copyright notice and this permission notice shall be included in all copies #
|
|
# or substantial portions of the Software. #
|
|
# #
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, #
|
|
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A #
|
|
# PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT #
|
|
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF #
|
|
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE #
|
|
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #
|
|
##########################################################################################
|
|
|
|
include(${OPENSPACE_CMAKE_EXT_DIR}/module_definition.cmake)
|
|
|
|
set(HEADER_FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dashboard/dashboarditeminstruments.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablecrawlingline.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablefov.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplaneprojection.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplanetprojection.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableshadowcylinder.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablemodelprojection.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/decoder.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/hongkangparser.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/instrumenttimesparser.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/imagesequencer.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/instrumentdecoder.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/labelparser.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/projectioncomponent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/scannerdecoder.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/sequenceparser.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/targetdecoder.h
|
|
)
|
|
|
|
|
|
source_group("Header Files" FILES ${HEADER_FILES})
|
|
|
|
set(SOURCE_FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dashboard/dashboarditeminstruments.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablecrawlingline.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablefov.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplaneprojection.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplanetprojection.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableshadowcylinder.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablemodelprojection.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/decoder.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/hongkangparser.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/instrumenttimesparser.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/imagesequencer.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/instrumentdecoder.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/labelparser.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/projectioncomponent.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/scannerdecoder.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/sequenceparser.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util/targetdecoder.cpp
|
|
)
|
|
source_group("Source Files" FILES ${SOURCE_FILES})
|
|
|
|
set(SHADER_FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/crawlingline_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/crawlingline_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/fov_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/fov_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderableModel_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderableModel_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderableModelProjection_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderableModelProjection_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderablePlanet_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderablePlanet_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderablePlanetProjection_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/renderablePlanetProjection_vs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/terminatorshadow_fs.glsl
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shaders/terminatorshadow_vs.glsl
|
|
)
|
|
source_group("Shader Files" FILES ${SHADER_FILES})
|
|
|
|
create_new_module(
|
|
"SpacecraftInstruments"
|
|
spacecraftinstruments_module
|
|
STATIC
|
|
${HEADER_FILES} ${SOURCE_FILES} ${SHADER_FILES}
|
|
)
|