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

Method HasTimeSteps

Modules/ROI/src/mitkROI.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool 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
144std::vector<mitk::TimeStepType> mitk::ROI::Element::GetTimeSteps() const
145{

Callers 1

to_jsonMethod · 0.80

Calls 2

countMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected