AnyLogic
Expand
Font size
All Implemented Interfaces:
InstancingUsdRepresentation<A>, UsdRepresentation<A>
Direct Known Subclasses:
MarkupCollectionUsdRepresentation, PopulationUsdRepresentation, PositionalMarkupCollectionUsdRepresentation, ShapeCollectionUsdRepresentation, UsdElementCollectionUsdRepresentation

@AnyLogicInternalAPI
public class CollectionUsdRepresentation<A>
extends AbstractInstancingUsdRepresentation<A>

Constructor Summary

ConstructorDescription
CollectionUsdRepresentation(UsdContext context, A singleObject, String assetPath, String containerPath) 
CollectionUsdRepresentation(UsdContext context, Iterable<A> population, List<String> assetPath, String containerPath, Function<A,String> idProvider) 

Method Summary

Modifier and TypeMethodDescription
voidaddAttrUpdater(String pathInsidePrim, String attrName, Function<A,Object> valueProvider)
Add binding to USD prim attribute
voidaddAttrUpdater(String attrName, Function<A,Object> valueProvider)
Add binding to USD prim attribute
voidaddPositionUpdater(String primPath, Function<A,PositionAndScale> positionProvider)
Add function to provide model element coordinates
voidaddPositionUpdater(String primPath, Function<A,PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator) 
voidaddVariantUpdater(String pathInsidePrim, String varsetName, Function<A,Object> variantProvider)
Add binding to USD prim variant
voidaddVariantUpdater(String varsetName, Function<A,Object> variantProvider)
Add binding to USD prim variant
voidfillFrame(OmniFrame frame) 
OmniFrame.FrameInfogenerate(boolean fullFrame) 

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

CollectionUsdRepresentation

public CollectionUsdRepresentation(UsdContext context,
 Iterable<A> population,
 List<String> assetPath,
 String containerPath,
 Function<A,String> idProvider)

CollectionUsdRepresentation

public CollectionUsdRepresentation(UsdContext context,
 A singleObject,
 String assetPath,
 String containerPath)

Method Details

addPositionUpdater

public void addPositionUpdater(String primPath,
 Function<A,PositionAndScale> positionProvider)
Add function to provide model element coordinates
Parameters:
primPath - USD prim path
positionProvider - function to provide model element coordinates

addPositionUpdater

@AnyLogicInternalAPI
public void addPositionUpdater(String primPath,
 Function<A,PositionAndScale> positionProvider,
 Consumer<PositionAndScale> transformator)

addAttrUpdater

public void addAttrUpdater(String pathInsidePrim,
 String attrName,
 Function<A,Object> valueProvider)
Add binding to USD prim attribute
Parameters:
internalPrimPath - path to child prim
attributeName - attribute name
valueProvider - function that provides attribute value

addAttrUpdater

public void addAttrUpdater(String attrName,
 Function<A,Object> valueProvider)
Add binding to USD prim attribute
Specified by:
addAttrUpdater in interface InstancingUsdRepresentation<A>
Specified by:
addAttrUpdater in interface UsdRepresentation<A>
Specified by:
addAttrUpdater in class AbstractInstancingUsdRepresentation<A>
Parameters:
name - attribute name
valueProvider - function that provides attribute value

addVariantUpdater

public void addVariantUpdater(String pathInsidePrim,
 String varsetName,
 Function<A,Object> variantProvider)
Add binding to USD prim variant
Parameters:
internalPrimPath - path to child prim
varsetName - variant set name
variantProvider - function that provides variant name

addVariantUpdater

public void addVariantUpdater(String varsetName,
 Function<A,Object> variantProvider)
Add binding to USD prim variant
Specified by:
addVariantUpdater in interface InstancingUsdRepresentation<A>
Specified by:
addVariantUpdater in interface UsdRepresentation<A>
Specified by:
addVariantUpdater in class AbstractInstancingUsdRepresentation<A>
Parameters:
varsetName - variant set name
variantProvider - function that provides variant name

generate

@AnyLogicInternalAPI
public OmniFrame.FrameInfo generate(boolean fullFrame)

fillFrame

@AnyLogicInternalAPI
public void fillFrame(OmniFrame frame)
Specified by:
fillFrame in interface UsdRepresentation<A>
Specified by:
fillFrame in class AbstractInstancingUsdRepresentation<A>