mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 06:48:35 -05:00
only get selected datavalues from file
This commit is contained in:
@@ -64,7 +64,7 @@ return {
|
||||
--"saturn",
|
||||
--"uranus",
|
||||
--"neptune",
|
||||
--"stars",
|
||||
"stars",
|
||||
--"stars-denver",
|
||||
"milkyway",
|
||||
--"milkyway-eso",
|
||||
|
||||
@@ -195,12 +195,10 @@ std::vector<float*> DataProcessorText::processData(std::string data, properties:
|
||||
last = line.find_first_of(" \t", first);
|
||||
last = (last > 0)? last : lineSize;
|
||||
|
||||
if(option >= 0){
|
||||
if(option >= 0 && std::find(selectedOptions.begin(), selectedOptions.end(), option) != selectedOptions.end()){
|
||||
// boost::spirit::qi::parse(&line[first], &line[last], boost::spirit::qi::float_, value);
|
||||
value = std::stof(line.substr(first, last));
|
||||
|
||||
if(std::find(selectedOptions.begin(), selectedOptions.end(), option) != selectedOptions.end())
|
||||
dataOptions[option][numValues] = processDataPoint(value, option);
|
||||
dataOptions[option][numValues] = processDataPoint(value, option);
|
||||
}
|
||||
|
||||
option++;
|
||||
|
||||
Submodule modules/kameleon/ext/kameleon updated: f9ba0caae4...3de739a553
Reference in New Issue
Block a user