From: Norman Geist (norman.geist_at_uni-greifswald.de)
Date: Mon Aug 11 2014 - 05:04:29 CDT

Hi again,

finally I got it to work. From the VMD source I got that "display resetview"
will calculate a scale value as 1.5/max(rangex,rangey,rangz). This works
well to compute a suitable zoom factor for any bounding box.

Norman Geist.

> -----Ursprüngliche Nachricht-----
> Von: John Stone [mailto:johns_at_ks.uiuc.edu]
> Gesendet: Freitag, 8. August 2014 17:59
> An: Norman Geist
> Cc: VMD Mailing List
> Betreff: Re: vmd-l: To the developers: TCL implementation of autofit
> zoom
>
> Norman,
> In the flurry of replies, it wasn't clear to me whether you have
> everything
> you need now, or if you still need assistance. Let me know if you
> still
> have unsolved problems. In particular, I was curious to know what is
> included
> "in the viewport", if it is only molecular structure, or also drawn
> text
> or graphics primitives, etc. It is conceivable that we could add some
> sort
> of "display rescaleview" type command that would recompute only the
> scaling
> matrix if you would find that useful. I haven't looked at it in
> detail,
> but it probably wouldn't be too difficult of others would find that
> useful.
>
> Cheers,
> John
>
> On Fri, Aug 08, 2014 at 02:11:32PM +0200, Norman Geist wrote:
> > Dear developers,
> >
> >
> >
> > I need a way to apply a automatic scale (zoom) from TCL so that
> everything
> > visible is inside the viewport, is it possible? I know "display
> reset
> > view" does something similar, but I need it without resetting the
> rotate
> > and scale center.
> >
> >
> >
> > Thanks in advance
> >
> >
> >
> > Norman Geist
> >
> > ------------------------------------------------------------------
> ---------
> >
> > [1][IMG] Diese E-Mail ist frei von Viren und Malware, denn der
> [2]avast!
> > Antivirus Schutz ist aktiv.
> >
> > References
> >
> > Visible links
> > 1. http://www.avast.com/
> > 2. http://www.avast.com/
>
> --
> NIH Center for Macromolecular Modeling and Bioinformatics
> Beckman Institute for Advanced Science and Technology
> University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349
> http://www.ks.uiuc.edu/Research/vmd/

---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com