MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
bemtreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef DISP3DLIB_BEMTREEITEM_H
36#define DISP3DLIB_BEMTREEITEM_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../../../../disp3D_global.h"
43
44#include "../common/abstracttreeitem.h"
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <Qt3DCore/QTransform>
51#include <QPointer>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61namespace MNELIB {
62 class MNEBem;
63}
64
65namespace Qt3DCore {
66 class QEntity;
67}
68
69//=============================================================================================================
70// DEFINE NAMESPACE DISP3DLIB
71//=============================================================================================================
72
73namespace DISP3DLIB
74{
75
76//=============================================================================================================
77// DISP3DLIB FORWARD DECLARATIONS
78//=============================================================================================================
79
80class Renderable3DEntity;
81
82//=============================================================================================================
89{
90 Q_OBJECT
91
92public:
93 typedef QSharedPointer<BemTreeItem> SPtr;
94 typedef QSharedPointer<const BemTreeItem> ConstSPtr;
96 //=========================================================================================================
103 explicit BemTreeItem(int iType = Data3DTreeModelItemTypes::BemItem, const QString& text = "");
104
105 //=========================================================================================================
112 void addData(const MNELIB::MNEBem& tBem,
113 Qt3DCore::QEntity* p3DEntityParent = 0);
114
115 //=========================================================================================================
121 virtual void setTransform(const Qt3DCore::QTransform &transform);
122
123 //=========================================================================================================
130 virtual void setTransform(const FIFFLIB::FiffCoordTrans& transform,
131 bool bApplyInverse = false);
132
133 //=========================================================================================================
139 virtual void applyTransform(const Qt3DCore::QTransform& transform);
140
141 //=========================================================================================================
148 virtual void applyTransform(const FIFFLIB::FiffCoordTrans& transform,
149 bool bApplyInverse = false);
150
151protected:
152 //=========================================================================================================
156 void initItem();
157
158 QPointer<Renderable3DEntity> m_pRenderable3DEntity;
160};
161} //NAMESPACE DISP3DLIB
162
163#endif // DISP3DLIB_BEMTREEITEM_H
#define DISP3DSHARED_EXPORT
BemTreeItem provides a tree item to hold BEM models.
Definition bemtreeitem.h:89
QPointer< Renderable3DEntity > m_pRenderable3DEntity
QSharedPointer< BemTreeItem > SPtr
Definition bemtreeitem.h:93
QSharedPointer< const BemTreeItem > ConstSPtr
Definition bemtreeitem.h:94
Provides the basic tree item.
Coordinate transformation description.
BEM descritpion.
Definition mne_bem.h:90