Make vtkMRMLMarkupsFiducialNode unselectable

Default, the vtkMRMLMarkupsFiducailNode can be selected by left mouse press, But In my application, i want vtkMRMLMarkupsFiducailNode can’t be selected by mouse press, how can i implement it? Thanks for your help!

You can call SetLocked(True) on the markup node to prevent any interactions.

Yes, I have called vtkMRMLMarkupsFiducailNode → `SetNthMarkupLocked(true). But There are no effect. code below.

fiducial_node->AddFiducial(tuned_qua[0], tuned_qua[1], tuned_qua[2], “”);
fiducial_node->SetNthFiducialLabel(i, “”);
fiducial_node->SetNthFiducialVisibility(i, false);
fiducial_node->SetNthMarkupLocked(i, true);
fiducial_node->SetNthMarkupSelected(i, false);

Don’t lock individual markup control point position, but the node.

1 Like