BMFTrace3DModelOption class
- Inheritance
-
- Object
- BMF3DModelOption
- BMFTrace3DModelOption
Constructors
- BMFTrace3DModelOption({required String modelPath, required String modelName, BMFTraceOverlay3DModelYawAxis? yawAxis, 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})
- BMFTrace3DModelOption.fromMap(Map map)
- map => BMFText
Properties
- animationIndex ↔ int?
-
当前模型动画索引值,since 3.5.0
getter/setter pairinherited
- animationIsEnable ↔ bool?
-
以下只支持带有animations标签的GLTF模型
模型动画是否可用,默认为false:添加后不执行动画,值为true时添加后立即按照配置参数执行动画,since 3.5.0
getter/setter pairinherited
- animationRepeatCount ↔ int?
-
模型动画重复执行次数,默认0:动画将一直执行动画,since 3.5.0
getter/setter pairinherited
- animationSpeed ↔ double?
-
模型动画倍速,默认:1.0,since 3.5.0
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelName ↔ String
-
模型名
getter/setter pairinherited
- modelPath ↔ String
-
模型文件路径
getter/setter pairinherited
- offsetX ↔ double?
-
偏移像素,默认为0.0
getter/setter pairinherited
- offsetY ↔ double?
-
getter/setter pairinherited
- offsetZ ↔ double?
-
getter/setter pairinherited
- rotateX ↔ double?
-
旋转角度,取值范围为【0.0f, 360.0f】,默认为0.0
getter/setter pairinherited
- rotateY ↔ double?
-
getter/setter pairinherited
- rotateZ ↔ double?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double?
-
缩放比例,默认1.0
getter/setter pairinherited
- type ↔ BMF3DModelType?
-
3D模型文件格式,默认BMF3DModelTypeObj
getter/setter pairinherited
- yawAxis ↔ BMFTraceOverlay3DModelYawAxis?
-
轨迹动画中模型的偏航轴,即模型与右手坐标系Z轴重合的轴
getter/setter pair
- zoomFixed ↔ bool?
-
scale不随地图缩放而变化,默认为false
getter/setter pairinherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
model -> map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited