MNE-CPP  0.1.9
A Framework for Electrophysiology
networkview.cpp
Go to the documentation of this file.
1 //=============================================================================================================
35 //=============================================================================================================
36 // INCLUDES
37 //=============================================================================================================
38 
39 #include "networkview.h"
40 
41 #include "../engine/model/data3Dtreemodel.h"
42 #include "../engine/model/items/network/networktreeitem.h"
43 
45 
47 
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 //=============================================================================================================
53 // USED NAMESPACES
54 //=============================================================================================================
55 
56 using namespace DISP3DLIB;
57 using namespace DISPLIB;
58 using namespace CONNECTIVITYLIB;
59 
60 //=============================================================================================================
61 // DEFINE MEMBER METHODS
62 //=============================================================================================================
63 
64 NetworkView::NetworkView(QWidget* parent,
65  Qt::WindowFlags f)
66 : AbstractView(parent, f)
67 , m_pConnectivitySettingsView(new ConnectivitySettingsView("NetworkView"))
68 {
69  QList<QWidget*> lWidgets;
70  lWidgets << m_pConnectivitySettingsView;
71  this->setQuickControlWidgets(lWidgets);
72 }
73 
74 //=============================================================================================================
75 
77 {
78 }
79 
80 //=============================================================================================================
81 
82 QList<NetworkTreeItem*> NetworkView::addData(const QString& sSubject,
83  const QString& sMeasurementSetName,
84  const QList<Network>& tNetworkData)
85 {
86  //Add network data
87  return m_pData3DModel->addConnectivityData(sSubject,
88  sMeasurementSetName,
89  tNetworkData);
90 }
91 
92 //=============================================================================================================
93 
94 NetworkTreeItem* NetworkView::addData(const QString& sSubject,
95  const QString& sMeasurementSetName,
96  const Network& tNetworkData)
97 {
98  //Add network data
99  return m_pData3DModel->addConnectivityData(sSubject,
100  sMeasurementSetName,
101  tNetworkData);
102 }
103 
104 //=============================================================================================================
105 
106 QPointer<ConnectivitySettingsView> NetworkView::getConnectivitySettingsView()
107 {
108  return m_pConnectivitySettingsView;
109 }
DISP3DLIB::AbstractView::m_pData3DModel
QSharedPointer< DISP3DLIB::Data3DTreeModel > m_pData3DModel
Definition: abstractview.h:150
DISP3DLIB::NetworkView::~NetworkView
~NetworkView()
Definition: networkview.cpp:76
DISP3DLIB::AbstractView
Adapter which provides the abstract class for all adapter views.
Definition: abstractview.h:81
CONNECTIVITYLIB::Network
This class holds information about a network, can compute a distance table and provide network metric...
Definition: network.h:88
network.h
Network class declaration.
DISP3DLIB::NetworkView::addData
QList< NetworkTreeItem * > addData(const QString &sSubject, const QString &sMeasurementSetName, const QList< CONNECTIVITYLIB::Network > &tNetworkData)
Definition: networkview.cpp:82
DISPLIB::ConnectivitySettingsView
The ConnectivitySettingsView class provides a view to control settings for estiamting functional conn...
Definition: connectivitysettingsview.h:78
networkview.h
NetworkView class declaration.
DISP3DLIB::AbstractView::setQuickControlWidgets
void setQuickControlWidgets(const QList< QWidget * > &lControlWidgets)
Definition: abstractview.cpp:147
connectivitysettingsview.h
Declaration of the ConnectivitySettingsView Class.
DISP3DLIB::NetworkTreeItem
Provides a generic brain tree item to hold real time data.
Definition: networktreeitem.h:101
DISP3DLIB::NetworkView::NetworkView
NetworkView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
Definition: networkview.cpp:64