CellexalVR
1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
Represents the selection tool that can be used to select multiple GraphPoints. More...
Classes | |
struct | HistoryListInfo |
Helper struct for remembering history when selecting graphpoints. More... | |
Public Member Functions | |
Selection | FindSelectionByNameOrId (string nameOrId) |
Attempts to find a selection by a name or id. More... | |
void | RemoveGraphpointFromSelection (Graph.GraphPoint graphPoint) |
Removes a graph point from the current selection. More... | |
void | RemoveGraphpointFromSelection (string graphName, string graphpointLabel) |
Removes a graph point from the current selection, given the graph's and graph point's labels. More... | |
void | AddGraphpointToSelection (Graph.GraphPoint graphPoint, int newGroup, bool hapticFeedback) |
Adds a graphpoint to the current selection, and changes its color. More... | |
void | AddGraphpointToSelection (Graph.GraphPoint graphPoint, int newGroup, bool hapticFeedback, Color color) |
Adds a graphpoint to the current selection, and changes its color. More... | |
void | AddGraphPointsToSelection (IEnumerable< Graph.GraphPoint > points, int group) |
Adds a collection of graph points to the current selection. More... | |
void | DoClientSelectAdd (string graphName, string label, int newGroup, Color color) |
If selecting from client then graphpoint to be added needs to be found by searching since it has not collided with selection tool. More... | |
void | DoClientSelectAdd (string graphName, string label, int newGroup, Color color, bool cube) |
Same as above but this function is called when coluring the cubes between same cells in different graphs. More... | |
void | GoBackOneStepInHistory () |
Goes back one step in the history of selecting cells. More... | |
void | GoForwardOneStepInHistory () |
Go forward one step in the history of selecting cells. More... | |
void | GoBackOneColorInHistory () |
Go back in history until the color changes. This unselects all the last cells that have the same color. More... | |
void | GoForwardOneColorInHistory () |
Go forward in history until the color changes. This re-selects all the last cells that have the same color. More... | |
void | ConfirmSelectionForBigFolder () |
void | ConfirmSelectionConsole () |
Confirms a selection and dumps the relevant data to a .txt file. More... | |
void | ConfirmSelection () |
Confirms the current selection, ending the selection process and saving the selection to disk. More... | |
void | AddSelection (Selection selection) |
Adds a new selection, that was not created through selecting and using ConfirmSelection. More... | |
void | UpdateRObjectGrouping (Selection selection) |
Updates the R objects groupings. More... | |
void | SelectAll () |
Selects all points in to current group. If filter is active it queues all points for evaluation. More... | |
Selection | GetLastSelection () |
Gets the last selection that was confirmed. More... | |
void | Clear () |
Removes all points from the current selection, and clears the selection history. More... | |
int | GetCurrentSelectionSize () |
Get the current (not yet confirmed) selection. More... | |
void | CancelSelection () |
Unselects anything selected. More... | |
Selection | LoadSelectionFromDisk (string path) |
Loads a Selection from the disk, if the Selection is already loaded, the loaded object is returned. More... | |
void | UnloadOldestSelection (Selection newestSelection) |
void | AssertGroupMasksExist (Graph graph) |
Checks if the first selection that was made this session has group masks for a given graph. This does not check if those group masks are correct, only if some group masks exists for a given graph. If no group masks seem to exist, this function calls Selection.SaveGroupMasksToDisk(Graph) for each graph that seems to be missing group masks. More... | |
void | RecolorSelectionPoints () |
Helper function to recolour only the points that are in the current selection. More... | |
Color | GetColor (int index) |
Gets a selection colors. More... | |
Public Attributes | |
List< HistoryListInfo > | selectionHistory = new List<HistoryListInfo>() |
Properties | |
string | DataDir [get, set] |
bool | RObjectUpdating [get] |
Represents the selection tool that can be used to select multiple GraphPoints.
void CellexalVR.AnalysisLogic.SelectionManager.AddGraphPointsToSelection | ( | IEnumerable< Graph.GraphPoint > | points, |
int | group | ||
) |
Adds a collection of graph points to the current selection.
points | The graph points to add. |
group | The group to assign the graph points. |
void CellexalVR.AnalysisLogic.SelectionManager.AddGraphpointToSelection | ( | Graph.GraphPoint | graphPoint, |
int | newGroup, | ||
bool | hapticFeedback | ||
) |
Adds a graphpoint to the current selection, and changes its color.
void CellexalVR.AnalysisLogic.SelectionManager.AddGraphpointToSelection | ( | Graph.GraphPoint | graphPoint, |
int | newGroup, | ||
bool | hapticFeedback, | ||
Color | color | ||
) |
Adds a graphpoint to the current selection, and changes its color.
void CellexalVR.AnalysisLogic.SelectionManager.AddSelection | ( | Selection | selection | ) |
Adds a new selection, that was not created through selecting and using ConfirmSelection.
selection | The selection to add. |
void CellexalVR.AnalysisLogic.SelectionManager.AssertGroupMasksExist | ( | Graph | graph | ) |
Checks if the first selection that was made this session has group masks for a given graph. This does not check if those group masks are correct, only if some group masks exists for a given graph. If no group masks seem to exist, this function calls Selection.SaveGroupMasksToDisk(Graph) for each graph that seems to be missing group masks.
graph |
void CellexalVR.AnalysisLogic.SelectionManager.CancelSelection | ( | ) |
Unselects anything selected.
void CellexalVR.AnalysisLogic.SelectionManager.Clear | ( | ) |
Removes all points from the current selection, and clears the selection history.
void CellexalVR.AnalysisLogic.SelectionManager.ConfirmSelection | ( | ) |
Confirms the current selection, ending the selection process and saving the selection to disk.
void CellexalVR.AnalysisLogic.SelectionManager.ConfirmSelectionConsole | ( | ) |
Confirms a selection and dumps the relevant data to a .txt file.
void CellexalVR.AnalysisLogic.SelectionManager.DoClientSelectAdd | ( | string | graphName, |
string | label, | ||
int | newGroup, | ||
Color | color | ||
) |
If selecting from client then graphpoint to be added needs to be found by searching since it has not collided with selection tool.
graphName | The name of the graph that the point is in. |
label | The label of the cell (graphpoint) |
newGroup | The group which the cell is to be added to. |
color | Colour that the graphpoint should be coloured by. |
void CellexalVR.AnalysisLogic.SelectionManager.DoClientSelectAdd | ( | string | graphName, |
string | label, | ||
int | newGroup, | ||
Color | color, | ||
bool | cube | ||
) |
Same as above but this function is called when coluring the cubes between same cells in different graphs.
graphName | |
label | |
newGroup | |
color | |
cube | If a cube should be coloured as well as the graphpoint. |
Selection CellexalVR.AnalysisLogic.SelectionManager.FindSelectionByNameOrId | ( | string | nameOrId | ) |
Attempts to find a selection by a name or id.
nameOrId | The name or id to look for. |
Color CellexalVR.AnalysisLogic.SelectionManager.GetColor | ( | int | index | ) |
Gets a selection colors.
index | The index of the color. Indices outside the range of the array colors will be corrected with remainder division. |
int CellexalVR.AnalysisLogic.SelectionManager.GetCurrentSelectionSize | ( | ) |
Get the current (not yet confirmed) selection.
Selection CellexalVR.AnalysisLogic.SelectionManager.GetLastSelection | ( | ) |
Gets the last selection that was confirmed.
void CellexalVR.AnalysisLogic.SelectionManager.GoBackOneColorInHistory | ( | ) |
Go back in history until the color changes. This unselects all the last cells that have the same color.
If the user selects 2 cells as red then 3 cells as blue and then 4 cells as red, in that order, the 4 last red cells would be unselected when calling this method.
void CellexalVR.AnalysisLogic.SelectionManager.GoBackOneStepInHistory | ( | ) |
Goes back one step in the history of selecting cells.
void CellexalVR.AnalysisLogic.SelectionManager.GoForwardOneColorInHistory | ( | ) |
Go forward in history until the color changes. This re-selects all the last cells that have the same color.
void CellexalVR.AnalysisLogic.SelectionManager.GoForwardOneStepInHistory | ( | ) |
Go forward one step in the history of selecting cells.
Selection CellexalVR.AnalysisLogic.SelectionManager.LoadSelectionFromDisk | ( | string | path | ) |
void CellexalVR.AnalysisLogic.SelectionManager.RecolorSelectionPoints | ( | ) |
Helper function to recolour only the points that are in the current selection.
void CellexalVR.AnalysisLogic.SelectionManager.RemoveGraphpointFromSelection | ( | Graph.GraphPoint | graphPoint | ) |
Removes a graph point from the current selection.
graphPoint | The graph point to remove. |
void CellexalVR.AnalysisLogic.SelectionManager.RemoveGraphpointFromSelection | ( | string | graphName, |
string | graphpointLabel | ||
) |
Removes a graph point from the current selection, given the graph's and graph point's labels.
graphName | The label of graph that contains the graph point. |
graphpointLabel | The graph point's label. |
void CellexalVR.AnalysisLogic.SelectionManager.SelectAll | ( | ) |
Selects all points in to current group. If filter is active it queues all points for evaluation.
void CellexalVR.AnalysisLogic.SelectionManager.UpdateRObjectGrouping | ( | Selection | selection | ) |
Updates the R objects groupings.
selection | The selection to update the R object with. |