| 165 | namespace |
| 166 | { |
| 167 | std::vector<mitk::MultiLabelSegmentation::GroupIndexType> GetOutdatedGroups(const mitk::LabelSetImageVtkMapper2D::LocalStorage* ls, const mitk::MultiLabelSegmentation* seg) |
| 168 | { |
| 169 | const auto nrOfGroups = seg->GetNumberOfGroups(); |
| 170 | std::vector<mitk::MultiLabelSegmentation::GroupIndexType> result; |
| 171 | |
| 172 | for (mitk::MultiLabelSegmentation::GroupIndexType groupID = 0; groupID < nrOfGroups; ++groupID) |
| 173 | { |
| 174 | const auto groupImage = seg->GetGroupImage(groupID); |
| 175 | if (groupImage->GetMTime() > ls->m_LastDataUpdateTime |
| 176 | || groupImage->GetPipelineMTime() > ls->m_LastDataUpdateTime |
| 177 | || ls->m_GroupImageIDs.size() <= groupID |
| 178 | || groupImage != ls->m_GroupImageIDs[groupID]) |
| 179 | { |
| 180 | result.push_back(groupID); |
| 181 | } |
| 182 | } |
| 183 | return result; |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | void mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(mitk::BaseRenderer *renderer) |
no test coverage detected