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

Class that represents a hisology image for spatial data. Image coordinates are linked to graph points. More...

Inheritance diagram for CellexalVR.Spatial.HistoImage:

Public Member Functions

void Initialize ()
 Initialize by setting texture coordinates and linking to graph points. More...
 
void UpdateColorTexture ()
 Similar to how a graph slice updates to its parent points cloud a histology image is seen as a subset of all the data and images loaded. This method makes sure the color of the points are in synch with the color texture map of the entire dataset. More...
 
void CropToTissue ()
 Crops outside parts of texture that does not have tissue on it. More...
 
void ScaleCoordinates ()
 Helper function to scale all point coordinates. More...
 
Vector3 ScaleCoordinate (Vector3 coord)
 Helper function to scale a coordinate. More...
 
void AddGraphPoint (int x, int y)
 Add graph point and update the min max coordinates later used for scaling the graph. More...
 

Public Attributes

Texture2D texture
 
string file
 
LineRenderer[] lines = new LineRenderer[4]
 
Vector3 maxValues
 
Vector3 minValues
 
Vector3 scaledMaxValues
 
Vector3 scaledMinValues
 
Vector3 texMaxValues
 
Vector3 texMinValues
 
Dictionary< string, Vector2Int > textureCoords = new Dictionary<string, Vector2Int>()
 
float longestAxis
 
Vector3 scaledOffset
 
int sliceNr
 
GameObject image
 
VisualEffect visualEffect
 

Detailed Description

Class that represents a hisology image for spatial data. Image coordinates are linked to graph points.

Member Function Documentation

◆ AddGraphPoint()

void CellexalVR.Spatial.HistoImage.AddGraphPoint ( int  x,
int  y 
)

Add graph point and update the min max coordinates later used for scaling the graph.

Parameters
x
y

◆ CropToTissue()

void CellexalVR.Spatial.HistoImage.CropToTissue ( )

Crops outside parts of texture that does not have tissue on it.

◆ Initialize()

void CellexalVR.Spatial.HistoImage.Initialize ( )

Initialize by setting texture coordinates and linking to graph points.

◆ ScaleCoordinate()

Vector3 CellexalVR.Spatial.HistoImage.ScaleCoordinate ( Vector3  coord)

Helper function to scale a coordinate.

Parameters
coord
Returns

◆ ScaleCoordinates()

void CellexalVR.Spatial.HistoImage.ScaleCoordinates ( )

Helper function to scale all point coordinates.

◆ UpdateColorTexture()

void CellexalVR.Spatial.HistoImage.UpdateColorTexture ( )

Similar to how a graph slice updates to its parent points cloud a histology image is seen as a subset of all the data and images loaded. This method makes sure the color of the points are in synch with the color texture map of the entire dataset.


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