13 #ifndef mitknnInteractiveTool_h
14 #define mitknnInteractiveTool_h
90 itkFactorylessNewMacro(Self)
96 const
char* GetName() const override;
104 us::ModuleResource GetIconResource() const override;
115 void Deactivated() override;
136 const nnInteractive::Interactor* GetInteractor(nnInteractive::
InteractionType interactionType) const;
161 void DisableInteractor(std::optional<nnInteractive::
InteractionType> interactionType = std::nullopt);
169 void ResetInteractions();
179 bool HasInteractions() const;
195 void UndoLastInteraction();
207 bool CanUndo() const;
218 bool SupportsUndo() const;
229 bool GetAutoZoom() const;
243 void SetAutoZoom(
bool autoZoom);
254 bool GetAutoRefine() const;
263 void SetAutoRefine(
bool autoRefine);
273 std::optional<nnInteractive::
Backend> GetBackend() const;
282 std::
string GetVirtualEnvName() const;
293 bool CreatePythonContext();
313 bool IsInstalled() const;
331 bool IsLocalInferenceAvailable() const;
347 static const std::vector<std::pair<std::
string, std::
string>>& GetSessionDefiningPreferences();
415 bool IsSessionRunning() const;
425 bool IsRemoteSession() const;
460 int GetHeartbeatIntervalMs() const;
485 std::optional<std::
string> GetModelLicense() const;
499 void InitializeSessionWithMask(
Image* mask);
596 void OnTimePointChanged() override;
609 void ConfirmCleanUp() override;
629 void ConstructLocalSession();
640 void ConstructRemoteSession();
651 void BindSessionImageAndTargetBuffer();
663 bool IsRemoteConnectionError(const std::
string& message) const;
676 bool HandleSessionError(const std::
string& errorMessage);
679 std::unique_ptr<Impl> m_Impl;
#define MITKPYTHONSEGMENTATION_EXPORT
Image class for storing multi-dimensional medical image data.
Base class for all interaction events in MITK.
Event/message class with one parameter.
Event/message/notification class.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
MITK point type extending itk::Point with additional constructors and utility methods.
Provides a Python interpreter context for executing Python code and interacting with MITK data like i...
InteractionType
Specifies the types of interactions available.
PromptType
Specifies the types of prompts used in nnInteractive.
Backend
Specifies the computation backends available for nnInteractive.
Find image slices visible on a given plane.
itk::RGBPixel< float > Color
Standard RGB color typedef using float components.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).