- java.lang.Object
- com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation<T>
- com.anylogic.engine.omniverse_connector.BatchMarkupUsdRepresentation<T>
- All Implemented Interfaces:
InstancingUsdRepresentation<T>
,UsdRepresentation<T>
@AnyLogicInternalAPI public class BatchMarkupUsdRepresentation<T extends AbstractMarkup> extends AbstractInstancingUsdRepresentation<T>
Constructor | Description |
---|---|
BatchMarkupUsdRepresentation |
Modifier and Type | Method | Description |
---|---|---|
void | addAttrUpdater |
Adds an attribute updater for a prim depending on the element state
|
void | addAttrUpdater |
Add binding to USD prim attribute
|
void | addVariantUpdater |
Adds a variant updater (a set of alternative configurations) for a prim
|
void | addVariantUpdater |
Add binding to USD prim variant
|
void | fillFrame |
Methods inherited from class com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation
disableCache, getAssetPaths, getCacheSize, getContainerPath, getObject, isInstanceable, setCacheSize, setInstanceable
public BatchMarkupUsdRepresentation(UsdContext context, Iterable<T> collection, List<String> assetPath, String containerPath, String innerPath, String parentContainerPath, BiFunction<T, String, AbstractUsdRepresentation<T>> factory)
@AnyLogicInternalAPI public void fillFrame(OmniFrame frame)
- Specified by:
fillFrame
in interfaceUsdRepresentation<T extends AbstractMarkup>
- Specified by:
fillFrame
in classAbstractInstancingUsdRepresentation<T extends AbstractMarkup>
public void addAttrUpdater(String name, Function<T, Object> valueProvider)
Description copied from class:
AbstractInstancingUsdRepresentation
Add binding to USD prim attribute
- Specified by:
addAttrUpdater
in interfaceInstancingUsdRepresentation<T extends AbstractMarkup>
- Specified by:
addAttrUpdater
in interfaceUsdRepresentation<T extends AbstractMarkup>
- Specified by:
addAttrUpdater
in classAbstractInstancingUsdRepresentation<T extends AbstractMarkup>
- Parameters:
name
- attribute namevalueProvider
- function that provides attribute value
public void addVariantUpdater(String name, Function<T, Object> valueProvider)
Description copied from class:
AbstractInstancingUsdRepresentation
Add binding to USD prim variant
- Specified by:
addVariantUpdater
in interfaceInstancingUsdRepresentation<T extends AbstractMarkup>
- Specified by:
addVariantUpdater
in interfaceUsdRepresentation<T extends AbstractMarkup>
- Specified by:
addVariantUpdater
in classAbstractInstancingUsdRepresentation<T extends AbstractMarkup>
- Parameters:
name
- variant set namevalueProvider
- function that provides variant name
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.
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.