#include <Viewer3DInstancing.h>
Signals | |
| void | countChanged () |
| void | selectedIndexChanged () |
Public Member Functions | |
| Viewer3DInstancing (QQuick3DObject *parent=nullptr) | |
| Q_INVOKABLE void | clear () |
| Q_INVOKABLE void | addEntry (const QVector3D &position, const QVector3D &scale, const QQuaternion &rotation, const QColor &color) |
| Q_INVOKABLE void | addLineSegment (const QVector3D &p1, const QVector3D &p2, float lineWidth, const QColor &color) |
| int | count () const |
| int | selectedIndex () const |
| void | setSelectedIndex (int index) |
Protected Member Functions | |
| QByteArray | getInstanceBuffer (int *instanceCount) override |
Friends | |
| class | Viewer3DInstancingTest |
Definition at line 11 of file Viewer3DInstancing.h.
|
explicit |
Definition at line 7 of file Viewer3DInstancing.cc.
References Viewer3DInstancing().
Referenced by Viewer3DInstancing(), and Viewer3DInstancingTest.
| void Viewer3DInstancing::addEntry | ( | const QVector3D & | position, |
| const QVector3D & | scale, | ||
| const QQuaternion & | rotation, | ||
| const QColor & | color ) |
Definition at line 21 of file Viewer3DInstancing.cc.
References countChanged().
Referenced by Viewer3DInstancingTest.
| void Viewer3DInstancing::addLineSegment | ( | const QVector3D & | p1, |
| const QVector3D & | p2, | ||
| float | lineWidth, | ||
| const QColor & | color ) |
Definition at line 32 of file Viewer3DInstancing.cc.
References countChanged().
Referenced by Viewer3DInstancingTest.
| void Viewer3DInstancing::clear | ( | ) |
Definition at line 12 of file Viewer3DInstancing.cc.
References countChanged().
Referenced by Viewer3DInstancingTest.
| int Viewer3DInstancing::count | ( | ) | const |
Definition at line 58 of file Viewer3DInstancing.cc.
Referenced by Viewer3DInstancingTest.
|
signal |
References countChanged().
Referenced by addEntry(), addLineSegment(), clear(), and countChanged().
|
overrideprotected |
Definition at line 77 of file Viewer3DInstancing.cc.
Referenced by selectedIndexChanged().
| int Viewer3DInstancing::selectedIndex | ( | ) | const |
Definition at line 63 of file Viewer3DInstancing.cc.
Referenced by Viewer3DInstancingTest.
|
signal |
References getInstanceBuffer(), and selectedIndexChanged().
Referenced by selectedIndexChanged(), and setSelectedIndex().
| void Viewer3DInstancing::setSelectedIndex | ( | int | index | ) |
Definition at line 68 of file Viewer3DInstancing.cc.
References selectedIndexChanged().
Referenced by Viewer3DInstancingTest.
|
friend |
Definition at line 18 of file Viewer3DInstancing.h.
References addEntry(), addLineSegment(), clear(), count(), selectedIndex(), setSelectedIndex(), Viewer3DInstancing(), and Viewer3DInstancingTest.
Referenced by Viewer3DInstancingTest.