UnityMol  1.0.25beta
UMol.UnityMolSelectionManager Class Reference

Public Types

enum  SelectionMode { SelectionMode.Atom, SelectionMode.Residue, SelectionMode.Chain, SelectionMode.Molecule }
 

Public Member Functions

UnityMolAtom transformToAtom (Transform t)
 Get the UnityMolAtom from the collider transform of an atom Used when selecting atoms via Physics.Raycast More...
 
void Add (UnityMolSelection sel)
 
void Delete (string selName)
 
void DeleteRepresentations (UnityMolSelection sel)
 
void DeleteRepresentation (UnityMolSelection sel, RepType repType)
 
void Delete (UnityMolStructure s)
 
UnityMolSelection getClickSelection ()
 Get the "(selection)" selection. Creates it if it does not exist. More...
 
UnityMolSelection getCurrentSelection ()
 Get the current selection if it is set otherwise create a new one with getClickSelection More...
 
void Clean ()
 
void updateSelectionsWithNewModel (UnityMolStructure s)
 
void updateSelectionContentTrajectory (UnityMolStructure s)
 
void updateSelectionsWithMDA (UnityMolStructure s, bool forceModif=false)
 
void ClearCurrentSelection ()
 
void SetCurrentSelection (UnityMolSelection sel)
 
bool AddSelectionKeyword (string keyword, string selectionName)
 
void RemoveSelectionKeyword (string keyword)
 
string findNewSelectionName (string selName)
 

Public Attributes

SelectionMode selectionMode = SelectionMode.Residue
 
Dictionary< string, UnityMolSelectionselections = new Dictionary<string, UnityMolSelection>()
 Dictionary of all selections created More...
 
Dictionary< string, string > selectionMDAKeywords = new Dictionary<string, string>()
 
string clickSelectionName = "(selection)"
 

Properties

UnityMolSelection currentSelection [get]
 UnityMolSelection containing all the atoms of the currentSelections list More...
 

Member Enumeration Documentation

◆ SelectionMode

Enumerator
Atom 
Residue 
Chain 
Molecule 

Member Function Documentation

◆ Add()

void UMol.UnityMolSelectionManager.Add ( UnityMolSelection  sel)

◆ AddSelectionKeyword()

bool UMol.UnityMolSelectionManager.AddSelectionKeyword ( string  keyword,
string  selectionName 
)

◆ Clean()

void UMol.UnityMolSelectionManager.Clean ( )

◆ ClearCurrentSelection()

void UMol.UnityMolSelectionManager.ClearCurrentSelection ( )

◆ Delete() [1/2]

void UMol.UnityMolSelectionManager.Delete ( string  selName)

◆ Delete() [2/2]

void UMol.UnityMolSelectionManager.Delete ( UnityMolStructure  s)

◆ DeleteRepresentation()

void UMol.UnityMolSelectionManager.DeleteRepresentation ( UnityMolSelection  sel,
RepType  repType 
)

◆ DeleteRepresentations()

void UMol.UnityMolSelectionManager.DeleteRepresentations ( UnityMolSelection  sel)

◆ findNewSelectionName()

string UMol.UnityMolSelectionManager.findNewSelectionName ( string  selName)

◆ getClickSelection()

UnityMolSelection UMol.UnityMolSelectionManager.getClickSelection ( )

Get the "(selection)" selection. Creates it if it does not exist.

◆ getCurrentSelection()

UnityMolSelection UMol.UnityMolSelectionManager.getCurrentSelection ( )

Get the current selection if it is set otherwise create a new one with getClickSelection

◆ RemoveSelectionKeyword()

void UMol.UnityMolSelectionManager.RemoveSelectionKeyword ( string  keyword)

◆ SetCurrentSelection()

void UMol.UnityMolSelectionManager.SetCurrentSelection ( UnityMolSelection  sel)

◆ transformToAtom()

UnityMolAtom UMol.UnityMolSelectionManager.transformToAtom ( Transform  t)

Get the UnityMolAtom from the collider transform of an atom Used when selecting atoms via Physics.Raycast

◆ updateSelectionContentTrajectory()

void UMol.UnityMolSelectionManager.updateSelectionContentTrajectory ( UnityMolStructure  s)

◆ updateSelectionsWithMDA()

void UMol.UnityMolSelectionManager.updateSelectionsWithMDA ( UnityMolStructure  s,
bool  forceModif = false 
)

◆ updateSelectionsWithNewModel()

void UMol.UnityMolSelectionManager.updateSelectionsWithNewModel ( UnityMolStructure  s)

Member Data Documentation

◆ clickSelectionName

string UMol.UnityMolSelectionManager.clickSelectionName = "(selection)"

◆ selectionMDAKeywords

Dictionary<string, string> UMol.UnityMolSelectionManager.selectionMDAKeywords = new Dictionary<string, string>()

◆ selectionMode

SelectionMode UMol.UnityMolSelectionManager.selectionMode = SelectionMode.Residue

◆ selections

Dictionary<string, UnityMolSelection> UMol.UnityMolSelectionManager.selections = new Dictionary<string, UnityMolSelection>()

Dictionary of all selections created

Property Documentation

◆ currentSelection

UnityMolSelection UMol.UnityMolSelectionManager.currentSelection
get

UnityMolSelection containing all the atoms of the currentSelections list


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