jsdw_ios/Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGltfOverlay.h

77 lines
3.0 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// MAGltfOverlay.h
// MAMapKit
//
//
#import "MAConfig.h"
#if FEATURE_GLTF
#import "MABaseOverlay.h"
NS_ASSUME_NONNULL_BEGIN
///该类用于定义一个glTF模型Overlay, 通常MAGltfOverlay是MAGltfOverlayRenderer的model@since 9.5.0
///This class is used to define a glTF model Overlay, usually MAGltfOverlay is the model of MAGltfOverlayRenderer. since 9.5.0
@interface MAGltfOverlay : MABaseOverlay
///模型的中心点经纬度坐标,无效坐标按照{00}处理。
///the latitude and longitude coordinates of the model's center point, invalid coordinates are processed as {0, 0}
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
///模型的缩放倍数默认1。
///Model zoom factor, default 1
@property (nonatomic, assign) CGFloat scale;
///dragEnable 是否支持拖拽, 默认为YES
///dragEnable whether dragging is supported, default is YES
@property (nonatomic, assign) BOOL draggEnable;
///touchEnable 是否支持点击, 默认为YES
///touchEnable whether clicking is supported, default is YES
@property (nonatomic, assign) BOOL touchEnable;
///图标
///icon
@property (nonatomic, strong) UIImage *image;
///当前执行动画的索引取值必须小于模型支持动画的个数。默认0执行第一个动画
///The index of the currently executing animation must be less than the number of animations supported by the model. Default 0, execute the first animation
@property (nonatomic, assign) NSInteger currentAnimationIndex;
///最小显示级别 default 3
///minimum display level default 3
@property (nonatomic, assign) CGFloat minZoom;
///最大显示级别 default 20
///maximum display level default 20
@property (nonatomic, assign) CGFloat maxZoom;
///是否为glb格式 @since 9.7.0
///whether it is glb format, since 9.7.0
@property (nonatomic, assign, getter=isGlbFormat) BOOL glbFormat;
/**
* @brief 根据中心点、模型文件data以及纹理图生成MAGltfOverlay
* Generate MAGltfOverlay based on the center point, model file data, and texture map
* @param coordinate 中心点的经纬度坐标,无效坐标按照{00}处理
* the latitude and longitude coordinates of the center point, invalid coordinates are treated as {0, 0}
* @param glTFModelData obj类型的模型文件dataOverlay内部不会保存
* obj type model file data (Overlay will not save it internally)
* @param uriResources glTF对应uri资源包括纹理图片bin文件等
* glTF corresponding URI resources, including texture images, bin files, etc.
* @return 新生成的MAGltfOverlay
* newly generated MAGltfOverlay
*/
+ (instancetype)glTFModelOverlayWithCoordinate:(CLLocationCoordinate2D)coordinate glTFModelData:(NSData *)glTFModelData uriResources:(NSDictionary* _Nullable)uriResources;
///设置模型绕坐标轴的旋转角度,单位度。
///set the rotation angle of the model around the coordinate axis, unit in degrees
- (void)setRotationDegreeX:(double)degreeX Y:(double)degreeY Z:(double)degreeZ;
@end
NS_ASSUME_NONNULL_END
#endif