v2.0.0
Loading...
Searching...
No Matches
surfacetreeitem.cpp
Go to the documentation of this file.
1//=============================================================================================================
12
13//=============================================================================================================
14// INCLUDES
15//=============================================================================================================
16
17#include "surfacetreeitem.h"
18
19namespace DISP3DLIB
20{
21
24{
25 // Default shader mode = 0 (Standard)
26 setData(0, ShaderModeRole);
27}
28
30{
31 // Store as QVariant. We might need Q_DECLARE_METATYPE for FSLIB::FsSurface if not already done.
32 // For now assuming FSLIB types are registered or we can register them.
33 QVariant v;
34 v.setValue(surface);
35 setData(v, SurfaceDataRole);
36}
37
39{
40 QVariant v;
41 v.setValue(annotation);
42 setData(v, AnnotationDataRole);
43}
44
46{
47 setData(mode, ShaderModeRole);
48}
49
54
59
61{
62 return data(ShaderModeRole).toInt();
63}
64
65} // namespace DISP3DLIB
Tree item wrapping a FreeSurfer FSLIB::FsSurface plus optional FSLIB::FsAnnotation parcellation.
3-D brain visualisation using the Qt RHI rendering backend.
AbstractTreeItem(const QString &text="", int type=AbstractItem)
void setAnnotationData(const FSLIB::FsAnnotation &annotation)
void setSurfaceData(const FSLIB::FsSurface &surface)
SurfaceTreeItem(const QString &text="")
FSLIB::FsSurface surfaceData() const
FSLIB::FsAnnotation annotationData() const
Single-hemisphere FreeSurfer parcellation: vertex → region label plus embedded colortable.
In-memory FreeSurfer triangular cortical surface for one hemisphere.
Definition fs_surface.h:94