def transform (   self,
  beam,
  backwards = 0 
)

Reimplemented from general_optic.

Definition at line 1111 of file general_optics.py.

01111                                               :
01112                 "transform(beam, backwards) set up local coordinates, calls local_transform on the beam, and resets it to global coordinates.  Returns self for chaining."
01113                 self.beam=beam
01114                 self.backwards=backwards #in case anyone needs to know (e.g. dielectric interfaces)
01115                 ml=self.matrix_to_local
01116                 mg=self.matrix_to_global
01117                 self.matrix_to_local=self.get_dynamic_matrix_to_local(beam.matrix_to_global) #do optics with exact local matrix
01118                 self.matrix_to_global=Numeric.transpose(self.matrix_to_local) #do optics with exact local matrix
01119                 beam.localize(self)
01120                 self.check_hit_optic()
01121                 self.local_transform()
01122                 beam.globalize(self)
01123                 self.matrix_to_local=ml
01124                 self.matrix_to_global=mg
01125                 del self.beam, self.backwards #get it out of our dictionary so it is an error if not localized
01126                 return self
01127 
        def get_dynamic_matrix_to_local(self, matrix_to_global):


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4