File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
DicomRtImportExport/Logic Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2706,6 +2706,18 @@ const char* vtkSlicerDicomRtReader::GetBeamTreatmentDeliveryType(unsigned int be
2706
2706
return beam->TreatmentDeliveryType .c_str ();
2707
2707
}
2708
2708
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
+
2709
2721
// ----------------------------------------------------------------------------
2710
2722
const char * vtkSlicerDicomRtReader::GetBeamRadiationType (unsigned int beamNumber)
2711
2723
{
Original file line number Diff line number Diff line change @@ -94,6 +94,15 @@ class VTK_SLICER_DICOMRTIMPORTEXPORT_LOGIC_EXPORT vtkSlicerDicomRtReader : publi
94
94
// / Get radiation type (primary particle) for a given beam
95
95
const char * GetBeamTreatmentDeliveryType (unsigned int beamNumber);
96
96
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
+
97
106
// / Get radiation type (primary particle) for a given beam
98
107
const char * GetBeamRadiationType (unsigned int beamNumber);
99
108
You can’t perform that action at this time.
0 commit comments