[vtkusers] bug in vtkLogoRepresentation
Bill Lorensen
bill.lorensen at gmail.com
Sun Apr 18 15:39:17 EDT 2010
Definitely a bug.
In Widgets/vtkBorderWidget.cxx
find the line
if ( self->Selectable || stateAfter != vtkBorderRepresentation::Inside )
and change it to
if ( !self->Selectable || stateAfter != vtkBorderRepresentation::Inside )
I think you will be the behaviour you expect. I'm not sure this is the
proper fix. I would rather see a MovableOn/Off method.
MovingOn/Off is used internally by the widget. I don't think the user
should touch this.
Bill
On Fri, Apr 16, 2010 at 5:27 AM, Paul Harris <harris.pc at gmail.com> wrote:
> Hi all,
>
> I'm trying to set up a Logo but I can't seem to turn off the interaction.
>
> bits of the code:
>
> widget->SetInteractor(interactor);
> widget->SetRepresentation(rep);
> widget->SetSelectable(0);
> widget->SetResizable(0);
> widget->On();
>
> with this code, I can still drag the logo around with my mouse!
>
> Please help,
> Paul
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list