Mercurial > hg > wabletios
comparison scanpath.mm @ 9:0e03760cf2d9
save preset stuff, not quite there
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 14 May 2013 18:05:08 +0100 |
parents | 4ea605899aca |
children | 426d645d8e69 |
comparison
equal
deleted
inserted
replaced
8:4ea605899aca | 9:0e03760cf2d9 |
---|---|
408 } | 408 } |
409 //---------------------------------------------------------------- | 409 //---------------------------------------------------------------- |
410 | 410 |
411 Json::Value ScanPath::convertToJsonForSaving(){ | 411 Json::Value ScanPath::convertToJsonForSaving(){ |
412 Json::Value jscanpath; | 412 Json::Value jscanpath; |
413 jscanpath["numElements"] = numElements; | 413 |
414 // shiit. pointers mean nothing. the lups won't know which index they are. | 414 for(int i=0;i<pathElements.size();i++){ |
415 //scanPath.addElement(&lumps[scanPathElements[i]["lumpNo"].asInt()], &springs[scanPathElements[i]["springNo"].asInt()]); | |
416 jscanpath[i]["lumpNo"] = pathElements[i].eLump->myIndexInMesh; | |
417 jscanpath[i]["springNo"] = pathElements[i].eSpring->myIndexInMesh; | |
418 } | |
419 | |
415 return jscanpath; | 420 return jscanpath; |
416 } | 421 } |
417 | 422 |
418 //---------------------------------------------------------------- | 423 //---------------------------------------------------------------- |
419 | 424 |