mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 09:59:44 -05:00
Feature/other data star renderer (#770)
* Adding ability to render other data values from Star speck files * Add new method to OptionProperty to take vector of options * Make it possible to change the speck file at runtime * Include viridis color lut * Add Apogee and Galah datasets * Make it possible to filter stars by other data values * Add ability to statically filter data values
This commit is contained in:
@@ -80,6 +80,12 @@ void OptionProperty::addOptions(std::vector<std::pair<int, std::string>> options
|
||||
}
|
||||
}
|
||||
|
||||
void OptionProperty::addOptions(std::vector<std::string> options) {
|
||||
for (int i = 0; i < static_cast<int>(options.size()); ++i) {
|
||||
addOption(i, std::move(options[i]));
|
||||
}
|
||||
}
|
||||
|
||||
void OptionProperty::clearOptions() {
|
||||
_options.clear();
|
||||
_value = 0;
|
||||
|
||||
Reference in New Issue
Block a user