AnyLogic
Expand
Font size
All Implemented Interfaces:
InstancingUsdRepresentation<C>, UsdRepresentation<C>
Direct Known Subclasses:
Shape3DObjectCollectionUsdRepresentation

@AnyLogicInternalAPI
public class ShapeCollectionUsdRepresentation<C extends Shape>
extends CollectionUsdRepresentation<C>

Constructor Summary

ConstructorDescription
ShapeCollectionUsdRepresentation(UsdContext context, Iterable<C> population, List<String> assetPath, String containerPath, String innerPath, String parentContainerPath) 

Method Summary

Modifier and TypeMethodDescription
static booleanisShapeChanged(Shape item) 
static booleanisShapeChanged(Shape item, Predicate<Shape> check, Consumer<Shape> change)
Check shape was changed using provided check function.

Methods inherited from class com.anylogic.engine.omniverse_connector.CollectionUsdRepresentation

addAttrUpdater, addAttrUpdater, addPositionUpdater, addPositionUpdater, addVariantUpdater, addVariantUpdater, fillFrame, generate, useReplicatedShapes

Methods inherited from class com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation

disableCache, getAssetPaths, getCacheSize, getContainerPath, getObject, isInstanceable, setCacheSize, setInstanceable

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ShapeCollectionUsdRepresentation

public ShapeCollectionUsdRepresentation(UsdContext context,
 Iterable<C> population,
 List<String> assetPath,
 String containerPath,
 String innerPath,
 String parentContainerPath)

Method Details

isShapeChanged

public static boolean isShapeChanged(Shape item)

isShapeChanged

public static boolean isShapeChanged(Shape item,
 Predicate<Shape> check,
 Consumer<Shape> change)
Check shape was changed using provided check function. Shape is considered changed if some of its ancestor was changed This method can also change the "changed" state of shape using provided change function (if ancestor changed and shape is not)
Parameters:
item - shape to check
check - function to check shape changed
change - function to set changed state
Returns: