LiveMarker
Namespace: DISP3DLIB · Library: 3D Display Library
#include <disp3D/brainview.h>
struct DISP3DLIB::LiveMarker
Lightweight live overlay marker rendered as a single sphere.
Used by BrainView::setLiveMarkers to draw transient markers (e.g. digitizer tracker tip, orientation axes) without going through the model pipeline or recalculating scene bounds.
src/examples/ex_disp3d_scene/main.cpp
BrainView view; // QRhi widget; nothing is rendered until it is shown
view.setViewCount(2);
const bool twoPanes = view.viewCount() == 2 && view.viewMode() == BrainView::MultiView;
LiveMarker trackerTip;
trackerTip.position = QVector3D(0.0f, 0.08f, 0.04f);
trackerTip.color = Qt::yellow;
view.setLiveMarkers({trackerTip}); // transient, does not move the camera
view.clearLiveMarkers();
view.setViewCount(1);
Example
- Full source:
src/examples/ex_disp3d_scene/main.cpp - Build target:
ex_disp3d_scene(runs under CTest)
Used in examples
ex_disp3d_scene
Disp3D scene data: sensor-to-surface interpolation, electrodes, MRI slices, video overlay and layers.
src/examples/ex_disp3d_scene/main.cpp, line 324
BrainView view; // QRhi widget; nothing is rendered until it is shown
view.setViewCount(2);
const bool twoPanes = view.viewCount() == 2 && view.viewMode() == BrainView::MultiView;
LiveMarker trackerTip;
trackerTip.position = QVector3D(0.0f, 0.08f, 0.04f);
trackerTip.color = Qt::yellow;
view.setLiveMarkers({trackerTip}); // transient, does not move the camera
view.clearLiveMarkers();
view.setViewCount(1);
ok &= expect(twoPanes && view.viewCount() == 1, "BrainView switches between two panes and a single view");
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>