Sp3dWorld class
(en)It is a world class for handling multiple Sp3dObj at once.
(ja)複数のSp3dObjをまとめて扱うためのワールドクラスです。
Author Masahide Mori
First edition creation date 2021-09-30 14:58:34
Constructors
Properties
-
convertedImages
↔ Map<
Sp3dObj, Map< int, Image> > -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageBGisBlack ↔ bool
-
getter/setter pair
-
layers
↔ List<
List< Sp3dObj> > -
getter/setter pair
-
objs
↔ List<
Sp3dObj> -
getter/setter pair
-
paintImages
↔ Map<
Sp3dObj, Map< int, Sp3dPaintImage?> > -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sortedAllFaces
↔ List<
Sp3dFaceObj> -
getter/setter pair
- useLayer → bool
-
final
Methods
-
add(
Sp3dObj obj, Sp3dV3D coordinate) → void - (en)Places the object at the specified coordinates in the world.
-
deepCopy(
) → Sp3dWorld - Deep copy the world. Initialization must be performed again. Also, temporary data is not copied.
-
get(
String id) → Sp3dObj? - (en)Gets the object with the specified id.
-
initImages(
) → Future< List< Sp3dObj> > - (en)Loads and initializes the image file for rendering.
-
initLayer(
) → Sp3dWorld - (en)Reconfigure the drawing order according to the layerNum set for each Sp3dObj. You will also need to call this again if you edited the Sp3dObj list or layerNum.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Sp3dObj obj) → void - (en)Removes the specified object from the world.
-
removeAt(
String id) → void - (en)Removes all objects with the specified ID from the world.
-
toDict(
) → Map< String, dynamic> - Convert to Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited