| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | const qreal CONV = 0.017453292519943295; | - |
| 8 | class ImageMaterialData | - |
| 9 | { | - |
| 10 | public: | - |
| 11 | ImageMaterialData() | - |
| 12 | : texture(nullptr), colorTable(nullptr) | - |
| 13 | {}executed 99 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 14 | | - |
| 15 | ~ImageMaterialData(){ | - |
| 16 | delete texture; | - |
| 17 | delete colorTable; | - |
| 18 | }executed 99 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 19 | | - |
| 20 | QSGTexture *texture; | - |
| 21 | QSGTexture *colorTable; | - |
| 22 | float sizeTable[64]; | - |
| 23 | float opacityTable[64]; | - |
| 24 | | - |
| 25 | qreal timestamp; | - |
| 26 | qreal entry; | - |
| 27 | QSizeF animSheetSize; | - |
| 28 | }; | - |
| 29 | | - |
| 30 | class TabledMaterialData : public ImageMaterialData {}; | - |
| 31 | class TabledMaterial : public QSGSimpleMaterialShader<TabledMaterialData> | - |
| 32 | { | - |
| 33 | static QSGMaterialShader *createShader() { returnexecuted 2 times by 1 test: return new TabledMaterial; new TabledMaterial;executed 2 times by 1 test: return new TabledMaterial; } public: static QSGSimpleMaterial<TabledMaterialData> *createMaterial() { returnexecuted 2 times by 1 test: return new QSGSimpleMaterial<TabledMaterialData>(createShader); new QSGSimpleMaterial<TabledMaterialData>(createShader);executed 2 times by 1 test: return new QSGSimpleMaterial<TabledMaterialData>(createShader); } | 2 |
| 34 | | - |
| 35 | public: | - |
| 36 | TabledMaterial() | - |
| 37 | { | - |
| 38 | QSGShaderSourceBuilder builder; | - |
| 39 | const bool isES = QOpenGLContext::currentContext()->isOpenGLES(); | - |
| 40 | | - |
| 41 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 2 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 2 times by 1 test: return qstring_literal_temp; }())); | 2 |
| 42 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 43 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 44 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 45 | if (isES| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 46 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 47 | | - |
| 48 | m_vertex_code = builder.source(); | - |
| 49 | builder.clear(); | - |
| 50 | | - |
| 51 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 2 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 2 times by 1 test: return qstring_literal_temp; }())); | 2 |
| 52 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 53 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 54 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 2 times by 1 test: return ba; ba;executed 2 times by 1 test: return ba; }())); | 2 |
| 55 | if (isES| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 56 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 57 | | - |
| 58 | m_fragment_code = builder.source(); | - |
| 59 | | - |
| 60 | ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 118)); | - |
| 61 | ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 119)); | - |
| 62 | }executed 2 times by 1 test: end of block | 2 |
| 63 | | - |
| 64 | const char *vertexShader() const override { returnexecuted 2 times by 1 test: return m_vertex_code.constData(); m_vertex_code.constData();executed 2 times by 1 test: return m_vertex_code.constData(); } | 2 |
| 65 | const char *fragmentShader() const override { returnexecuted 2 times by 1 test: return m_fragment_code.constData(); m_fragment_code.constData();executed 2 times by 1 test: return m_fragment_code.constData(); } | 2 |
| 66 | | - |
| 67 | QList<QByteArray> attributes() const override { | - |
| 68 | returnexecuted 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation"; QList<QByteArray>() << "vPosTex" << "vData" << "vVec"executed 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation"; | 2 |
| 69 | << "vColor" << "vDeformVec" << "vRotation";executed 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation"; | 2 |
| 70 | }; | - |
| 71 | | - |
| 72 | void initialize() override { | - |
| 73 | QSGSimpleMaterialShader<TabledMaterialData>::initialize(); | - |
| 74 | program()->bind(); | - |
| 75 | program()->setUniformValue("_qt_texture", 0); | - |
| 76 | program()->setUniformValue("colortable", 1); | - |
| 77 | glFuncs = QOpenGLContext::currentContext()->functions(); | - |
| 78 | m_timestamp_id = program()->uniformLocation("timestamp"); | - |
| 79 | m_entry_id = program()->uniformLocation("entry"); | - |
| 80 | m_sizetable_id = program()->uniformLocation("sizetable"); | - |
| 81 | m_opacitytable_id = program()->uniformLocation("opacitytable"); | - |
| 82 | }executed 2 times by 1 test: end of block | 2 |
| 83 | | - |
| 84 | void updateState(const TabledMaterialData* d, const TabledMaterialData*) override { | - |
| 85 | glFuncs->glActiveTexture( | - |
| 86 | 0x84C1 | - |
| 87 | ); | - |
| 88 | d->colorTable->bind(); | - |
| 89 | | - |
| 90 | glFuncs->glActiveTexture( | - |
| 91 | 0x84C0 | - |
| 92 | ); | - |
| 93 | d->texture->bind(); | - |
| 94 | | - |
| 95 | program()->setUniformValue(m_timestamp_id, (float) d->timestamp); | - |
| 96 | program()->setUniformValue(m_entry_id, (float) d->entry); | - |
| 97 | program()->setUniformValueArray(m_sizetable_id, (const float*) d->sizeTable, 64, 1); | - |
| 98 | program()->setUniformValueArray(m_opacitytable_id, (const float*) d->opacityTable, 64, 1); | - |
| 99 | }executed 125 times by 1 test: end of block | 125 |
| 100 | | - |
| 101 | int m_entry_id; | - |
| 102 | int m_timestamp_id; | - |
| 103 | int m_sizetable_id; | - |
| 104 | int m_opacitytable_id; | - |
| 105 | QByteArray m_vertex_code; | - |
| 106 | QByteArray m_fragment_code; | - |
| 107 | QOpenGLFunctions* glFuncs; | - |
| 108 | }; | - |
| 109 | | - |
| 110 | class DeformableMaterialData : public ImageMaterialData {}; | - |
| 111 | class DeformableMaterial : public QSGSimpleMaterialShader<DeformableMaterialData> | - |
| 112 | { | - |
| 113 | static QSGMaterialShader *createShader() { returnexecuted 6 times by 2 tests: return new DeformableMaterial;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
new DeformableMaterial;executed 6 times by 2 tests: return new DeformableMaterial;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
} public: static QSGSimpleMaterial<DeformableMaterialData> *createMaterial() { returnexecuted 6 times by 2 tests: return new QSGSimpleMaterial<DeformableMaterialData>(createShader);Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
new QSGSimpleMaterial<DeformableMaterialData>(createShader);executed 6 times by 2 tests: return new QSGSimpleMaterial<DeformableMaterialData>(createShader);Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
} | 6 |
| 114 | | - |
| 115 | public: | - |
| 116 | DeformableMaterial() | - |
| 117 | { | - |
| 118 | QSGShaderSourceBuilder builder; | - |
| 119 | const bool isES = QOpenGLContext::currentContext()->isOpenGLES(); | - |
| 120 | | - |
| 121 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 6 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
qstring_literal_temp;executed 6 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 122 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
ba;executed 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 123 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
ba;executed 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 124 | if (isES| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
) | 0-6 |
| 125 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 126 | | - |
| 127 | m_vertex_code = builder.source(); | - |
| 128 | builder.clear(); | - |
| 129 | | - |
| 130 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 6 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
qstring_literal_temp;executed 6 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 131 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
ba;executed 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 132 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
ba;executed 6 times by 2 tests: return ba;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
}())); | 6 |
| 133 | if (isES| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
) | 0-6 |
| 134 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 135 | | - |
| 136 | m_fragment_code = builder.source(); | - |
| 137 | | - |
| 138 | ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 192)); | - |
| 139 | ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 193)); | - |
| 140 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 141 | | - |
| 142 | const char *vertexShader() const override { returnexecuted 6 times by 2 tests: return m_vertex_code.constData();Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
m_vertex_code.constData();executed 6 times by 2 tests: return m_vertex_code.constData();Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
} | 6 |
| 143 | const char *fragmentShader() const override { returnexecuted 6 times by 2 tests: return m_fragment_code.constData();Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
m_fragment_code.constData();executed 6 times by 2 tests: return m_fragment_code.constData();Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
} | 6 |
| 144 | | - |
| 145 | QList<QByteArray> attributes() const override { | - |
| 146 | returnexecuted 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
QList<QByteArray>() << "vPosTex" << "vData" << "vVec"executed 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 147 | << "vColor" << "vDeformVec" << "vRotation";executed 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 148 | }; | - |
| 149 | | - |
| 150 | void initialize() override { | - |
| 151 | QSGSimpleMaterialShader<DeformableMaterialData>::initialize(); | - |
| 152 | program()->bind(); | - |
| 153 | program()->setUniformValue("_qt_texture", 0); | - |
| 154 | glFuncs = QOpenGLContext::currentContext()->functions(); | - |
| 155 | m_timestamp_id = program()->uniformLocation("timestamp"); | - |
| 156 | m_entry_id = program()->uniformLocation("entry"); | - |
| 157 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 158 | | - |
| 159 | void updateState(const DeformableMaterialData* d, const DeformableMaterialData*) override { | - |
| 160 | d->texture->bind(); | - |
| 161 | | - |
| 162 | program()->setUniformValue(m_timestamp_id, (float) d->timestamp); | - |
| 163 | program()->setUniformValue(m_entry_id, (float) d->entry); | - |
| 164 | }executed 308 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 308 |
| 165 | | - |
| 166 | int m_entry_id; | - |
| 167 | int m_timestamp_id; | - |
| 168 | QByteArray m_vertex_code; | - |
| 169 | QByteArray m_fragment_code; | - |
| 170 | QOpenGLFunctions* glFuncs; | - |
| 171 | }; | - |
| 172 | | - |
| 173 | class SpriteMaterialData : public ImageMaterialData {}; | - |
| 174 | class SpriteMaterial : public QSGSimpleMaterialShader<SpriteMaterialData> | - |
| 175 | { | - |
| 176 | static QSGMaterialShader *createShader() { returnexecuted 4 times by 2 tests: return new SpriteMaterial;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
new SpriteMaterial;executed 4 times by 2 tests: return new SpriteMaterial;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
} public: static QSGSimpleMaterial<SpriteMaterialData> *createMaterial() { returnexecuted 4 times by 2 tests: return new QSGSimpleMaterial<SpriteMaterialData>(createShader);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
new QSGSimpleMaterial<SpriteMaterialData>(createShader);executed 4 times by 2 tests: return new QSGSimpleMaterial<SpriteMaterialData>(createShader);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
} | 4 |
| 177 | | - |
| 178 | public: | - |
| 179 | SpriteMaterial() | - |
| 180 | { | - |
| 181 | QSGShaderSourceBuilder builder; | - |
| 182 | const bool isES = QOpenGLContext::currentContext()->isOpenGLES(); | - |
| 183 | | - |
| 184 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
qstring_literal_temp;executed 4 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 185 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("SPRITE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "SPRITE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 186 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 187 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 188 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 189 | if (isES| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 0-4 |
| 190 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 191 | | - |
| 192 | m_vertex_code = builder.source(); | - |
| 193 | builder.clear(); | - |
| 194 | | - |
| 195 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
qstring_literal_temp;executed 4 times by 2 tests: return qstring_literal_temp;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 196 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("SPRITE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "SPRITE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 197 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 198 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 199 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
ba;executed 4 times by 2 tests: return ba;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
}())); | 4 |
| 200 | if (isES| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 0-4 |
| 201 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 202 | | - |
| 203 | m_fragment_code = builder.source(); | - |
| 204 | | - |
| 205 | ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 259)); | - |
| 206 | ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 260)); | - |
| 207 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 208 | | - |
| 209 | const char *vertexShader() const override { returnexecuted 4 times by 2 tests: return m_vertex_code.constData();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
m_vertex_code.constData();executed 4 times by 2 tests: return m_vertex_code.constData();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
} | 4 |
| 210 | const char *fragmentShader() const override { returnexecuted 4 times by 2 tests: return m_fragment_code.constData();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
m_fragment_code.constData();executed 4 times by 2 tests: return m_fragment_code.constData();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
} | 4 |
| 211 | | - |
| 212 | QList<QByteArray> attributes() const override { | - |
| 213 | returnexecuted 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
QList<QByteArray>() << "vPosTex" << "vData" << "vVec"executed 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 214 | << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";executed 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 215 | } | - |
| 216 | | - |
| 217 | void initialize() override { | - |
| 218 | QSGSimpleMaterialShader<SpriteMaterialData>::initialize(); | - |
| 219 | program()->bind(); | - |
| 220 | program()->setUniformValue("_qt_texture", 0); | - |
| 221 | program()->setUniformValue("colortable", 1); | - |
| 222 | glFuncs = QOpenGLContext::currentContext()->functions(); | - |
| 223 | | - |
| 224 | m_timestamp_id = program()->uniformLocation("timestamp"); | - |
| 225 | m_entry_id = program()->uniformLocation("entry"); | - |
| 226 | m_sizetable_id = program()->uniformLocation("sizetable"); | - |
| 227 | m_opacitytable_id = program()->uniformLocation("opacitytable"); | - |
| 228 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 229 | | - |
| 230 | void updateState(const SpriteMaterialData* d, const SpriteMaterialData*) override { | - |
| 231 | glFuncs->glActiveTexture( | - |
| 232 | 0x84C1 | - |
| 233 | ); | - |
| 234 | d->colorTable->bind(); | - |
| 235 | | - |
| 236 | | - |
| 237 | glFuncs->glActiveTexture( | - |
| 238 | 0x84C0 | - |
| 239 | ); | - |
| 240 | d->texture->bind(); | - |
| 241 | | - |
| 242 | program()->setUniformValue(m_timestamp_id, (float) d->timestamp); | - |
| 243 | program()->setUniformValue(m_entry_id, (float) d->entry); | - |
| 244 | program()->setUniformValueArray(m_sizetable_id, (const float*) d->sizeTable, 64, 1); | - |
| 245 | program()->setUniformValueArray(m_opacitytable_id, (const float*) d->opacityTable, 64, 1); | - |
| 246 | }executed 267 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 267 |
| 247 | | - |
| 248 | int m_timestamp_id; | - |
| 249 | int m_entry_id; | - |
| 250 | int m_sizetable_id; | - |
| 251 | int m_opacitytable_id; | - |
| 252 | QByteArray m_vertex_code; | - |
| 253 | QByteArray m_fragment_code; | - |
| 254 | QOpenGLFunctions* glFuncs; | - |
| 255 | }; | - |
| 256 | | - |
| 257 | class ColoredMaterialData : public ImageMaterialData {}; | - |
| 258 | class ColoredMaterial : public QSGSimpleMaterialShader<ColoredMaterialData> | - |
| 259 | { | - |
| 260 | static QSGMaterialShader *createShader() { returnexecuted 4 times by 1 test: return new ColoredMaterial; new ColoredMaterial;executed 4 times by 1 test: return new ColoredMaterial; } public: static QSGSimpleMaterial<ColoredMaterialData> *createMaterial() { returnexecuted 4 times by 1 test: return new QSGSimpleMaterial<ColoredMaterialData>(createShader); new QSGSimpleMaterial<ColoredMaterialData>(createShader);executed 4 times by 1 test: return new QSGSimpleMaterial<ColoredMaterialData>(createShader); } | 4 |
| 261 | | - |
| 262 | public: | - |
| 263 | ColoredMaterial() | - |
| 264 | { | - |
| 265 | QSGShaderSourceBuilder builder; | - |
| 266 | const bool isES = QOpenGLContext::currentContext()->isOpenGLES(); | - |
| 267 | | - |
| 268 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }())); | 4 |
| 269 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 1 test: return ba; ba;executed 4 times by 1 test: return ba; }())); | 4 |
| 270 | if (isES| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 271 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 272 | | - |
| 273 | m_vertex_code = builder.source(); | - |
| 274 | builder.clear(); | - |
| 275 | | - |
| 276 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }())); | 4 |
| 277 | builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 4 times by 1 test: return ba; ba;executed 4 times by 1 test: return ba; }())); | 4 |
| 278 | if (isES| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 279 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 280 | | - |
| 281 | m_fragment_code = builder.source(); | - |
| 282 | | - |
| 283 | ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 333)); | - |
| 284 | ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 334)); | - |
| 285 | }executed 4 times by 1 test: end of block | 4 |
| 286 | | - |
| 287 | const char *vertexShader() const override { returnexecuted 4 times by 1 test: return m_vertex_code.constData(); m_vertex_code.constData();executed 4 times by 1 test: return m_vertex_code.constData(); } | 4 |
| 288 | const char *fragmentShader() const override { returnexecuted 4 times by 1 test: return m_fragment_code.constData(); m_fragment_code.constData();executed 4 times by 1 test: return m_fragment_code.constData(); } | 4 |
| 289 | | - |
| 290 | void activate() override { | - |
| 291 | QSGSimpleMaterialShader<ColoredMaterialData>::activate(); | - |
| 292 | | - |
| 293 | glEnable(0x8861); | - |
| 294 | glEnable(0x8642); | - |
| 295 | | - |
| 296 | }executed 258 times by 1 test: end of block | 258 |
| 297 | | - |
| 298 | void deactivate() override { | - |
| 299 | QSGSimpleMaterialShader<ColoredMaterialData>::deactivate(); | - |
| 300 | | - |
| 301 | glDisable(0x8861); | - |
| 302 | glDisable(0x8642); | - |
| 303 | | - |
| 304 | }executed 258 times by 1 test: end of block | 258 |
| 305 | | - |
| 306 | QList<QByteArray> attributes() const override { | - |
| 307 | returnexecuted 4 times by 1 test: return QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor"; QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor";executed 4 times by 1 test: return QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor"; | 4 |
| 308 | } | - |
| 309 | | - |
| 310 | void initialize() override { | - |
| 311 | QSGSimpleMaterialShader<ColoredMaterialData>::initialize(); | - |
| 312 | program()->bind(); | - |
| 313 | program()->setUniformValue("_qt_texture", 0); | - |
| 314 | glFuncs = QOpenGLContext::currentContext()->functions(); | - |
| 315 | m_timestamp_id = program()->uniformLocation("timestamp"); | - |
| 316 | m_entry_id = program()->uniformLocation("entry"); | - |
| 317 | }executed 4 times by 1 test: end of block | 4 |
| 318 | | - |
| 319 | void updateState(const ColoredMaterialData* d, const ColoredMaterialData*) override { | - |
| 320 | d->texture->bind(); | - |
| 321 | | - |
| 322 | program()->setUniformValue(m_timestamp_id, (float) d->timestamp); | - |
| 323 | program()->setUniformValue(m_entry_id, (float) d->entry); | - |
| 324 | }executed 258 times by 1 test: end of block | 258 |
| 325 | | - |
| 326 | int m_timestamp_id; | - |
| 327 | int m_entry_id; | - |
| 328 | QByteArray m_vertex_code; | - |
| 329 | QByteArray m_fragment_code; | - |
| 330 | QOpenGLFunctions* glFuncs; | - |
| 331 | }; | - |
| 332 | | - |
| 333 | class SimpleMaterialData : public ImageMaterialData {}; | - |
| 334 | class SimpleMaterial : public QSGSimpleMaterialShader<SimpleMaterialData> | - |
| 335 | { | - |
| 336 | static QSGMaterialShader *createShader() { returnexecuted 48 times by 20 tests: return new SimpleMaterial;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
new SimpleMaterial;executed 48 times by 20 tests: return new SimpleMaterial;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} public: static QSGSimpleMaterial<SimpleMaterialData> *createMaterial() { returnexecuted 83 times by 20 tests: return new QSGSimpleMaterial<SimpleMaterialData>(createShader);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
new QSGSimpleMaterial<SimpleMaterialData>(createShader);executed 83 times by 20 tests: return new QSGSimpleMaterial<SimpleMaterialData>(createShader);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 48-83 |
| 337 | | - |
| 338 | public: | - |
| 339 | SimpleMaterial() | - |
| 340 | { | - |
| 341 | QSGShaderSourceBuilder builder; | - |
| 342 | const bool isES = QOpenGLContext::currentContext()->isOpenGLES(); | - |
| 343 | | - |
| 344 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 48 times by 20 tests: return qstring_literal_temp;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
qstring_literal_temp;executed 48 times by 20 tests: return qstring_literal_temp;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
}())); | 48 |
| 345 | if (isES| TRUE | never evaluated | | FALSE | evaluated 48 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-48 |
| 346 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 347 | | - |
| 348 | m_vertex_code = builder.source(); | - |
| 349 | builder.clear(); | - |
| 350 | | - |
| 351 | builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 48 times by 20 tests: return qstring_literal_temp;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
qstring_literal_temp;executed 48 times by 20 tests: return qstring_literal_temp;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
}())); | 48 |
| 352 | if (isES| TRUE | never evaluated | | FALSE | evaluated 48 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-48 |
| 353 | builder.removeVersion(); never executed: builder.removeVersion(); | 0 |
| 354 | | - |
| 355 | m_fragment_code = builder.source(); | - |
| 356 | | - |
| 357 | ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 407)); | - |
| 358 | ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 408)); | - |
| 359 | }executed 48 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 48 |
| 360 | | - |
| 361 | const char *vertexShader() const override { returnexecuted 48 times by 20 tests: return m_vertex_code.constData();Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_vertex_code.constData();executed 48 times by 20 tests: return m_vertex_code.constData();Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 48 |
| 362 | const char *fragmentShader() const override { returnexecuted 48 times by 20 tests: return m_fragment_code.constData();Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_fragment_code.constData();executed 48 times by 20 tests: return m_fragment_code.constData();Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 48 |
| 363 | | - |
| 364 | void activate() override { | - |
| 365 | QSGSimpleMaterialShader<SimpleMaterialData>::activate(); | - |
| 366 | | - |
| 367 | glEnable(0x8861); | - |
| 368 | glEnable(0x8642); | - |
| 369 | | - |
| 370 | }executed 2952 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 2952 |
| 371 | | - |
| 372 | void deactivate() override { | - |
| 373 | QSGSimpleMaterialShader<SimpleMaterialData>::deactivate(); | - |
| 374 | | - |
| 375 | glDisable(0x8861); | - |
| 376 | glDisable(0x8642); | - |
| 377 | | - |
| 378 | }executed 2952 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 2952 |
| 379 | | - |
| 380 | QList<QByteArray> attributes() const override { | - |
| 381 | returnexecuted 48 times by 20 tests: return QList<QByteArray>() << "vPos" << "vData" << "vVec";Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
QList<QByteArray>() << "vPos" << "vData" << "vVec";executed 48 times by 20 tests: return QList<QByteArray>() << "vPos" << "vData" << "vVec";Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 48 |
| 382 | } | - |
| 383 | | - |
| 384 | void initialize() override { | - |
| 385 | QSGSimpleMaterialShader<SimpleMaterialData>::initialize(); | - |
| 386 | program()->bind(); | - |
| 387 | program()->setUniformValue("_qt_texture", 0); | - |
| 388 | glFuncs = QOpenGLContext::currentContext()->functions(); | - |
| 389 | m_timestamp_id = program()->uniformLocation("timestamp"); | - |
| 390 | m_entry_id = program()->uniformLocation("entry"); | - |
| 391 | }executed 48 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 48 |
| 392 | | - |
| 393 | void updateState(const SimpleMaterialData* d, const SimpleMaterialData*) override { | - |
| 394 | d->texture->bind(); | - |
| 395 | | - |
| 396 | program()->setUniformValue(m_timestamp_id, (float) d->timestamp); | - |
| 397 | program()->setUniformValue(m_entry_id, (float) d->entry); | - |
| 398 | }executed 3635 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 3635 |
| 399 | | - |
| 400 | int m_timestamp_id; | - |
| 401 | int m_entry_id; | - |
| 402 | QByteArray m_vertex_code; | - |
| 403 | QByteArray m_fragment_code; | - |
| 404 | QOpenGLFunctions* glFuncs; | - |
| 405 | }; | - |
| 406 | | - |
| 407 | void fillUniformArrayFromImage(float* array, const QImage& img, int size) | - |
| 408 | { | - |
| 409 | if (img.isNull()| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 4 times by 1 test |
){ | 4-8 |
| 410 | for (int i=0; i<size| TRUE | evaluated 512 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
; i++) | 8-512 |
| 411 | array[i] = 1.0;executed 512 times by 2 tests: array[i] = 1.0;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 512 |
| 412 | return;executed 8 times by 2 tests: return;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 8 |
| 413 | } | - |
| 414 | QImage scaled = img.scaled(size,1); | - |
| 415 | for (int i=0; i<size| TRUE | evaluated 256 times by 1 test | | FALSE | evaluated 4 times by 1 test |
; i++) | 4-256 |
| 416 | array[i] = qAlpha(scaled.pixel(i,0))/255.0;executed 256 times by 1 test: array[i] = qAlpha(scaled.pixel(i,0))/255.0; | 256 |
| 417 | }executed 4 times by 1 test: end of block | 4 |
| 418 | QQuickImageParticle::QQuickImageParticle(QQuickItem* parent) | - |
| 419 | : QQuickParticlePainter(parent) | - |
| 420 | , m_color_variation(0.0) | - |
| 421 | , m_material(nullptr) | - |
| 422 | , m_alphaVariation(0.0) | - |
| 423 | , m_alpha(1.0) | - |
| 424 | , m_redVariation(0.0) | - |
| 425 | , m_greenVariation(0.0) | - |
| 426 | , m_blueVariation(0.0) | - |
| 427 | , m_rotation(0) | - |
| 428 | , m_rotationVariation(0) | - |
| 429 | , m_rotationVelocity(0) | - |
| 430 | , m_rotationVelocityVariation(0) | - |
| 431 | , m_autoRotation(false) | - |
| 432 | , m_xVector(nullptr) | - |
| 433 | , m_yVector(nullptr) | - |
| 434 | , m_spriteEngine(nullptr) | - |
| 435 | , m_spritesInterpolate(true) | - |
| 436 | , m_explicitColor(false) | - |
| 437 | , m_explicitRotation(false) | - |
| 438 | , m_explicitDeformation(false) | - |
| 439 | , m_explicitAnimation(false) | - |
| 440 | , m_bypassOptimizations(false) | - |
| 441 | , perfLevel(Unknown) | - |
| 442 | , m_lastLevel(Unknown) | - |
| 443 | , m_debugMode(false) | - |
| 444 | , m_entryEffect(Fade) | - |
| 445 | , m_startedImageLoading(0) | - |
| 446 | { | - |
| 447 | setFlag(ItemHasContents); | - |
| 448 | }executed 202 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 202 |
| 449 | | - |
| 450 | QQuickImageParticle::~QQuickImageParticle() | - |
| 451 | { | - |
| 452 | clearShadows(); | - |
| 453 | }executed 202 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 202 |
| 454 | | - |
| 455 | QQmlListProperty<QQuickSprite> QQuickImageParticle::sprites() | - |
| 456 | { | - |
| 457 | returnexecuted 22 times by 3 tests: return QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);Executed by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);executed 22 times by 3 tests: return QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);Executed by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
| 22 |
| 458 | } | - |
| 459 | | - |
| 460 | void QQuickImageParticle::sceneGraphInvalidated() | - |
| 461 | { | - |
| 462 | m_nodes.clear(); | - |
| 463 | m_material = nullptr; | - |
| 464 | } never executed: end of block | 0 |
| 465 | | - |
| 466 | void QQuickImageParticle::setImage(const QUrl &image) | - |
| 467 | { | - |
| 468 | if (image.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 180 times by 21 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
){ | 0-180 |
| 469 | if (m_image| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 470 | m_image.reset(); | - |
| 471 | imageChanged(); | - |
| 472 | } never executed: end of block | 0 |
| 473 | return; never executed: return; | 0 |
| 474 | } | - |
| 475 | | - |
| 476 | if (!m_image| TRUE | evaluated 180 times by 21 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
) | 0-180 |
| 477 | m_image.reset(new ImageData);executed 180 times by 21 tests: m_image.reset(new ImageData);Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 180 |
| 478 | if (image == m_image->source| TRUE | never evaluated | | FALSE | evaluated 180 times by 21 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-180 |
| 479 | return; never executed: return; | 0 |
| 480 | m_image->source = image; | - |
| 481 | imageChanged(); | - |
| 482 | reset(); | - |
| 483 | }executed 180 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 180 |
| 484 | | - |
| 485 | | - |
| 486 | void QQuickImageParticle::setColortable(const QUrl &table) | - |
| 487 | { | - |
| 488 | if (table.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
|
){ | 0-6 |
| 489 | if (m_colorTable| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 490 | m_colorTable.reset(); | - |
| 491 | colortableChanged(); | - |
| 492 | } never executed: end of block | 0 |
| 493 | return; never executed: return; | 0 |
| 494 | } | - |
| 495 | | - |
| 496 | if (!m_colorTable| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-6 |
| 497 | m_colorTable.reset(new ImageData);executed 6 times by 2 tests: m_colorTable.reset(new ImageData);Executed by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 498 | if (table == m_colorTable->source| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
|
) | 0-6 |
| 499 | return; never executed: return; | 0 |
| 500 | m_colorTable->source = table; | - |
| 501 | colortableChanged(); | - |
| 502 | reset(); | - |
| 503 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 504 | | - |
| 505 | void QQuickImageParticle::setSizetable(const QUrl &table) | - |
| 506 | { | - |
| 507 | if (table.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
|
){ | 0-6 |
| 508 | if (m_sizeTable| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 509 | m_sizeTable.reset(); | - |
| 510 | sizetableChanged(); | - |
| 511 | } never executed: end of block | 0 |
| 512 | return; never executed: return; | 0 |
| 513 | } | - |
| 514 | | - |
| 515 | if (!m_sizeTable| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-6 |
| 516 | m_sizeTable.reset(new ImageData);executed 6 times by 2 tests: m_sizeTable.reset(new ImageData);Executed by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 517 | if (table == m_sizeTable->source| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
|
) | 0-6 |
| 518 | return; never executed: return; | 0 |
| 519 | m_sizeTable->source = table; | - |
| 520 | sizetableChanged(); | - |
| 521 | reset(); | - |
| 522 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 523 | | - |
| 524 | void QQuickImageParticle::setOpacitytable(const QUrl &table) | - |
| 525 | { | - |
| 526 | if (table.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
){ | 0-2 |
| 527 | if (m_opacityTable| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 528 | m_opacityTable.reset(); | - |
| 529 | opacitytableChanged(); | - |
| 530 | } never executed: end of block | 0 |
| 531 | return; never executed: return; | 0 |
| 532 | } | - |
| 533 | | - |
| 534 | if (!m_opacityTable| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 535 | m_opacityTable.reset(new ImageData);executed 2 times by 1 test: m_opacityTable.reset(new ImageData); | 2 |
| 536 | if (table == m_opacityTable->source| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 537 | return; never executed: return; | 0 |
| 538 | m_opacityTable->source = table; | - |
| 539 | opacitytableChanged(); | - |
| 540 | reset(); | - |
| 541 | }executed 2 times by 1 test: end of block | 2 |
| 542 | | - |
| 543 | void QQuickImageParticle::setColor(const QColor &color) | - |
| 544 | { | - |
| 545 | if (color == m_color| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 112 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
|
) | 4-112 |
| 546 | return;executed 4 times by 1 test: return; | 4 |
| 547 | m_color = color; | - |
| 548 | colorChanged(); | - |
| 549 | m_explicitColor = true; | - |
| 550 | if (perfLevel < Colored| TRUE | evaluated 112 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-112 |
| 551 | reset();executed 112 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 112 |
| 552 | }executed 112 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 112 |
| 553 | | - |
| 554 | void QQuickImageParticle::setColorVariation(qreal var) | - |
| 555 | { | - |
| 556 | if (var == m_color_variation| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 72 times by 1 test |
) | 8-72 |
| 557 | return;executed 8 times by 1 test: return; | 8 |
| 558 | m_color_variation = var; | - |
| 559 | colorVariationChanged(); | - |
| 560 | m_explicitColor = true; | - |
| 561 | if (perfLevel < Colored| TRUE | evaluated 72 times by 1 test | | FALSE | never evaluated |
) | 0-72 |
| 562 | reset();executed 72 times by 1 test: reset(); | 72 |
| 563 | }executed 72 times by 1 test: end of block | 72 |
| 564 | | - |
| 565 | void QQuickImageParticle::setAlphaVariation(qreal arg) | - |
| 566 | { | - |
| 567 | if (m_alphaVariation != arg| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-6 |
| 568 | m_alphaVariation = arg; | - |
| 569 | alphaVariationChanged(arg); | - |
| 570 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 571 | m_explicitColor = true; | - |
| 572 | if (perfLevel < Colored| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-6 |
| 573 | reset();executed 6 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 574 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 575 | | - |
| 576 | void QQuickImageParticle::setAlpha(qreal arg) | - |
| 577 | { | - |
| 578 | if (m_alpha != arg| TRUE | evaluated 64 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | evaluated 2 times by 1 test |
) { | 2-64 |
| 579 | m_alpha = arg; | - |
| 580 | alphaChanged(arg); | - |
| 581 | }executed 64 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 64 |
| 582 | m_explicitColor = true; | - |
| 583 | if (perfLevel < Colored| TRUE | evaluated 66 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-66 |
| 584 | reset();executed 66 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 66 |
| 585 | }executed 66 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 66 |
| 586 | | - |
| 587 | void QQuickImageParticle::setRedVariation(qreal arg) | - |
| 588 | { | - |
| 589 | if (m_redVariation != arg| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-6 |
| 590 | m_redVariation = arg; | - |
| 591 | redVariationChanged(arg); | - |
| 592 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 593 | m_explicitColor = true; | - |
| 594 | if (perfLevel < Colored| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-6 |
| 595 | reset();executed 6 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 596 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 597 | | - |
| 598 | void QQuickImageParticle::setGreenVariation(qreal arg) | - |
| 599 | { | - |
| 600 | if (m_greenVariation != arg| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-4 |
| 601 | m_greenVariation = arg; | - |
| 602 | greenVariationChanged(arg); | - |
| 603 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 604 | m_explicitColor = true; | - |
| 605 | if (perfLevel < Colored| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-4 |
| 606 | reset();executed 4 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 607 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 608 | | - |
| 609 | void QQuickImageParticle::setBlueVariation(qreal arg) | - |
| 610 | { | - |
| 611 | if (m_blueVariation != arg| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-6 |
| 612 | m_blueVariation = arg; | - |
| 613 | blueVariationChanged(arg); | - |
| 614 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 615 | m_explicitColor = true; | - |
| 616 | if (perfLevel < Colored| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-6 |
| 617 | reset();executed 6 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 618 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 6 |
| 619 | | - |
| 620 | void QQuickImageParticle::setRotation(qreal arg) | - |
| 621 | { | - |
| 622 | if (m_rotation != arg| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_examples
- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-12 |
| 623 | m_rotation = arg; | - |
| 624 | rotationChanged(arg); | - |
| 625 | }executed 12 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickcustomaffector
- tst_qquickimageparticle
| 12 |
| 626 | m_explicitRotation = true; | - |
| 627 | if (perfLevel < Deformable| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_examples
- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-12 |
| 628 | reset();executed 12 times by 3 tests: reset();Executed by:- tst_examples
- tst_qquickcustomaffector
- tst_qquickimageparticle
| 12 |
| 629 | }executed 12 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickcustomaffector
- tst_qquickimageparticle
| 12 |
| 630 | | - |
| 631 | void QQuickImageParticle::setRotationVariation(qreal arg) | - |
| 632 | { | - |
| 633 | if (m_rotationVariation != arg| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-2 |
| 634 | m_rotationVariation = arg; | - |
| 635 | rotationVariationChanged(arg); | - |
| 636 | }executed 2 times by 1 test: end of block | 2 |
| 637 | m_explicitRotation = true; | - |
| 638 | if (perfLevel < Deformable| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 639 | reset();executed 2 times by 1 test: reset(); | 2 |
| 640 | }executed 2 times by 1 test: end of block | 2 |
| 641 | | - |
| 642 | void QQuickImageParticle::setRotationVelocity(qreal arg) | - |
| 643 | { | - |
| 644 | if (m_rotationVelocity != arg| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-4 |
| 645 | m_rotationVelocity = arg; | - |
| 646 | rotationVelocityChanged(arg); | - |
| 647 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 648 | m_explicitRotation = true; | - |
| 649 | if (perfLevel < Deformable| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-4 |
| 650 | reset();executed 4 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 651 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 652 | | - |
| 653 | void QQuickImageParticle::setRotationVelocityVariation(qreal arg) | - |
| 654 | { | - |
| 655 | if (m_rotationVelocityVariation != arg| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-2 |
| 656 | m_rotationVelocityVariation = arg; | - |
| 657 | rotationVelocityVariationChanged(arg); | - |
| 658 | }executed 2 times by 1 test: end of block | 2 |
| 659 | m_explicitRotation = true; | - |
| 660 | if (perfLevel < Deformable| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 661 | reset();executed 2 times by 1 test: reset(); | 2 |
| 662 | }executed 2 times by 1 test: end of block | 2 |
| 663 | | - |
| 664 | void QQuickImageParticle::setAutoRotation(bool arg) | - |
| 665 | { | - |
| 666 | if (m_autoRotation != arg| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-8 |
| 667 | m_autoRotation = arg; | - |
| 668 | autoRotationChanged(arg); | - |
| 669 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 8 |
| 670 | m_explicitRotation = true; | - |
| 671 | if (perfLevel < Deformable| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-8 |
| 672 | reset();executed 8 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 8 |
| 673 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 8 |
| 674 | | - |
| 675 | void QQuickImageParticle::setXVector(QQuickDirection* arg) | - |
| 676 | { | - |
| 677 | if (m_xVector != arg| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-2 |
| 678 | m_xVector = arg; | - |
| 679 | xVectorChanged(arg); | - |
| 680 | }executed 2 times by 1 test: end of block | 2 |
| 681 | m_explicitDeformation = true; | - |
| 682 | if (perfLevel < Deformable| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 683 | reset();executed 2 times by 1 test: reset(); | 2 |
| 684 | }executed 2 times by 1 test: end of block | 2 |
| 685 | | - |
| 686 | void QQuickImageParticle::setYVector(QQuickDirection* arg) | - |
| 687 | { | - |
| 688 | if (m_yVector != arg| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-4 |
| 689 | m_yVector = arg; | - |
| 690 | yVectorChanged(arg); | - |
| 691 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 692 | m_explicitDeformation = true; | - |
| 693 | if (perfLevel < Deformable| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
| | FALSE | never evaluated |
) | 0-4 |
| 694 | reset();executed 4 times by 2 tests: reset();Executed by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 695 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
| 4 |
| 696 | | - |
| 697 | void QQuickImageParticle::setSpritesInterpolate(bool arg) | - |
| 698 | { | - |
| 699 | if (m_spritesInterpolate != arg| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-2 |
| 700 | m_spritesInterpolate = arg; | - |
| 701 | spritesInterpolateChanged(arg); | - |
| 702 | }executed 2 times by 1 test: end of block | 2 |
| 703 | }executed 2 times by 1 test: end of block | 2 |
| 704 | | - |
| 705 | void QQuickImageParticle::setBypassOptimizations(bool arg) | - |
| 706 | { | - |
| 707 | if (m_bypassOptimizations != arg| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 708 | m_bypassOptimizations = arg; | - |
| 709 | bypassOptimizationsChanged(arg); | - |
| 710 | } never executed: end of block | 0 |
| 711 | | - |
| 712 | reset(); | - |
| 713 | } never executed: end of block | 0 |
| 714 | | - |
| 715 | void QQuickImageParticle::setEntryEffect(EntryEffect arg) | - |
| 716 | { | - |
| 717 | if (m_entryEffect != arg| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
) { | 0-12 |
| 718 | m_entryEffect = arg; | - |
| 719 | if (m_material| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
| 720 | getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect; never executed: getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect; | 0 |
| 721 | entryEffectChanged(arg); | - |
| 722 | }executed 12 times by 1 test: end of block | 12 |
| 723 | }executed 12 times by 1 test: end of block | 12 |
| 724 | | - |
| 725 | void QQuickImageParticle::resetColor() | - |
| 726 | { | - |
| 727 | m_explicitColor = false; | - |
| 728 | for (auto groupId : groupIds()) { | - |
| 729 | for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) { | - |
| 730 | if (d->colorOwner == this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 731 | d->colorOwner = nullptr; | - |
| 732 | } never executed: end of block | 0 |
| 733 | } never executed: end of block | 0 |
| 734 | } never executed: end of block | 0 |
| 735 | m_color = QColor(); | - |
| 736 | m_color_variation = 0.0f; | - |
| 737 | m_redVariation = 0.0f; | - |
| 738 | m_blueVariation = 0.0f; | - |
| 739 | m_greenVariation = 0.0f; | - |
| 740 | m_alpha = 1.0f; | - |
| 741 | m_alphaVariation = 0.0f; | - |
| 742 | } never executed: end of block | 0 |
| 743 | | - |
| 744 | void QQuickImageParticle::resetRotation() | - |
| 745 | { | - |
| 746 | m_explicitRotation = false; | - |
| 747 | for (auto groupId : groupIds()) { | - |
| 748 | for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) { | - |
| 749 | if (d->rotationOwner == this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 750 | d->rotationOwner = nullptr; | - |
| 751 | } never executed: end of block | 0 |
| 752 | } never executed: end of block | 0 |
| 753 | } never executed: end of block | 0 |
| 754 | m_rotation = 0; | - |
| 755 | m_rotationVariation = 0; | - |
| 756 | m_rotationVelocity = 0; | - |
| 757 | m_rotationVelocityVariation = 0; | - |
| 758 | m_autoRotation = false; | - |
| 759 | } never executed: end of block | 0 |
| 760 | | - |
| 761 | void QQuickImageParticle::resetDeformation() | - |
| 762 | { | - |
| 763 | m_explicitDeformation = false; | - |
| 764 | for (auto groupId : groupIds()) { | - |
| 765 | for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) { | - |
| 766 | if (d->deformationOwner == this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 767 | d->deformationOwner = nullptr; | - |
| 768 | } never executed: end of block | 0 |
| 769 | } never executed: end of block | 0 |
| 770 | } never executed: end of block | 0 |
| 771 | if (m_xVector| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 772 | delete m_xVector; never executed: delete m_xVector; | 0 |
| 773 | if (m_yVector| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 774 | delete m_yVector; never executed: delete m_yVector; | 0 |
| 775 | m_xVector = nullptr; | - |
| 776 | m_yVector = nullptr; | - |
| 777 | } never executed: end of block | 0 |
| 778 | | - |
| 779 | void QQuickImageParticle::reset() | - |
| 780 | { | - |
| 781 | QQuickParticlePainter::reset(); | - |
| 782 | m_pleaseReset = true; | - |
| 783 | update(); | - |
| 784 | }executed 1378 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 1378 |
| 785 | | - |
| 786 | void QQuickImageParticle::createEngine() | - |
| 787 | { | - |
| 788 | if (m_spriteEngine| TRUE | evaluated 32 times by 2 testsEvaluated by:- tst_examples
- tst_qquickspritegoal
| | FALSE | evaluated 22 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 22-32 |
| 789 | delete m_spriteEngine;executed 32 times by 2 tests: delete m_spriteEngine;Executed by:- tst_examples
- tst_qquickspritegoal
| 32 |
| 790 | if (m_sprites.count()| TRUE | evaluated 54 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) { | 0-54 |
| 791 | m_spriteEngine = new QQuickSpriteEngine(m_sprites, this); | - |
| 792 | connect(m_spriteEngine, qFlagLocation("2""stateChanged(int)" "\0" __FILE__ ":" "1075"), | - |
| 793 | this, qFlagLocation("1""spriteAdvance(int)" "\0" __FILE__ ":" "1076"), Qt::DirectConnection); | - |
| 794 | m_explicitAnimation = true; | - |
| 795 | }executed 54 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
else { | 54 |
| 796 | m_spriteEngine = nullptr; | - |
| 797 | m_explicitAnimation = false; | - |
| 798 | } never executed: end of block | 0 |
| 799 | reset(); | - |
| 800 | }executed 54 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickimageparticle
- tst_qquickspritegoal
| 54 |
| 801 | | - |
| 802 | static QSGGeometry::Attribute SimpleParticle_Attributes[] = { | - |
| 803 | QSGGeometry::Attribute::create(0, 2, | - |
| 804 | 0x1406 | - |
| 805 | , true), | - |
| 806 | QSGGeometry::Attribute::create(1, 4, | - |
| 807 | 0x1406 | - |
| 808 | ), | - |
| 809 | QSGGeometry::Attribute::create(2, 4, | - |
| 810 | 0x1406 | - |
| 811 | ) | - |
| 812 | }; | - |
| 813 | | - |
| 814 | static QSGGeometry::AttributeSet SimpleParticle_AttributeSet = | - |
| 815 | { | - |
| 816 | 3, | - |
| 817 | ( 2 + 4 + 4 ) * sizeof(float), | - |
| 818 | SimpleParticle_Attributes | - |
| 819 | }; | - |
| 820 | | - |
| 821 | static QSGGeometry::Attribute ColoredParticle_Attributes[] = { | - |
| 822 | QSGGeometry::Attribute::create(0, 2, | - |
| 823 | 0x1406 | - |
| 824 | , true), | - |
| 825 | QSGGeometry::Attribute::create(1, 4, | - |
| 826 | 0x1406 | - |
| 827 | ), | - |
| 828 | QSGGeometry::Attribute::create(2, 4, | - |
| 829 | 0x1406 | - |
| 830 | ), | - |
| 831 | QSGGeometry::Attribute::create(3, 4, | - |
| 832 | 0x1401 | - |
| 833 | ), | - |
| 834 | }; | - |
| 835 | | - |
| 836 | static QSGGeometry::AttributeSet ColoredParticle_AttributeSet = | - |
| 837 | { | - |
| 838 | 4, | - |
| 839 | ( 2 + 4 + 4 ) * sizeof(float) + 4 * sizeof(uchar), | - |
| 840 | ColoredParticle_Attributes | - |
| 841 | }; | - |
| 842 | | - |
| 843 | static QSGGeometry::Attribute DeformableParticle_Attributes[] = { | - |
| 844 | QSGGeometry::Attribute::create(0, 4, | - |
| 845 | 0x1406 | - |
| 846 | ), | - |
| 847 | QSGGeometry::Attribute::create(1, 4, | - |
| 848 | 0x1406 | - |
| 849 | ), | - |
| 850 | QSGGeometry::Attribute::create(2, 4, | - |
| 851 | 0x1406 | - |
| 852 | ), | - |
| 853 | QSGGeometry::Attribute::create(3, 4, | - |
| 854 | 0x1401 | - |
| 855 | ), | - |
| 856 | QSGGeometry::Attribute::create(4, 4, | - |
| 857 | 0x1406 | - |
| 858 | ), | - |
| 859 | QSGGeometry::Attribute::create(5, 3, | - |
| 860 | 0x1406 | - |
| 861 | ), | - |
| 862 | }; | - |
| 863 | | - |
| 864 | static QSGGeometry::AttributeSet DeformableParticle_AttributeSet = | - |
| 865 | { | - |
| 866 | 6, | - |
| 867 | (4 + 4 + 4 + 4 + 3) * sizeof(float) + 4 * sizeof(uchar), | - |
| 868 | DeformableParticle_Attributes | - |
| 869 | }; | - |
| 870 | | - |
| 871 | static QSGGeometry::Attribute SpriteParticle_Attributes[] = { | - |
| 872 | QSGGeometry::Attribute::create(0, 4, | - |
| 873 | 0x1406 | - |
| 874 | ), | - |
| 875 | QSGGeometry::Attribute::create(1, 4, | - |
| 876 | 0x1406 | - |
| 877 | ), | - |
| 878 | QSGGeometry::Attribute::create(2, 4, | - |
| 879 | 0x1406 | - |
| 880 | ), | - |
| 881 | QSGGeometry::Attribute::create(3, 4, | - |
| 882 | 0x1401 | - |
| 883 | ), | - |
| 884 | QSGGeometry::Attribute::create(4, 4, | - |
| 885 | 0x1406 | - |
| 886 | ), | - |
| 887 | QSGGeometry::Attribute::create(5, 3, | - |
| 888 | 0x1406 | - |
| 889 | ), | - |
| 890 | QSGGeometry::Attribute::create(6, 3, | - |
| 891 | 0x1406 | - |
| 892 | ), | - |
| 893 | QSGGeometry::Attribute::create(7, 4, | - |
| 894 | 0x1406 | - |
| 895 | ) | - |
| 896 | }; | - |
| 897 | | - |
| 898 | static QSGGeometry::AttributeSet SpriteParticle_AttributeSet = | - |
| 899 | { | - |
| 900 | 8, | - |
| 901 | (4 + 4 + 4 + 4 + 3 + 3 + 4) * sizeof(float) + 4 * sizeof(uchar), | - |
| 902 | SpriteParticle_Attributes | - |
| 903 | }; | - |
| 904 | | - |
| 905 | void QQuickImageParticle::clearShadows() | - |
| 906 | { | - |
| 907 | for (auto _container_ = QtPrivate::qMakeForeachContainer(m_shadowData); _container_.control| TRUE | evaluated 303 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& _container_.i != _container_.e| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 301 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++_container_.i, _container_.control ^= 1) for (const QVector<QQuickParticleData*> data = *_container_.i; _container_.control| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; _container_.control = 0) | 0-303 |
| 908 | qDeleteAll(data);executed 2 times by 1 test: qDeleteAll(data); | 2 |
| 909 | m_shadowData.clear(); | - |
| 910 | }executed 301 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 301 |
| 911 | | - |
| 912 | | - |
| 913 | QQuickParticleData* QQuickImageParticle::getShadowDatum(QQuickParticleData* datum) | - |
| 914 | { | - |
| 915 | | - |
| 916 | if (datum->systemIndex == -1| TRUE | evaluated 75249 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 886 times by 1 test |
) | 886-75249 |
| 917 | returnexecuted 75249 times by 3 tests: return datum;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
datum;executed 75249 times by 3 tests: return datum;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 75249 |
| 918 | QQuickParticleGroupData* gd = m_system->groupData[datum->groupId]; | - |
| 919 | if (!m_shadowData.contains(datum->groupId)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 884 times by 1 test |
) { | 2-884 |
| 920 | QVector<QQuickParticleData*> data; | - |
| 921 | const int gdSize = gd->size(); | - |
| 922 | data.reserve(gdSize); | - |
| 923 | for (int i = 0; i < gdSize| TRUE | evaluated 1000 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; i++) { | 2-1000 |
| 924 | QQuickParticleData* datum = new QQuickParticleData; | - |
| 925 | *datum = *(gd->data[i]); | - |
| 926 | data << datum; | - |
| 927 | }executed 1000 times by 1 test: end of block | 1000 |
| 928 | m_shadowData.insert(datum->groupId, data); | - |
| 929 | }executed 2 times by 1 test: end of block | 2 |
| 930 | | - |
| 931 | | - |
| 932 | returnexecuted 886 times by 1 test: return m_shadowData[datum->groupId][datum->index]; m_shadowData[datum->groupId][datum->index];executed 886 times by 1 test: return m_shadowData[datum->groupId][datum->index]; | 886 |
| 933 | } | - |
| 934 | | - |
| 935 | bool QQuickImageParticle::loadingSomething() | - |
| 936 | { | - |
| 937 | returnexecuted 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
(m_image && m_image->pix.isLoading())executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 938 | || (m_colorTable && m_colorTable->pix.isLoading())executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 939 | || (m_sizeTable && m_sizeTable->pix.isLoading())executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 940 | || (m_opacityTable && m_opacityTable->pix.isLoading())executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 941 | || (m_spriteEngine && m_spriteEngine->isLoading());executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 942 | } | - |
| 943 | | - |
| 944 | void QQuickImageParticle::mainThreadFetchImageData() | - |
| 945 | { | - |
| 946 | if (m_image| TRUE | evaluated 199 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 4-199 |
| 947 | m_image->pix.clear(this); | - |
| 948 | m_image->pix.load(qmlEngine(this), m_image->source); | - |
| 949 | }executed 199 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 199 |
| 950 | | - |
| 951 | if (m_spriteEngine| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 199 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-199 |
| 952 | m_spriteEngine->startAssemblingImage();executed 4 times by 2 tests: m_spriteEngine->startAssemblingImage();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 953 | | - |
| 954 | if (m_colorTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 201 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 2-201 |
| 955 | m_colorTable->pix.load(qmlEngine(this), m_colorTable->source);executed 2 times by 1 test: m_colorTable->pix.load(qmlEngine(this), m_colorTable->source); | 2 |
| 956 | | - |
| 957 | if (m_sizeTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 201 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 2-201 |
| 958 | m_sizeTable->pix.load(qmlEngine(this), m_sizeTable->source);executed 2 times by 1 test: m_sizeTable->pix.load(qmlEngine(this), m_sizeTable->source); | 2 |
| 959 | | - |
| 960 | if (m_opacityTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 201 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 2-201 |
| 961 | m_opacityTable->pix.load(qmlEngine(this), m_opacityTable->source);executed 2 times by 1 test: m_opacityTable->pix.load(qmlEngine(this), m_opacityTable->source); | 2 |
| 962 | | - |
| 963 | m_startedImageLoading = 2; | - |
| 964 | }executed 203 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 203 |
| 965 | | - |
| 966 | void QQuickImageParticle::buildParticleNodes(QSGNode** passThrough) | - |
| 967 | { | - |
| 968 | | - |
| 969 | | - |
| 970 | if (*| TRUE | never evaluated | | FALSE | evaluated 488 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
passThrough| TRUE | never evaluated | | FALSE | evaluated 488 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| loadingSomething()| TRUE | never evaluated | | FALSE | evaluated 488 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-488 |
| 971 | return; never executed: return; | 0 |
| 972 | | - |
| 973 | if (m_startedImageLoading == 0| TRUE | evaluated 321 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 167 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 167-321 |
| 974 | m_startedImageLoading = 1; | - |
| 975 | | - |
| 976 | QQuickImageParticle::staticMetaObject.invokeMethod(this, "mainThreadFetchImageData", Qt::QueuedConnection); | - |
| 977 | }executed 321 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
else if (m_startedImageLoading == 2| TRUE | evaluated 103 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 64-321 |
| 978 | finishBuildParticleNodes(passThrough); | - |
| 979 | }executed 103 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 103 |
| 980 | | - |
| 981 | | - |
| 982 | }executed 488 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 488 |
| 983 | | - |
| 984 | void QQuickImageParticle::finishBuildParticleNodes(QSGNode** node) | - |
| 985 | { | - |
| 986 | if (!QOpenGLContext::currentContext()| TRUE | never evaluated | | FALSE | evaluated 103 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-103 |
| 987 | return; never executed: return; | 0 |
| 988 | | - |
| 989 | if (m_count * 4 > 0xffff| TRUE | never evaluated | | FALSE | evaluated 103 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-103 |
| 990 | | - |
| 991 | qmlInfo(this) << "ImageParticle: Too many particles - maximum 16383 per ImageParticle"; | - |
| 992 | return; never executed: return; | 0 |
| 993 | } | - |
| 994 | | - |
| 995 | if (count() <= 0| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgroupgoal
- tst_qquickparticlegroup
| | FALSE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-99 |
| 996 | return;executed 4 times by 2 tests: return;Executed by:- tst_qquickgroupgoal
- tst_qquickparticlegroup
| 4 |
| 997 | | - |
| 998 | m_debugMode = m_system->m_debugMode; | - |
| 999 | | - |
| 1000 | if (m_sprites.count()| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| m_bypassOptimizations| TRUE | never evaluated | | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-95 |
| 1001 | perfLevel = Sprites; | - |
| 1002 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
else if (m_colorTable || m_sizeTable || m_opacityTable) { | 4 |
| 1003 | perfLevel = Tabled; | - |
| 1004 | }executed 2 times by 1 test: end of block else if (m_autoRotation| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 91 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| m_rotation || m_rotationVariation | 2-91 |
| 1005 | || m_rotationVelocity || m_rotationVelocityVariation | - |
| 1006 | || m_xVector| TRUE | never evaluated | | FALSE | evaluated 87 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| m_yVector| TRUE | never evaluated | | FALSE | evaluated 87 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-87 |
| 1007 | perfLevel = Deformable; | - |
| 1008 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
else if (m_alphaVariation || m_alpha != 1.0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 83 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| m_color.isValid()| TRUE | never evaluated | | FALSE | evaluated 83 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| m_color_variation | 0-83 |
| 1009 | || m_redVariation || m_blueVariation || m_greenVariation) { | - |
| 1010 | perfLevel = Colored; | - |
| 1011 | }executed 4 times by 1 test: end of block else { | 4 |
| 1012 | perfLevel = Simple; | - |
| 1013 | }executed 83 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 83 |
| 1014 | | - |
| 1015 | for (auto groupId : groupIds()) { | - |
| 1016 | | - |
| 1017 | for (QQuickParticlePainter* p : qAsConst(m_system->groupData[groupId]->painters)) { | - |
| 1018 | QQuickImageParticle* other = qobject_cast<QQuickImageParticle*>(p); | - |
| 1019 | if (other| TRUE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
){ | 0-111 |
| 1020 | if (other->perfLevel > perfLevel| TRUE | never evaluated | | FALSE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-111 |
| 1021 | if (other->perfLevel >= Tabled| TRUE | never evaluated | | FALSE | never evaluated |
){ | 0 |
| 1022 | if (perfLevel < Deformable| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1023 | perfLevel = Deformable; never executed: perfLevel = Deformable; | 0 |
| 1024 | } never executed: end of block else { | 0 |
| 1025 | perfLevel = other->perfLevel; | - |
| 1026 | } never executed: end of block | 0 |
| 1027 | } else if (other->perfLevel < perfLevel| TRUE | never evaluated | | FALSE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-111 |
| 1028 | other->reset(); | - |
| 1029 | } never executed: end of block | 0 |
| 1030 | }executed 111 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 111 |
| 1031 | }executed 111 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 111 |
| 1032 | }executed 111 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 111 |
| 1033 | const GLubyte *glVendor = QOpenGLContext::currentContext()->functions()->glGetString( | - |
| 1034 | 0x1F00 | - |
| 1035 | ); | - |
| 1036 | if (perfLevel < Deformable| TRUE | evaluated 87 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
&& glVendor| TRUE | evaluated 87 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& strstr((const char *) glVendor, "nouveau")| TRUE | never evaluated | | FALSE | evaluated 87 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-87 |
| 1037 | perfLevel = Deformable; never executed: perfLevel = Deformable; | 0 |
| 1038 | | - |
| 1039 | | - |
| 1040 | if (perfLevel >= Colored| TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 83 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
&& !m_color.isValid()| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 4 times by 1 test |
) | 4-83 |
| 1041 | m_color = QColor(Qt::white);executed 12 times by 3 tests: m_color = QColor(Qt::white);Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 12 |
| 1042 | | - |
| 1043 | clearShadows(); | - |
| 1044 | if (m_material| TRUE | never evaluated | | FALSE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-99 |
| 1045 | m_material = nullptr; never executed: m_material = nullptr; | 0 |
| 1046 | | - |
| 1047 | | - |
| 1048 | QImage colortable; | - |
| 1049 | QImage sizetable; | - |
| 1050 | QImage opacitytable; | - |
| 1051 | QImage image; | - |
| 1052 | bool imageLoaded = false; | - |
| 1053 | switch (perfLevel) { | - |
| 1054 | caseexecuted 4 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
Sprites:executed 4 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1055 | if (!m_spriteEngine| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 0-4 |
| 1056 | QMessageLogger(__FILE__, 1312, __PRETTY_FUNCTION__).warning() << "ImageParticle: No sprite engine..."; | - |
| 1057 | | - |
| 1058 | | - |
| 1059 | } never executed: end of block else { | 0 |
| 1060 | image = m_spriteEngine->assembledImage(); | - |
| 1061 | if (image.isNull()| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 0-4 |
| 1062 | return; never executed: return; | 0 |
| 1063 | imageLoaded = true; | - |
| 1064 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1065 | m_material = SpriteMaterial::createMaterial(); | - |
| 1066 | if (imageLoaded| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) | 0-4 |
| 1067 | getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(image);executed 4 times by 2 tests: getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(image);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1068 | getState<ImageMaterialData>(m_material)->animSheetSize = QSizeF(image.size() / image.devicePixelRatioF()); | - |
| 1069 | if (m_spriteEngine| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) | 0-4 |
| 1070 | m_spriteEngine->setCount(m_count);executed 4 times by 2 tests: m_spriteEngine->setCount(m_count);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1071 | (void)0; | - |
| 1072 | caseexecuted 2 times by 1 test: case Tabled: Tabled:executed 2 times by 1 test: case Tabled: code before this statement executed 4 times by 2 tests: case Tabled:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 2-4 |
| 1073 | if (!m_material| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 2-4 |
| 1074 | m_material = TabledMaterial::createMaterial();executed 2 times by 1 test: m_material = TabledMaterial::createMaterial(); | 2 |
| 1075 | | - |
| 1076 | if (m_colorTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 2-4 |
| 1077 | if (m_colorTable->pix.isReady()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1078 | colortable = m_colorTable->pix.image();executed 2 times by 1 test: colortable = m_colorTable->pix.image(); | 2 |
| 1079 | else | - |
| 1080 | qmlWarning(this) << "Error loading color table: " << m_colorTable->pix.error(); never executed: qmlWarning(this) << "Error loading color table: " << m_colorTable->pix.error(); | 0 |
| 1081 | } | - |
| 1082 | | - |
| 1083 | if (m_sizeTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 2-4 |
| 1084 | if (m_sizeTable->pix.isReady()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1085 | sizetable = m_sizeTable->pix.image();executed 2 times by 1 test: sizetable = m_sizeTable->pix.image(); | 2 |
| 1086 | else | - |
| 1087 | qmlWarning(this) << "Error loading size table: " << m_sizeTable->pix.error(); never executed: qmlWarning(this) << "Error loading size table: " << m_sizeTable->pix.error(); | 0 |
| 1088 | } | - |
| 1089 | | - |
| 1090 | if (m_opacityTable| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 2-4 |
| 1091 | if (m_opacityTable->pix.isReady()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1092 | opacitytable = m_opacityTable->pix.image();executed 2 times by 1 test: opacitytable = m_opacityTable->pix.image(); | 2 |
| 1093 | else | - |
| 1094 | qmlWarning(this) << "Error loading opacity table: " << m_opacityTable->pix.error(); never executed: qmlWarning(this) << "Error loading opacity table: " << m_opacityTable->pix.error(); | 0 |
| 1095 | } | - |
| 1096 | | - |
| 1097 | if (colortable.isNull()| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 2 times by 1 test |
){ | 2-4 |
| 1098 | colortable = QImage(1,1,QImage::Format_ARGB32_Premultiplied); | - |
| 1099 | colortable.fill(Qt::white); | - |
| 1100 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1101 | getState<ImageMaterialData>(m_material)->colorTable = QSGPlainTexture::fromImage(colortable); | - |
| 1102 | fillUniformArrayFromImage(getState<ImageMaterialData>(m_material)->sizeTable, sizetable, 64); | - |
| 1103 | fillUniformArrayFromImage(getState<ImageMaterialData>(m_material)->opacityTable, opacitytable, 64); | - |
| 1104 | (void)0; | - |
| 1105 | caseexecuted 6 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
Deformable:executed 6 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
code before this statement executed 6 times by 2 tests: case Deformable:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 6 |
| 1106 | if (!m_material| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 6 |
| 1107 | m_material = DeformableMaterial::createMaterial();executed 6 times by 2 tests: m_material = DeformableMaterial::createMaterial();Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 1108 | (void)0; | - |
| 1109 | caseexecuted 4 times by 1 test: case Colored: Colored:executed 4 times by 1 test: case Colored: code before this statement executed 12 times by 3 tests: case Colored:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 4-12 |
| 1110 | if (!m_material| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 4-12 |
| 1111 | m_material = ColoredMaterial::createMaterial();executed 4 times by 1 test: m_material = ColoredMaterial::createMaterial(); | 4 |
| 1112 | (void)0; | - |
| 1113 | defaultexecuted 83 times by 20 tests: default:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
:executed 83 times by 20 tests: default:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
code before this statement executed 16 times by 3 tests: default:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 16-83 |
| 1114 | if (!m_material| TRUE | evaluated 83 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 16 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 16-83 |
| 1115 | m_material = SimpleMaterial::createMaterial();executed 83 times by 20 tests: m_material = SimpleMaterial::createMaterial();Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 83 |
| 1116 | if (!imageLoaded| TRUE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 4-95 |
| 1117 | if (!m_image| TRUE | never evaluated | | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
|| !m_image->pix.isReady()| TRUE | never evaluated | | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-95 |
| 1118 | if (m_image| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1119 | qmlWarning(this) << m_image->pix.error(); never executed: qmlWarning(this) << m_image->pix.error(); | 0 |
| 1120 | delete m_material; | - |
| 1121 | return; never executed: return; | 0 |
| 1122 | } | - |
| 1123 | | - |
| 1124 | | - |
| 1125 | getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(m_image->pix.image()); | - |
| 1126 | }executed 95 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 95 |
| 1127 | getState<ImageMaterialData>(m_material)->texture->setFiltering(QSGTexture::Linear); | - |
| 1128 | getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect; | - |
| 1129 | m_material->setFlag(QSGMaterial::Blending | QSGMaterial::RequiresFullMatrix); | - |
| 1130 | }executed 99 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 1131 | | - |
| 1132 | m_nodes.clear(); | - |
| 1133 | for (auto groupId : groupIds()) { | - |
| 1134 | int count = m_system->groupData[groupId]->size(); | - |
| 1135 | QSGGeometryNode* node = new QSGGeometryNode(); | - |
| 1136 | node->setMaterial(m_material); | - |
| 1137 | node->markDirty(QSGNode::DirtyMaterial); | - |
| 1138 | | - |
| 1139 | m_nodes.insert(groupId, node); | - |
| 1140 | m_idxStarts.insert(groupId, m_lastIdxStart); | - |
| 1141 | m_startsIdx.append(qMakePair<int,int>(m_lastIdxStart, groupId)); | - |
| 1142 | m_lastIdxStart += count; | - |
| 1143 | | - |
| 1144 | | - |
| 1145 | int vCount = count * 4; | - |
| 1146 | int iCount = count * 6; | - |
| 1147 | | - |
| 1148 | QSGGeometry *g; | - |
| 1149 | if (perfLevel == Sprites| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 107 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-107 |
| 1150 | g = new QSGGeometry(SpriteParticle_AttributeSet, vCount, iCount);executed 4 times by 2 tests: g = new QSGGeometry(SpriteParticle_AttributeSet, vCount, iCount);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1151 | else if (perfLevel == Tabled| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 105 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 2-105 |
| 1152 | g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);executed 2 times by 1 test: g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount); | 2 |
| 1153 | else if (perfLevel == Deformable| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 99 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 6-99 |
| 1154 | g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);executed 6 times by 2 tests: g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 1155 | else if (perfLevel == Colored| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-95 |
| 1156 | g = new QSGGeometry(ColoredParticle_AttributeSet, count, 0);executed 4 times by 1 test: g = new QSGGeometry(ColoredParticle_AttributeSet, count, 0); | 4 |
| 1157 | else | - |
| 1158 | g = new QSGGeometry(SimpleParticle_AttributeSet, count, 0);executed 95 times by 20 tests: g = new QSGGeometry(SimpleParticle_AttributeSet, count, 0);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 95 |
| 1159 | | - |
| 1160 | node->setFlag(QSGNode::OwnsGeometry); | - |
| 1161 | node->setGeometry(g); | - |
| 1162 | if (perfLevel <= Colored| TRUE | evaluated 99 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
){ | 12-99 |
| 1163 | g->setDrawingMode( | - |
| 1164 | 0x0000 | - |
| 1165 | ); | - |
| 1166 | if (m_debugMode| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 93 times by 19 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
){ | 6-93 |
| 1167 | GLfloat pointSizeRange[2]; | - |
| 1168 | QOpenGLContext::currentContext()->functions()->glGetFloatv( | - |
| 1169 | 0x846D | - |
| 1170 | , pointSizeRange); | - |
| 1171 | QMessageLogger(__FILE__, 1423, __PRETTY_FUNCTION__).debug() << "Using point sprites, GL_ALIASED_POINT_SIZE_RANGE " <<pointSizeRange[0] << ":" << pointSizeRange[1]; | - |
| 1172 | }executed 6 times by 1 test: end of block | 6 |
| 1173 | }executed 99 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
else | 99 |
| 1174 | g->setDrawingMode(executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 12 |
| 1175 | 0x0004executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 12 |
| 1176 | );executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 12 |
| 1177 | | - |
| 1178 | for (int p=0; p < count| TRUE | evaluated 48570 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++p) | 111-48570 |
| 1179 | commit(groupId, p);executed 48570 times by 21 tests: commit(groupId, p);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 48570 |
| 1180 | | - |
| 1181 | if (perfLevel == Sprites| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 107 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-107 |
| 1182 | initTexCoords<SpriteVertex>((SpriteVertex*)g->vertexData(), vCount);executed 4 times by 2 tests: initTexCoords<SpriteVertex>((SpriteVertex*)g->vertexData(), vCount);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1183 | else if (perfLevel == Tabled| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 105 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 2-105 |
| 1184 | initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);executed 2 times by 1 test: initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount); | 2 |
| 1185 | else if (perfLevel == Deformable| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 99 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 6-99 |
| 1186 | initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);executed 6 times by 2 tests: initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6 |
| 1187 | | - |
| 1188 | if (perfLevel > Colored| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 99 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
){ | 12-99 |
| 1189 | quint16 *indices = g->indexDataAsUShort(); | - |
| 1190 | for (int i=0; i < count| TRUE | evaluated 6000 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
; ++i) { | 12-6000 |
| 1191 | int o = i * 4; | - |
| 1192 | indices[0] = o; | - |
| 1193 | indices[1] = o + 1; | - |
| 1194 | indices[2] = o + 2; | - |
| 1195 | indices[3] = o + 1; | - |
| 1196 | indices[4] = o + 3; | - |
| 1197 | indices[5] = o + 2; | - |
| 1198 | indices += 6; | - |
| 1199 | }executed 6000 times by 3 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 6000 |
| 1200 | }executed 12 times by 3 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 12 |
| 1201 | }executed 111 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 111 |
| 1202 | | - |
| 1203 | if (perfLevel == Sprites| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 95 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 4-95 |
| 1204 | spritesUpdate();executed 4 times by 2 tests: spritesUpdate();Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4 |
| 1205 | | - |
| 1206 | for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control| TRUE | evaluated 210 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& _container_.i != _container_.e| TRUE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* node = *_container_.i; _container_.control| TRUE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 111 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; _container_.control = 0){ | 0-210 |
| 1207 | if (node == *(m_nodes.begin())| TRUE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 12 times by 5 testsEvaluated by:- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquicklineextruder
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
|
) | 12-99 |
| 1208 | node->setFlag(QSGGeometryNode::OwnsMaterial);executed 99 times by 21 tests: node->setFlag(QSGGeometryNode::OwnsMaterial);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 1209 | else | - |
| 1210 | (*(executed 12 times by 5 tests: (*(m_nodes.begin()))->appendChildNode(node);Executed by:- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquicklineextruder
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
m_nodes.begin()))->appendChildNode(node);executed 12 times by 5 tests: (*(m_nodes.begin()))->appendChildNode(node);Executed by:- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquicklineextruder
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| 12 |
| 1211 | } | - |
| 1212 | | - |
| 1213 | *node = *(m_nodes.begin()); | - |
| 1214 | update(); | - |
| 1215 | }executed 99 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 1216 | | - |
| 1217 | static inline bool isOpenGL(QSGRenderContext *rc) | - |
| 1218 | { | - |
| 1219 | QSGRendererInterface *rif = rc->sceneGraphContext()->rendererInterface(rc); | - |
| 1220 | returnexecuted 461 times by 22 tests: return !rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
!rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;executed 461 times by 22 tests: return !rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 461 |
| 1221 | } | - |
| 1222 | | - |
| 1223 | QSGNode *QQuickImageParticle::updatePaintNode(QSGNode *node, UpdatePaintNodeData *) | - |
| 1224 | { | - |
| 1225 | if (!node| TRUE | evaluated 461 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3848 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
&& !isOpenGL(QQuickItemPrivate::get(this)->sceneGraphRenderContext())| TRUE | never evaluated | | FALSE | evaluated 461 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-3848 |
| 1226 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
| 1227 | | - |
| 1228 | if (m_pleaseReset| TRUE | evaluated 331 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3978 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
){ | 331-3978 |
| 1229 | if (node| TRUE | evaluated 37 times by 4 testsEvaluated by:- tst_qquickage
- tst_qquickgroupgoal
- tst_qquickparticlegroup
- tst_qquicktrailemitter
| | FALSE | evaluated 294 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 37-294 |
| 1230 | delete node;executed 37 times by 4 tests: delete node;Executed by:- tst_qquickage
- tst_qquickgroupgoal
- tst_qquickparticlegroup
- tst_qquicktrailemitter
| 37 |
| 1231 | node = nullptr; | - |
| 1232 | | - |
| 1233 | m_lastLevel = perfLevel; | - |
| 1234 | m_nodes.clear(); | - |
| 1235 | | - |
| 1236 | m_idxStarts.clear(); | - |
| 1237 | m_startsIdx.clear(); | - |
| 1238 | m_lastIdxStart = 0; | - |
| 1239 | | - |
| 1240 | m_material = nullptr; | - |
| 1241 | | - |
| 1242 | m_pleaseReset = false; | - |
| 1243 | m_startedImageLoading = 0; | - |
| 1244 | }executed 331 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 331 |
| 1245 | | - |
| 1246 | if (m_system| TRUE | evaluated 4309 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& m_system->isRunning()| TRUE | evaluated 4299 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 10 times by 1 test |
&& !m_system->isPaused()| TRUE | evaluated 4299 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
){ | 0-4309 |
| 1247 | prepareNextFrame(&node); | - |
| 1248 | if (node| TRUE | evaluated 3910 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 389 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 389-3910 |
| 1249 | update(); | - |
| 1250 | for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control| TRUE | evaluated 8503 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& _container_.i != _container_.e| TRUE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3910 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* n = *_container_.i; _container_.control| TRUE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; _container_.control = 0) | 0-8503 |
| 1251 | n->markDirty(QSGNode::DirtyGeometry);executed 4593 times by 21 tests: n->markDirty(QSGNode::DirtyGeometry);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4593 |
| 1252 | }executed 3910 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
else if (m_startedImageLoading < 2| TRUE | evaluated 385 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgroupgoal
- tst_qquickparticlegroup
|
) { | 4-3910 |
| 1253 | update(); | - |
| 1254 | }executed 385 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 385 |
| 1255 | }executed 4299 times by 22 tests: end of blockExecuted by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4299 |
| 1256 | | - |
| 1257 | returnexecuted 4309 times by 22 tests: return node;Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
node;executed 4309 times by 22 tests: return node;Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4309 |
| 1258 | } | - |
| 1259 | | - |
| 1260 | void QQuickImageParticle::prepareNextFrame(QSGNode **node) | - |
| 1261 | { | - |
| 1262 | if (*| TRUE | evaluated 488 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3811 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
node == nullptr| TRUE | evaluated 488 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3811 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
){ | 488-3811 |
| 1263 | buildParticleNodes(node); | - |
| 1264 | if (m_debugMode| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 476 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 12-476 |
| 1265 | QMessageLogger(__FILE__, 1515, __PRETTY_FUNCTION__).debug() << "QQuickImageParticle Feature level: " << perfLevel; | - |
| 1266 | QMessageLogger(__FILE__, 1516, __PRETTY_FUNCTION__).debug() << "QQuickImageParticle Nodes: "; | - |
| 1267 | int count = 0; | - |
| 1268 | for (auto it = m_nodes.keyBegin(), end = m_nodes.keyEnd(); it != end| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; ++it) { | 12 |
| 1269 | QMessageLogger(__FILE__, 1519, __PRETTY_FUNCTION__).debug() << "Group " << *it << " (" << m_system->groupData[*it]->size() | - |
| 1270 | << " particles)"; | - |
| 1271 | count += m_system->groupData[*it]->size(); | - |
| 1272 | }executed 12 times by 1 test: end of block | 12 |
| 1273 | QMessageLogger(__FILE__, 1523, __PRETTY_FUNCTION__).debug() << "Total count: " << count; | - |
| 1274 | }executed 12 times by 1 test: end of block | 12 |
| 1275 | if (*| TRUE | evaluated 389 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
node == nullptr| TRUE | evaluated 389 times by 22 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 99 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 99-389 |
| 1276 | return;executed 389 times by 22 tests: return;Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 389 |
| 1277 | }executed 99 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
| 1278 | qint64 timeStamp = m_system->systemSync(this); | - |
| 1279 | | - |
| 1280 | qreal time = timeStamp / 1000.; | - |
| 1281 | | - |
| 1282 | switch (perfLevel){ | - |
| 1283 | caseexecuted 267 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
Sprites:executed 267 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 267 |
| 1284 | | - |
| 1285 | if (m_spriteEngine| TRUE | evaluated 267 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) | 0-267 |
| 1286 | m_spriteEngine->updateSprites(timeStamp);executed 267 times by 2 tests: m_spriteEngine->updateSprites(timeStamp);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 267 |
| 1287 | spritesUpdate(time); | - |
| 1288 | (void)0; | - |
| 1289 | caseexecuted 125 times by 1 test: case Tabled: Tabled:executed 125 times by 1 test: case Tabled: code before this statement executed 267 times by 2 tests: case Tabled:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 125-267 |
| 1290 | caseexecuted 308 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
Deformable:executed 308 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 308 |
| 1291 | caseexecuted 258 times by 1 test: case Colored: Colored:executed 258 times by 1 test: case Colored: | 258 |
| 1292 | caseexecuted 2952 times by 20 tests: case Simple:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
Simple:executed 2952 times by 20 tests: case Simple:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 2952 |
| 1293 | default never executed: default: :never executed: default: | 0 |
| 1294 | getState<ImageMaterialData>(m_material)->timestamp = time; | - |
| 1295 | break;executed 3910 times by 21 tests: break;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 3910 |
| 1296 | } | - |
| 1297 | for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control| TRUE | evaluated 8503 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | never evaluated |
&& _container_.i != _container_.e| TRUE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 3910 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* node = *_container_.i; _container_.control| TRUE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; _container_.control = 0) | 0-8503 |
| 1298 | node->markDirty(QSGNode::DirtyMaterial);executed 4593 times by 21 tests: node->markDirty(QSGNode::DirtyMaterial);Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4593 |
| 1299 | }executed 3910 times by 21 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 3910 |
| 1300 | | - |
| 1301 | void QQuickImageParticle::spritesUpdate(qreal time) | - |
| 1302 | { | - |
| 1303 | | - |
| 1304 | for (auto groupId : groupIds()) { | - |
| 1305 | for (QQuickParticleData* mainDatum : qAsConst(m_system->groupData[groupId]->data)) { | - |
| 1306 | QSGGeometryNode *node = m_nodes[groupId]; | - |
| 1307 | if (!node| TRUE | never evaluated | | FALSE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 0-135500 |
| 1308 | continue; never executed: continue; | 0 |
| 1309 | | - |
| 1310 | | - |
| 1311 | QQuickParticleData* datum = (mainDatum->animationOwner == this| TRUE | evaluated 77381 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 58119 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
? mainDatum : getShadowDatum(mainDatum)); | 58119-77381 |
| 1312 | int spriteIdx = 0; | - |
| 1313 | for (int i = 0; i<m_startsIdx.count()| TRUE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
; i++) { | 0-135500 |
| 1314 | if (m_startsIdx[i].second == groupId| TRUE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
){ | 0-135500 |
| 1315 | spriteIdx = m_startsIdx[i].first + datum->index; | - |
| 1316 | break;executed 135500 times by 2 tests: break;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 135500 |
| 1317 | } | - |
| 1318 | } never executed: end of block | 0 |
| 1319 | | - |
| 1320 | double frameAt; | - |
| 1321 | qreal progress = 0; | - |
| 1322 | | - |
| 1323 | if (datum->frameDuration > 0| TRUE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) { | 0-135500 |
| 1324 | qreal frame = (time - datum->animT)/(datum->frameDuration / 1000.0); | - |
| 1325 | frame = qBound((qreal)0.0, frame, (qreal)((qreal)datum->frameCount - 1.0)); | - |
| 1326 | if (m_spritesInterpolate| TRUE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
) | 0-135500 |
| 1327 | progress = std::modf(frame,&frameAt);executed 135500 times by 2 tests: progress = std::modf(frame,&frameAt);Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 135500 |
| 1328 | else | - |
| 1329 | std::modf(frame,&frameAt); never executed: std::modf(frame,&frameAt); | 0 |
| 1330 | } else { | - |
| 1331 | datum->frameAt++; | - |
| 1332 | if (datum->frameAt >= datum->frameCount| TRUE | never evaluated | | FALSE | never evaluated |
){ | 0 |
| 1333 | datum->frameAt = 0; | - |
| 1334 | m_spriteEngine->advance(spriteIdx); | - |
| 1335 | } never executed: end of block | 0 |
| 1336 | frameAt = datum->frameAt; | - |
| 1337 | } never executed: end of block | 0 |
| 1338 | if (m_spriteEngine->sprite(spriteIdx)->reverse()| TRUE | never evaluated | | FALSE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 0-135500 |
| 1339 | frameAt = (datum->frameCount - 1) - frameAt; never executed: frameAt = (datum->frameCount - 1) - frameAt; | 0 |
| 1340 | QSizeF sheetSize = getState<ImageMaterialData>(m_material)->animSheetSize; | - |
| 1341 | qreal y = datum->animY / sheetSize.height(); | - |
| 1342 | qreal w = datum->animWidth / sheetSize.width(); | - |
| 1343 | qreal h = datum->animHeight / sheetSize.height(); | - |
| 1344 | qreal x1 = datum->animX / sheetSize.width(); | - |
| 1345 | x1 += frameAt * w; | - |
| 1346 | qreal x2 = x1; | - |
| 1347 | if (frameAt < (datum->frameCount-1)| TRUE | evaluated 77029 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 58471 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 58471-77029 |
| 1348 | x2 += w;executed 77029 times by 2 tests: x2 += w;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 77029 |
| 1349 | | - |
| 1350 | SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData(); | - |
| 1351 | spriteVertices += datum->index*4; | - |
| 1352 | for (int i=0; i<4| TRUE | evaluated 542000 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 135500 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
; i++) { | 135500-542000 |
| 1353 | spriteVertices[i].animX1 = x1; | - |
| 1354 | spriteVertices[i].animY1 = y; | - |
| 1355 | spriteVertices[i].animX2 = x2; | - |
| 1356 | spriteVertices[i].animY2 = y; | - |
| 1357 | spriteVertices[i].animW = w; | - |
| 1358 | spriteVertices[i].animH = h; | - |
| 1359 | spriteVertices[i].animProgress = progress; | - |
| 1360 | }executed 542000 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 542000 |
| 1361 | }executed 135500 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 135500 |
| 1362 | }executed 271 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 271 |
| 1363 | }executed 271 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 271 |
| 1364 | | - |
| 1365 | void QQuickImageParticle::spriteAdvance(int spriteIdx) | - |
| 1366 | { | - |
| 1367 | if (!m_startsIdx.count()| TRUE | never evaluated | | FALSE | evaluated 1200 times by 1 test |
) | 0-1200 |
| 1368 | return; never executed: return; | 0 |
| 1369 | | - |
| 1370 | int gIdx = -1; | - |
| 1371 | int i; | - |
| 1372 | for (i = 0; i<m_startsIdx.count()| TRUE | evaluated 1200 times by 1 test | | FALSE | evaluated 1200 times by 1 test |
; i++) { | 1200 |
| 1373 | if (spriteIdx < m_startsIdx[i].first| TRUE | never evaluated | | FALSE | evaluated 1200 times by 1 test |
) { | 0-1200 |
| 1374 | gIdx = m_startsIdx[i-1].second; | - |
| 1375 | break; never executed: break; | 0 |
| 1376 | } | - |
| 1377 | }executed 1200 times by 1 test: end of block | 1200 |
| 1378 | if (gIdx == -1| TRUE | evaluated 1200 times by 1 test | | FALSE | never evaluated |
) | 0-1200 |
| 1379 | gIdx = m_startsIdx[i-1].second;executed 1200 times by 1 test: gIdx = m_startsIdx[i-1].second; | 1200 |
| 1380 | int pIdx = spriteIdx - m_startsIdx[i-1].first; | - |
| 1381 | | - |
| 1382 | QQuickParticleData* mainDatum = m_system->groupData[gIdx]->data[pIdx]; | - |
| 1383 | QQuickParticleData* datum = (mainDatum->animationOwner == this| TRUE | evaluated 1200 times by 1 test | | FALSE | never evaluated |
? mainDatum : getShadowDatum(mainDatum)); | 0-1200 |
| 1384 | | - |
| 1385 | datum->animIdx = m_spriteEngine->spriteState(spriteIdx); | - |
| 1386 | datum->animT = m_spriteEngine->spriteStart(spriteIdx)/1000.0; | - |
| 1387 | datum->frameCount = m_spriteEngine->spriteFrames(spriteIdx); | - |
| 1388 | datum->frameDuration = m_spriteEngine->spriteDuration(spriteIdx) / datum->frameCount; | - |
| 1389 | datum->animX = m_spriteEngine->spriteX(spriteIdx); | - |
| 1390 | datum->animY = m_spriteEngine->spriteY(spriteIdx); | - |
| 1391 | datum->animWidth = m_spriteEngine->spriteWidth(spriteIdx); | - |
| 1392 | datum->animHeight = m_spriteEngine->spriteHeight(spriteIdx); | - |
| 1393 | }executed 1200 times by 1 test: end of block | 1200 |
| 1394 | | - |
| 1395 | void QQuickImageParticle::reloadColor(const Color4ub &c, QQuickParticleData* d) | - |
| 1396 | { | - |
| 1397 | d->color = c; | - |
| 1398 | | - |
| 1399 | } never executed: end of block | 0 |
| 1400 | | - |
| 1401 | void QQuickImageParticle::initialize(int gIdx, int pIdx) | - |
| 1402 | { | - |
| 1403 | Color4ub color; | - |
| 1404 | QQuickParticleData* datum = m_system->groupData[gIdx]->data[pIdx]; | - |
| 1405 | qreal redVariation = m_color_variation + m_redVariation; | - |
| 1406 | qreal greenVariation = m_color_variation + m_greenVariation; | - |
| 1407 | qreal blueVariation = m_color_variation + m_blueVariation; | - |
| 1408 | int spriteIdx = 0; | - |
| 1409 | if (m_spriteEngine| TRUE | evaluated 2464 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 44412 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 2464-44412 |
| 1410 | spriteIdx = m_idxStarts[gIdx] + datum->index; | - |
| 1411 | if (spriteIdx >= m_spriteEngine->count()| TRUE | evaluated 15 times by 1 test | | FALSE | evaluated 2449 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 15-2449 |
| 1412 | m_spriteEngine->setCount(spriteIdx+1);executed 15 times by 1 test: m_spriteEngine->setCount(spriteIdx+1); | 15 |
| 1413 | }executed 2464 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 2464 |
| 1414 | | - |
| 1415 | float rotation; | - |
| 1416 | float rotationVelocity; | - |
| 1417 | float autoRotate; | - |
| 1418 | switch (perfLevel){ | - |
| 1419 | caseexecuted 2448 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
Sprites:executed 2448 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 2448 |
| 1420 | | - |
| 1421 | if (m_explicitAnimation| TRUE | evaluated 2448 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
&& m_spriteEngine| TRUE | evaluated 2448 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
){ | 0-2448 |
| 1422 | if (!datum->animationOwner| TRUE | evaluated 1996 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 452 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
) | 452-1996 |
| 1423 | datum->animationOwner = this;executed 1996 times by 2 tests: datum->animationOwner = this;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 1996 |
| 1424 | QQuickParticleData* writeTo = (datum->animationOwner == this| TRUE | evaluated 2448 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
? datum : getShadowDatum(datum)); | 0-2448 |
| 1425 | writeTo->animT = writeTo->t; | - |
| 1426 | | - |
| 1427 | if (m_spriteEngine| TRUE | evaluated 2448 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | never evaluated |
){ | 0-2448 |
| 1428 | m_spriteEngine->start(spriteIdx); | - |
| 1429 | writeTo->frameCount = m_spriteEngine->spriteFrames(spriteIdx); | - |
| 1430 | writeTo->frameDuration = m_spriteEngine->spriteDuration(spriteIdx) / writeTo->frameCount; | - |
| 1431 | writeTo->animIdx = 0; | - |
| 1432 | writeTo->frameAt = -1; | - |
| 1433 | writeTo->animX = m_spriteEngine->spriteX(spriteIdx); | - |
| 1434 | writeTo->animY = m_spriteEngine->spriteY(spriteIdx); | - |
| 1435 | writeTo->animWidth = m_spriteEngine->spriteWidth(spriteIdx); | - |
| 1436 | writeTo->animHeight = m_spriteEngine->spriteHeight(spriteIdx); | - |
| 1437 | }executed 2448 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 2448 |
| 1438 | }executed 2448 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
else { | 2448 |
| 1439 | QQuickParticleData* writeTo = getShadowDatum(datum); | - |
| 1440 | writeTo->animT = datum->t; | - |
| 1441 | writeTo->frameCount = 1; | - |
| 1442 | writeTo->frameDuration = 60000000.0; | - |
| 1443 | writeTo->frameAt = -1; | - |
| 1444 | writeTo->animIdx = 0; | - |
| 1445 | writeTo->animT = 0; | - |
| 1446 | writeTo->animX = writeTo->animY = 0; | - |
| 1447 | writeTo->animWidth = getState<ImageMaterialData>(m_material)->animSheetSize.width(); | - |
| 1448 | writeTo->animHeight = getState<ImageMaterialData>(m_material)->animSheetSize.height(); | - |
| 1449 | } never executed: end of block | 0 |
| 1450 | (void)0; | - |
| 1451 | caseexecuted 1280 times by 1 test: case Tabled: Tabled:executed 1280 times by 1 test: case Tabled: code before this statement executed 2448 times by 2 tests: case Tabled:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 1280-2448 |
| 1452 | caseexecuted 3776 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
Deformable:executed 3776 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 3776 |
| 1453 | | - |
| 1454 | if (m_explicitDeformation| TRUE | evaluated 1264 times by 1 test | | FALSE | evaluated 6240 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
){ | 1264-6240 |
| 1455 | if (!datum->deformationOwner| TRUE | evaluated 998 times by 1 test | | FALSE | evaluated 266 times by 1 test |
) | 266-998 |
| 1456 | datum->deformationOwner = this;executed 998 times by 1 test: datum->deformationOwner = this; | 998 |
| 1457 | if (m_xVector| TRUE | evaluated 1264 times by 1 test | | FALSE | never evaluated |
){ | 0-1264 |
| 1458 | const QPointF &ret = m_xVector->sample(QPointF(datum->x, datum->y)); | - |
| 1459 | if (datum->deformationOwner == this| TRUE | evaluated 1264 times by 1 test | | FALSE | never evaluated |
) { | 0-1264 |
| 1460 | datum->xx = ret.x(); | - |
| 1461 | datum->xy = ret.y(); | - |
| 1462 | }executed 1264 times by 1 test: end of block else { | 1264 |
| 1463 | getShadowDatum(datum)->xx = ret.x(); | - |
| 1464 | getShadowDatum(datum)->xy = ret.y(); | - |
| 1465 | } never executed: end of block | 0 |
| 1466 | } | - |
| 1467 | if (m_yVector| TRUE | evaluated 1264 times by 1 test | | FALSE | never evaluated |
){ | 0-1264 |
| 1468 | const QPointF &ret = m_yVector->sample(QPointF(datum->x, datum->y)); | - |
| 1469 | if (datum->deformationOwner == this| TRUE | evaluated 1264 times by 1 test | | FALSE | never evaluated |
) { | 0-1264 |
| 1470 | datum->yx = ret.x(); | - |
| 1471 | datum->yy = ret.y(); | - |
| 1472 | }executed 1264 times by 1 test: end of block else { | 1264 |
| 1473 | getShadowDatum(datum)->yx = ret.x(); | - |
| 1474 | getShadowDatum(datum)->yy = ret.y(); | - |
| 1475 | } never executed: end of block | 0 |
| 1476 | } | - |
| 1477 | }executed 1264 times by 1 test: end of block | 1264 |
| 1478 | | - |
| 1479 | if (m_explicitRotation| TRUE | evaluated 3776 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 3728 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
){ | 3728-3776 |
| 1480 | if (!datum->rotationOwner| TRUE | evaluated 2994 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 782 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
) | 782-2994 |
| 1481 | datum->rotationOwner = this;executed 2994 times by 2 tests: datum->rotationOwner = this;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 2994 |
| 1482 | rotation = | - |
| 1483 | (m_rotation + (m_rotationVariation - 2*QRandomGenerator::global()->bounded(m_rotationVariation)) ) * CONV; | - |
| 1484 | rotationVelocity = | - |
| 1485 | (m_rotationVelocity + (m_rotationVelocityVariation - 2*QRandomGenerator::global()->bounded(m_rotationVelocityVariation)) ) * CONV; | - |
| 1486 | autoRotate = m_autoRotation| TRUE | evaluated 1264 times by 1 test | | FALSE | evaluated 2512 times by 1 test |
?1.0:0.0; | 1264-2512 |
| 1487 | if (datum->rotationOwner == this| TRUE | evaluated 3776 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | never evaluated |
) { | 0-3776 |
| 1488 | datum->rotation = rotation; | - |
| 1489 | datum->rotationVelocity = rotationVelocity; | - |
| 1490 | datum->autoRotate = autoRotate; | - |
| 1491 | }executed 3776 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
else { | 3776 |
| 1492 | getShadowDatum(datum)->rotation = rotation; | - |
| 1493 | getShadowDatum(datum)->rotationVelocity = rotationVelocity; | - |
| 1494 | getShadowDatum(datum)->autoRotate = autoRotate; | - |
| 1495 | } never executed: end of block | 0 |
| 1496 | } | - |
| 1497 | (void)0; | - |
| 1498 | caseexecuted 2528 times by 1 test: case Colored: Colored:executed 2528 times by 1 test: case Colored: code before this statement executed 7504 times by 3 tests: case Colored:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 2528-7504 |
| 1499 | | - |
| 1500 | | - |
| 1501 | if (m_explicitColor| TRUE | evaluated 2528 times by 1 test | | FALSE | evaluated 7504 times by 3 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
|
) { | 2528-7504 |
| 1502 | if (!datum->colorOwner| TRUE | evaluated 1996 times by 1 test | | FALSE | evaluated 532 times by 1 test |
) | 532-1996 |
| 1503 | datum->colorOwner = this;executed 1996 times by 1 test: datum->colorOwner = this; | 1996 |
| 1504 | color.r = m_color.red() * (1 - redVariation) + QRandomGenerator::global()->bounded(256) * redVariation; | - |
| 1505 | color.g = m_color.green() * (1 - greenVariation) + QRandomGenerator::global()->bounded(256) * greenVariation; | - |
| 1506 | color.b = m_color.blue() * (1 - blueVariation) + QRandomGenerator::global()->bounded(256) * blueVariation; | - |
| 1507 | color.a = m_alpha * m_color.alpha() * (1 - m_alphaVariation) + QRandomGenerator::global()->bounded(256) * m_alphaVariation; | - |
| 1508 | if (datum->colorOwner == this| TRUE | evaluated 2528 times by 1 test | | FALSE | never evaluated |
) | 0-2528 |
| 1509 | datum->color = color;executed 2528 times by 1 test: datum->color = color; | 2528 |
| 1510 | else | - |
| 1511 | getShadowDatum(datum)->color = color; never executed: getShadowDatum(datum)->color = color; | 0 |
| 1512 | } | - |
| 1513 | defaultexecuted 46876 times by 21 tests: default:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
:executed 46876 times by 21 tests: default:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
code before this statement executed 10032 times by 3 tests: default:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
- tst_qquickspritegoal
| 10032-46876 |
| 1514 | break;executed 46876 times by 21 tests: break;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 46876 |
| 1515 | } | - |
| 1516 | } | - |
| 1517 | | - |
| 1518 | void QQuickImageParticle::commit(int gIdx, int pIdx) | - |
| 1519 | { | - |
| 1520 | if (m_pleaseReset| TRUE | never evaluated | | FALSE | evaluated 230487 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-230487 |
| 1521 | return; never executed: return; | 0 |
| 1522 | QSGGeometryNode *node = m_nodes[gIdx]; | - |
| 1523 | if (!node| TRUE | never evaluated | | FALSE | evaluated 230487 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 0-230487 |
| 1524 | return; never executed: return; | 0 |
| 1525 | QQuickParticleData* datum = m_system->groupData[gIdx]->data[pIdx]; | - |
| 1526 | SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData(); | - |
| 1527 | DeformableVertex *deformableVertices = (DeformableVertex *) node->geometry()->vertexData(); | - |
| 1528 | ColoredVertex *coloredVertices = (ColoredVertex *) node->geometry()->vertexData(); | - |
| 1529 | SimpleVertex *simpleVertices = (SimpleVertex *) node->geometry()->vertexData(); | - |
| 1530 | switch (perfLevel){ | - |
| 1531 | caseexecuted 4432 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
Sprites:executed 4432 times by 2 tests: case Sprites:Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4432 |
| 1532 | spriteVertices += pIdx*4; | - |
| 1533 | for (int i=0; i<4| TRUE | evaluated 17728 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
| | FALSE | evaluated 4432 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
; i++){ | 4432-17728 |
| 1534 | spriteVertices[i].x = datum->x - m_systemOffset.x(); | - |
| 1535 | spriteVertices[i].y = datum->y - m_systemOffset.y(); | - |
| 1536 | spriteVertices[i].t = datum->t; | - |
| 1537 | spriteVertices[i].lifeSpan = datum->lifeSpan; | - |
| 1538 | spriteVertices[i].size = datum->size; | - |
| 1539 | spriteVertices[i].endSize = datum->endSize; | - |
| 1540 | spriteVertices[i].vx = datum->vx; | - |
| 1541 | spriteVertices[i].vy = datum->vy; | - |
| 1542 | spriteVertices[i].ax = datum->ax; | - |
| 1543 | spriteVertices[i].ay = datum->ay; | - |
| 1544 | if (m_explicitDeformation| TRUE | never evaluated | | FALSE | evaluated 17728 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
&& datum->deformationOwner != this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-17728 |
| 1545 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1546 | spriteVertices[i].xx = shadow->xx; | - |
| 1547 | spriteVertices[i].xy = shadow->xy; | - |
| 1548 | spriteVertices[i].yx = shadow->yx; | - |
| 1549 | spriteVertices[i].yy = shadow->yy; | - |
| 1550 | } never executed: end of block else { | 0 |
| 1551 | spriteVertices[i].xx = datum->xx; | - |
| 1552 | spriteVertices[i].xy = datum->xy; | - |
| 1553 | spriteVertices[i].yx = datum->yx; | - |
| 1554 | spriteVertices[i].yy = datum->yy; | - |
| 1555 | }executed 17728 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 17728 |
| 1556 | if (m_explicitRotation| TRUE | never evaluated | | FALSE | evaluated 17728 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
&& datum->rotationOwner != this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-17728 |
| 1557 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1558 | spriteVertices[i].rotation = shadow->rotation; | - |
| 1559 | spriteVertices[i].rotationVelocity = shadow->rotationVelocity; | - |
| 1560 | spriteVertices[i].autoRotate = shadow->autoRotate; | - |
| 1561 | } never executed: end of block else { | 0 |
| 1562 | spriteVertices[i].rotation = datum->rotation; | - |
| 1563 | spriteVertices[i].rotationVelocity = datum->rotationVelocity; | - |
| 1564 | spriteVertices[i].autoRotate = datum->autoRotate; | - |
| 1565 | }executed 17728 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 17728 |
| 1566 | | - |
| 1567 | if (m_explicitColor| TRUE | never evaluated | | FALSE | evaluated 17728 times by 2 testsEvaluated by:- tst_qquickimageparticle
- tst_qquickspritegoal
|
&& datum->colorOwner != this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-17728 |
| 1568 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1569 | spriteVertices[i].color.r = shadow->color.r; | - |
| 1570 | spriteVertices[i].color.g = shadow->color.g; | - |
| 1571 | spriteVertices[i].color.b = shadow->color.b; | - |
| 1572 | spriteVertices[i].color.a = shadow->color.a; | - |
| 1573 | } never executed: end of block else { | 0 |
| 1574 | spriteVertices[i].color.r = datum->color.r; | - |
| 1575 | spriteVertices[i].color.g = datum->color.g; | - |
| 1576 | spriteVertices[i].color.b = datum->color.b; | - |
| 1577 | spriteVertices[i].color.a = datum->color.a; | - |
| 1578 | }executed 17728 times by 2 tests: end of blockExecuted by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 17728 |
| 1579 | } | - |
| 1580 | break;executed 4432 times by 2 tests: break;Executed by:- tst_qquickimageparticle
- tst_qquickspritegoal
| 4432 |
| 1581 | caseexecuted 2264 times by 1 test: case Tabled: Tabled:executed 2264 times by 1 test: case Tabled: | 2264 |
| 1582 | caseexecuted 6696 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
Deformable:executed 6696 times by 2 tests: case Deformable:Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 6696 |
| 1583 | deformableVertices += pIdx*4; | - |
| 1584 | for (int i=0; i<4| TRUE | evaluated 35840 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 8960 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
; i++){ | 8960-35840 |
| 1585 | deformableVertices[i].x = datum->x - m_systemOffset.x(); | - |
| 1586 | deformableVertices[i].y = datum->y - m_systemOffset.y(); | - |
| 1587 | deformableVertices[i].t = datum->t; | - |
| 1588 | deformableVertices[i].lifeSpan = datum->lifeSpan; | - |
| 1589 | deformableVertices[i].size = datum->size; | - |
| 1590 | deformableVertices[i].endSize = datum->endSize; | - |
| 1591 | deformableVertices[i].vx = datum->vx; | - |
| 1592 | deformableVertices[i].vy = datum->vy; | - |
| 1593 | deformableVertices[i].ax = datum->ax; | - |
| 1594 | deformableVertices[i].ay = datum->ay; | - |
| 1595 | if (m_explicitDeformation| TRUE | evaluated 8992 times by 1 test | | FALSE | evaluated 26848 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
&& datum->deformationOwner != this| TRUE | evaluated 4000 times by 1 test | | FALSE | evaluated 4992 times by 1 test |
) { | 4000-26848 |
| 1596 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1597 | deformableVertices[i].xx = shadow->xx; | - |
| 1598 | deformableVertices[i].xy = shadow->xy; | - |
| 1599 | deformableVertices[i].yx = shadow->yx; | - |
| 1600 | deformableVertices[i].yy = shadow->yy; | - |
| 1601 | }executed 4000 times by 1 test: end of block else { | 4000 |
| 1602 | deformableVertices[i].xx = datum->xx; | - |
| 1603 | deformableVertices[i].xy = datum->xy; | - |
| 1604 | deformableVertices[i].yx = datum->yx; | - |
| 1605 | deformableVertices[i].yy = datum->yy; | - |
| 1606 | }executed 31840 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 31840 |
| 1607 | if (m_explicitRotation| TRUE | evaluated 26784 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 9056 times by 1 test |
&& datum->rotationOwner != this| TRUE | evaluated 12000 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| | FALSE | evaluated 14784 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
) { | 9056-26784 |
| 1608 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1609 | deformableVertices[i].rotation = shadow->rotation; | - |
| 1610 | deformableVertices[i].rotationVelocity = shadow->rotationVelocity; | - |
| 1611 | deformableVertices[i].autoRotate = shadow->autoRotate; | - |
| 1612 | }executed 12000 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
else { | 12000 |
| 1613 | deformableVertices[i].rotation = datum->rotation; | - |
| 1614 | deformableVertices[i].rotationVelocity = datum->rotationVelocity; | - |
| 1615 | deformableVertices[i].autoRotate = datum->autoRotate; | - |
| 1616 | }executed 23840 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 23840 |
| 1617 | if (m_explicitColor| TRUE | never evaluated | | FALSE | evaluated 35840 times by 2 testsEvaluated by:- tst_qquickcustomaffector
- tst_qquickimageparticle
|
&& datum->colorOwner != this| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-35840 |
| 1618 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1619 | deformableVertices[i].color.r = shadow->color.r; | - |
| 1620 | deformableVertices[i].color.g = shadow->color.g; | - |
| 1621 | deformableVertices[i].color.b = shadow->color.b; | - |
| 1622 | deformableVertices[i].color.a = shadow->color.a; | - |
| 1623 | } never executed: end of block else { | 0 |
| 1624 | deformableVertices[i].color.r = datum->color.r; | - |
| 1625 | deformableVertices[i].color.g = datum->color.g; | - |
| 1626 | deformableVertices[i].color.b = datum->color.b; | - |
| 1627 | deformableVertices[i].color.a = datum->color.a; | - |
| 1628 | }executed 35840 times by 2 tests: end of blockExecuted by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 35840 |
| 1629 | } | - |
| 1630 | break;executed 8960 times by 2 tests: break;Executed by:- tst_qquickcustomaffector
- tst_qquickimageparticle
| 8960 |
| 1631 | caseexecuted 4512 times by 1 test: case Colored: Colored:executed 4512 times by 1 test: case Colored: | 4512 |
| 1632 | coloredVertices += pIdx*1; | - |
| 1633 | for (int i=0; i<1| TRUE | evaluated 4512 times by 1 test | | FALSE | evaluated 4512 times by 1 test |
; i++){ | 4512 |
| 1634 | coloredVertices[i].x = datum->x - m_systemOffset.x(); | - |
| 1635 | coloredVertices[i].y = datum->y - m_systemOffset.y(); | - |
| 1636 | coloredVertices[i].t = datum->t; | - |
| 1637 | coloredVertices[i].lifeSpan = datum->lifeSpan; | - |
| 1638 | coloredVertices[i].size = datum->size; | - |
| 1639 | coloredVertices[i].endSize = datum->endSize; | - |
| 1640 | coloredVertices[i].vx = datum->vx; | - |
| 1641 | coloredVertices[i].vy = datum->vy; | - |
| 1642 | coloredVertices[i].ax = datum->ax; | - |
| 1643 | coloredVertices[i].ay = datum->ay; | - |
| 1644 | if (m_explicitColor| TRUE | evaluated 4512 times by 1 test | | FALSE | never evaluated |
&& datum->colorOwner != this| TRUE | evaluated 2016 times by 1 test | | FALSE | evaluated 2496 times by 1 test |
) { | 0-4512 |
| 1645 | QQuickParticleData* shadow = getShadowDatum(datum); | - |
| 1646 | coloredVertices[i].color.r = shadow->color.r; | - |
| 1647 | coloredVertices[i].color.g = shadow->color.g; | - |
| 1648 | coloredVertices[i].color.b = shadow->color.b; | - |
| 1649 | coloredVertices[i].color.a = shadow->color.a; | - |
| 1650 | }executed 2016 times by 1 test: end of block else { | 2016 |
| 1651 | coloredVertices[i].color.r = datum->color.r; | - |
| 1652 | coloredVertices[i].color.g = datum->color.g; | - |
| 1653 | coloredVertices[i].color.b = datum->color.b; | - |
| 1654 | coloredVertices[i].color.a = datum->color.a; | - |
| 1655 | }executed 2496 times by 1 test: end of block | 2496 |
| 1656 | } | - |
| 1657 | break;executed 4512 times by 1 test: break; | 4512 |
| 1658 | caseexecuted 212583 times by 20 tests: case Simple:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
Simple:executed 212583 times by 20 tests: case Simple:Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 212583 |
| 1659 | simpleVertices += pIdx*1; | - |
| 1660 | for (int i=0; i<1| TRUE | evaluated 212583 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| | FALSE | evaluated 212583 times by 20 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; i++){ | 212583 |
| 1661 | simpleVertices[i].x = datum->x - m_systemOffset.x(); | - |
| 1662 | simpleVertices[i].y = datum->y - m_systemOffset.y(); | - |
| 1663 | simpleVertices[i].t = datum->t; | - |
| 1664 | simpleVertices[i].lifeSpan = datum->lifeSpan; | - |
| 1665 | simpleVertices[i].size = datum->size; | - |
| 1666 | simpleVertices[i].endSize = datum->endSize; | - |
| 1667 | simpleVertices[i].vx = datum->vx; | - |
| 1668 | simpleVertices[i].vy = datum->vy; | - |
| 1669 | simpleVertices[i].ax = datum->ax; | - |
| 1670 | simpleVertices[i].ay = datum->ay; | - |
| 1671 | }executed 212583 times by 20 tests: end of blockExecuted by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 212583 |
| 1672 | break;executed 212583 times by 20 tests: break;Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 212583 |
| 1673 | default never executed: default: :never executed: default: | 0 |
| 1674 | break; never executed: break; | 0 |
| 1675 | } | - |
| 1676 | } | - |
| 1677 | | - |
| 1678 | | - |
| 1679 | | - |
| 1680 | | - |
| 1681 | | - |
| | |