I am develeping a tool for slicer that needs a very similar functionality compared to Slicer RT.
I want to display beam in the slicer scene just like it is done in Slcier RT. But i am not very far with that.
I was trying to get into that and managed to draw lines. I found out about vtkMRMLModel(Display)Node and so on.
But could someone please give me a more or less detailed explenation how this task was carried out in Slicer RT, maybe even with a little bit of code.
Could you please give me a quick example of lets say connecting 3 points with straight lines and displaying them on slicer.
I think I would be able to work from there on.
Hi thanks a lot.
This worked well and i could play around with it and using many line sources would serve my task.
I was wondering if a source already exists that combines the line sources and models a rectangular divergent beam.
And I am not quite sure which type of vtkSource was used here.
And what is the reason, that the lines, that I already got with your help, are only visible in 3D part, but not in the other scenes (R, Y, G).
I am trying to create treatment planning modalities. And I have thought about extending RT. But I need to do quite some things differently then performed in Slicer RT.
For example the source itself is different already, so I need to create an own model therefore anyways.
That’s why I was trying to break it down, how this task was carried out in Slicer RT.
But I’m struggling a little, that’s why I asked for help
SlicerRT is created to be modular and extensible. External Beam Planning supports adding any kind of dose computation engine and model. I have a hard time imagining how things could get easier for you starting from scratch and reimplementing 90% of the same features to add your own 10%. Also, working in an established open-source project ensures always high quality code and outsources some of the maintenance burden, so I strongly suggest taking some time to look at the SlicerRT code instead of starting from hello-world type code as you do here. We are here to help, so if you have any question about how things are done in SlicerRT and why, we are happy to answer!
Can I please ask how lines created like shown above, can also be made visible in the red, yellow and green scenes. For now they are only visible in the 3d represetation of the cube.