comparison OrthancServer/Sources/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 5348:303e930fff0f

"/tools/create-dicom" can now be used to create Encapsulated 3D Manufacturing Model IODs (MTL, OBJ, or STL)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 02 Jul 2023 16:24:56 +0200
parents 0ea402b4d901
children 3c8286e5d07b aaf7c49a9ddc 59e3b6f8c5be
comparison
equal deleted inserted replaced
5347:4f686f6150c7 5348:303e930fff0f
957 957
958 958
959 InjectTags(dicom, request[TAGS], decodeBinaryTags, privateCreator, force); 959 InjectTags(dicom, request[TAGS], decodeBinaryTags, privateCreator, force);
960 960
961 961
962 // Inject the content (either an image, or a PDF file) 962 // Inject the content (either an image, a PDF file, or a STL/OBJ/MTL file)
963 if (request.isMember(CONTENT)) 963 if (request.isMember(CONTENT))
964 { 964 {
965 const Json::Value& content = request[CONTENT]; 965 const Json::Value& content = request[CONTENT];
966 966
967 if (content.type() == Json::stringValue) 967 if (content.type() == Json::stringValue)
998 .SetSummary("Create one DICOM instance") 998 .SetSummary("Create one DICOM instance")
999 .SetDescription("Create one DICOM instance, and store it into Orthanc") 999 .SetDescription("Create one DICOM instance, and store it into Orthanc")
1000 .SetRequestField(TAGS, RestApiCallDocumentation::Type_JsonObject, 1000 .SetRequestField(TAGS, RestApiCallDocumentation::Type_JsonObject,
1001 "Associative array containing the tags of the new instance to be created", true) 1001 "Associative array containing the tags of the new instance to be created", true)
1002 .SetRequestField(CONTENT, RestApiCallDocumentation::Type_String, 1002 .SetRequestField(CONTENT, RestApiCallDocumentation::Type_String,
1003 "This field can be used to embed an image (pixel data) or a PDF inside the created DICOM instance. " 1003 "This field can be used to embed an image (pixel data encoded as PNG or JPEG), a PDF, or a "
1004 "The PNG image, the JPEG image or the PDF file must be provided using their " 1004 "3D manufactoring model (MTL/OBJ/STL) inside the created DICOM instance. "
1005 "The file to be encapsulated must be provided using its "
1005 "[data URI scheme encoding](https://en.wikipedia.org/wiki/Data_URI_scheme). " 1006 "[data URI scheme encoding](https://en.wikipedia.org/wiki/Data_URI_scheme). "
1006 "This field can possibly contain a JSON array, in which case a DICOM series is created " 1007 "This field can possibly contain a JSON array, in which case a DICOM series is created "
1007 "containing one DICOM instance for each item in the `Content` field.", false) 1008 "containing one DICOM instance for each item in the `Content` field.", false)
1008 .SetRequestField(PARENT, RestApiCallDocumentation::Type_String, 1009 .SetRequestField(PARENT, RestApiCallDocumentation::Type_String,
1009 "If present, the newly created instance will be attached to the parent DICOM resource " 1010 "If present, the newly created instance will be attached to the parent DICOM resource "