Skip to content

Commit

Permalink
ENH: Replace use of deprecated functions
Browse files Browse the repository at this point in the history
Warnings appeared when calling the deprecated functions.

Re #218
  • Loading branch information
cpinter committed Oct 5, 2023
1 parent 6fac598 commit b616b9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RoomsEyeView/Logic/vtkSlicerRoomsEyeViewModuleLogic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ void vtkSlicerRoomsEyeViewModuleLogic::UpdateCollimatorToGantryTransform(vtkMRML
{
if (!parameterNode)
{
vtkErrorMacro("UpdateFixedReferenceIsocenterToCollimatorRotatedTransform: Invalid parameter set node");
vtkErrorMacro("UpdateCollimatorToGantryTransform: Invalid parameter set node");
return;
}

Expand Down
8 changes: 4 additions & 4 deletions RoomsEyeView/qSlicerRoomsEyeViewModuleWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ void qSlicerRoomsEyeViewModuleWidget::onBeamNodeChanged(vtkMRMLNode* node)
for (std::vector<vtkMRMLNode*>::iterator beamIt=beamNodes.begin(); beamIt!=beamNodes.end(); ++beamIt)
{
vtkMRMLRTBeamNode* currentBeamNode = vtkMRMLRTBeamNode::SafeDownCast(*beamIt);
shNode->SetDisplayVisibilityForBranch(
shNode->GetItemByDataNode(currentBeamNode), (currentBeamNode==beamNode ? 1 : 0) );
shNode->SetItemDisplayVisibility(
shNode->GetItemByDataNode(currentBeamNode), (currentBeamNode == beamNode ? 1 : 0) );
}

// Select patient segmentation
Expand Down Expand Up @@ -411,8 +411,8 @@ void qSlicerRoomsEyeViewModuleWidget::onPatientBodySegmentationNodeChanged(vtkMR
for (std::vector<vtkMRMLNode*>::iterator segIt=segmentationNodes.begin(); segIt!=segmentationNodes.end(); ++segIt)
{
vtkMRMLSegmentationNode* currentSegmentationNode = vtkMRMLSegmentationNode::SafeDownCast(*segIt);
shNode->SetDisplayVisibilityForBranch(
shNode->GetItemByDataNode(currentSegmentationNode), (currentSegmentationNode==node ? 1 : 0) );
shNode->SetItemDisplayVisibility(
shNode->GetItemByDataNode(currentSegmentationNode), (currentSegmentationNode == node ? 1 : 0) );
}
}

Expand Down

0 comments on commit b616b9a

Please sign in to comment.