MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Provides a generic brain tree item. More...
#include <fssurfacetreeitem.h>
Public Types | |
typedef QSharedPointer< FsSurfaceTreeItem > | SPtr |
typedef QSharedPointer< const FsSurfaceTreeItem > | ConstSPtr |
Public Types inherited from DISP3DLIB::AbstractMeshTreeItem | |
typedef QSharedPointer< AbstractMeshTreeItem > | SPtr |
typedef QSharedPointer< const AbstractMeshTreeItem > | ConstSPtr |
Public Types inherited from DISP3DLIB::Renderable3DEntity | |
typedef QSharedPointer< Renderable3DEntity > | SPtr |
typedef QSharedPointer< const Renderable3DEntity > | ConstSPtr |
Public Member Functions | |
FsSurfaceTreeItem (Qt3DCore::QEntity *p3DEntityParent=0, int iType=Data3DTreeModelItemTypes::SurfaceItem, const QString &text="Surface") | |
void | addData (const FSLIB::Surface &tSurface) |
void | onAnnotationVisibilityChanged (bool isVisible) |
Public Member Functions inherited from DISP3DLIB::AbstractMeshTreeItem | |
AbstractMeshTreeItem (Qt3DCore::QEntity *p3DEntityParent=Q_NULLPTR, int iType=Data3DTreeModelItemTypes::AbstractMeshItem, const QString &text="Abstract Mesh Item") | |
virtual void | setData (const QVariant &value, int role=Qt::UserRole+1) |
virtual void | setMaterial (Qt3DRender::QMaterial *pMaterial) |
void | setMeshData (const Eigen::MatrixX3f &tMatVert, const Eigen::MatrixX3f &tMatNorm, const Eigen::MatrixXi &tMatTris, const Eigen::MatrixX4f &tMatColors, Qt3DRender::QGeometryRenderer::PrimitiveType primitiveType=Qt3DRender::QGeometryRenderer::Triangles) |
virtual QPointer< CustomMesh > | getCustomMesh () |
virtual void | setVertColor (const Eigen::MatrixX4f &vertColor) |
Public Member Functions inherited from DISP3DLIB::Abstract3DTreeItem | |
Abstract3DTreeItem (QEntity *p3DEntityParent=0, int iType=Data3DTreeModelItemTypes::UnknownItem, const QString &text="") | |
void | setData (const QVariant &value, int role=Qt::UserRole+1) |
int | type () const |
QList< QStandardItem * > | findChildren (int type) |
QList< QStandardItem * > | findChildren (const QString &text) |
Abstract3DTreeItem & | operator<< (Abstract3DTreeItem *newItem) |
Abstract3DTreeItem & | operator<< (Abstract3DTreeItem &newItem) |
void | setAlpha (float fAlpha) |
Public Member Functions inherited from DISP3DLIB::Renderable3DEntity | |
Renderable3DEntity (Qt3DCore::QEntity *parent=0) | |
virtual | ~Renderable3DEntity () |
virtual void | setTransform (const Qt3DCore::QTransform &transform) |
virtual void | setTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false) |
virtual void | applyTransform (const Qt3DCore::QTransform &transform) |
virtual void | applyTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false) |
virtual float | scaleValue () const |
virtual float | rotX () const |
virtual float | rotY () const |
virtual float | rotZ () const |
virtual QVector3D | position () const |
virtual void | applyRotX (float rotX) |
virtual void | setRotX (float rotX) |
virtual void | applyRotY (float rotY) |
virtual void | setRotY (float rotY) |
virtual void | applyRotZ (float rotZ) |
virtual void | setRotZ (float rotZ) |
virtual void | applyPosition (const QVector3D &position) |
virtual void | setPosition (const QVector3D &position) |
virtual void | applyScale (float scale) |
virtual void | setScale (float scale) |
virtual void | setVisible (bool state) |
virtual void | setMaterialParameter (const QVariant &data, const QString &sParameterName) |
virtual QVariant | getMaterialParameter (const QString &sParameterName) |
Static Public Member Functions | |
static Eigen::MatrixX4f | createCurvatureVertColor (const Eigen::VectorXf &curvature, const QColor &colSulci=QColor(50, 50, 50), const QColor &colGyri=QColor(125, 125, 125)) |
Static Public Member Functions inherited from DISP3DLIB::Abstract3DTreeItem | |
static Eigen::MatrixX4f | createVertColor (int numVert, const QColor &color=QColor(0, 49, 69)) |
Protected Member Functions | |
void | initItem () |
void | onColorInfoOriginOrCurvColorChanged () |
Protected Member Functions inherited from DISP3DLIB::AbstractMeshTreeItem | |
virtual void | onSurfaceTessInnerChanged (const QVariant &fTessInner) |
virtual void | onSurfaceTessOuterChanged (const QVariant &fTessOuter) |
virtual void | onSurfaceTriangleScaleChanged (const QVariant &fTriangleScale) |
virtual void | onColorChanged (const QVariant &color) |
virtual void | onSurfaceMaterialChanged (const QVariant &sMaterial) |
Protected Member Functions inherited from DISP3DLIB::Abstract3DTreeItem | |
virtual void | onCheckStateChanged (const Qt::CheckState &checkState) |
virtual void | onTranslationXChanged (const QVariant &fTransX) |
virtual void | onTranslationYChanged (const QVariant &fTransY) |
virtual void | onTranslationZChanged (const QVariant &fTransZ) |
virtual void | onScaleChanged (const QVariant &fScale) |
virtual void | onAlphaChanged (const QVariant &fAlpha) |
Protected Member Functions inherited from DISP3DLIB::Renderable3DEntity | |
virtual void | setMaterialParameterRecursive (QObject *pObject, const QVariant &data, const QString &sParameterName) |
virtual QPair< bool, QVariant > | getMaterialParameterRecursive (QObject *pObject, const QString &sParameterName) |
Protected Attributes | |
QString | m_sColorInfoOrigin |
QPointer< MetaTreeItem > | m_pItemSurfColSulci |
QPointer< MetaTreeItem > | m_pItemSurfColGyri |
Protected Attributes inherited from DISP3DLIB::AbstractMeshTreeItem | |
QPointer< Qt3DRender::QMaterial > | m_pMaterial |
QPointer< CustomMesh > | m_pCustomMesh |
Protected Attributes inherited from DISP3DLIB::Abstract3DTreeItem | |
int | m_iType |
QPointer< MetaTreeItem > | m_pItemTransformationOptions |
QPointer< MetaTreeItem > | m_pItemAppearanceOptions |
Protected Attributes inherited from DISP3DLIB::Renderable3DEntity | |
QPointer< Qt3DCore::QTransform > | m_pTransform |
float | m_fScale |
float | m_fRotX |
float | m_fRotY |
float | m_fRotZ |
QVector3D | m_position |
Additional Inherited Members | |
Signals inherited from DISP3DLIB::Abstract3DTreeItem | |
void | checkStateChanged (const Qt::CheckState &checkState) |
Signals inherited from DISP3DLIB::Renderable3DEntity | |
void | scaleChanged (float scale) |
void | rotXChanged (float rotX) |
void | rotYChanged (float rotY) |
void | rotZChanged (float rotZ) |
void | positionChanged (QVector3D position) |
Properties inherited from DISP3DLIB::Renderable3DEntity | |
float | scale |
float | rotX |
float | rotY |
float | rotZ |
QVector3D | position |
Provides a generic brain tree item.
FsSurfaceTreeItem provides a generic brain tree item to hold of brain data (hemi, vertices, tris, etc.) from different sources (FreeSurfer, etc.).
Definition at line 83 of file fssurfacetreeitem.h.
typedef QSharedPointer<const FsSurfaceTreeItem> DISP3DLIB::FsSurfaceTreeItem::ConstSPtr |
Const shared pointer type for FsSurfaceTreeItem class.
Definition at line 89 of file fssurfacetreeitem.h.
typedef QSharedPointer<FsSurfaceTreeItem> DISP3DLIB::FsSurfaceTreeItem::SPtr |
Shared pointer type for FsSurfaceTreeItem class.
Definition at line 88 of file fssurfacetreeitem.h.
|
explicit |
Default constructor.
[in] | p3DEntityParent | The parent 3D entity. |
[in] | iType | The type of the item. See types.h for declaration and definition. |
[in] | text | The text of this item. This is also by default the displayed name of the item in a view. |
Definition at line 73 of file fssurfacetreeitem.cpp.
void FsSurfaceTreeItem::addData | ( | const FSLIB::Surface & | tSurface | ) |
Adds FreeSurfer data based on surface and annotation data to this item.
[in] | tSurface | FreeSurfer surface. |
Definition at line 127 of file fssurfacetreeitem.cpp.
|
static |
Creates a QByteArray of colors for given curvature and color data.
[in] | curvature | The curvature information. |
[in] | colSulci | The sulci color information. |
[in] | colGyri | The gyri color information. |
Definition at line 189 of file fssurfacetreeitem.cpp.
|
protectedvirtual |
AbstractTreeItem functions
Reimplemented from DISP3DLIB::AbstractMeshTreeItem.
Definition at line 82 of file fssurfacetreeitem.cpp.
void FsSurfaceTreeItem::onAnnotationVisibilityChanged | ( | bool | isVisible | ) |
Call this function whenever visibilty of teh annoation has changed.
[in] | isVisible | The visibility flag. |
Definition at line 176 of file fssurfacetreeitem.cpp.
|
protected |
Call this function whenever the curvature color or origin of color information (curvature or annotation) changed.
Definition at line 215 of file fssurfacetreeitem.cpp.
|
protected |
The item which holds the gyri color information.
Definition at line 149 of file fssurfacetreeitem.h.
|
protected |
The item which holds the sulci color information.
Definition at line 148 of file fssurfacetreeitem.h.
|
protected |
The surface color origin.
Definition at line 146 of file fssurfacetreeitem.h.