16 Vector3[] a =
new Vector3[size];
25 for (
int i = 0; i < c; i++)
29 +
string.Format(
"{0,5}", j)
33 +
string.Format(
"{0,11:###.000}", a[i].x) +
" " 34 +
string.Format(
"{0,8:###.000}", a[i].y) +
" " 35 +
string.Format(
"{0,8:###.000}", a[i].z) +
"\n";
45 return Environment.GetFolderPath(Environment.SpecialFolder.Personal) +
"/.unitymol/snapshots/";
54 string filename = Environment.UserName +
"-" + molName +
"-" + DateTime.Now.ToString (
"yyyy-MM-dd-H-mm-ss") +
".pdb";
56 System.IO.Directory.CreateDirectory(path);
57 StreamWriter sw =
new StreamWriter(path + filename);
static string generateSnapshot()
Produces a snapshot of the molecule in PDB format.
static List< string > atomsNamelist
The name of each atom.
static string getPath()
Get the path of the directory to which snapshots are saved.
static List< Vector3 > atomsIMDSimulationLocationlist
The coordinates of each atom, simulated through an IMD simulation.
static List< int > residueIds
The residue identifiers.
!WiP manage GUI, and provide static strings for the GUI.
static List< string > atomsResnamelist
The name of the residue to which each atom belongs.
static string saveSnapshot()
Save a snapshot of the molecule in a PDB file on disk.