24 lesion.
name =
"New lesion";
43 return currentLesion.
UID == lesionUID;
47 const auto existingLesion = std::find_if(allLesions.begin(), allLesions.end(), lambda);
50 if (existingLesion != allLesions.end())
52 lesion = *existingLesion;
62 return currentLesionClass.
classType == lesionClassType;
66 const auto existingLesionClass = std::find_if(allLesionClasses.begin(), allLesionClasses.end(), lambda);
69 if (existingLesionClass != allLesionClasses.end())
71 lesionClass = *existingLesionClass;
79 std::vector<bool> lesionPresence;
81 bool presence =
false;
84 std::sort(controlPoints.begin(), controlPoints.end());
85 for (
const auto& controlPoint : controlPoints)
96 lesionPresence.push_back(presence);
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::LesionClass GenerateNewLesionClass(const std::string &lesionClassType="")
Generate a new lesion class with UID and the given string as lesion class type.
MITKSEMANTICRELATIONS_EXPORT void ComputeLesionPresence(LesionData &lesionData, const SemanticTypes::CaseID &caseID)
Compute and store lesion presence for all available control points and information types...
std::vector< LesionClass > LesionClassVector
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::LesionClassVector GetAllLesionClassesOfCase(const SemanticTypes::CaseID &caseID)
Return a vector of lesion classes that are currently available for the given case.
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::Lesion GenerateNewLesion(const std::string &lesionClassType="")
Generate a new lesion and lesion class with UIDs and the given string as lesion class type...
void SetLesionPresence(const std::vector< bool > &lesionPresence)
SemanticTypes::Lesion GetLesion() const
std::vector< Lesion > LesionVector
This class holds the data of each lesion in the lesion tree view. The data is the lesion itself with ...
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::LesionVector GetAllLesionsOfCase(const SemanticTypes::CaseID &caseID)
MITKSEMANTICRELATIONS_EXPORT bool IsLesionPresentAtControlPoint(const SemanticTypes::CaseID &caseID, const SemanticTypes::Lesion &lesion, const SemanticTypes::ControlPoint &controlPoint)
Check if the given lesion is present at the given control point.
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::LesionClass FindExistingLesionClass(const SemanticTypes::CaseID &caseID, const std::string &lesionClassType)
Find and return the whole lesion class including its UID given a specific lesion class type...
MITKSEMANTICRELATIONS_EXPORT std::string GenerateUID()
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::Lesion GetLesionByUID(const SemanticTypes::CaseID &caseID, const SemanticTypes::ID &lesionUID)
Find and return a whole lesion including its lesion class given a specific lesion UID...
MITKSEMANTICRELATIONS_EXPORT SemanticTypes::ControlPointVector GetAllControlPointsOfCase(const SemanticTypes::CaseID &caseID)