43class QRhiResourceUpdateBatch;
75 QVector3D debugFirstDipolePosition()
const;
77 void setSelected(
int index,
bool selected);
88 int intersect(
const QVector3D &rayOrigin,
const QVector3D &rayDir,
float &dist)
const;
91 void createGeometry();
95 std::unique_ptr<GpuBuffers> m_gpu;
98 int m_instanceCount = 0;
99 bool m_visible =
true;
113 struct InstanceData {
119 QByteArray m_vertexData;
120 QByteArray m_indexData;
121 QByteArray m_instanceData;
123 bool m_geometryDirty =
false;
124 bool m_instancesDirty =
false;
126 std::vector<QVector4D> m_originalColors;
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
Ordered set of INVLIB::InvEcd records — the result of a sequential dipole-fit run.
Interleaved vertex attributes (position, normal, color, curvature) for brain surface GPU upload.
QRhiBuffer * instanceBuffer() const
int instanceCount() const
void updateBuffers(QRhi *rhi, QRhiResourceUpdateBatch *u)
void setVisible(bool visible)
void load(const INVLIB::InvEcdSet &ecdSet)
QRhiBuffer * indexBuffer() const
QRhiBuffer * vertexBuffer() const
void applyTransform(const QMatrix4x4 &trans)
Holds a set of Electric Current Dipoles.