SpikeStream Application Library  0.2
spikestream::NetworkDisplay Class Reference

#include <NetworkDisplay.h>

List of all members.

Public Slots

void networkChanged ()

Signals

void networkDisplayChanged ()
void neuronGroupDisplayChanged ()
void visibleConnectionsChanged ()

Public Member Functions

 NetworkDisplay ()
 ~NetworkDisplay ()
void addDefaultColor (RGBColor *color)
void addHighlightNeurons (const QList< unsigned int > &neuronIDs, RGBColor *color)
void addHighlightNeurons (const QHash< unsigned int, RGBColor * > &colorMap)
void removeHighlightNeurons (const QList< unsigned int > &neuronIDs)
bool connectionGroupVisible (unsigned int connGrpID)
unsigned int getConnectionMode ()
unsigned getConnectionQuality ()
unsigned getConnectionThinningThreshold ()
QHash< unsigned int, RGBColor * > & getNeuronColorMap ()
RGBColor * getDefaultNeuronColor ()
RGBColor * getDefaultNeuronColorFullRender ()
RGBColor * getArchiveFiringNeuronColor ()
RGBColor * getSimulationFiringNeuronColor ()
RGBColor * getHighlightNeuronColor ()
float getMinimumConnectionRadius ()
RGBColor & getSingleNeuronColor ()
RGBColor & getToNeuronColor ()
RGBColor * getNegativeConnectionColor ()
float getNeuronTransparency ()
RGBColor * getPositiveConnectionColor ()
unsigned getSphereQuality ()
float getSphereRadius ()
float getVertexSize ()
QList< unsigned int > getVisibleConnectionGroupIDs ()
QList< Connection * > & getVisibleConnectionsList ()
QList< unsigned int > getVisibleNeuronGroupIDs ()
float getWeightRadiusFactor ()
unsigned getWeightRenderMode ()
unsigned int getZoomNeuronGroupID ()
int getZoomStatus ()
bool isFullRenderMode ()
bool isDrawAxes ()
bool isZoomEnabled ()
void loadDisplaySettings (ConfigLoader *configLoader)
void lockMutex ()
bool neuronGroupVisible (unsigned int neurGrpID)
void disableWeightRender ()
void renderTempWeights ()
void renderCurrentWeights ()
void setConnectionModeFlag (unsigned int flag)
void unsetConnectionModeFlag (unsigned int flag)
void setConnectionGroupVisibility (unsigned int conGrpID, bool visible)
void setDefaultNeuronColor (RGBColor &color)
void setFullRenderMode (bool fullRenderMode)
void setNeuronColorMap (QHash< unsigned int, RGBColor * > *newMap)
void setNeuronGroupVisibility (unsigned int neurGrpID, bool visible)
void setNeuronTransparency (float neuronTransparency)
void setVisibleConnectionGroupIDs (const QList< unsigned int > &connGrpIDs, bool emitDisplayChangedSignal=true)
void setVisibleNeuronGroupIDs (const QList< unsigned int > &neurGrpIDs, bool emitDisplayChangedSignal=true)
void setZoom (unsigned int neurGrpID, int status)
void unlockMutex ()
unsigned int getSingleNeuronID ()
unsigned int getToNeuronID ()
void setSelectedNeuronID (unsigned int id, bool ctrlBtnDown=false)
void clearWeightFiltering ()
void showNegativeConnections ()
void showPositiveConnections ()
void clearDirectionFiltering ()
void showFromConnections ()
void showToConnections ()

Static Public Attributes

static const int NO_ZOOM = 0
static const int ZOOM_SIDE = 1
static const int ZOOM_ABOVE = 2

Detailed Description

Holds display information about the current network in global scope, including which neuron and connection groups are displayed, colours etc.

Definition at line 19 of file NetworkDisplay.h.


Constructor & Destructor Documentation

Constructor

Definition at line 11 of file NetworkDisplay.cpp.

Destructor

Definition at line 64 of file NetworkDisplay.cpp.


Member Function Documentation

void NetworkDisplay::addDefaultColor ( RGBColor *  color)

Adds a default colour, which will not be erased when the colour map is cleared. The invoking class is responsible for deleting this colour.

Definition at line 116 of file NetworkDisplay.cpp.

void NetworkDisplay::addHighlightNeurons ( const QList< unsigned int > &  neuronIDs,
RGBColor *  color 
)

Adds highlight neurons. If the color is already set it is deleted and replaced with the new color.

Definition at line 125 of file NetworkDisplay.cpp.

void NetworkDisplay::addHighlightNeurons ( const QHash< unsigned int, RGBColor * > &  colorMap)

Adds highlight neurons. If the color is already set it is deleted and replaced with the new color.

Definition at line 151 of file NetworkDisplay.cpp.

Sets the display to show both positive and negative connections

Definition at line 478 of file NetworkDisplay.cpp.

Sets display to show both positive and negative weights

Definition at line 454 of file NetworkDisplay.cpp.

bool NetworkDisplay::connectionGroupVisible ( unsigned int  conGrpID)

Returns true if the specified connection group is currently visible

Definition at line 204 of file NetworkDisplay.cpp.

Weights are rendered as lines, not polygons

Definition at line 486 of file NetworkDisplay.cpp.

Definition at line 36 of file NetworkDisplay.h.

Definition at line 30 of file NetworkDisplay.h.

Definition at line 31 of file NetworkDisplay.h.

Returns the connection thinning threshold. Connection groups above this threshold will be thinned out at random to improve render times. The value returned depends on the render mode.

Definition at line 178 of file NetworkDisplay.cpp.

Definition at line 34 of file NetworkDisplay.h.

Definition at line 35 of file NetworkDisplay.h.

Definition at line 38 of file NetworkDisplay.h.

Definition at line 39 of file NetworkDisplay.h.

Definition at line 42 of file NetworkDisplay.h.

QHash<unsigned int, RGBColor*>& spikestream::NetworkDisplay::getNeuronColorMap ( ) [inline]

Definition at line 33 of file NetworkDisplay.h.

Definition at line 43 of file NetworkDisplay.h.

Definition at line 44 of file NetworkDisplay.h.

Definition at line 37 of file NetworkDisplay.h.

Definition at line 40 of file NetworkDisplay.h.

Definition at line 77 of file NetworkDisplay.h.

Definition at line 45 of file NetworkDisplay.h.

Definition at line 46 of file NetworkDisplay.h.

Definition at line 41 of file NetworkDisplay.h.

unsigned int spikestream::NetworkDisplay::getToNeuronID ( ) [inline]

Definition at line 78 of file NetworkDisplay.h.

Definition at line 47 of file NetworkDisplay.h.

Definition at line 48 of file NetworkDisplay.h.

Definition at line 49 of file NetworkDisplay.h.

Definition at line 50 of file NetworkDisplay.h.

Definition at line 51 of file NetworkDisplay.h.

Definition at line 52 of file NetworkDisplay.h.

Definition at line 53 of file NetworkDisplay.h.

Definition at line 54 of file NetworkDisplay.h.

Definition at line 56 of file NetworkDisplay.h.

Definition at line 55 of file NetworkDisplay.h.

Returns true if a specified zoom setting has been applied

Definition at line 354 of file NetworkDisplay.cpp.

void NetworkDisplay::loadDisplaySettings ( ConfigLoader *  configLoader)

Loads the network display settings from the configuration file. Throws an exception if the parameters are not present in the file.

Definition at line 221 of file NetworkDisplay.cpp.

Locks the mutex associated with this class

Definition at line 237 of file NetworkDisplay.cpp.

Resets the state of the display.

Definition at line 73 of file NetworkDisplay.cpp.

bool NetworkDisplay::neuronGroupVisible ( unsigned int  neurGrpID)

Returns true if the specified neuron group is currently visible

Definition at line 212 of file NetworkDisplay.cpp.

void NetworkDisplay::removeHighlightNeurons ( const QList< unsigned int > &  neuronIDs)

Removes highlight neurons

Definition at line 186 of file NetworkDisplay.cpp.

Renders the current values of weights in the database using polygons.

Definition at line 504 of file NetworkDisplay.cpp.

Renders the temporary values of weights in the database using polygons.

Definition at line 494 of file NetworkDisplay.cpp.

void NetworkDisplay::setConnectionGroupVisibility ( unsigned int  conGrpID,
bool  visible 
)

Sets the visibility of the specified connection group

Definition at line 243 of file NetworkDisplay.cpp.

void NetworkDisplay::setConnectionModeFlag ( unsigned int  flag)

Sets the type of connection display - single neuron, from/to, between etc.

Definition at line 339 of file NetworkDisplay.cpp.

void spikestream::NetworkDisplay::setDefaultNeuronColor ( RGBColor &  color) [inline]

Definition at line 67 of file NetworkDisplay.h.

void NetworkDisplay::setFullRenderMode ( bool  fullRenderMode)

Sets the render mode of the 3D display

Definition at line 257 of file NetworkDisplay.cpp.

void NetworkDisplay::setNeuronColorMap ( QHash< unsigned int, RGBColor * > *  newMap)

Sets the map containing specified neuron colours

Definition at line 265 of file NetworkDisplay.cpp.

void NetworkDisplay::setNeuronGroupVisibility ( unsigned int  neurGrpID,
bool  visible 
)

Sets the visibility of the specified neuron group

Definition at line 282 of file NetworkDisplay.cpp.

void NetworkDisplay::setNeuronTransparency ( float  neuronTransparency)

Sets the transparency of the neurons

Definition at line 295 of file NetworkDisplay.cpp.

void NetworkDisplay::setSelectedNeuronID ( unsigned int  id,
bool  ctrlBtnDown = false 
)

Called when the user double clicks on a neuron

Definition at line 376 of file NetworkDisplay.cpp.

void NetworkDisplay::setVisibleConnectionGroupIDs ( const QList< unsigned int > &  connGrpIDs,
bool  emitDisplayChangedSignal = true 
)

Sets the list of connection groups that are displayed

Definition at line 302 of file NetworkDisplay.cpp.

void NetworkDisplay::setVisibleNeuronGroupIDs ( const QList< unsigned int > &  neurGrpIDs,
bool  emitDisplayChangedSignal = true 
)

Sets the list of neuron groups that are displayed

Definition at line 318 of file NetworkDisplay.cpp.

void NetworkDisplay::setZoom ( unsigned int  neurGrpID,
int  status 
)

Sets the zoom of the 3D network viewer and emits a signal if the zoom settings have changed

Definition at line 363 of file NetworkDisplay.cpp.

Sets display to only show from connections

Definition at line 462 of file NetworkDisplay.cpp.

Sets display to only show negative connections

Definition at line 446 of file NetworkDisplay.cpp.

Sets display to only show positive connections

Definition at line 438 of file NetworkDisplay.cpp.

Sets display to only show to connections

Definition at line 470 of file NetworkDisplay.cpp.

Unlocks the mutex associated with this class.

Definition at line 333 of file NetworkDisplay.cpp.

void NetworkDisplay::unsetConnectionModeFlag ( unsigned int  flag)

Clears the type of connection display

Definition at line 346 of file NetworkDisplay.cpp.


Member Data Documentation

const int spikestream::NetworkDisplay::NO_ZOOM = 0 [static]

Zoom disabled

Definition at line 92 of file NetworkDisplay.h.

Zoom to top of neuron group

Definition at line 98 of file NetworkDisplay.h.

Zoom to side of network or neuron group

Definition at line 95 of file NetworkDisplay.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines