[vtkusers] vtkCommand::LeftButtonReleaseEvent does not work
Alex Malyushytskyy
alexmalvtk at gmail.com
Mon Aug 19 20:39:01 EDT 2013
AFAIK there is no difference.
Are you sure connection did not fail
and your slot is declared similar to
onCmdMouseMotion(vtkObject*)?
( has correct number of parameters?)
On Mon, Aug 19, 2013 at 9:17 AM, curator <curator at gmx.de> wrote:
> Hi all (for the last time today),
>
> recently, I caught my events by MousePress events as follows:
> vtkEventQtSlotConnect *t_connections = vtkEventQtSlotConnect::New();
> t_connections->Connect( m_VTKWidget->GetRenderWindow()**
> ->GetInteractor(),
> vtkCommand::MouseMoveEvent,
> this,
> SLOT(onCmdMouseMotion(**vtkObject*)));
> t_connections->Connect( m_VTKWidget->GetRenderWindow()**
> ->GetInteractor(),
> vtkCommand::**LeftButtonPressEvent,
> this,
> SLOT(onCmdMouseLeftPress(**vtkObject*)));
>
> Both work perfectly, but unfortunatly I want to do sth, only then I
> "click" or "doubleclick" on an item rather than rotate the scene.
>
> Unfortunaly, I didnt found something like vtkCommand::DoubleClickEvent, so
> I decided to add a new trigger:
>
> t_connections->Connect( m_VTKWidget->GetRenderWindow()**->GetInteractor(),
> vtkCommand::**LeftButtonReleaseEvent,
> this,
> SLOT(onCmdMouseLeftRelease(**vtkObject*)));
>
> and simply check if the mouse has not moved (except some eps) since button
> press. The problem is, that this last slot does not trigger, because
> onCmdMouseLeftRelease() is never called. What is the difference between the
> first two and the last call?
>
> regards,
> curator
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<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 <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130819/be691e30/attachment.htm>
More information about the vtkusers
mailing list