Ignore:
Timestamp:
May 4, 2007 1:50:53 PM (17 years ago)
Author:
nkissebe
Message:

initial modifications to pyMol for remote visualization server support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/pymol/modules/pymol/cmd.py

    r699 r700  
    998998                unlock(-1)
    999999            return r
     1000 
     1001        # BMP save image support *NJK*
     1002        # writing BMP files (thread-unsafe)
     1003 
     1004        def _bmp(a,width=0,height=0,dpi=-1.0,quiet=1): # INTERNAL - can only be safely called by GLUT thread
     1005            # INTERNAL - can only be safely called by GLUT thread
     1006            # WARNING: internal routine, subject to change
     1007            try:
     1008                lock()
     1009                fname = a
     1010                if not re.search("\.bmp$",fname):
     1011                    fname = fname +".bmp"
     1012                fname = exp_path(fname)
     1013                r = _cmd.bmp(str(fname),int(width),int(height),float(dpi),int(quiet))
     1014            finally:
     1015                unlock()
     1016            return r
    10001017
    10011018        # quitting (thread-specific)
Note: See TracChangeset for help on using the changeset viewer.