Table of Contents

Class: transform ../bkchem/oasa/oasa/transform.py

this class provides basic higher-level interface for coordinate transforms

Methods   
__init__
map_transform
set_move
set_rotation
set_scaling
set_scaling_xy
transform_4
transform_list
transform_xy
transform_xy_flat_list
  __init__ 
__init__ ( self,  mat=None )

  map_transform 
map_transform ( self,  l )

this method can be used with map() function

  set_move 
set_move (
        self,
        dx,
        dy,
        )

add an moving step to transformation matrix

  set_rotation 
set_rotation ( self,  angle )

add an rotation step to transformation matrix

  set_scaling 
set_scaling ( self,  scale )

add an scaling step to transformation matrix, same scaling for both dimensions

  set_scaling_xy 
set_scaling_xy (
        self,
        mx,
        my,
        )

add an scaling step to transformation matrix

  transform_4 
transform_4 ( self,  list )

for items that have 4 coordinates (lines, rectangles) this transforms 'em all

  transform_list 
transform_list ( self,  l )

  transform_xy 
transform_xy (
        self,
        x,
        y,
        )

  transform_xy_flat_list 
transform_xy_flat_list ( self,  coords )

transforms a list that cointains alternating x,y values (not list of pairs as self.transform_list)


Table of Contents

This document was automatically generated on Tue Dec 12 13:46:43 2006 by HappyDoc version 2.1