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

Method Enable

Modules/PythonSegmentation/src/mitknnInteractiveInteractor.cpp:134–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void mitk::nnInteractive::Interactor::Enable(PromptType promptType)
135{
136 if (m_Impl->IsEnabled)
137 {
138 if (promptType == m_Impl->CurrentPromptType)
139 return;
140
141 this->Disable();
142 }
143
144 m_Impl->BlockLMBDisplayInteraction();
145
146 m_Impl->CurrentPromptType = promptType;
147
148 this->OnEnable();
149
150 m_Impl->IsEnabled = true;
151}
152
153void mitk::nnInteractive::Interactor::Disable()
154{

Callers 1

EnableInteractorMethod · 0.45

Calls 3

DisableMethod · 0.95
OnEnableMethod · 0.45

Tested by

no test coverage detected