Skip to content

Commit c560fab

Browse files
author
Mikhail Polkovnikov
committed
ENH: Initial beam arc sequence
1 parent 36f5b73 commit c560fab

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

DicomRtImportExport/Logic/vtkSlicerDicomRtReader.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,6 +2706,18 @@ const char* vtkSlicerDicomRtReader::GetBeamTreatmentDeliveryType(unsigned int be
27062706
return beam->TreatmentDeliveryType.c_str();
27072707
}
27082708

2709+
//----------------------------------------------------------------------------
2710+
bool vtkSlicerDicomRtReader::CheckBeamArcDeliveryType(unsigned int beamNumber,
2711+
double& initialAngle, double& finalAngle, bool& rotationDirection) const
2712+
{
2713+
const vtkInternal::BeamEntry* beam=this->Internal->FindBeamByNumber(beamNumber);
2714+
if (!beam)
2715+
{
2716+
return false;
2717+
}
2718+
return beam->IsArcDeliverySequence(initialAngle, finalAngle, rotationDirection);
2719+
}
2720+
27092721
//----------------------------------------------------------------------------
27102722
const char* vtkSlicerDicomRtReader::GetBeamRadiationType(unsigned int beamNumber)
27112723
{

DicomRtImportExport/Logic/vtkSlicerDicomRtReader.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ class VTK_SLICER_DICOMRTIMPORTEXPORT_LOGIC_EXPORT vtkSlicerDicomRtReader : publi
9494
/// Get radiation type (primary particle) for a given beam
9595
const char* GetBeamTreatmentDeliveryType(unsigned int beamNumber);
9696

97+
/// Check if beam control point sequence is an arc beam delivery
98+
/// @param beamNumber - beam number
99+
/// @param initialAngle - initial angle of the arc sequence in degrees
100+
/// @param finalAngle - final angle of the arc sequence in degrees
101+
/// @param rotationDirection - rotation direction of the gantry (0 - clockwise, 1 - counter clockwise)
102+
/// @return true if beam control point sequence is arc, false otherwise
103+
bool CheckBeamArcDeliveryType(unsigned int beamNumber, double& initialAngle,
104+
double& finalAngle, bool& rotationDirection) const;
105+
97106
/// Get radiation type (primary particle) for a given beam
98107
const char* GetBeamRadiationType(unsigned int beamNumber);
99108

0 commit comments

Comments
 (0)