File: moved-atom.hh

package info (click to toggle)
coot 1.1.18%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 219,964 kB
  • sloc: cpp: 495,934; python: 35,043; ansic: 26,143; lisp: 22,768; sh: 13,186; makefile: 2,746; awk: 441; xml: 245; csh: 14
file content (36 lines) | stat: -rw-r--r-- 1,326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef COOT_API_MOVED_ATOM_HH
#define COOT_API_MOVED_ATOM_HH

#include <string>

namespace coot {

   // this this the namespace for several (new) libcootapi interface classes and functions
   namespace api {

      //! a moved atom.
      //!
      //! The idea is that the user interface/front end is allowewd (of course, this is Coot) to move atoms
      //! This is the means by which the user interface send back to libcootapi the information about where
      //! the user moved the atoms.
      class moved_atom_t {
      public:
         //! the atom name
         std::string atom_name;
         //! the alt conf
         std::string alt_conf;
         //! the 3D coordinates
         float x, y, z;
         //! the index (used for fast lookup). Use -1 if unknowwn.
         int index; // for fast lookup. -1 is used for "unknown"
         //! constructor
         moved_atom_t(const std::string &a, const std::string &alt, float x_in, float y_in, float z_in) :
            atom_name(a), alt_conf(alt), x(x_in), y(y_in), z(z_in), index(-1) {}
         //! constructor
         moved_atom_t(const std::string &a, const std::string &alt, float x_in, float y_in, float z_in, int idx) :
            atom_name(a), alt_conf(alt), x(x_in), y(y_in), z(z_in), index(idx) {}
      };
   }
}

#endif // COOT_API_MOVED_ATOM_HH