UnityMol  0.9.6-875
UnityMol viewer / In developement
GenericAtomManager.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 
4 public struct SingleAtomSelection {
5  // The identifier of the atom, as found in the PDB file.
6  public int pdbIndex;
7  // The scene object of the selected atom.
8  // Relies on GenericAtomManager implementations representations.
9  public GameObject go;
10 }
11 
12 public interface GenericAtomManager {
13  //
14  // IMD simulation "API".
15  //
16 
17  // Returns the closest atom game object in space from a given position during an IMD simulation.
18  SingleAtomSelection getClosestAtomGameObject(Vector3 position);
19  // Instantiate atom selection mono behavior script for every atom.
20  void CreateMouseOversIMDSimulation();
21  // Deinstantiate atom selection mono behavior script for every atom.
22  void DestroyMouseOversIMDSimulation();
23 
24 }