[chimera-dev] volume viewer/mouse

Tom Goddard goddard at sonic.net
Mon Jul 8 15:06:40 PDT 2013


The broken "use mouse scroll wheel" setting was fixed by Eric a week ago.  Only effected Mac platform.

	Tom

On Jul 8, 2013, at 2:03 PM, Tom Goddard wrote:

> Hi Matt,
> 
>   Eric is right.  Here it is with example Python code
> 
> from VolumeViewer import active_volume
> v = active_volume()
> s = v.matrix_value_statistics()
> print s.minimum, s.maximum
> 
> The active_volume() call can return None, for example if no data set is open.  The matrix_value_statistics() call returns the values at the currently displayed subsampling (ie. step size).
> 
>   Your comment about the "use mouse scroll wheel" setting not working is a bug that I will look at soon.
> 
> 	http://plato.cgl.ucsf.edu/trac/chimera/ticket/12187
> 
>   Tom
> 
> 
> On Jul 1, 2013, at 11:14 AM, Eric Pettersen wrote:
> 
>> On Jun 28, 2013, at 9:22 PM, "Dougherty, Matthew T" wrote:
>> 
>>> I am trying to write some python scripts relating to volume viewer.
>>> 
>>> two things I need to have are:
>>> 1)  the ability to figure out what dataset is active on the volume viewer.  I will manually pick that with the mouse, my python sw will process the active model in volume viewer. 
>>> 2) on the selected dataset I need to know what the min/max values are.
>> 
>> Hi Matt,
>> 	As you know, Tom Goddard is on vacation -- so these answers are for novelty purposes only. :-)
>> 
>> 1) I'm pretty sure that VolumeViewer.volumedialog.active_volume() will return the active volume (can return None of course in some cases).
>> 
>> 2) I think that calling the volume's matrix_value_statistics method will return an object whose .minimum and .maximum attributes are what you want.  Maybe.
>> 
>> --Eric
>> 
>>                         Eric Pettersen
>>                         UCSF Computer Graphics Lab
>>                         http://www.cgl.ucsf.edu
>> 
>> 
>> _______________________________________________
>> Chimera-dev mailing list
>> Chimera-dev at cgl.ucsf.edu
>> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20130708/de1b747c/attachment.html>


More information about the Chimera-dev mailing list