| 144 | } |
| 145 | |
| 146 | bool mitk::BaseData::IsEmpty() const |
| 147 | { |
| 148 | if (IsInitialized() == false) |
| 149 | return true; |
| 150 | const TimeGeometry *timeGeometry = const_cast<BaseData *>(this)->GetUpdatedTimeGeometry(); |
| 151 | if (timeGeometry == nullptr) |
| 152 | return true; |
| 153 | unsigned int timeSteps = timeGeometry->CountTimeSteps(); |
| 154 | for (unsigned int t = 0; t < timeSteps; ++t) |
| 155 | { |
| 156 | if (IsEmptyTimeStep(t) == false) |
| 157 | return false; |
| 158 | } |
| 159 | return true; |
| 160 | } |
| 161 | |
| 162 | itk::SmartPointer<mitk::BaseDataSource> mitk::BaseData::GetSource() const |
| 163 | { |
no test coverage detected