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

This class handles the coloring of the color texture maps of point clouds in the scene. Each point cloud has a reference to a color map where each pixel in the texture is linked to a point. This is handled via the visual effects graph. More...

Inheritance diagram for CellexalVR.AnalysisLogic.TextureHandler:

Public Member Functions

void AddPointsToSelection (List< Vector2Int > indGroupTuple, bool select=false)
 Adds a point to the selection. Updates the corresponding pixel in the texture and adds the points label to a dictionairy for later reference. More...
 
void ColorCluster (string cluster, bool toggle)
 Color a cluster by updating the color texture map. More...
 
void MakeAllPointsTransparent (bool toggle)
 By updating the alpha texture map it toggles the transparency of the points of all point clouds in the scene. More...
 
void ColorAllClusters (bool toggle)
 Colors the points clouds by cluster information. More...
 
void ColorByExpression (ArrayList expressions)
 Color by gene (or other numerical value). More...
 
void ResetTexture ()
 Reset to standard color map texture which sets all the points to white. More...
 

Public Attributes

Dictionary< int, int > sps
 
List< Texture2D > colorTextureMaps = new List<Texture2D>()
 
List< Texture2D > mainColorTextureMaps = new List<Texture2D>()
 
List< Texture2D > alphaTextureMaps = new List<Texture2D>()
 
List< Texture2D > clusterTextureMaps = new List<Texture2D>()
 
Dictionary< string, Vector2Int > textureCoordDict = new Dictionary<string, Vector2Int>()
 

Static Public Attributes

static TextureHandler instance
 

Protected Member Functions

override void OnCreate ()
 
override void OnUpdate ()
 

Detailed Description

This class handles the coloring of the color texture maps of point clouds in the scene. Each point cloud has a reference to a color map where each pixel in the texture is linked to a point. This is handled via the visual effects graph.

Member Function Documentation

◆ AddPointsToSelection()

void CellexalVR.AnalysisLogic.TextureHandler.AddPointsToSelection ( List< Vector2Int >  indGroupTuple,
bool  select = false 
)

Adds a point to the selection. Updates the corresponding pixel in the texture and adds the points label to a dictionairy for later reference.

Parameters
indGroupTuple
select

◆ ColorAllClusters()

void CellexalVR.AnalysisLogic.TextureHandler.ColorAllClusters ( bool  toggle)

Colors the points clouds by cluster information.

Parameters
toggle

◆ ColorByExpression()

void CellexalVR.AnalysisLogic.TextureHandler.ColorByExpression ( ArrayList  expressions)

Color by gene (or other numerical value).

Parameters
expressions

◆ ColorCluster()

void CellexalVR.AnalysisLogic.TextureHandler.ColorCluster ( string  cluster,
bool  toggle 
)

Color a cluster by updating the color texture map.

Parameters
cluster
toggle

◆ MakeAllPointsTransparent()

void CellexalVR.AnalysisLogic.TextureHandler.MakeAllPointsTransparent ( bool  toggle)

By updating the alpha texture map it toggles the transparency of the points of all point clouds in the scene.

Parameters
toggle

◆ ResetTexture()

void CellexalVR.AnalysisLogic.TextureHandler.ResetTexture ( )

Reset to standard color map texture which sets all the points to white.


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