Beispiel #1
0
    def __init__(self, **kwargs):
        """Constructor
        """
        byA_PatternStep.__init__(self, **kwargs)

        tableVal = self._parent._dicoMesures['Hauteurdubassin' + self._stature]
        p1 = self._parent._dicoConstruction['HipLine_middleBackPoint']
        p2 = self._parent._dicoConstruction['HipLine_middleFrontPoint']
        self._middleBackPoint = byA_Point(x=p1._x, y=p1._y - tableVal)
        self._middleFrontPoint = byA_Point(x=p2._x, y=p2._y - tableVal)
        self._horizontalLine = byA_Line(P1=self._middleBackPoint,
                                        P2=self._middleFrontPoint)

        self._constructionPoint.append(
            ('_middleBackPoint', self._middleBackPoint, 'Lw'))
        self._constructionPoint.append(
            ('_middleFrontPoint', self._middleFrontPoint, 'Rw'))
        self._constructionLine.append(
            ('_horizontalLine', self._horizontalLine, 'Ligne de taille'))

        self.fillDicoPoints(self.__class__.__name__.replace("byA_", ""),
                            self._parent)
        self._freeze(self.__class__.__name__)
Beispiel #2
0
    def __init__(self, **kwargs):
        """Constructor
        """
        byA_PatternStep.__init__(self, **kwargs)

        self._middleBackPoint = byA_Point(x=HORIZONTAL_MARGIN_MM,
                                          y=self._sheetSize[1] -
                                          VERTICAL_MARGIN_MM)
        self._middleFrontPoint = byA_Point(
            x=self._sheetSize[0] - HORIZONTAL_MARGIN_MM,
            y=self._sheetSize[1] - VERTICAL_MARGIN_MM)
        self._horizontalLine = byA_Line(P1=self._middleBackPoint,
                                        P2=self._middleFrontPoint)

        self._constructionPoint.append(
            ('_middleBackPoint', self._middleBackPoint, 'Lh'))
        self._constructionPoint.append(
            ('_middleFrontPoint', self._middleFrontPoint, 'Rh'))
        self._constructionLine.append(
            ('_horizontalLine', self._horizontalLine, 'Ligne de hanches'))

        self.fillDicoPoints(self.__class__.__name__.replace("byA_", ""),
                            self._parent)
        self._freeze(self.__class__.__name__)
Beispiel #3
0
 def __init__(self,**kwargs):
    """Constructor
    """
    byA_PatternStep.__init__(self,**kwargs)
    self._freeze(self.__class__.__name__+"_Parent")