AnyLogic
Expand
Font size
Type Parameters:
C - agent class
All Implemented Interfaces:
InstancingUsdRepresentation<C>, UsdRepresentation<C>

public class PopulationUsdRepresentation<C extends Agent>
extends CollectionUsdRepresentation<C>
Associates a population or collections of agents with USD prims

Constructor Summary

ConstructorDescription
PopulationUsdRepresentation(UsdContext context, C singleObject, String assetPath, String container) 
PopulationUsdRepresentation(UsdContext context, Iterable<C> population, String assetPath, String containerPath) 
PopulationUsdRepresentation(UsdContext context, Iterable<C> population, List<String> assetPath, String containerPath) 

Method Summary

Modifier and TypeMethodDescription
voidaddPositionTransformator(Consumer<PositionAndScale> positionTransform)
Sets the position transformation function that will be applied to the positions of the agent before applying to the connected USD prim.
voidaddVisibilityListener(Function<C,Shape> shapeProvider)
Add default attribute updaters for visibility attribute
voidsetBasis(AbstractPositionWatcher.BasisType basis) 

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

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

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

PopulationUsdRepresentation

public PopulationUsdRepresentation(UsdContext context,
 C singleObject,
 String assetPath,
 String container)

PopulationUsdRepresentation

public PopulationUsdRepresentation(UsdContext context,
 Iterable<C> population,
 List<String> assetPath,
 String containerPath)

PopulationUsdRepresentation

public PopulationUsdRepresentation(UsdContext context,
 Iterable<C> population,
 String assetPath,
 String containerPath)

Method Details

setBasis

@AnyLogicInternalAPI
public void setBasis(AbstractPositionWatcher.BasisType basis)

addVisibilityListener

public void addVisibilityListener(Function<C,Shape> shapeProvider)
Add default attribute updaters for visibility attribute

addPositionTransformator

public void addPositionTransformator(Consumer<PositionAndScale> positionTransform)
Sets the position transformation function that will be applied to the positions of the agent before applying to the connected USD prim.
Parameters:
positionTransform - The transformation function