Rebuilds the path for the given style options based on the currently \
        set parameters.
        
        :return     <QPainterPath>

def rebuildPath(self):
        """
        Rebuilds the path for the given style options based on the currently \
        set parameters.
        
        :return     <QPainterPath>
        """
        # rebuild linear style
        if self.isStyle(XConnectionStyle.Linear):
            return self.rebuildLinear()

        # rebuild block style
        elif self.isStyle(XConnectionStyle.Block):
            return self.rebuildBlock()

        # rebuild smooth style
        elif self.isStyle(XConnectionStyle.Smooth):
            return self.rebuildSmooth()

        # otherwise, we have an invalid style, or a style
        # defined by a subclass
        else:
            return QPainterPath()