MBMCustomLayerRenderParameters.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // This file is edited after generation to enable deprecated constructors.
  2. #import <Foundation/Foundation.h>
  3. @class MBMCanonicalTileID;
  4. @protocol MBMElevationData;
  5. /** Parameters that define the current camera position for a `CustomLayerHost::render()` function. */
  6. NS_SWIFT_NAME(CustomLayerRenderParameters)
  7. __attribute__((visibility ("default")))
  8. @interface MBMCustomLayerRenderParameters : NSObject
  9. // This class provides custom init which should be called
  10. - (nonnull instancetype)init NS_UNAVAILABLE;
  11. // This class provides custom init which should be called
  12. + (nonnull instancetype)new NS_UNAVAILABLE;
  13. - (nonnull instancetype)initWithWidth:(double)width
  14. height:(double)height
  15. latitude:(double)latitude
  16. longitude:(double)longitude
  17. zoom:(double)zoom
  18. bearing:(double)bearing
  19. pitch:(double)pitch
  20. fieldOfView:(double)fieldOfView
  21. projectionMatrix:(nonnull NSArray<NSNumber *> *)projectionMatrix
  22. elevationData:(nullable id<MBMElevationData>)elevationData
  23. renderToTilesIDs:(nullable NSArray<MBMCanonicalTileID *> *)renderToTilesIDs __attribute__((deprecated("This constructor is internal and to be used from within Mapbox SDK only.")));
  24. - (nonnull instancetype)initWithWidth:(double)width
  25. height:(double)height
  26. latitude:(double)latitude
  27. longitude:(double)longitude
  28. zoom:(double)zoom
  29. bearing:(double)bearing
  30. pitch:(double)pitch
  31. fieldOfView:(double)fieldOfView
  32. projectionMatrix:(nonnull NSArray<NSNumber *> *)projectionMatrix
  33. elevationData:(nullable id<MBMElevationData>)elevationData __attribute__((deprecated("This constructor is deprecated and will be removed.")));
  34. /** The width. */
  35. @property (nonatomic, readonly) double width;
  36. /** The height. */
  37. @property (nonatomic, readonly) double height;
  38. /** The latitude of camera position. */
  39. @property (nonatomic, readonly) double latitude;
  40. /** The longitude of camera position. */
  41. @property (nonatomic, readonly) double longitude;
  42. /** The zoom of the camera. */
  43. @property (nonatomic, readonly) double zoom;
  44. /** The bearing (orientation) of the camera. In degrees clockwise from north, it describes the direction in which the camera points. */
  45. @property (nonatomic, readonly) double bearing;
  46. /** The pitch of the camera, the angle of pitch applied to the camera around the x-axis. */
  47. @property (nonatomic, readonly) double pitch;
  48. /** The field of view of the camera in degrees */
  49. @property (nonatomic, readonly) double fieldOfView;
  50. /** The projection matrix used for rendering. It projects spherical mercator coordinates to gl coordinates. */
  51. @property (nonatomic, readonly, nonnull, copy) NSArray<NSNumber *> *projectionMatrix;
  52. /** If terrain is enabled, provides value to elevation data from render thread. Empty if terrain is not enabled. */
  53. @property (nonatomic, readonly, nullable) id<MBMElevationData> elevationData;
  54. /**
  55. * Note! This property is an experimental feature. It can be changed or removed in future versions.
  56. */
  57. @property (nonatomic, readonly, nullable, copy) NSArray<MBMCanonicalTileID *> *renderToTilesIDs;
  58. @end