Difference between revisions of "PlatformSpeed"

From Jmol
Jump to navigation Jump to search
(typo)
 
Line 13: Line 13:
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
     <td>8</td>
+
     <td>8</td><td>7</td><td>6</td><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td>
    <td>7</td>
 
    <td>6</td>
 
    <td>5</td>
 
    <td>4</td>
 
    <td>3</td>
 
    <td>2</td>
 
    <td>1</td>
 
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>solid atoms (balls) and solid bonds (sticks)</td>
 
     <td>solid atoms (balls) and solid bonds (sticks)</td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>ellipsoids</td>
 
     <td>ellipsoids</td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
Line 46: Line 28:
 
   <tr>
 
   <tr>
 
     <td>geosurfaces</td>
 
     <td>geosurfaces</td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
Line 57: Line 35:
 
   <tr>
 
   <tr>
 
     <td>cartoons, ribbons, trace, rockets (biopolymer schematics) </td>
 
     <td>cartoons, ribbons, trace, rockets (biopolymer schematics) </td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
Line 68: Line 43:
 
   <tr>
 
   <tr>
 
     <td>draw, isosurfaces, MO, contact, pmesh, lcaocartoon, CGO</td>
 
     <td>draw, isosurfaces, MO, contact, pmesh, lcaocartoon, CGO</td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
Line 79: Line 52:
 
   <tr>
 
   <tr>
 
     <td>translucency</td>
 
     <td>translucency</td>
     <td>&nbsp;</td>
+
     <td>&nbsp;</td><td>&nbsp;</td>
    <td>&nbsp;</td>
 
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
 
     <td bgcolor="#666666">&nbsp;</td>
Line 104: Line 76:
 
* The deafult is <code>set platformSpeed = 10</code> (right now, equivalent to 9 and 8)
 
* The deafult is <code>set platformSpeed = 10</code> (right now, equivalent to 9 and 8)
 
* <code>set platformSpeed = 8</code> displays everything during movement.
 
* <code>set platformSpeed = 8</code> displays everything during movement.
* <code>set platformSpeed = 1</code> is equivalent to <code>set wireframeRotation off</code> (now deprecated).
+
* <code>set platformSpeed = 1</code> is equivalent to <code>set wireframeRotation on</code> (now deprecated).
 
* <code>set platformSpeed = 0</code> is reserved (for 'auto', whatever that means).
 
* <code>set platformSpeed = 0</code> is reserved (for 'auto', whatever that means).
  
 
See the [{{StOlaf}}docs/#set_platformspeed scripting documentation] for the full reference.
 
See the [{{StOlaf}}docs/#set_platformspeed scripting documentation] for the full reference.

Latest revision as of 17:09, 20 November 2015

The command set platformSpeed = n allows to define which features will not be rendered while the model is being rotated, translated or otherwise is moving in any way (e.g. animation by moveTo).

This is aimed at achieving a smoother behaviour in resource-limited devices (like tablets), particularly while using JSmol in HTML5 modality (however, it is effective under all modalities, as well as in the Jmol application).

Lower values provide a stronger restriction of features, and so are appropriate for less powerful devices.

When the movement stops, all features will be displayed in any case.

Is this feature displayed during rotation and movement?
(a dark cell means the feature is not displayed)
set platformSpeed =
87654321
solid atoms (balls) and solid bonds (sticks)          
ellipsoids           
geosurfaces            
cartoons, ribbons, trace, rockets (biopolymer schematics)             
draw, isosurfaces, MO, contact, pmesh, lcaocartoon, CGO              
translucency               
antialiasDisplay                

Notes:

  • The deafult is set platformSpeed = 10 (right now, equivalent to 9 and 8)
  • set platformSpeed = 8 displays everything during movement.
  • set platformSpeed = 1 is equivalent to set wireframeRotation on (now deprecated).
  • set platformSpeed = 0 is reserved (for 'auto', whatever that means).

See the scripting documentation for the full reference.

Contributors

AngelHerraez