Simplify ruler to a straight line

I want to use the ruler as a generic line for different purposes. I can simplify it to a degree where it nearly fits my requirements. Only the start and end markers (see picture, marked with yellow arrows) are still there and I cannot find where they are implemented. Can someone direct me to the code that is the basis for those noses?

As an alternative I also tried with vtkLineSource, however, I cannot set a thickness there and it is not rendered in the slice views (only in 3d views). vtkCylinderSource is also not optimal as the radius would have to be dependent on the camera position and the projection onto the slice views always results in a rectangle.

You can use markups line in recent preview releases.

1 Like

@Johan_Andruejol This may be useful

I will keep that in mind, however I have to work with a stable version for now. Thanks.