Changes between Version 5 and Version 6 of ChimeraAnimationTasks


Ignore:
Timestamp:
Dec 8, 2010, 5:04:42 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraAnimationTasks

    v5 v6  
    4949    # do something useful with it
    5050    print model_openState.xform
     51    print model_openState.xform.getRotation()
     52    print model_openState.xform.getTranslation()
    5153#
    5254# looping over all open-active models
     
    7173}}}
    7274
     75=== openState.xform ===
     76
     77{{{
     78
     79>>> dir(model_openState.xform)
     80['__class__', '__copy__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'apply', 'coordFrame', 'getCoordFrame', 'getOpenGLMatrix', 'getRotation', 'getTranslation', 'identity', 'inverse', 'invert', 'isIdentity', 'lookAt', 'makeOrthogonal', 'multiply', 'premultiply', 'rotate', 'rotation', 'translate', 'translation', 'xRotate', 'xRotation', 'xform', 'yRotate', 'yRotation', 'zAlign', 'zRotate', 'zRotation']
     81
     82>>> help(model_openState.xform)
     83Help on Xform object:
     84
     85class Xform(__builtin__.object)
     86 |  Xform() -> Xform
     87 |  Xform(_x: Xform) -> Xform
     88 | 
     89 |  Methods defined here:
     90 | 
     91 |  __copy__(...)
     92 |      __copy__() -> Xform
     93 | 
     94 |  __eq__(...)
     95 |      x.__eq__(y) <==> x==y
     96 | 
     97 |  __ge__(...)
     98 |      x.__ge__(y) <==> x>=y
     99 | 
     100 |  __gt__(...)
     101 |      x.__gt__(y) <==> x>y
     102 | 
     103 |  __init__(...)
     104 |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
     105 | 
     106 |  __le__(...)
     107 |      x.__le__(y) <==> x<=y
     108 | 
     109 |  __lt__(...)
     110 |      x.__lt__(y) <==> x<y
     111 | 
     112 |  __ne__(...)
     113 |      x.__ne__(y) <==> x!=y
     114 | 
     115 |  __repr__ lambda s
     116 | 
     117 |  __str__(...)
     118 |      x.__str__() <==> str(x)
     119 | 
     120 |  apply(...)
     121 |      apply(p: Point) -> Point
     122 |      apply(p: Vector) -> Vector
     123 | 
     124 |  getCoordFrame(...)
     125 |      getCoordFrame() -> Vector, Vector, Vector, Point
     126 | 
     127 |  getOpenGLMatrix(...)
     128 |      getOpenGLMatrix() -> 16-tuple of float
     129 | 
     130 |  getRotation(...)
     131 |      getRotation() -> Vector, float
     132 | 
     133 |  getTranslation(...)
     134 |      getTranslation() -> Vector
     135 | 
     136 |  inverse(...)
     137 |      inverse() -> Xform
     138 | 
     139 |  invert(...)
     140 |      invert()
     141 | 
     142 |  isIdentity(...)
     143 |      isIdentity() -> bool
     144 | 
     145 |  makeOrthogonal(...)
     146 |      makeOrthogonal(modify: bool)
     147 | 
     148 |  multiply(...)
     149 |      multiply(op: Xform)
     150 | 
     151 |  premultiply(...)
     152 |      premultiply(op: Xform)
     153 | 
     154 |  rotate(...)
     155 |      rotate(xyz: Vector, angle: float)
     156 |      rotate(x: float, y: float, z: float, angle: float)
     157 | 
     158 |  translate(...)
     159 |      translate(xyz: Vector)
     160 |      translate(x: float, y: float, z: float)
     161 | 
     162 |  xRotate(...)
     163 |      xRotate(angle: float)
     164 | 
     165 |  yRotate(...)
     166 |      yRotate(angle: float)
     167 | 
     168 |  zRotate(...)
     169 |      zRotate(angle: float)
     170 | 
     171 |  ----------------------------------------------------------------------
     172 |  Static methods defined here:
     173 | 
     174 |  coordFrame(...)
     175 |      coordFrame(x: Vector, y: Vector, z: Vector, origin: Point, orthogonalize: bool = false) -> Xform
     176 | 
     177 |  identity(...)
     178 |      identity() -> Xform
     179 | 
     180 |  lookAt(...)
     181 |      lookAt(eye: Point, at: Point, up: Point) -> Xform
     182 |      lookAt(eye: Point, at: Point, up: Vector) -> Xform
     183 | 
     184 |  rotation(...)
     185 |      rotation(xyz: Vector, angle: float) -> Xform
     186 |      rotation(x: float, y: float, z: float, angle: float) -> Xform
     187 | 
     188 |  translation(...)
     189 |      translation(xyz: Vector) -> Xform
     190 |      translation(x: float, y: float, z: float) -> Xform
     191 | 
     192 |  xRotation(...)
     193 |      xRotation(angle: float) -> Xform
     194 | 
     195 |  xform(...)
     196 |      xform(r00: float, r01: float, r02: float, t03: float, r10: float, r11: float, r12: float, t13: float, r20: float, r21: float, r22: float, t23: float, orthogonalize: bool = false) -> Xform
     197 | 
     198 |  yRotation(...)
     199 |      yRotation(angle: float) -> Xform
     200 | 
     201 |  zAlign(...)
     202 |      zAlign(p0: Point, p1: Point) -> Xform
     203 |      zAlign(p: Point, v: Vector) -> Xform
     204 | 
     205 |  zRotation(...)
     206 |      zRotation(angle: float) -> Xform
     207 | 
     208 |  ----------------------------------------------------------------------
     209 |  Data descriptors defined here:
     210 | 
     211 |  __dict__
     212 | 
     213 |  ----------------------------------------------------------------------
     214 |  Data and other attributes defined here:
     215 | 
     216 |  __hash__ = None
     217 | 
     218 |  __new__ = <built-in method __new__ of libwrappy2.mutable object>
     219 |      T.__new__(S, ...) -> a new object with type S, a subtype of T
     220
     221>>>
     222}}}
     223
     224
     225
    73226
    74227=== Integrity Checking ===