Skip to content

Commit

Permalink
FIX: MLC distance and JawPositions proper default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Colonel authored and MichaelColonel committed Jan 7, 2020
1 parent c279962 commit 89834f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Beams/MRML/vtkMRMLRTIonBeamNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,9 @@ void vtkMRMLRTIonBeamNode::CreateBeamPolyData(vtkPolyData* beamModelPolyData/*=n
}
else
{
vtkErrorMacro("CreateBeamPolyData: Invalid table node with " \
vtkWarningMacro("CreateBeamPolyData: Invalid or absent table node with " \
"scan spot parameters for a node "
<< "\"" << this->GetName() << "\"");
return;
}

// Scanning spot beam
Expand Down
8 changes: 4 additions & 4 deletions DicomRtImportExport/Logic/vtkSlicerDicomRtReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class vtkSlicerDicomRtReader::vtkInternal
public:
BeamLimitingDeviceEntry()
:
SourceIsoDistance(0.),
SourceIsoDistance(400.),
NumberOfPairs(0)
{
}
Expand Down Expand Up @@ -253,7 +253,7 @@ class vtkSlicerDicomRtReader::vtkInternal
Number(0),
Type("STATIC"),
RadiationIon({ 0, 0, 0 }),
SourceAxisDistance({ 1000., 1000. }),
SourceAxisDistance({ 2000., 2000. }),
SourceIsoToJawsDistance({ 500., 500. }),
NumberOfCompensators(0),
NumberOfBlocks(0),
Expand Down Expand Up @@ -474,7 +474,7 @@ vtkSlicerDicomRtReader::vtkInternal::ControlPointEntry::ControlPointEntry()
BeamLimitingDeviceAngle(0.0),
NominalBeamEnergy(0.0),
MetersetRate(0.0),
JawPositions({ 0.0, 0.0, 0.0, 0.0 })
JawPositions({ -100.0, 100.0, -100.0, 100.0 })
{
}

Expand Down Expand Up @@ -1763,7 +1763,7 @@ void vtkSlicerDicomRtReader::vtkInternal::LoadRTIonPlan(DcmDataset* dataset)
controlPoint.NumberOfPaintings = nofPaintings;
}
}

DRTBeamLimitingDevicePositionSequence &currentCollimatorPositionSequence =
controlPointItem.getBeamLimitingDevicePositionSequence();
if (currentCollimatorPositionSequence.isValid() &&
Expand Down

0 comments on commit 89834f5

Please sign in to comment.