[vtkusers] BorderWidget behaves improperly after setting Position variables coordinates to World
David Doria
daviddoria at gmail.com
Thu Dec 1 14:02:40 EST 2011
On Thu, Dec 1, 2011 at 12:00 PM, David Doria <daviddoria at gmail.com> wrote:
> I would like my BorderWidget to operate in world coordinates. Once I do this:
>
> vtkBorderRepresentation* representation =
> static_cast<vtkBorderRepresentation*>(borderWidget->GetRepresentation());
> representation->GetPositionCoordinate()->SetCoordinateSystemToWorld();
> representation->GetPosition2Coordinate()->SetCoordinateSystemToWorld();
> representation->SetPosition(0, 0);
> representation->SetPosition2(5, 5);
>
> the widget no longer follows my mouse movements properly - it is
> severely lagged. Are you not allowed to put the coordinates in a mode
> different from their default (normalized viewport)?
Here is a demo of the problem:
http://www.vtk.org/Wiki/VTK/Examples/Broken/Cxx/Widgets/BorderWorldCoords
More information about the vtkusers
mailing list