I have load several STL files into scene as model node, and create a new mrml annotation line behind the model node.
But, I wanna to display the annotation node always in front of all model nodes, no matter where annotation node locates.
This feature has been added to Markups module in recent Slicer Preview Release.
In Markups module’s advanced visualization section you can choose to show occluded parts of markups (lines, curves, etc). You can choose to make occluded part appear semi-transparent, this way you don’t break the 3D rendering: you preserve depth cues, but you can also see and pick markups in all viewing angles.