Changeset View
Changeset View
Standalone View
Standalone View
kstars/skycomponents/linelistindex.cpp
Context not available. | |||||
75 | m_listList.removeOne(lineList); | 75 | m_listList.removeOne(lineList); | ||
---|---|---|---|---|---|
76 | } | 76 | } | ||
77 | 77 | | |||
78 | void LineListIndex::appendLine(const std::shared_ptr<LineList> &lineList, int debug) | 78 | void LineListIndex::appendLine(const std::shared_ptr<LineList> &lineList) | ||
79 | { | 79 | { | ||
80 | if (debug < skyMesh()->debug()) | | |||
81 | debug = skyMesh()->debug(); | | |||
82 | | ||||
83 | const IndexHash &indexHash = getIndexHash(lineList.get()); | 80 | const IndexHash &indexHash = getIndexHash(lineList.get()); | ||
84 | IndexHash::const_iterator iter = indexHash.constBegin(); | 81 | IndexHash::const_iterator iter = indexHash.constBegin(); | ||
85 | 82 | | |||
Context not available. | |||||
97 | m_listList.append(lineList); | 94 | m_listList.append(lineList); | ||
98 | } | 95 | } | ||
99 | 96 | | |||
100 | void LineListIndex::appendPoly(const std::shared_ptr<LineList> &lineList, int debug) | 97 | void LineListIndex::appendPoly(const std::shared_ptr<LineList> &lineList) | ||
101 | { | 98 | { | ||
102 | if (debug < skyMesh()->debug()) | | |||
103 | debug = skyMesh()->debug(); | | |||
104 | | ||||
105 | const IndexHash &indexHash = skyMesh()->indexPoly(lineList->points()); | 99 | const IndexHash &indexHash = skyMesh()->indexPoly(lineList->points()); | ||
106 | IndexHash::const_iterator iter = indexHash.constBegin(); | 100 | IndexHash::const_iterator iter = indexHash.constBegin(); | ||
107 | 101 | | |||
Context not available. | |||||
118 | } | 112 | } | ||
119 | } | 113 | } | ||
120 | 114 | | |||
121 | void LineListIndex::appendBoth(const std::shared_ptr<LineList> &lineList, int debug) | 115 | void LineListIndex::appendBoth(const std::shared_ptr<LineList> &lineList) | ||
122 | { | 116 | { | ||
123 | QMutexLocker m1(&mutex); | 117 | QMutexLocker m1(&mutex); | ||
124 | 118 | | |||
125 | appendLine(lineList, debug); | 119 | appendLine(lineList); | ||
126 | appendPoly(lineList, debug); | 120 | appendPoly(lineList); | ||
127 | } | 121 | } | ||
128 | 122 | | |||
129 | void LineListIndex::reindexLines() | 123 | void LineListIndex::reindexLines() | ||
Context not available. |