SpikeStream Application Library
0.2
|
#include <NeuronGroupModel.h>
Public Member Functions | |
NeuronGroupModel () | |
~NeuronGroupModel () | |
void | clearSelection () |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
NeuronGroupInfo | getInfo (const QModelIndex &index) const |
QHash< QString, double > | getParameters (int row) |
QList< unsigned int > | getSelectedNeuronGroupIDs () |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
void | reload () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | selectAllOrNone () |
void | showAllOrNone () |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Friends | |
class | NeuronGroupTableView |
Used for the display of information about a neuron group. Based on the NeuronGroup table in the SpikeStream database.
Definition at line 16 of file NeuronGroupModel.h.
Constructor
Definition at line 13 of file NeuronGroupModel.cpp.
Destructor
Definition at line 20 of file NeuronGroupModel.cpp.
void NeuronGroupModel::clearSelection | ( | ) |
Clears the list of selected neuron groups
Definition at line 29 of file NeuronGroupModel.cpp.
int NeuronGroupModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of columns in the model
Definition at line 35 of file NeuronGroupModel.cpp.
QVariant NeuronGroupModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the data at the specified model index ready to be displayed in the way requested
Definition at line 42 of file NeuronGroupModel.cpp.
NeuronGroupInfo NeuronGroupModel::getInfo | ( | const QModelIndex & | index | ) | const |
Returns the neuron group info associated with the specified index. Throws an exception if the index cannot be found.
Definition at line 111 of file NeuronGroupModel.cpp.
QHash< QString, double > NeuronGroupModel::getParameters | ( | int | row | ) |
Returns the parameters associated with a neuron group
Definition at line 119 of file NeuronGroupModel.cpp.
QList< unsigned int > NeuronGroupModel::getSelectedNeuronGroupIDs | ( | ) |
Returns the IDs of the selected neuron groups
Definition at line 127 of file NeuronGroupModel.cpp.
QVariant NeuronGroupModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the header data
Definition at line 240 of file NeuronGroupModel.cpp.
void NeuronGroupModel::reload | ( | ) |
Reloads the list of neuron groups
Definition at line 143 of file NeuronGroupModel.cpp.
int NeuronGroupModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of rows in the model.
Definition at line 265 of file NeuronGroupModel.cpp.
void NeuronGroupModel::selectAllOrNone | ( | ) |
Selects all or none of the connection groups
Definition at line 149 of file NeuronGroupModel.cpp.
bool NeuronGroupModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Inherited from QAbstractTableModel.
Definition at line 183 of file NeuronGroupModel.cpp.
void NeuronGroupModel::showAllOrNone | ( | ) |
Shows all or none of the neuron groups
Definition at line 166 of file NeuronGroupModel.cpp.
friend class NeuronGroupTableView [friend] |
Definition at line 35 of file NeuronGroupModel.h.