OpenSheetMusicDisplay
    Preparing search index...

    Class SkyBottomLineCalculator

    This class calculates and holds the skyline and bottom line information. It also has functions to update areas of the two lines if new elements are added to the staffline (e.g. measure number, annotations, ...)

    Index

    Constructors

    Accessors

    Methods

    • This method returns the maximum value of the bottom line around a specific bounding box. Will return undefined if the bounding box is not valid or inside staffline

      Parameters

      • boundingBox: BoundingBox

        Bounding box where the maximum should be retrieved from

      Returns number

      Maximum value inside bounding box boundaries or undefined if not possible

    • This method finds the BottomLine's maximum value within a given range.

      Parameters

      • startIndex: number

        Start index of the range

      • endIndex: number

        End index of the range (excluding)

      Returns number

    • This method finds the SkyLine's minimum value within a given range.

      Parameters

      • startIndex: number

        Starting index

      • endIndex: number

        End index (including)

      Returns number

    • Resets a bottom line in a range to its original value

      Parameters

      • startIndex: number

        Start index of the range

      • endIndex: number

        End index of the range

      Returns void

    • Resets a SkyLine in a range to its original value

      Parameters

      • startIndex: number

        Start index of the range

      • endIndex: number

        End index of the range (excluding)

      Returns void

    • This method updates the BottomLine for a given range with a given value

      Parameters

      • startIndex: number

        Start index of the range

      • endIndex: number

        End index of the range (excluding)

      • value: number

        ??

      Returns void

    • This method updates the skylines and bottomlines for mStaffLineParent.

      Parameters

      • calculationResults: SkyBottomLineCalculationResult[]

        the skylines and bottomlines of mStaffLineParent's measures calculated by SkyBottomLineBatchCalculator

      Returns void

    • This method updates the SkyLine for a given range with a given value //param to update the SkyLine for

      Parameters

      • startIndex: number

        Start index of the range

      • endIndex: number

        End index of the range

      • value: number

        ??

      Returns void