Mercurial > hg > orthanc-stone
comparison RenderingPlugin/Sources/Plugin.cpp @ 1886:ca89fec8c48f
test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Jan 2022 19:10:30 +0100 |
parents | ddaee6b96501 |
children | aa4ed1cf4e8d |
comparison
equal
deleted
inserted
replaced
1885:ddaee6b96501 | 1886:ca89fec8c48f |
---|---|
512 | 512 |
513 | 513 |
514 std::list< std::vector<OrthancStone::Vector> > p; | 514 std::list< std::vector<OrthancStone::Vector> > p; |
515 accessor.GetRtStruct().GetStructurePoints(p, structureIndex, sopInstanceUid); | 515 accessor.GetRtStruct().GetStructurePoints(p, structureIndex, sopInstanceUid); |
516 | 516 |
517 // curl 'http://localhost:8042/stone/rt-struct/54460695-ba3885ee-ddf61ac0-f028e31d-a6e474d9/numpy?structure=BODY&instance=0dd13003-9b1b2712-0fb44325-48c28c99-430d111b' | |
518 unsigned int count = 0; | |
519 for (std::list< std::vector<OrthancStone::Vector> >::const_iterator | |
520 it = p.begin(); it != p.end(); ++it) | |
521 { | |
522 printf("%d: ", count++); | |
523 for (size_t i = 0; i < it->size(); i++) | |
524 { | |
525 printf("(%.1f,%.1f,%.1f) ", (*it)[i][0], (*it)[i][1], (*it)[i][2]); | |
526 } | |
527 printf("\n"); | |
528 } | |
529 | |
517 std::string s = "hello"; | 530 std::string s = "hello"; |
518 OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, s.c_str(), s.size(), "application/json"); | 531 OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, s.c_str(), s.size(), "application/json"); |
519 } | 532 } |
520 | 533 |
521 | 534 |