Skip to content

Commit

Permalink
BUG: Disable picking on beam nodes
Browse files Browse the repository at this point in the history
It was impossible to move the isocenter in 3D when a beam was shown as the closest point on the beam was always picked.

Re #218
  • Loading branch information
cpinter committed Oct 9, 2023
1 parent aa05089 commit 20e4db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Beams/MRML/vtkMRMLRTBeamNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ vtkMRMLRTBeamNode::vtkMRMLRTBeamNode()
this->SourceToJawsDistanceX = 500.;
this->SourceToJawsDistanceY = 500.;
this->SourceToMultiLeafCollimatorDistance = 400.;

this->Selectable = false;
}

//----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Beams/MRML/vtkMRMLRTPlanNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void vtkMRMLRTPlanNode::Copy(vtkMRMLNode *anode)
for (std::vector<vtkMRMLRTBeamNode*>::iterator beamIt = beams.begin(); beamIt != beams.end(); ++beamIt)
{
vtkMRMLRTBeamNode* beamNode = (*beamIt);
vtkSmartPointer<vtkMRMLRTBeamNode> beamNodeCopy = vtkSmartPointer<vtkMRMLRTBeamNode>::New();
vtkNew<vtkMRMLRTBeamNode> beamNodeCopy;
this->GetScene()->AddNode(beamNodeCopy);
beamNodeCopy->Copy(beamNode);
}
Expand Down

0 comments on commit 20e4db3

Please sign in to comment.