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

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