Receive the click-event made on a ControlPoint defining a ColorTransferFunction

Hello there,

I would like to be able to perform different tasks, depending on how the user clicks on a control point used define a ColorTransferfunction in a XYChart?

Adding an Observer works to receive the CurrentPointEditEvent in the following way:

controlPoint ->AddObserver(vtkControlPointsItem::CurrentPointEditEvent, this,

&UserWindow::pointClicked);

How can I distinguish between a left-button-double-click event and a right-button-click-event.

I tried to adjust the observer in the following way:

controlPoint ->AddObserver(vtkControlPointsItem::MouseDoubleClickEvent, this,

&UserWindow:: pointClicked);

But this would not compile…

How can I achieve this?

Thanks for your help!
MissMac