[vtkusers] How do I copy scaling from one vtkHandleWidget to another...

kent williams nkwmailinglists at gmail.com
Fri Jun 12 17:41:53 EDT 2009


Scenario: 4 renderwidgets, each with vtkHandleWidgets in them. If the
user scales any one of them, scale all the others.

The problem -- I see in vtkPolygonalHandleRepresentation3D where the
handle gets scaled, but I don't see how I'm supposed to extract the
scaling and apply it, though it looks kind of like what I need is
this:

vtkAbstractTransform *t = thisHandleRep->GetTransform();
vtkAbstractTransform *otherT = otherHandleRep->GetTransform();

otherT->SetScale(t->GetScale());


The problem being that SetScale and GetScale don't exist.

Having the size of an object in one view depend on the size of an
object in another view seems a reasonable thing to try, especially in
this case, where the handle visible in each window is supposed to be
the same object.

Suggestions?



More information about the vtkusers mailing list