Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

NetworkViewerProperties Class Reference

#include <NetworkViewerProperties.h>

List of all members.

Public Member Functions

 NetworkViewerProperties (QWidget *parent, NetworkViewer *, DBInterface *)
void reloadConnectionDetails ()
void reloadConnections ()
void reloadNeuronGroups ()
void setFirstSingleNeuronNumber (unsigned int singleNeuronNumber)
void setRenderProgressLabel (const QString labelText)
void setSecondSingleNeuronNumber (unsigned int singleNeuronNumber)
 ~NetworkViewerProperties ()

Private Slots

void cancelRenderProgress ()
void connCheckBoxChanged ()
void filterCombosChanged (int)
void firstNeuronComboChanged (int)
void highlightButtonPressed ()
void renderDelayChanged (int)
void renderStateChanged ()
void secondNeuronComboChanged (int)
void showConnectionDetailsChanged ()
void showConnectionsChanged ()
void sortRows (int)

Private Member Functions

void loadConnectionDetails ()
void loadLayerNames (QComboBox *)
 NetworkViewerProperties (const NetworkViewerProperties &)
NetworkViewerProperties operator= (const NetworkViewerProperties &)

Private Attributes

QRadioButton * allConnRadioButt
QLabel * andLabel
bool betweenMode
QCheckBox * connectionDetailsCheckBox
QTable * connectionDetailsTable
QCheckBox * connectionsCheckBox
QRadioButton * connsSingleNeurRadioButt
DBInterface * dbInterface
unsigned int firstSingleNeuronNumber
QCheckBox * fullRenderCheckBox
QPushButton * highlightButton
HighlightDialoghighlightDialog
QLabel * inLabel_1
QLabel * inLabel_2
NetworkViewernetworkViewer
QComboBox * neurConnsFilterCombo
QComboBox * neurConnsFromToCombo
QLabel * neurConnsLabel
QComboBox * neurConnsNeurGrpCombo_1
QComboBox * neurConnsNeurGrpCombo_2
QLabel * neurTotalConnsLabel
QProgressBar * progressBar
QPushButton * renderCancelButton
QComboBox * renderDelayCombo
QLabel * renderDelayLabel
QLabel * renderProgressLabel
unsigned int secondSingleNeuronNumber
bool showFromConns
bool showToConns
QLabel * singleNeurNumLabel_1
QLabel * singleNeurNumLabel_2


Detailed Description

GUI used to control the NetworkViewer 3D neuron display.

Definition at line 47 of file NetworkViewerProperties.h.


Constructor & Destructor Documentation

NetworkViewerProperties::NetworkViewerProperties QWidget *  parent,
NetworkViewer nwViewer,
DBInterface *  dbInter
 

Constructor.

Definition at line 42 of file NetworkViewerProperties.cpp.

References allConnRadioButt, andLabel, betweenMode, cancelRenderProgress(), connCheckBoxChanged(), connectionDetailsCheckBox, connectionDetailsTable, connectionsCheckBox, connsSingleNeurRadioButt, dbInterface, filterCombosChanged(), firstNeuronComboChanged(), firstSingleNeuronNumber, fullRenderCheckBox, highlightButton, highlightButtonPressed(), highlightDialog, inLabel_1, inLabel_2, loadLayerNames(), networkViewer, neurConnsFilterCombo, neurConnsFromToCombo, neurConnsLabel, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, neurTotalConnsLabel, progressBar, renderCancelButton, renderDelayChanged(), renderDelayCombo, renderDelayLabel, renderProgressLabel, renderStateChanged(), secondNeuronComboChanged(), secondSingleNeuronNumber, NetworkViewer::setRenderProgressBar(), showConnectionDetailsChanged(), showConnectionsChanged(), showFromConns, showToConns, singleNeurNumLabel_1, singleNeurNumLabel_2, and sortRows().

NetworkViewerProperties::~NetworkViewerProperties  ) 
 

Destructor.

Definition at line 250 of file NetworkViewerProperties.cpp.

NetworkViewerProperties::NetworkViewerProperties const NetworkViewerProperties  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void NetworkViewerProperties::cancelRenderProgress  )  [private, slot]
 

Linked to the cancel render button and cancels the render.

Definition at line 358 of file NetworkViewerProperties.cpp.

References NetworkViewer::cancelRenderProgress(), and networkViewer.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::connCheckBoxChanged  )  [private, slot]
 

Called when the check box controlling whether connections are displayed is clicked Hides or shows the connections and their associated GUI components.

Definition at line 365 of file NetworkViewerProperties.cpp.

References allConnRadioButt, andLabel, betweenMode, connectionDetailsCheckBox, connectionDetailsTable, connectionsCheckBox, connsSingleNeurRadioButt, inLabel_1, inLabel_2, networkViewer, neurConnsFilterCombo, neurConnsFromToCombo, neurConnsLabel, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, neurTotalConnsLabel, NetworkViewer::showConnections(), singleNeurNumLabel_1, and singleNeurNumLabel_2.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::filterCombosChanged int   )  [private, slot]
 

Called when the filters controlling the connections to a single neuron are changed Sets the filters that are applied to the connections in singel neuron mode.

Definition at line 413 of file NetworkViewerProperties.cpp.

References andLabel, betweenMode, connectionDetailsCheckBox, inLabel_2, loadConnectionDetails(), networkViewer, neurConnsFilterCombo, neurConnsFromToCombo, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, NetworkViewer::setNeuronConnectionMode(), NetworkViewer::setNeuronFilterMode(), showFromConns, showToConns, and singleNeurNumLabel_2.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::firstNeuronComboChanged int   )  [private, slot]
 

Called when combo box controlling which layer is used for single neuron mode is activated.

Definition at line 507 of file NetworkViewerProperties.cpp.

References betweenMode, connsSingleNeurRadioButt, networkViewer, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, and NetworkViewer::setNeuronConnectionMode().

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::highlightButtonPressed  )  [private, slot]
 

Launches a dialog to add or remove the highlighting of neurons in the network.

Definition at line 522 of file NetworkViewerProperties.cpp.

References highlightDialog.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::loadConnectionDetails  )  [private]
 

Fills the table with details about a set of connecions to a neuron from the database.

Definition at line 664 of file NetworkViewerProperties.cpp.

References betweenMode, connectionDetailsTable, dbInterface, firstSingleNeuronNumber, NetworkViewer::getConnectionViewVector(), networkViewer, neurConnsFilterCombo, neurTotalConnsLabel, secondSingleNeuronNumber, showFromConns, and showToConns.

Referenced by filterCombosChanged(), reloadConnectionDetails(), reloadConnections(), reloadNeuronGroups(), setFirstSingleNeuronNumber(), setSecondSingleNeuronNumber(), and showConnectionDetailsChanged().

void NetworkViewerProperties::loadLayerNames QComboBox *  comboBox  )  [private]
 

Loads a list of layer names and IDs into a combo box Adapted from method in connection properties dialog.

Definition at line 763 of file NetworkViewerProperties.cpp.

References dbInterface.

Referenced by NetworkViewerProperties(), and reloadNeuronGroups().

NetworkViewerProperties NetworkViewerProperties::operator= const NetworkViewerProperties  )  [private]
 

Declare assignment private so it cannot be used inadvertently.

void NetworkViewerProperties::reloadConnectionDetails  ) 
 

Reloads details about the connections if they are visible.

Definition at line 262 of file NetworkViewerProperties.cpp.

References connectionDetailsCheckBox, and loadConnectionDetails().

Referenced by SpikeStreamMainWindow::reloadConnectionDetails().

void NetworkViewerProperties::reloadConnections  ) 
 

Updates the connection details table.

Definition at line 270 of file NetworkViewerProperties.cpp.

References connectionDetailsCheckBox, and loadConnectionDetails().

Referenced by SpikeStreamMainWindow::reloadConnections(), and SpikeStreamMainWindow::reloadEverything().

void NetworkViewerProperties::reloadNeuronGroups  ) 
 

Reloads the list of neuron group names and resets all information relevant to neuron groups.

Definition at line 278 of file NetworkViewerProperties.cpp.

References betweenMode, connectionDetailsCheckBox, connsSingleNeurRadioButt, loadConnectionDetails(), loadLayerNames(), networkViewer, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, and NetworkViewer::setNeuronConnectionMode().

Referenced by SpikeStreamMainWindow::reloadEverything(), and SpikeStreamMainWindow::reloadNeuronGroups().

void NetworkViewerProperties::renderDelayChanged int   )  [private, slot]
 

Controls the setting of the render delay.

Definition at line 528 of file NetworkViewerProperties.cpp.

References networkViewer, renderDelayCombo, and NetworkViewer::setRenderDelay().

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::renderStateChanged  )  [private, slot]
 

Controls full render mode Enables the relevant GUI components and sets network viewer into full render mode.

Definition at line 549 of file NetworkViewerProperties.cpp.

References fullRenderCheckBox, networkViewer, progressBar, renderCancelButton, renderDelayCombo, renderDelayLabel, renderProgressLabel, and NetworkViewer::setFullRenderMode().

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::secondNeuronComboChanged int   )  [private, slot]
 

Called when combo box controlling which layer is used for single neuron mode is activated. Identical to previous method, but keep separate for the moment.

Definition at line 571 of file NetworkViewerProperties.cpp.

References betweenMode, connsSingleNeurRadioButt, networkViewer, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, and NetworkViewer::setNeuronConnectionMode().

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::setFirstSingleNeuronNumber unsigned int  neuronNumber  ) 
 

Controls which single neuron is displayed in the connection details table.

Definition at line 321 of file NetworkViewerProperties.cpp.

References connectionDetailsCheckBox, firstSingleNeuronNumber, loadConnectionDetails(), neurConnsNeurGrpCombo_1, SpikeStreamMainWindow::setFromNeuronID(), singleNeurNumLabel_1, and SpikeStreamMainWindow::spikeStrMainWin.

void NetworkViewerProperties::setRenderProgressLabel const QString  labelText  ) 
 

Sets the label displaying which connection or neuron group is being rendered.

Definition at line 336 of file NetworkViewerProperties.cpp.

References renderProgressLabel.

void NetworkViewerProperties::setSecondSingleNeuronNumber unsigned int  neuronNumber  ) 
 

Controls which single neuron is displayed in the connection details table.

Definition at line 342 of file NetworkViewerProperties.cpp.

References connectionDetailsCheckBox, loadConnectionDetails(), secondSingleNeuronNumber, SpikeStreamMainWindow::setToNeuronID(), singleNeurNumLabel_2, and SpikeStreamMainWindow::spikeStrMainWin.

void NetworkViewerProperties::showConnectionDetailsChanged  )  [private, slot]
 

Shows or hides the table displaying the list of connections for a single neuron Single neuron number should be meaningful by this point.

Definition at line 587 of file NetworkViewerProperties.cpp.

References connectionDetailsCheckBox, connectionDetailsTable, loadConnectionDetails(), neurConnsLabel, and neurTotalConnsLabel.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::showConnectionsChanged  )  [private, slot]
 

Called in response to a change in the radio buttons controlling whether all connections are shown or just connections to a single neuron.

Definition at line 605 of file NetworkViewerProperties.cpp.

References allConnRadioButt, andLabel, betweenMode, connectionDetailsCheckBox, connectionDetailsTable, connsSingleNeurRadioButt, inLabel_1, inLabel_2, networkViewer, neurConnsFilterCombo, neurConnsFromToCombo, neurConnsLabel, neurConnsNeurGrpCombo_1, neurConnsNeurGrpCombo_2, neurTotalConnsLabel, NetworkViewer::setNeuronConnectionMode(), singleNeurNumLabel_1, and singleNeurNumLabel_2.

Referenced by NetworkViewerProperties().

void NetworkViewerProperties::sortRows int  col  )  [private, slot]
 

Sorts rows in response to a click on one of the column headers.

Definition at line 654 of file NetworkViewerProperties.cpp.

References connectionDetailsTable.

Referenced by NetworkViewerProperties().


Member Data Documentation

QRadioButton* NetworkViewerProperties::allConnRadioButt [private]
 

Definition at line 87 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), NetworkViewerProperties(), and showConnectionsChanged().

QLabel* NetworkViewerProperties::andLabel [private]
 

Definition at line 100 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), NetworkViewerProperties(), and showConnectionsChanged().

bool NetworkViewerProperties::betweenMode [private]
 

Controls the filtering of the connections.

Definition at line 117 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), firstNeuronComboChanged(), loadConnectionDetails(), NetworkViewerProperties(), reloadNeuronGroups(), secondNeuronComboChanged(), and showConnectionsChanged().

QCheckBox* NetworkViewerProperties::connectionDetailsCheckBox [private]
 

Definition at line 88 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), NetworkViewerProperties(), reloadConnectionDetails(), reloadConnections(), reloadNeuronGroups(), setFirstSingleNeuronNumber(), setSecondSingleNeuronNumber(), showConnectionDetailsChanged(), and showConnectionsChanged().

QTable* NetworkViewerProperties::connectionDetailsTable [private]
 

Definition at line 89 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), loadConnectionDetails(), NetworkViewerProperties(), showConnectionDetailsChanged(), showConnectionsChanged(), and sortRows().

QCheckBox* NetworkViewerProperties::connectionsCheckBox [private]
 

Definition at line 90 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), and NetworkViewerProperties().

QRadioButton* NetworkViewerProperties::connsSingleNeurRadioButt [private]
 

Definition at line 91 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), firstNeuronComboChanged(), NetworkViewerProperties(), reloadNeuronGroups(), secondNeuronComboChanged(), and showConnectionsChanged().

DBInterface* NetworkViewerProperties::dbInterface [private]
 

Reference to class handling database.

Definition at line 123 of file NetworkViewerProperties.h.

Referenced by loadConnectionDetails(), loadLayerNames(), and NetworkViewerProperties().

unsigned int NetworkViewerProperties::firstSingleNeuronNumber [private]
 

Holds the neuronID when the connections to a single neuron are being displayed.

Definition at line 105 of file NetworkViewerProperties.h.

Referenced by loadConnectionDetails(), NetworkViewerProperties(), and setFirstSingleNeuronNumber().

QCheckBox* NetworkViewerProperties::fullRenderCheckBox [private]
 

Definition at line 78 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), and renderStateChanged().

QPushButton* NetworkViewerProperties::highlightButton [private]
 

Definition at line 84 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties().

HighlightDialog* NetworkViewerProperties::highlightDialog [private]
 

Dialog to control the highlighting of the network

Definition at line 126 of file NetworkViewerProperties.h.

Referenced by highlightButtonPressed(), and NetworkViewerProperties().

QLabel* NetworkViewerProperties::inLabel_1 [private]
 

Definition at line 101 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), NetworkViewerProperties(), and showConnectionsChanged().

QLabel* NetworkViewerProperties::inLabel_2 [private]
 

Definition at line 102 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), NetworkViewerProperties(), and showConnectionsChanged().

NetworkViewer* NetworkViewerProperties::networkViewer [private]
 

Reference to NetworkViewer that this class controls.

Definition at line 120 of file NetworkViewerProperties.h.

Referenced by cancelRenderProgress(), connCheckBoxChanged(), filterCombosChanged(), firstNeuronComboChanged(), loadConnectionDetails(), NetworkViewerProperties(), reloadNeuronGroups(), renderDelayChanged(), renderStateChanged(), secondNeuronComboChanged(), and showConnectionsChanged().

QComboBox* NetworkViewerProperties::neurConnsFilterCombo [private]
 

Definition at line 92 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), loadConnectionDetails(), NetworkViewerProperties(), and showConnectionsChanged().

QComboBox* NetworkViewerProperties::neurConnsFromToCombo [private]
 

Definition at line 93 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), NetworkViewerProperties(), and showConnectionsChanged().

QLabel* NetworkViewerProperties::neurConnsLabel [private]
 

Definition at line 94 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), NetworkViewerProperties(), showConnectionDetailsChanged(), and showConnectionsChanged().

QComboBox* NetworkViewerProperties::neurConnsNeurGrpCombo_1 [private]
 

Definition at line 95 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), firstNeuronComboChanged(), NetworkViewerProperties(), reloadNeuronGroups(), secondNeuronComboChanged(), setFirstSingleNeuronNumber(), and showConnectionsChanged().

QComboBox* NetworkViewerProperties::neurConnsNeurGrpCombo_2 [private]
 

Definition at line 96 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), firstNeuronComboChanged(), NetworkViewerProperties(), reloadNeuronGroups(), secondNeuronComboChanged(), and showConnectionsChanged().

QLabel* NetworkViewerProperties::neurTotalConnsLabel [private]
 

Definition at line 97 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), loadConnectionDetails(), NetworkViewerProperties(), showConnectionDetailsChanged(), and showConnectionsChanged().

QProgressBar* NetworkViewerProperties::progressBar [private]
 

Definition at line 79 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), and renderStateChanged().

QPushButton* NetworkViewerProperties::renderCancelButton [private]
 

Definition at line 83 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), and renderStateChanged().

QComboBox* NetworkViewerProperties::renderDelayCombo [private]
 

Definition at line 80 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), renderDelayChanged(), and renderStateChanged().

QLabel* NetworkViewerProperties::renderDelayLabel [private]
 

Definition at line 81 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), and renderStateChanged().

QLabel* NetworkViewerProperties::renderProgressLabel [private]
 

Definition at line 82 of file NetworkViewerProperties.h.

Referenced by NetworkViewerProperties(), renderStateChanged(), and setRenderProgressLabel().

unsigned int NetworkViewerProperties::secondSingleNeuronNumber [private]
 

Holds the neuronID when the connections to a single neuron are being displayed.

Definition at line 108 of file NetworkViewerProperties.h.

Referenced by loadConnectionDetails(), NetworkViewerProperties(), and setSecondSingleNeuronNumber().

bool NetworkViewerProperties::showFromConns [private]
 

Controls the filtering of the connections.

Definition at line 111 of file NetworkViewerProperties.h.

Referenced by filterCombosChanged(), loadConnectionDetails(), and NetworkViewerProperties().

bool NetworkViewerProperties::showToConns [private]
 

Controls the filtering of the connections.

Definition at line 114 of file NetworkViewerProperties.h.

Referenced by filterCombosChanged(), loadConnectionDetails(), and NetworkViewerProperties().

QLabel* NetworkViewerProperties::singleNeurNumLabel_1 [private]
 

Definition at line 98 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), NetworkViewerProperties(), setFirstSingleNeuronNumber(), and showConnectionsChanged().

QLabel* NetworkViewerProperties::singleNeurNumLabel_2 [private]
 

Definition at line 99 of file NetworkViewerProperties.h.

Referenced by connCheckBoxChanged(), filterCombosChanged(), NetworkViewerProperties(), setSecondSingleNeuronNumber(), and showConnectionsChanged().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:29:05 2007 for SpikeStream Application by  doxygen 1.4.4