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

Method ClearSeeds

Modules/Segmentation/src/Interactions/mitkMonaiLabelTool.cpp:189–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void mitk::MonaiLabelTool::ClearSeeds()
190{
191 if (this->m_PointSetPositive.IsNotNull())
192 {
193 m_PointSetCount -= m_PointSetPositive->GetSize();
194 this->m_PointSetPositive = mitk::PointSet::New(); // renew pointset
195 this->m_PointSetNodePositive->SetData(this->m_PointSetPositive);
196 }
197 if (this->m_PointSetNegative.IsNotNull())
198 {
199 m_PointSetCount -= m_PointSetNegative->GetSize();
200 this->m_PointSetNegative = mitk::PointSet::New(); // renew pointset
201 this->m_PointSetNodeNegative->SetData(this->m_PointSetNegative);
202 }
203}
204
205bool mitk::MonaiLabelTool::IsMonaiServerOn(const std::string &hostName, const int &port) const
206{

Callers 3

DeactivatedMethod · 0.95
OnAddPositivePointMethod · 0.95
ClearPicksMethod · 0.95

Calls 4

IsNotNullMethod · 0.80
NewFunction · 0.50
GetSizeMethod · 0.45
SetDataMethod · 0.45

Tested by

no test coverage detected