How to make vtkLineWidget2 rotate with object(vtkActor)

I have used various methods to make vtkLineWidget2 rotate with the object, but none of them have worked. How can I do it
Can someone help me