| 128 | } |
| 129 | |
| 130 | bool mitk::ROI::Element::HasTimeSteps() const |
| 131 | { |
| 132 | // Check for multiple time steps. |
| 133 | if (m_Min.size() > 1 && m_Max.size() > 1) |
| 134 | return true; |
| 135 | |
| 136 | // Check for single time step that is not 0. |
| 137 | if (m_Min.size() >= 1 && m_Max.size() >= 1) |
| 138 | return m_Min.count(0) == 0 && m_Max.count(0) == 0; |
| 139 | |
| 140 | // Single time step 0. |
| 141 | return false; |
| 142 | } |
| 143 | |
| 144 | std::vector<mitk::TimeStepType> mitk::ROI::Element::GetTimeSteps() const |
| 145 | { |