69 const QImage &
frame()
const {
return m_frame; }
70 bool hasFrame()
const {
return !m_frame.isNull(); }
85 float opacity()
const {
return m_opacity; }
93 QVector3D
upHint()
const {
return m_upHint; }
94 void setUpHint(
const QVector3D &dir) { m_upHint = dir; }
107 m_depthFrame = image;
108 ++m_depthFrameGeneration;
124 bool m_enabled =
false;
125 QVector3D m_focusPosition = QVector3D(0.0f, 0.05f, 0.08f);
127 float m_size = 0.06f;
128 float m_opacity = 1.0f;
130 quint64 m_frameGeneration = 0;
133 bool m_depthEnabled =
false;
135 quint64 m_depthFrameGeneration = 0;
136 float m_depthScale = 0.25f;
137 int m_depthSteps = 32;
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
3-D brain visualisation using the Qt RHI rendering backend.
bool hasDepthFrame() const
void setDepthSteps(int steps)
void setEnabled(bool enabled)
QVector3D focusPosition() const
void setFrame(const QImage &image)
void setDepthFrame(const QImage &image)
void setSizeMeters(float size)
QVector3D upHint() const
Hint direction used as the quad's "up" axis. When set (non-zero), the quad's long edge is perpendicul...
const QImage & frame() const
void setDepthScale(float scale)
void setUpHint(const QVector3D &dir)
void setFocusPosition(const QVector3D &pos)
void setOpacity(float opacity)
quint64 frameGeneration() const
void setDepthEnabled(bool enabled)
quint64 depthFrameGeneration() const
const QImage & depthFrame() const
bool isDepthEnabled() const