[vtkusers] Problem with cursoring in vtkImagePlaneWidget + enum news to me

Peter Kok peter.kok at gmail.com
Mon Sep 18 13:03:19 EDT 2006


I'm still trying to solve the problem and I think I'm getting somewhere now.
In OnMouseMove() in vtkImagePlaneWidget.cxx, I changed the following:


  else if ( this->State == vtkImagePlaneWidget::Cursoring )
    {
    this->UpdateCursor(X,Y);
    this->ManageTextDisplay();
    }


into:


  else if ( this->State == vtkImagePlaneWidget::Cursoring )
    {
    this->UpdateCursor(X,Y);
    this->ManageTextDisplay();

    this->UpdatePlane();
    this->UpdateMargins();
    this->BuildRepresentation();
    }


In this case cursoring does work when I move the mouse with the left button
down. The only thing that doesn't work nice now is that the first left click
on a new plane that initiates the cursoring is still "off image".

Any suggestions?

-Peter





More information about the vtkusers mailing list