Does vtk have the function of anchoring to a certain point of an actor?

Now I want to implement a function: there are two actors, connected by a dotted line between them. The two actors can be moved by the mouse. The dotted line cannot be moved directly by the mouse, but when any actor is moved, the dotted line connecting them is also will change accordingly, just like the two ends of the dotted line are anchored to these two actors respectively. Does vtk already have this “anchoring” function, or do I need to implement it myself (adjust the length and position of the dotted line according to the position of the actor)?