about LineWidget?

Ideally you should not use the camera information to specify the manipulator but more the widget internal state, e.g. rcw.getWidgetState().getPlanes()[0].origin|normal (or something like that).

Widget representations have a coincidentTopologyParameters parameter. You may want to play with the Line offset + factor