Beispiel #1
0
    def get_fixed_pos(self):
        if self.mode.lower() == 'ul':
            ul_relative = Point(0, 0)
        elif self.mode.lower() == 'pin1':
            ul_relative = self.boundingBox.ul - self['1'].pad.center
        elif self.mode.lower() == 'center':
            comp_center = Point.wrap(self.module._obj.GetCenter())
            ul_relative = self.boundingBox.ul - comp_center
        else:
            raise Exception('Unimplemented positioning mode.')

        return self.position + ul_relative
Beispiel #2
0
 def center(self):
     return Point.wrap(self._obj.GetCenter())
Beispiel #3
0
 def center(self):
     """Via center"""
     return Point.wrap(self._obj.GetCenter())
Beispiel #4
0
 def end(self):
     return Point.wrap(self._obj.GetEnd())
Beispiel #5
0
 def start(self):
     return Point.wrap(self._obj.GetStart())
Beispiel #6
0
 def position(self):
     return Point.wrap(self._obj.GetPosition())
Beispiel #7
0
 def position(self):
     return Point.wrap(self._obj.GetPosition())