Changes between Version 4 and Version 5 of ChimeraAnimationTasks


Ignore:
Timestamp:
Dec 8, 2010, 4:49:34 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraAnimationTasks

    v4 v5  
    11
    22== State Parameters and Transitions ==
     3
     4Need to identify all the possible state parameters that can be changed between two states. All of those parameters need to be retained, probably in some form of immutable data type (tuple) within a dictionary for easy access to several parameter groups (viewer, volumes, surfaces, models, labels, etc.). Some of the elements in a state may have shared spatial parameters (e.g., molecular surfaces, molecules, and atoms may share a common spatial transform).
     5
     6The savepos/reset functionality works with a tuple:
     7{{{
     8#
     9# savepos returns a tuple of various parameters (my comments added)
     10#
     11        return (
     12            chimera.viewer.scaleFactor, #cam
     13            chimera.viewer.viewSize, #cam
     14            cam.center, #cam
     15            cam.nearFar, #cam
     16            cam.focal, #cam
     17            xforms, # spatial/geometry
     18            clips, # per-model clipping
     19            chimera.openModels.cofrMethod, # spatial/geometry
     20            cofr, # spatial/geometry
     21            chimera.viewer.clipping #cam
     22        )
     23}}}
     24
    325
    426Something like this gains access to a lot of view parameters: