MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
digitizersettreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef DISP3DLIB_DIGITIZERSETTREEITEM_H
37#define DISP3DLIB_DIGITIZERSETTREEITEM_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../../../disp3D_global.h"
44#include "../common/abstracttreeitem.h"
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QPointer>
51
52//=============================================================================================================
53// EIGEN INCLUDES
54//=============================================================================================================
55
56//=============================================================================================================
57// FORWARD DECLARATIONS
58//=============================================================================================================
59
60namespace FIFFLIB{
61 class FiffDigPoint;
62 class FiffDigPointSet;
63}
64
65namespace Qt3DCore {
66 class QEntity;
67}
68
69namespace Qt3DCore {
70 class QTransform;
71}
72
73//=============================================================================================================
74// DEFINE NAMESPACE DISP3DLIB
75//=============================================================================================================
76
77namespace DISP3DLIB
78{
79
80//=============================================================================================================
81// DISP3DLIB FORWARD DECLARATIONS
82//=============================================================================================================
83
84class Renderable3DEntity;
85
86//=============================================================================================================
93{
94 Q_OBJECT
95
96public:
97 typedef QSharedPointer<DigitizerSetTreeItem> SPtr;
98 typedef QSharedPointer<const DigitizerSetTreeItem> ConstSPtr;
100 //=========================================================================================================
107 explicit DigitizerSetTreeItem(int iType = Data3DTreeModelItemTypes::DigitizerSetItem, const QString& text = "Source space");
108
109 //=========================================================================================================
115 void addData(const FIFFLIB::FiffDigPointSet& tDigitizer, Qt3DCore::QEntity* parent);
116
117 //=========================================================================================================
123 virtual void setTransform(const Qt3DCore::QTransform &transform);
124
125 //=========================================================================================================
132 virtual void setTransform(const FIFFLIB::FiffCoordTrans& transform,
133 bool bApplyInverse = false);
134
135 //=========================================================================================================
141 virtual void applyTransform(const Qt3DCore::QTransform& transform);
142
143 //=========================================================================================================
150 virtual void applyTransform(const FIFFLIB::FiffCoordTrans& transform,
151 bool bApplyInverse = false);
152
153protected:
154 //=========================================================================================================
158 void initItem();
159
160 QPointer<Renderable3DEntity> m_pRenderable3DEntity;
161};
162} // NAMESPACE DISP3DLIB
163
164#endif // DISP3DLIB_DIGITIZERSETTREEITEM_H
#define DISP3DSHARED_EXPORT
Provides the basic tree item.
DigitizerSetTreeItem provides a tree item to hold the set of digitizer data.
QSharedPointer< const DigitizerSetTreeItem > ConstSPtr
QPointer< Renderable3DEntity > m_pRenderable3DEntity
QSharedPointer< DigitizerSetTreeItem > SPtr
Coordinate transformation description.
Holds a set of digitizer points.