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

MonitorWindow Class Reference

#include <MonitorWindow.h>

List of all members.

Public Member Functions

unsigned int getNeuronGrpID ()
 MonitorWindow (QWidget *parent)
 MonitorWindow (SimulationManager *, QWidget *parent)
void setMonitorType (bool monitorNeurons)
void setNeuronGrpID (unsigned int)
 ~MonitorWindow ()

Protected Member Functions

void moveEvent (QMoveEvent *)
void resizeEvent (QResizeEvent *)

Private Slots

void windowPlaceChanged (QDockWindow::Place p)
void windowVisibilityChanged (bool)

Private Member Functions

 MonitorWindow (const MonitorWindow &)
MonitorWindow operator= (const MonitorWindow &)

Private Attributes

bool finishedUndockingWindow
bool monitorNeurons
unsigned int neuronGrpID
bool oldVisibility
SimulationManagersimulationManager
bool simulationMode
int windowHeight
int windowWidth
int xPos
int yPos

Static Private Attributes

static const int minimumHeight = 100


Detailed Description

Displays the activity of a neuron group for both live simulation monitoring and the playback of archived neuron and spike patterns.

Definition at line 40 of file MonitorWindow.h.


Constructor & Destructor Documentation

MonitorWindow::MonitorWindow SimulationManager simMan,
QWidget *  parent
 

Constructor for monitoring of simulation.

Definition at line 39 of file MonitorWindow.cpp.

References finishedUndockingWindow, monitorNeurons, oldVisibility, simulationManager, simulationMode, windowHeight, windowPlaceChanged(), windowVisibilityChanged(), windowWidth, xPos, and yPos.

MonitorWindow::MonitorWindow QWidget *  parent  ) 
 

This constructor is used for playing back an archive.

Definition at line 73 of file MonitorWindow.cpp.

References finishedUndockingWindow, simulationMode, windowHeight, windowPlaceChanged(), and windowWidth.

MonitorWindow::~MonitorWindow  ) 
 

Destructor.

Definition at line 92 of file MonitorWindow.cpp.

MonitorWindow::MonitorWindow const MonitorWindow  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

unsigned int MonitorWindow::getNeuronGrpID  ) 
 

Accessor method for the ID of the neuron group id being monitored by this class.

Definition at line 105 of file MonitorWindow.cpp.

References neuronGrpID.

Referenced by MonitorArea::showMonitorWindow().

void MonitorWindow::moveEvent QMoveEvent *   )  [protected]
 

Stores the location that it is moved to so that it can be moved to this location when it is next undocked.

Definition at line 138 of file MonitorWindow.cpp.

References finishedUndockingWindow, xPos, and yPos.

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

Declare assignment private so it cannot be used inadvertently.

void MonitorWindow::resizeEvent QResizeEvent *   )  [protected]
 

Stores the size that it is resized to so that it can be resized correctly when it is next undocked.

Definition at line 150 of file MonitorWindow.cpp.

References finishedUndockingWindow, windowHeight, and windowWidth.

void MonitorWindow::setMonitorType bool  monNeurs  ) 
 

Sets whether this class is monitoring spikes from a neuron group or neuron firing patterns.

Definition at line 112 of file MonitorWindow.cpp.

References SimulationManager::monitorNeuronGroup(), monitorNeurons, neuronGrpID, simulationManager, and SimulationManager::stopMonitoringNeuronGroup().

Referenced by MonitorArea::showAllMonitorWindows(), and MonitorArea::showMonitorWindow().

void MonitorWindow::setNeuronGrpID unsigned int  neurGrpID  ) 
 

Sets the neuron group id for this window.

Definition at line 127 of file MonitorWindow.cpp.

References neuronGrpID.

Referenced by MonitorArea::addMonitorWindow().

void MonitorWindow::windowPlaceChanged QDockWindow::Place  place  )  [private, slot]
 

Called when the window's place changes and moves and resizes the window based on stored values. Otherwise default values are used for the window.

Definition at line 168 of file MonitorWindow.cpp.

References finishedUndockingWindow, windowHeight, windowWidth, xPos, and yPos.

Referenced by MonitorWindow().

void MonitorWindow::windowVisibilityChanged bool  newVisibility  )  [private, slot]
 

Controls whether the simulation manager requests spike information for this neuron group.

Definition at line 185 of file MonitorWindow.cpp.

References SimulationManager::monitorNeuronGroup(), monitorNeurons, neuronGrpID, oldVisibility, simulationManager, simulationMode, and SimulationManager::stopMonitoringNeuronGroup().

Referenced by MonitorWindow().


Member Data Documentation

bool MonitorWindow::finishedUndockingWindow [private]
 

Records when the process of undocking the window is complete

Definition at line 104 of file MonitorWindow.h.

Referenced by MonitorWindow(), moveEvent(), resizeEvent(), and windowPlaceChanged().

const int MonitorWindow::minimumHeight = 100 [static, private]
 

Set miniumum height of window to allow space for the time update above the neural networks.

Definition at line 101 of file MonitorWindow.h.

bool MonitorWindow::monitorNeurons [private]
 

Records whether this window is monitoring the neuron patterns or the spike patterns from the neuron group. The spike patterns will be spread out in time because of the delay

Definition at line 83 of file MonitorWindow.h.

Referenced by MonitorWindow(), setMonitorType(), and windowVisibilityChanged().

unsigned int MonitorWindow::neuronGrpID [private]
 

Store neuron group ID. Needed so that simulation widget can show or hide windows monitoring particular neuron groups.

Definition at line 78 of file MonitorWindow.h.

Referenced by getNeuronGrpID(), setMonitorType(), setNeuronGrpID(), and windowVisibilityChanged().

bool MonitorWindow::oldVisibility [private]
 

Records previous visiblity status This prevents constant requests to simulation manager to cancel messages when none are being sent.

Definition at line 109 of file MonitorWindow.h.

Referenced by MonitorWindow(), and windowVisibilityChanged().

SimulationManager* MonitorWindow::simulationManager [private]
 

Use simulation manager reference to stop or start monitoring of a neuron group when corresponding qdockwindow is made visible

Definition at line 69 of file MonitorWindow.h.

Referenced by MonitorWindow(), setMonitorType(), and windowVisibilityChanged().

bool MonitorWindow::simulationMode [private]
 

Records whether this window is being used for live monitoring or playing back a simulation

Definition at line 73 of file MonitorWindow.h.

Referenced by MonitorWindow(), and windowVisibilityChanged().

int MonitorWindow::windowHeight [private]
 

Store window height to save effort resizing window after undocking.

Definition at line 89 of file MonitorWindow.h.

Referenced by MonitorWindow(), resizeEvent(), and windowPlaceChanged().

int MonitorWindow::windowWidth [private]
 

Store window width to save effort resizing window after undocking.

Definition at line 86 of file MonitorWindow.h.

Referenced by MonitorWindow(), resizeEvent(), and windowPlaceChanged().

int MonitorWindow::xPos [private]
 

Store the location of the window so that it can be moved back to this location when the window is undocked.

Definition at line 93 of file MonitorWindow.h.

Referenced by MonitorWindow(), moveEvent(), and windowPlaceChanged().

int MonitorWindow::yPos [private]
 

Store the location of the window so that it can be moved back to this location when the window is undocked.

Definition at line 97 of file MonitorWindow.h.

Referenced by MonitorWindow(), moveEvent(), and windowPlaceChanged().


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