'Order of drawing in a viewbox
I'm trying to draw multiple objects within a viewbox, but I want them to be drawn in a specific order so overlapping objects have the objects I want drawn on top. One of my objects is a GraphItem (technically a subclass of GraphItem) and the rest of the objects are subclasses of ROI.
Currently the ROI objects are consistently drawn over the GraphItem object which is the opposite of what I want. I don't care about how the ROI objects interact with each other, only that they are drawn over the GraphItem.
I'm not sure how viewbox determines which item is drawn first, so any explanation to that would be great.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
