Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
996 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2014 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __KIS_FILL_INTERVAL_MAP_P_H
#define __KIS_FILL_INTERVAL_MAP_P_H

struct KRITAIMAGE_EXPORT KisFillIntervalMap::Private {
    typedef QMap<int, KisFillInterval> LineIntervalMap;
    typedef QHash<int, LineIntervalMap> GlobalMap;

    struct IteratorRange {
        IteratorRange()
        {
        }

        IteratorRange(LineIntervalMap::iterator _beginIt,
                      LineIntervalMap::iterator _endIt,
                      GlobalMap::iterator _rowMapIt)
            : beginIt(_beginIt),
              endIt(_endIt),
              rowMapIt(_rowMapIt)
        {
        }

        LineIntervalMap::iterator beginIt;
        LineIntervalMap::iterator endIt;
        GlobalMap::iterator rowMapIt;
    };

    GlobalMap map;

    IteratorRange findFirstIntersectingInterval(const KisFillInterval &interval);
};


#endif /* __KIS_FILL_INTERVAL_MAP_P_H */