CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisObjects.NetworkCenter Class Reference

Represents the center of a network. It handles the enlarging when it is pressed. More...

Inheritance diagram for CellexalVR.AnalysisObjects.NetworkCenter:

Public Types

enum  Layout { TWO_D, THREE_D }
 

Public Member Functions

void ToggleNodeColliders (bool b, string exception)
 Used to disable colliders of nodes to avoid the controller being inside many nodes at the same time. More...
 
void AddNode (NetworkNode newNode)
 Adds a node to this network. More...
 
void CalculateLayout (Layout layout)
 Calcualte a new layout. More...
 
void SwitchLayout (Layout layout)
 Switches the layout of the network. More...
 
void EnlargeNetwork ()
 Called when the controller is inside the network and the trigger is pressed. Enlarges the network and seperates it from the skeleton and makes it movable by the user. More...
 
Coroutine BringBackOriginal ()
 If this network is enlarged, bring it back to the convex hull, if it is a replacement, destroy it and bring back the original More...
 
void SetArcsVisible (bool toggleToState)
 Shows or hides all normal arcs connected to this network. More...
 
void SetArcsVisible (bool toggleToState, NetworkCenter otherCenter)
 Shows or hides all arcs that go from this NetworkCenter to another NetworkCenter. More...
 
void SetCombinedArcsVisible (bool toggleToState)
 Shows or hides all combined arcs connected to this network. More...
 
int CreateCombinedArcs ()
 Creates combined arcs. A combined arc is a colored line that represents the number of normal arcs that go from this network to another. More...
 
void SaveNetworkAsTextFile ()
 Saves this network as a text file More...
 
void SaveNetworkAsImage ()
 Saves this network as an .png image More...
 
void HighLightGene (string geneName, bool highlight=true)
 Highlights a gene in this network with a red circle. More...
 
void HighlightNode (string name, bool highlight)
 Highlights or resets highlighting of a node in this NetworkCenter. More...
 

Public Attributes

GameObject replacementPrefab
 
GameObject edgePrefab
 
GameObject arcDescriptionPrefab
 
GameObject simpleArcDescriptionPrefab
 
List< Color > combinedArcsColors
 
BoxCollider ringCollider
 
ReferenceManager referenceManager
 
SaveNetworkAsImageButton saveImageButton
 
GameObject movingOutlineCircle
 
Cell[] cellsInGroup
 
bool isReplacement = false
 
bool controllerInsideSomeNode
 
NetworkCenter replacing
 

Properties

NetworkHandler Handler [get, set]
 
int Group [get, set]
 
float MaxNegPcor [get, set]
 
float MinNegPcor [get, set]
 
float MaxPosPcor [get, set]
 
float MinPosPcor [get, set]
 
int LayoutSeed [get, set]
 
bool Enlarged [get]
 

Detailed Description

Represents the center of a network. It handles the enlarging when it is pressed.

Member Function Documentation

◆ AddNode()

void CellexalVR.AnalysisObjects.NetworkCenter.AddNode ( NetworkNode  newNode)

Adds a node to this network.

Parameters
newNodeThe node to add.

◆ BringBackOriginal()

Coroutine CellexalVR.AnalysisObjects.NetworkCenter.BringBackOriginal ( )

If this network is enlarged, bring it back to the convex hull, if it is a replacement, destroy it and bring back the original

◆ CalculateLayout()

void CellexalVR.AnalysisObjects.NetworkCenter.CalculateLayout ( Layout  layout)

Calcualte a new layout.

Parameters
layoutThe desired type of layout.

◆ CreateCombinedArcs()

int CellexalVR.AnalysisObjects.NetworkCenter.CreateCombinedArcs ( )

Creates combined arcs. A combined arc is a colored line that represents the number of normal arcs that go from this network to another.

Returns
The maximum number of arcs that were combined to one.

◆ EnlargeNetwork()

void CellexalVR.AnalysisObjects.NetworkCenter.EnlargeNetwork ( )

Called when the controller is inside the network and the trigger is pressed. Enlarges the network and seperates it from the skeleton and makes it movable by the user.

◆ HighLightGene()

void CellexalVR.AnalysisObjects.NetworkCenter.HighLightGene ( string  geneName,
bool  highlight = true 
)

Highlights a gene in this network with a red circle.

Parameters
geneNameThe gene to highlight.

◆ HighlightNode()

void CellexalVR.AnalysisObjects.NetworkCenter.HighlightNode ( string  name,
bool  highlight 
)

Highlights or resets highlighting of a node in this NetworkCenter.

Parameters
nameThe name of the node to highlight.
highlightTrue if the node should be highlighted, false to reset highlighting.

◆ SaveNetworkAsImage()

void CellexalVR.AnalysisObjects.NetworkCenter.SaveNetworkAsImage ( )

Saves this network as an .png image

◆ SaveNetworkAsTextFile()

void CellexalVR.AnalysisObjects.NetworkCenter.SaveNetworkAsTextFile ( )

Saves this network as a text file

◆ SetArcsVisible() [1/2]

void CellexalVR.AnalysisObjects.NetworkCenter.SetArcsVisible ( bool  toggleToState)

Shows or hides all normal arcs connected to this network.

Parameters
toggleToStateThe state to toggle to, true for visible false for invisible.

◆ SetArcsVisible() [2/2]

void CellexalVR.AnalysisObjects.NetworkCenter.SetArcsVisible ( bool  toggleToState,
NetworkCenter  otherCenter 
)

Shows or hides all arcs that go from this NetworkCenter to another NetworkCenter.

Parameters
toggleToStateTrue if arcs should be visible, false if they should be invisible.
otherCenterThe other NetworkCenter that arcs connect to.

◆ SetCombinedArcsVisible()

void CellexalVR.AnalysisObjects.NetworkCenter.SetCombinedArcsVisible ( bool  toggleToState)

Shows or hides all combined arcs connected to this network.

Parameters
toggleToStateThe state to toggle to, true for visible false for invisible.

◆ SwitchLayout()

void CellexalVR.AnalysisObjects.NetworkCenter.SwitchLayout ( Layout  layout)

Switches the layout of the network.

Parameters
layoutThe layout to switch to.

◆ ToggleNodeColliders()

void CellexalVR.AnalysisObjects.NetworkCenter.ToggleNodeColliders ( bool  b,
string  exception 
)

Used to disable colliders of nodes to avoid the controller being inside many nodes at the same time.

Parameters
bToggle on/off
exceptionThe first node that the controller entered should be the only one to stay active.

The documentation for this class was generated from the following file: