A 3D model map object (Wavefront OBJ) placed on the location view. More...
Inheritance diagram for ModelMapObject:Public Member Functions | |
| bool | setPosition (LocationPoint point) |
| Sets the anchor position of the model in metric coordinates. | |
| bool | setPositionAnimated (LocationPoint point, double duration, AnimationType type) |
| Animates the model anchor to a new position. | |
| bool | setModel (ModelProvider model) |
| Sets the 3D asset (OBJ source + texture ImageProvider). | |
| bool | setSize (double width, double height) |
| Sets the on-screen size of the model in pixels (width and height). | |
| bool | setCollisionEnabled (bool enabled) |
| Enables or disables collision tests for this object. | |
| bool | setAngle (double angle) |
| Sets rotation angle in degrees (around the placement axis used by the engine). | |
| bool | setAngleAnimated (double angle, double duration, AnimationType type) |
| Animates rotation to the given angle. | |
| bool | setBuffer (double width, double height) |
| Extra hit-test padding around the model in pixels. | |
| bool | setPriority (double priority) |
| Render order priority (higher draws above). | |
| int | getId () |
| Gets the unique identifier of the map object. | |
| MapObjectType | getType () |
| Gets the type of the map object. | |
| Uint8List | getData () |
| Gets the user-defined data associated with the map object. | |
| bool | setVisible (bool visible) |
| Method is used to specify the visibility of the map object. | |
| bool | setInteractive (bool interactive) |
| Method is used to specify whether the map object can be interacted with. | |
| void | setData (Uint8List data) |
| Method is used to set user-defined data for the map object. | |
| bool | setTitle (String title) |
| Method is used to set the title of the map object. | |
| bool | setAlpha (double alpha) |
| Method is used to set the opacity of the map object. | |
A 3D model map object (Wavefront OBJ) placed on the location view.
Geometry and texture come from ModelProvider. The mesh is loaded asynchronously in the render pipeline; blocking calls occur only inside provider callbacks.
Referenced from LocationWindow (addModelMapObject).
Definition at line 28 of file model_map_object.dart.
|
inherited |
Gets the user-defined data associated with the map object.
Dart code snippet:
|
inherited |
Gets the unique identifier of the map object.
Dart code snippet:
|
inherited |
Gets the type of the map object.
Dart code snippet:
|
inherited |
Method is used to set the opacity of the map object.
| alpha | Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1. |
Dart code snippet:
| bool ModelMapObject.setAngle | ( | double | angle | ) |
Sets rotation angle in degrees (around the placement axis used by the engine).
Dart code snippet:
| bool ModelMapObject.setAngleAnimated | ( | double | angle, |
| double | duration, | ||
| AnimationType | type ) |
Animates rotation to the given angle.
Dart code snippet:
| bool ModelMapObject.setBuffer | ( | double | width, |
| double | height ) |
Extra hit-test padding around the model in pixels.
Dart code snippet:
| bool ModelMapObject.setCollisionEnabled | ( | bool | enabled | ) |
Enables or disables collision tests for this object.
Dart code snippet:
|
inherited |
Method is used to set user-defined data for the map object.
| data | Data to store in the map object. |
Dart code snippet:
|
inherited |
Method is used to specify whether the map object can be interacted with.
| interactive | Specifies whether the object can be picked in the pickMapObjectAt method (true) or not (false). Default: false. |
Dart code snippet:
| bool ModelMapObject.setModel | ( | ModelProvider | model | ) |
Sets the 3D asset (OBJ source + texture ImageProvider).
| model | Model provider ModelProvider. |
Dart code snippet:
| bool ModelMapObject.setPosition | ( | LocationPoint | point | ) |
Sets the anchor position of the model in metric coordinates.
| point | Center / placement point LocationPoint. |
Dart code snippet:
| bool ModelMapObject.setPositionAnimated | ( | LocationPoint | point, |
| double | duration, | ||
| AnimationType | type ) |
Animates the model anchor to a new position.
| point | Target metrics coordinates LocationPoint. |
| duration | Animation duration in seconds. |
| type | Animation easing AnimationType. |
Dart code snippet:
| bool ModelMapObject.setPriority | ( | double | priority | ) |
Render order priority (higher draws above).
Dart code snippet:
| bool ModelMapObject.setSize | ( | double | width, |
| double | height ) |
Sets the on-screen size of the model in pixels (width and height).
Dart code snippet:
|
inherited |
Method is used to set the title of the map object.
| title | The title to display on the location view. |
Dart code snippet:
|
inherited |
Method is used to specify the visibility of the map object.
| visible | Specifies whether the object is visible (true) or hidden (false). Default: true. |
Dart code snippet: