File indexing completed on 2024-05-05 03:50:35
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org> 0004 // 0005 0006 #ifndef GEOCUTE_VELOCITY_H 0007 #define GEOCUTE_VELOCITY_H 0008 0009 #include <QFlags> 0010 0011 0012 0013 namespace GeoCute 0014 { 0015 0016 enum VelocityFieldFlag { 0017 VelocityFieldsNone = 0, 0018 VelocityFieldsSpeed = 1 << 0, 0019 VelocityFieldsDirection = 1 << 1, 0020 VelocityFieldsClimb = 1 << 2 0021 }; 0022 0023 Q_DECLARE_FLAGS(VelocityFields, VelocityFieldFlag) 0024 Q_DECLARE_OPERATORS_FOR_FLAGS(VelocityFields) 0025 0026 struct Velocity 0027 { 0028 VelocityFields fields; 0029 qreal speed; 0030 qreal direction; 0031 qreal climb; 0032 }; 0033 0034 } 0035 0036 0037 0038 #endif