On Sun, Sep 2, 2012 at 12:19 AM, Benn Snyder <benn.snyder@gmail.com> wrote:

I've made steady progress integrating my code into Jmol.  I've split it
up into a few classes.  They are
moleK - embeds a Jmol viewer for my testing purposes and as an example
org.jmol.multitouch.JmolOpenNIAdapter extends
JmolMultiTouchClientAdapter - adapter between OpenNI and Jmol
org.jmol.multitouch.HandTracker - encapsulates OpenNI hand tracking
org.jmol.multitouch.ImageCapture - encapsulates OpenNI image capture
org.jmol.multitouch.DtwGestureRecognizer - external gesture recognizer

1) In JmolOpenNIAdapter, I need to know the width and height of the Jmol
view.  I can't seem to figure out how to get them.


2) In JmolOpenNIAdapter.doAction(), I make calls to a JmolViewer to
perform scripting operations.  Is this an acceptable way to do it?  Is
this the best way to do it?  The good news is that doAction() is the
only place JmolOpenNIAdapter touches Jmol, so it shouldn't be too hard
to switch implementations.

I don't think so. You want to adapt org.jmol.multitouch.ActionManagerMT to your purposes. You can see there that there are options right now for Molecular Playground, tablets, and SparshUI. I think you would logically add another. Your  client will only interact with ActionManagerMT.

As I continue to refine, I'm going to start looking at invoking
NITE-specific functionality, which can provide more gestures and more
sophisticated user tracking.




Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Jmol-developers mailing list

Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN

If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900