How does the vtkDistanceWidget follow image translation?

Hi all,
I found that vtkTextWidget cannot follow image translation or scaling, but vtkDistanceWidget can, so I want to modify the code of vtkTextWidget like vtkDistanceWidget .
Thanks!