Beispiel #1
0
    public int AddMoleculeType(string pdbName, Color color, Vector4[] atoms)
    {
        // If molecule type is not present => add new type to the system
        if (HasMoleculeType(pdbName))
        {
            throw new Exception("Molecule type already exists");
        }

        _moleculeColors.Add(color);
        _moleculeNames.Add(pdbName);
        _moleculeDisplayScript.AddMoleculeType(atoms);

        return(_moleculeNames.Count - 1);
    }
 void AddMoleculeType(string pdbName, Color color)
 {
     _moleculeNames.Add(pdbName);
     _moleculeDisplayScript.AddMoleculeType(pdbName, color);
 }