Closed cpinter closed 4 years ago
The above screenshot was from the DICOM module's SH tree. After switching to the Data module, the following changes happened:
I can comment some elements about MLC:
Two MLC nodes (table for positions, double array for boundary) are created and added to the scene as this->External->GetMRMLScene()->AddNode(mlcNode);
.
vtkSlicerDicomRtImportExportModuleLogic::vtkInternal::CreateMultiLeafCollimatorDoubleArrayNode
for boundary,vtkSlicerDicomRtImportExportModuleLogic::vtkInternal::CreateMultiLeafCollimatorTableNode
for positions.The part of the code which forms hierarchy: MLC table as a child of the beam, Scan Spot Map data as a child of the ion beam, goes right after scene->EndState(vtkMRMLScene::BatchProcessState);
statement in vtkSlicerDicomRtImportExportModuleLogic::vtkInternal::LoadRtPlan
method.
It doesn't work if i place that part before the EndState command, even when i switched to the Data module (MLC tables will remain under the root).
Thanks, I'll look at this. It is possible we should remove batch processing, since only a few nodes are involved.
However, I cannot do much as long as SlicerRT build fails, please see https://github.com/SlicerRt/SlicerRT/issues/129
Correction about MLC nodes in #120 and #122.
Position MLC table node in hierarchy as a child of beam node has been added only with initial ion plan support #124.
Thanks! I remember that you left some of the SH stuff on us, so no rush with this. What really bothers me is the disappearing items. Maybe @Sunderlandkyl could look at this after the conference (Slicer project week starts on Monday), or me during...
No rush at all. I thought that the mess in DICOM module's hierarchy tree was not a bug but a feature.
Please also note, that in #124 i have slightly changed beam node naming: " BeamName [TreatmentType] : ControlPointIndex" (e.g. "LT LAT PROS [TREATMENT] : CP0").
Of course it can be easily disabled, if it unacceptable!
I removed batch processing, and item creation and parenting work well. Beam visibility as well.
Not sure, but I think this problem is related to the recent changes in the DICOM module, so now there is an active SH tree view during loading, and it updates itself live while the nodes and items from DICOM are being loaded.
Some minor change in style that doesn't affect beam visualization, compared to the previous version. #136
In the latest version subject hierarchy appears and functions normally.
After the recent improvements related to RT plans and beams (https://github.com/SlicerRt/SlicerRT/pull/120 and https://github.com/SlicerRt/SlicerRT/pull/122) these items in subject hierarchy behave in a wrong way.
I loaded the usual test dataset RANDO PROSTATE and got this in subject hierarchy:
Issues: