MCPcopy Create free account
hub / github.com/MITK/MITK / IsEmpty

Method IsEmpty

Modules/Core/src/DataManagement/mitkBaseData.cpp:146–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146bool 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
162itk::SmartPointer<mitk::BaseDataSource> mitk::BaseData::GetSource() const
163{

Callers 6

PrintSelfMethod · 0.45
ComputeBoundingBoxMethod · 0.45
ComputeTimeBoundsMethod · 0.45
AddFilterMethod · 0.45
ApplyFilterMethod · 0.45

Calls 2

CountTimeStepsMethod · 0.45

Tested by

no test coverage detected