智慧水务管理系统 - 精河县供水工程综合管理平台

PickedMetadataInfo.js 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * Information about metadata that is supposed to be picked.
  3. *
  4. * This is initialized in the `Scene.pickMetadata` function, and passed to
  5. * the `FrameState`. It is used to configure the draw commands that render
  6. * the metadata values of an object into the picking frame buffer. The
  7. * raw values are read from that buffer, and are then translated back into
  8. * proper metadata values in `Picking.pickMetadata`, using the structural
  9. * information about the metadata that is stored here.
  10. *
  11. * @constructor
  12. * @private
  13. */
  14. function PickedMetadataInfo(
  15. schemaId,
  16. className,
  17. propertyName,
  18. classProperty,
  19. metadataProperty,
  20. ) {
  21. /**
  22. * The optional ID of the metadata schema
  23. *
  24. * @type {string|undefined}
  25. */
  26. this.schemaId = schemaId;
  27. /**
  28. * The name of the metadata class
  29. *
  30. * @type {string}
  31. */
  32. this.className = className;
  33. /**
  34. * The name of the metadata property
  35. *
  36. * @type {string}
  37. */
  38. this.propertyName = propertyName;
  39. /**
  40. * The the `MetadataClassProperty` that is described by this
  41. * structure, as obtained from the `MetadataSchema`
  42. *
  43. * @type {MetadataClassProperty}
  44. */
  45. this.classProperty = classProperty;
  46. /**
  47. * The `PropertyTextureProperty` or `PropertyAttributeProperty` that
  48. * is described by this structure, as obtained from the property texture
  49. * or property attribute of the `StructuralMetadata` that matches the
  50. * class name and property name.
  51. *
  52. * @type {object}
  53. */
  54. this.metadataProperty = metadataProperty;
  55. }
  56. export default PickedMetadataInfo;