[chimera-dev] programming question: volume display
Tom Goddard
goddard at sonic.net
Wed Apr 5 12:13:06 PDT 2017
Yes. In fact all that is done with the new_region() routine. (set step with the ijk_step argument, eg. ijk_step = (2,2,2). Set plane number by setting ijk_min, ijk_max to show one plane).
Tom
> On Apr 5, 2017, at 12:00 PM, Dougherty, Matthew T <matthewd at bcm.edu> wrote:
>
> thx
>
> is volume.py where I would find how to change step size, plane number & depth?
>
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> =================================================
> =================================================
> From: Tom Goddard <goddard at sonic.net <mailto:goddard at sonic.net>>
> Sent: Wednesday, April 5, 2017 11:41:35 AM
> To: Dougherty, Matthew T
> Cc: chimera-dev at cgl.ucsf.edu <mailto:chimera-dev at cgl.ucsf.edu>
> Subject: Re: [chimera-dev] programming question: volume display
>
> ***CAUTION:*** This email is not from a BCM Source. Only click links or open attachments you know are safe.
> To change the region bounds of a volume v in Python:
>
> v.new_region((0,0,0), (50,60,70))
>
> Here’s the Python declaration in chimera/share/VolumeViewer/volume.py where the Volume class is defined.
>
> def new_region(self, ijk_min = None, ijk_max = None, ijk_step = None,
> show = True, adjust_step = True, save_in_region_queue = True):
>
> Tom
>
>
>> On Apr 4, 2017, at 3:58 PM, Dougherty, Matthew T <matthewd at bcm.edu <mailto:matthewd at bcm.edu>> wrote:
>>
>> I am trying to modify the region bounds of the volume viewer using python.
>> What module should I be looking at to determine the api calls?
>>
>> thanks,
>>
>> Matthew Dougherty
>> National Center for Macromolecular Imaging
>> Baylor College of Medicine
>> =================================================
>> =================================================
>> _______________________________________________
>> Chimera-dev mailing list
>> Chimera-dev at cgl.ucsf.edu <mailto:Chimera-dev at cgl.ucsf.edu>
>> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev <https://urldefense.proofpoint.com/v2/url?u=http-3A__plato.cgl.ucsf.edu_mailman_listinfo_chimera-2Ddev&d=DwMFaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=lEMX2_AJ6Iksc5dFd0-VOg&m=yLoyNoWMgD5zwzJG94wrmIzOc4932AAOH-JyYzFd4lE&s=cGwvu-f8x6yixXfp3-QcfYHccDDif6Z9jWo8btcToNY&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170405/abf3a3a3/attachment.html>
More information about the Chimera-dev
mailing list