representation.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Alexander Rose <alexander.rose@weirdbyte.de>
  5. * @author David Sehnal <david.sehnal@gmail.com>
  6. */
  7. import { Structure } from 'mol-model/structure';
  8. import { Representation, RepresentationProps, RepresentationProvider } from '../representation';
  9. import { ParamDefinition as PD } from 'mol-util/param-definition';
  10. import { Geometry } from 'mol-geo/geometry/geometry';
  11. import { Mesh } from 'mol-geo/geometry/mesh/mesh';
  12. import { Points } from 'mol-geo/geometry/points/points';
  13. import { Lines } from 'mol-geo/geometry/lines/lines';
  14. import { DirectVolume } from 'mol-geo/geometry/direct-volume/direct-volume';
  15. export interface StructureRepresentation<P extends RepresentationProps = {}> extends Representation<Structure, P> { }
  16. export type StructureRepresentationProvider<P extends PD.Params> = RepresentationProvider<Structure, P>
  17. //
  18. export const StructureParams = {
  19. ...Geometry.Params,
  20. }
  21. export type StructureParams = typeof StructureParams
  22. export const StructureMeshParams = {
  23. ...Mesh.Params,
  24. ...StructureParams,
  25. }
  26. export type StructureMeshParams = typeof StructureMeshParams
  27. export const StructurePointsParams = {
  28. ...Points.Params,
  29. ...StructureParams,
  30. }
  31. export type StructurePointsParams = typeof StructurePointsParams
  32. export const StructureLinesParams = {
  33. ...Lines.Params,
  34. ...StructureParams,
  35. }
  36. export type StructureLinesParams = typeof StructureLinesParams
  37. export const StructureDirectVolumeParams = {
  38. ...DirectVolume.Params,
  39. ...StructureParams,
  40. }
  41. export type StructureDirectVolumeParams = typeof StructureDirectVolumeParams
  42. export { ComplexRepresentation } from './complex-representation'
  43. export { UnitsRepresentation } from './units-representation'
  44. export { ComplexVisual } from './complex-visual'
  45. export { UnitsVisual } from './units-visual'