Add UI for DIDKIT.

This commit is contained in:
Krad
2022-09-23 13:13:41 +08:00
parent 90ead1ce1a
commit cc4326ded3
31 changed files with 1014 additions and 69 deletions

View File

@@ -82,11 +82,13 @@ void ImageSetStore::addImageSet(ExtendMedicalImageProperties* property) {
if (study->series->count(series_uid)>0){
study->series->at(series_uid)->insert({property->GetUniqueID(),property});
imageProperties.push_back(property);
property->Register(placeHolder);
}
else {
ImageSetMapType* v = new ImageSetMapType;
v->insert({property->GetUniqueID(),property});
study->series->insert({series_uid,v});
imageProperties.push_back(property);
property->Register(placeHolder);
}
}

View File

@@ -86,14 +86,10 @@ bool ExtendMedicalImageProperties::RescaledImageDataIsSigned()
void ExtendMedicalImageProperties::GenerateUniqueID() {
std::string uniqueID;
uniqueID.append(PatientName);
uniqueID.append("_");
uniqueID.append(StudyUID);
uniqueID.append("_");
uniqueID.append(SeriesUID);
uniqueID.append("_");
char img[200]={0};
sprintf(img,"%ld", ImageSetNumber);
sprintf(img,"_%ld", ImageSetNumber);
uniqueID.append(img);
this->SetUniqueID(uniqueID.c_str());
}