[vtk-developers] Finishing up the assign_chartxy_mousebuttons topic branch

Eric E. Monson emonson at cs.duke.edu
Wed Dec 8 09:31:18 EST 2010

Hello Ben,

Yes, I'm still interested in getting that behavior into the Charts, too. My implementation worked, but wasn't really good enough, and I just haven't had time to work out a new scheme. You're welcome to give it a try yourself, but I wouldn't worry about pulling that topic branch – if I were you I'd just start a new one. You can take a look at the diffs on Gerrit and see that my changes were pretty minimal. Here are Marcus' comments/concerns so maybe you can get something working that addresses them better:

"I like the change in principle, but I would rather have three variable names, or the components in an enum. I understand why you want to force all three to be set at the same time, but it makes the code harder to read too - it becomes a meaningless number again. Maybe a little more logic in the set function, and an enum, would give flexibility and multiple buttons."

Marcus has been working on other changes to the charts, so maybe he'll have a chance to speak up in case some of his work is going to involve mouse events.

Thanks a lot,

On Dec 7, 2010, at 5:42 PM, Ben Medina wrote:

> Hello all,
> Coincidentally, we need the ability to specify mouse button behavior
> in vtkCharts. This is implemented in this topic branch:
> http://review.source.kitware.com/#q,status:open+project:VTK+branch:master+topic:assign_chartxy_mousebuttons,n,z
> It hasn't been merged due to some unresolved issues. If the
> outstanding issues haven't been resolved, I'd like to resolve them
> myself and resubmit the merge request. How do I get at the code on
> that topic branch? I don't see that branch as something I can switch
> to:
> e:/dev/VTK $ git branch -a
> * master
>  remotes/gerrit/master
>  remotes/origin/HEAD -> origin/master
>  remotes/origin/hooks
>  remotes/origin/master
>  remotes/origin/nightly-master
>  remotes/origin/release
> Thanks,
> Ben

More information about the vtk-developers mailing list