- You can create a subdirectory in org.openscience.jmol.app similar to
SurfaceTool, perhaps. Then add a connection to that under the Tools menu.
Look for "SurfaceTool" in org.openscience using Eclipse's Search...File
option, with "*" for file name pattern. There a few places you need to
adapt to get that into the menu.
- Best way to get the image is through the all-purpose
Viewer.getProperty() method. It returns an Object of all sorts based on the
parameters. The first parameter should be "DATA_API":
getProperty("DATA_API", "getOpenNIImage", null).
- Ah, now, how to get it from ActionManagerMT. You will have to add some
sort of "getProperty" method to ActionManager, and then implement that in
ActionManagerMT.
- Mind you, I totally refactored Viewer on the trunk. Don't worry about
that -- I'll help you integrate it when you have it all working.
(This is for that Application only, right?)
> Bob,
>
> I finally figured out my threading (non-)issue after several days of
> combing through Jmol source. I was relying on System.out to make sure
> my thread was still running, but once the JmolPanel is loaded it
> reroutes System.out into its own console. So it was working the whole
> time; I just wasn't looking in the right place. On the plus side, I now
> know more about Jmol internals than I ever wanted to.
>
> One of the capabilities of OpenNI is capturing a live image from the
> sensor, which is very useful to the user. This is exposed in
> JmolOpenNIAdapter.getImage(). How should I go about having Jmol
> optionally display this image in a separate window?
>
>
> I think this is about ready to go into Jmol trunk. I just made a design
> shift to require two hands: a primary hand to perform gestures and
> trigger actions and a secondary hand to control movement. This both
> reduced code size and improved usability. My additions to
> ActionManagerMT aren't as integrated as I'd like, but they don't alter
> any existing functionality and they can always be integrated later.
>
> Basic user flow:
> 1) Perform a Click with the primary hand to start the session and move
> another hand into the scene until it's recognized.
> 2) Perform any gesture in JmolOpenNIAdapter.GESTURES to activate the
> corresponding action in gesture_map.
> 3) Move the secondary hand to control that action if applicable (e.g.
> rotate, translate).
>
>
> Regards,
> Benn
>
>
> ------------------------------------------------------------------------------
> 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
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
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
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers