Package dev.turboism.sdk.cubism.mesh
Enum Class MeshEditService.Unavailable
java.lang.Object
java.lang.Enum<MeshEditService.Unavailable>
dev.turboism.sdk.cubism.mesh.MeshEditService.Unavailable
- All Implemented Interfaces:
MeshEditService,Serializable,Comparable<MeshEditService.Unavailable>,Constable
- Enclosing interface:
- MeshEditService
public static enum MeshEditService.Unavailable
extends Enum<MeshEditService.Unavailable>
implements MeshEditService
Sentinel returned by
MeshEditService.unavailable(): calls refuse work without reaching the host.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface dev.turboism.sdk.cubism.mesh.MeshEditService
MeshEditService.Unavailable -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionaddEdges(List<MeshEdgeRef> edges) Adds edges between pairs of live point ids.addPoints(List<MeshPointPosition> points) Adds points at the given positions; Cubism assigns their ids.deleteEdges(List<MeshEdgeRef> edges) Deletes the referenced edges; stale references are rejected.deletePoints(List<MeshPointRef> points) Deletes the referenced live points; stale references are rejected.booleanReports whether a live runtime surface backs this instance.movePoints(List<MeshPointRef> points) Moves each live point id to the position carried by its reference.snapshot()The current mesh, or an empty snapshot when no mesh is being edited.static MeshEditService.UnavailableReturns the enum constant of this class with the specified name.static MeshEditService.Unavailable[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isAvailable
public boolean isAvailable()Description copied from interface:MeshEditServiceReports whether a live runtime surface backs this instance.- Specified by:
isAvailablein interfaceMeshEditService- Returns:
falsewhen the backend backing this instance is unavailable, including theMeshEditService.unavailable()sentinel
-
addPoints
Description copied from interface:MeshEditServiceAdds points at the given positions; Cubism assigns their ids.- Specified by:
addPointsin interfaceMeshEditService
-
deletePoints
Description copied from interface:MeshEditServiceDeletes the referenced live points; stale references are rejected.- Specified by:
deletePointsin interfaceMeshEditService
-
movePoints
Description copied from interface:MeshEditServiceMoves each live point id to the position carried by its reference.- Specified by:
movePointsin interfaceMeshEditService
-
addEdges
Description copied from interface:MeshEditServiceAdds edges between pairs of live point ids. A granted, non-empty edit is grouped as one host undo step; a refused call — or anull/empty request, which still returns an applied result — performs no edit and no undo entry.- Specified by:
addEdgesin interfaceMeshEditService
-
deleteEdges
Description copied from interface:MeshEditServiceDeletes the referenced edges; stale references are rejected.- Specified by:
deleteEdgesin interfaceMeshEditService
-
snapshot
Description copied from interface:MeshEditServiceThe current mesh, or an empty snapshot when no mesh is being edited.- Specified by:
snapshotin interfaceMeshEditService
-