This commit is contained in:
Jonathan Fransson
2019-03-25 14:37:10 -06:00
committed by ElonOlsson
parent a38635b2f0
commit 02cf344a22
3 changed files with 11 additions and 8 deletions

View File

@@ -25,6 +25,7 @@
include(${OPENSPACE_CMAKE_EXT_DIR}/module_definition.cmake)
set(HEADER_FILES
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablesatellites.h
${CMAKE_CURRENT_SOURCE_DIR}/rendering/planetgeometry.h
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableconstellationbounds.h
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplanet.h
@@ -37,10 +38,12 @@ set(HEADER_FILES
${CMAKE_CURRENT_SOURCE_DIR}/translation/tletranslation.h
${CMAKE_CURRENT_SOURCE_DIR}/translation/horizonstranslation.h
${CMAKE_CURRENT_SOURCE_DIR}/rotation/spicerotation.h
)
source_group("Header Files" FILES ${HEADER_FILES})
set(SOURCE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderablesatellites.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rendering/planetgeometry.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableconstellationbounds.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rendering/renderableplanet.cpp

View File

@@ -228,12 +228,12 @@ RenderableSatellites::RenderableSatellites(const ghoul::Dictionary& dictionary)
* test
*/
const std::string& file = dictionary.value<std::string>(KeyFile);
int lineNumber = 1;
if (dictionary.hasKeyAndValue<double>(KeyLineNumber)) {
lineNumber = static_cast<int>(dictionary.value<double>(KeyLineNumber));
const std::string& file = dictionary.value<std::string(KeyFile);
int lineNum = 1;
if (dictionary.hasKeyAndValue)<double>(KeyLineNum) {
lineNum = static_cast<int>(dictionary.value<double>(KeyLineNum));
}
readTLEFile(file, lineNumber);
readTLEFile(file, lineNum);
}
@@ -737,4 +737,4 @@ void RenderableSatellites::readFromCsvFile() {
}
}
}
}

View File

@@ -27,7 +27,7 @@
#include <modules/base/rendering/renderabletrail.h>
#include <modules/space/translation/keplertranslation.h>
// #include <openspace/util/circlegeometry.h>
//#include <openspace/util/circlegeometry.h>
#include <openspace/properties/stringproperty.h>
#include <openspace/properties/scalar/uintproperty.h>
@@ -116,4 +116,4 @@ private:
#endif // __OPENSPACE_MODULE_BASE___RenderableSatellites___H__
}
}