Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/MarbleGlobal.h
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | |||||
177 | * @brief Search mode: Global (worldwide) versus area (local, regional) search | 177 | * @brief Search mode: Global (worldwide) versus area (local, regional) search | ||
178 | */ | 178 | */ | ||
179 | enum SearchMode { | 179 | enum SearchMode { | ||
180 | GlobalSearch, ///< Search a whole planet | 180 | GlobalSearch, ///< Search a whole planet | ||
181 | AreaSearch ///< Search a certain region of a planet (e.g. visible region) | 181 | AreaSearch ///< Search a certain region of a planet (e.g. visible region) | ||
182 | }; | 182 | }; | ||
183 | 183 | | |||
184 | /** | 184 | /** | ||
185 | * @brief Positions in the order of rendering | ||||
186 | * Values are ordered, from LSB matching what is rendered at the bottom to MSB matching what is rendered on top. | ||||
187 | * This allows e.g. to loop over all positions like this: | ||||
188 | * @code | ||||
189 | * RenderPosition renderPosition = FirstBackgroundRenderPosition; | ||||
190 | * while (renderPosition < EndRenderPosition) { | ||||
191 | * doFoo(renderPosition); | ||||
192 | * renderPosition = static_cast<RenderPosition>(renderPosition << 1); | ||||
193 | * } | ||||
194 | * @endcode | ||||
195 | */ | ||||
196 | enum RenderPosition { | ||||
197 | NoRenderPosition = 0, | ||||
198 | // background positions: | ||||
199 | StarsRenderPosition = (1 << 0), | ||||
200 | FirstBackgroundRenderPosition = StarsRenderPosition, ///< Helper value for iterating | ||||
201 | BehindTargetRenderPosition = (1 << 1), | ||||
202 | // object positions: TODO: better word for "object" | ||||
203 | SurfaceRenderPosition = (1 << 2), | ||||
204 | FirstObjectRenderPosition = SurfaceRenderPosition, ///< Helper value for iterating | ||||
205 | HoversAboveSurfaceRenderPosition = (1 << 3), | ||||
206 | AtmosphereRenderPosition = (1 << 4), | ||||
207 | OrbitRenderPosition = (1 << 5), | ||||
208 | AlwaysOnTopRenderPosition = (1 << 6), | ||||
209 | // screen positions: | ||||
210 | FloatItemRenderPosition = (1 << 7), | ||||
211 | UserToolsRenderPosition = (1 << 8), | ||||
212 | | ||||
213 | EndRenderPosition = (1 << 9) ///< Helper value for iterating, behind last existing position | ||||
214 | }; | ||||
215 | Q_DECLARE_FLAGS(RenderPositions, RenderPosition) | ||||
216 | | ||||
217 | /** | ||||
185 | * @brief | 218 | * @brief | ||
186 | */ | 219 | */ | ||
187 | enum RenderStatus { | 220 | enum RenderStatus { | ||
188 | Complete, ///< All data is there and up to date | 221 | Complete, ///< All data is there and up to date | ||
189 | WaitingForUpdate, ///< Rendering is based on complete, but outdated data, data update was requested | 222 | WaitingForUpdate, ///< Rendering is based on complete, but outdated data, data update was requested | ||
190 | WaitingForData, ///< Rendering is based on no or partial data, more data was requested (e.g. pending network queries) | 223 | WaitingForData, ///< Rendering is based on no or partial data, more data was requested (e.g. pending network queries) | ||
191 | Incomplete ///< Data is missing and some error occurred when trying to retrieve it (e.g. network failure) | 224 | Incomplete ///< Data is missing and some error occurred when trying to retrieve it (e.g. network failure) | ||
192 | }; | 225 | }; | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |