comparison OrthancServer/OrthancRestApi/RadiotherapyRestApi.cpp @ 948:e57e08ed510f dicom-rt

integration mainline -> dicom-rt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Jun 2014 13:57:05 +0200
parents c19552f604d5
children
comparison
equal deleted inserted replaced
767:c19552f604d5 948:e57e08ed510f
276 ServerContext& context, 276 ServerContext& context,
277 const std::string& instanceId, 277 const std::string& instanceId,
278 const Json::Value& roi, 278 const Json::Value& roi,
279 unsigned int index) 279 unsigned int index)
280 { 280 {
281 boost::mutex::scoped_lock lock(context.GetDicomFileMutex()); 281 std::string content;
282 ParsedDicomFile& dicom = context.GetDicomFile(instanceId); 282 context.ReadFile(content, instanceId, FileContentType_Dicom);
283
284 ParsedDicomFile dicom(content);
283 285
284 ParsedDicomFile::SequencePath path; 286 ParsedDicomFile::SequencePath path;
285 path.push_back(std::make_pair(DicomTag(0x3006, 0x0039 /* ROIContourSequence */), roi["InternalIndex"].asInt())); 287 path.push_back(std::make_pair(DicomTag(0x3006, 0x0039 /* ROIContourSequence */), roi["InternalIndex"].asInt()));
286 path.push_back(std::make_pair(DicomTag(0x3006, 0x0040 /* ContourSequence */), index)); 288 path.push_back(std::make_pair(DicomTag(0x3006, 0x0040 /* ContourSequence */), index));
287 289
808 810
809 811
810 /** 812 /**
811 storescu localhost 4242 ~/DICOM/Akos/data1/*.dcm 813 storescu localhost 4242 ~/DICOM/Akos/data1/*.dcm
812 curl http://localhost:8042/series/10668f4a-fcc8fd1c-832e409c-5c7c018f-7ac8d3d9/rt-structures 814 curl http://localhost:8042/series/10668f4a-fcc8fd1c-832e409c-5c7c018f-7ac8d3d9/rt-structures
815 curl http://localhost:8042/series/10668f4a-fcc8fd1c-832e409c-5c7c018f-7ac8d3d9/rt-structures/roi/5/closed-planar/19/vertices
813 **/ 816 **/