AnyLogic
Expand
Font size
All Implemented Interfaces:
InstancingUsdRepresentation<T>, UsdRepresentation<T>

@AnyLogicInternalAPI
public class BatchMarkupUsdRepresentation<T extends AbstractMarkup>
extends AbstractInstancingUsdRepresentation<T>

Constructor Summary

ConstructorDescription
BatchMarkupUsdRepresentation(UsdContext context, Iterable<T> collection, List<String> assetPath, String containerPath, String innerPath, String parentContainerPath, BiFunction<T,String,AbstractUsdRepresentation<T>> factory) 

Method Summary

Modifier and TypeMethodDescription
voidaddAttrUpdater(String pathInsidePrim, String attrName, Function<T,Object> valueProvider)
Adds an attribute updater for a prim depending on the element state
voidaddAttrUpdater(String name, Function<T,Object> valueProvider)
Add binding to USD prim attribute
voidaddVariantUpdater(String pathInsidePrim, String varsetName, Function<T,Object> variantProvider)
Adds a variant updater (a set of alternative configurations) for a prim
voidaddVariantUpdater(String name, Function<T,Object> valueProvider)
Add binding to USD prim variant
voidfillFrame(OmniFrame frame) 

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

BatchMarkupUsdRepresentation

public BatchMarkupUsdRepresentation(UsdContext context,
 Iterable<T> collection,
 List<String> assetPath,
 String containerPath,
 String innerPath,
 String parentContainerPath,
 BiFunction<T,String,AbstractUsdRepresentation<T>> factory)

Method Details

fillFrame

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

addAttrUpdater

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

addVariantUpdater

public void addVariantUpdater(String name,
 Function<T,Object> valueProvider)
Description copied from class: AbstractInstancingUsdRepresentation
Add binding to USD prim variant
Specified by:
addVariantUpdater in interface InstancingUsdRepresentation<T extends AbstractMarkup>
Specified by:
addVariantUpdater in interface UsdRepresentation<T extends AbstractMarkup>
Specified by:
addVariantUpdater in class AbstractInstancingUsdRepresentation<T extends AbstractMarkup>
Parameters:
name - variant set name
valueProvider - function that provides variant name

addVariantUpdater

public void addVariantUpdater(String pathInsidePrim,
 String varsetName,
 Function<T,Object> variantProvider)
Description copied from interface: UsdRepresentation
Adds a variant updater (a set of alternative configurations) for a prim
Parameters:
pathInsidePrim - A relative part to an embedded prim that needs to be changed.
varsetName - The name of the variant set.
variantProvider - The function that generates the name of the USD prim variant depending on the state of the element.

addAttrUpdater

public void addAttrUpdater(String pathInsidePrim,
 String attrName,
 Function<T,Object> valueProvider)
Description copied from interface: UsdRepresentation
Adds an attribute updater for a prim depending on the element state
Parameters:
pathInsidePrim - A relative part to an embedded prim that needs to be changed.
attrName - The name of the attribute of the USD object that needs to be changed.
valueProvider - The function that generates an attribute value being updated.