13 #ifndef mitknnInteractiveTool_h
14 #define mitknnInteractiveTool_h
42 itkFactorylessNewMacro(
Self)
44 const
char* GetName() const override;
45 const
char** GetXPM() const override;
46 us::ModuleResource GetIconResource() const override;
47 bool CanHandle(const
BaseData* referenceData, const
BaseData* workingData) const override;
48 void Deactivated() override;
52 const nnInteractive::Interactor* GetInteractor(nnInteractive::
InteractionType interactionType) const;
55 void DisableInteractor(std::optional<nnInteractive::
InteractionType> interactionType = std::nullopt);
56 void ResetInteractions();
57 bool HasInteractions() const;
59 bool GetAutoZoom() const;
60 void SetAutoZoom(
bool autoZoom);
62 bool GetAutoRefine() const;
63 void SetAutoRefine(
bool autoRefine);
65 std::optional<nnInteractive::
Backend> GetBackend() const;
67 std::
string GetVirtualEnvName() const;
68 bool CreatePythonContext();
70 bool IsInstalled() const;
74 bool IsSessionRunning() const;
75 void InitializeSessionWithMask(
Image* mask);
86 void ConfirmCleanUp() override;
92 std::unique_ptr<Impl> m_Impl;
#define MITKPYTHONSEGMENTATION_EXPORT
Base of all data objects.
Image class for storing images.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
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
Color Standard RGB color typedef (float)