(self, height)
return self._transform.map(p)
Return a point in local coordinates for `height` (in cluster
Return a point in local coordinates for `height` (in cluster
Return a point in local coordinates for height ( in cluster
def posAtHeight(self, height):
        # type: (float) -> float
        """
        Return a point in local coordinates for `height` (in cluster
        """
        if not self._root:
            return QPointF()
        scale = self._height_scale_factor()
        base = self._root.value.height
        height = scale * height
        if self.orientation in [self.Left, self.Bottom]:
            height = scale * base - height

        if self.orientation in [self.Left, self.Right]:
            p = QPointF(height, 0)
        else:
            p = QPointF(0, height)
        return self._transform.map(p)
def posAtHeight ( self , height ) : # type: (float) -> float if not self . _root : return QPointF ( ) scale = self . _height_scale_factor ( ) base = self . _root . value . height height = scale * height if self . orientation in [ self . Left , self . Bottom ] : height = scale * base - height if self . orientation in [ self . Left , self . Right ] : p = QPointF ( height , 0 ) else : p = QPointF ( 0 , height ) return self . _transform . map ( p )