conformation.ts 805 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author David Sehnal <david.sehnal@gmail.com>
  5. */
  6. import { Column } from 'mol-data/db'
  7. import UUID from 'mol-util/uuid'
  8. interface Conformation {
  9. id: UUID,
  10. // ID is part of conformation because mmCIF is a leaky abstraction
  11. // that assigns different atom ids to corresponding atoms in different models
  12. // ... go figure.
  13. atomId: Column<number>,
  14. occupancy: Column<number>,
  15. B_iso_or_equiv: Column<number>
  16. // Coordinates. Generally, not to be accessed directly because the coordinate might be
  17. // transformed by an operator. Use Unit.getPosition instead.
  18. __x: ArrayLike<number>,
  19. __y: ArrayLike<number>,
  20. __z: ArrayLike<number>
  21. }
  22. export default Conformation