BMF3DModelOption class

3d模型option

Implementers

Constructors

BMF3DModelOption({required String modelPath, required String modelName, double? scale = 1, bool? zoomFixed = false, double? rotateX = 0, double? rotateY = 0, double? rotateZ = 0, double? offsetX = 0, double? offsetY = 0, double? offsetZ = 0, BMF3DModelType? type = BMF3DModelType.BMF3DModelTypeObj, bool? animationIsEnable = false, int? animationIndex = 0, int? animationRepeatCount = 0, double? animationSpeed = 1})
3d模型option构造方法
BMF3DModelOption.fromMap(Map map)
map =>> BMF3DModelOption

Properties

animationIndex int?
当前模型动画索引值,since 3.5.0
getter/setter pair
animationIsEnable bool?
以下只支持带有animations标签的GLTF模型 模型动画是否可用,默认为false:添加后不执行动画,值为true时添加后立即按照配置参数执行动画,since 3.5.0
getter/setter pair
animationRepeatCount int?
模型动画重复执行次数,默认0:动画将一直执行动画,since 3.5.0
getter/setter pair
animationSpeed double?
模型动画倍速,默认:1.0,since 3.5.0
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
modelName String
模型名
getter/setter pair
modelPath String
模型文件路径
getter/setter pair
offsetX double?
偏移像素,默认为0.0
getter/setter pair
offsetY double?
getter/setter pair
offsetZ double?
getter/setter pair
rotateX double?
旋转角度,取值范围为【0.0f, 360.0f】,默认为0.0
getter/setter pair
rotateY double?
getter/setter pair
rotateZ double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
缩放比例,默认1.0
getter/setter pair
type BMF3DModelType?
3D模型文件格式,默认BMF3DModelTypeObj
getter/setter pair
zoomFixed bool?
scale不随地图缩放而变化,默认为false
getter/setter pair

Methods

fromMap(Map map) → dynamic
map -> dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
model -> map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited