Medical Imaging Interaction Toolkit
2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitknnInteractiveTool_h
14 #define mitknnInteractiveTool_h
42 itkFactorylessNewMacro(
Self)
44 const char* GetName()
const override;
45 const char** GetXPM()
const override;
47 bool CanHandle(
const BaseData* referenceData,
const BaseData* workingData)
const override;
48 void Deactivated()
override;
50 using InteractorMap = std::unordered_map<nnInteractive::InteractionType, std::unique_ptr<nnInteractive::Interactor>>;
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);
83 void SetToolManager(
ToolManager* toolManager)
override;
86 void ConfirmCleanUp()
override;
90 std::unique_ptr<Impl> m_Impl;
Image class for storing images.
PromptType
Specifies the types of prompts used in nnInteractive.
InteractionType
Specifies the types of interactions available.
Find image slices visible on a given plane.
#define MITKPYTHONSEGMENTATION_EXPORT
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Base of all data objects.
Base class for all nnInteractive interactors.
#define mitkClassMacro(className, SuperClassName)