| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickturbulence_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | class QQuickParticlePainter; | - | ||||||
| 5 | - | |||||||
| 6 | class QQuickTurbulenceAffector : public QQuickParticleAffector | - | ||||||
| 7 | { | - | ||||||
| 8 | public: | - | ||||||
| 9 | #pragma GCC diagnostic push | - | ||||||
| 10 | - | |||||||
| 11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
| 12 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - | ||||||
| 13 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
| 14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
| 15 | #pragma GCC diagnostic pop | - | ||||||
| 16 | struct QPrivateSignal {}; | - | ||||||
| 17 | - | |||||||
| 18 | - | |||||||
| 19 | public: | - | ||||||
| 20 | explicit QQuickTurbulenceAffector(QQuickItem *parent = 0); | - | ||||||
| 21 | ~QQuickTurbulenceAffector(); | - | ||||||
| 22 | void affectSystem(qreal dt) override; | - | ||||||
| 23 | - | |||||||
| 24 | qreal strength() const | - | ||||||
| 25 | { | - | ||||||
| 26 | return never executed: m_strength;return m_strength;never executed: return m_strength; | 0 | ||||||
| 27 | } | - | ||||||
| 28 | - | |||||||
| 29 | QUrl noiseSource() const | - | ||||||
| 30 | { | - | ||||||
| 31 | return never executed: m_noiseSource;return m_noiseSource;never executed: return m_noiseSource; | 0 | ||||||
| 32 | } | - | ||||||
| 33 | public : | - | ||||||
| 34 | - | |||||||
| 35 | void strengthChanged(qreal arg); | - | ||||||
| 36 | - | |||||||
| 37 | void noiseSourceChanged(QUrl arg); | - | ||||||
| 38 | - | |||||||
| 39 | public : | - | ||||||
| 40 | - | |||||||
| 41 | void setStrength(qreal arg) | - | ||||||
| 42 | { | - | ||||||
| 43 | if (m_strength != arg
| 0-10 | ||||||
| 44 | m_strength = arg; | - | ||||||
| 45 | strengthChanged(arg); | - | ||||||
| 46 | } executed 10 times by 2 tests: end of blockExecuted by:
| 10 | ||||||
| 47 | } executed 10 times by 2 tests: end of blockExecuted by:
| 10 | ||||||
| 48 | - | |||||||
| 49 | void setNoiseSource(QUrl arg) | - | ||||||
| 50 | { | - | ||||||
| 51 | if (m_noiseSource != arg
| 0 | ||||||
| 52 | m_noiseSource = arg; | - | ||||||
| 53 | noiseSourceChanged(arg); | - | ||||||
| 54 | initializeGrid(); | - | ||||||
| 55 | } never executed: end of block | 0 | ||||||
| 56 | } never executed: end of block | 0 | ||||||
| 57 | - | |||||||
| 58 | protected: | - | ||||||
| 59 | void geometryChanged(const QRectF &newGeometry, | - | ||||||
| 60 | const QRectF &oldGeometry) override; | - | ||||||
| 61 | private: | - | ||||||
| 62 | void ensureInit(); | - | ||||||
| 63 | void mapUpdate(); | - | ||||||
| 64 | void initializeGrid(); | - | ||||||
| 65 | qreal boundsRespectingField(int x, int y); | - | ||||||
| 66 | qreal m_strength; | - | ||||||
| 67 | qreal m_lastT; | - | ||||||
| 68 | int m_gridSize; | - | ||||||
| 69 | qreal** m_field; | - | ||||||
| 70 | QPointF** m_vectorField; | - | ||||||
| 71 | bool m_inited; | - | ||||||
| 72 | QUrl m_noiseSource; | - | ||||||
| 73 | }; | - | ||||||
| 74 | - | |||||||
| 75 | - | |||||||
| Switch to Source code | Preprocessed file |