- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp
r955b91 rf10b0c 29 29 #include "World.hpp" 30 30 31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery( std::string title, bool _check, std::string _description) :32 Dialog::VectorsQuery( title,_check, _description)31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > ¶m, std::string title, bool _check, std::string _description) : 32 Dialog::VectorsQuery(param, title,_check, _description) 33 33 {} 34 34 … … 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >(); 42 std::vector<Vector> temp_vectors; 42 43 for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) { 43 44 temp = (*iter).toVector(); 44 45 if ((!check) || (World::getInstance().getDomain().isValid(temp))) 45 t mp.push_back(temp);46 temp_vectors.push_back(temp); 46 47 else 47 48 ELOG(1, "Vector " << temp << " would be outside of box domain."); 48 49 } 50 tmp.set(temp_vectors); 49 51 return true; 50 52 } else {
Note:
See TracChangeset
for help on using the changeset viewer.