[vtkusers] BorderWidget behaves improperly after setting Position variables coordinates to World

David Doria daviddoria at gmail.com
Thu Dec 1 12:00:39 EST 2011


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)?

Thanks,

David



More information about the vtkusers mailing list