- java.lang.Object
- com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation<A>
- com.anylogic.engine.omniverse_connector.CollectionUsdRepresentation<A>
- All Implemented Interfaces:
InstancingUsdRepresentation<A>
,UsdRepresentation<A>
- Direct Known Subclasses:
MarkupCollectionUsdRepresentation
,PopulationUsdRepresentation
,PositionalMarkupCollectionUsdRepresentation
,ShapeCollectionUsdRepresentation
,UsdElementCollectionUsdRepresentation
@AnyLogicInternalAPI public class CollectionUsdRepresentation<A> extends AbstractInstancingUsdRepresentation<A>
Constructor | Description |
---|---|
CollectionUsdRepresentation | |
CollectionUsdRepresentation |
Modifier and Type | Method | Description |
---|---|---|
void | addAttrUpdater |
Add binding to USD prim attribute
|
void | addAttrUpdater |
Add binding to USD prim attribute
|
void | addPositionUpdater |
Add function to provide model element coordinates
|
void | addPositionUpdater | |
void | addVariantUpdater |
Add binding to USD prim variant
|
void | addVariantUpdater |
Add binding to USD prim variant
|
void | fillFrame | |
OmniFrame.FrameInfo | generate |
Methods inherited from class com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation
disableCache, getAssetPaths, getCacheSize, getContainerPath, getObject, isInstanceable, setCacheSize, setInstanceable
public CollectionUsdRepresentation(UsdContext context, Iterable<A> population, List<String> assetPath, String containerPath, Function<A, String> idProvider)
public CollectionUsdRepresentation(UsdContext context, A singleObject, String assetPath, String containerPath)
public void addPositionUpdater(String primPath, Function<A, PositionAndScale> positionProvider)
Add function to provide model element coordinates
- Parameters:
primPath
- USD prim pathpositionProvider
- function to provide model element coordinates
@AnyLogicInternalAPI public void addPositionUpdater(String primPath, Function<A, PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator)
public void addAttrUpdater(String pathInsidePrim, String attrName, Function<A, Object> valueProvider)
Add binding to USD prim attribute
- Parameters:
internalPrimPath
- path to child primattributeName
- attribute namevalueProvider
- function that provides attribute value
public void addAttrUpdater(String attrName, Function<A, Object> valueProvider)
Add binding to USD prim attribute
- Specified by:
addAttrUpdater
in interfaceInstancingUsdRepresentation<A>
- Specified by:
addAttrUpdater
in interfaceUsdRepresentation<A>
- Specified by:
addAttrUpdater
in classAbstractInstancingUsdRepresentation<A>
- Parameters:
name
- attribute namevalueProvider
- function that provides attribute value
public void addVariantUpdater(String pathInsidePrim, String varsetName, Function<A, Object> variantProvider)
Add binding to USD prim variant
- Parameters:
internalPrimPath
- path to child primvarsetName
- variant set namevariantProvider
- function that provides variant name
public void addVariantUpdater(String varsetName, Function<A, Object> variantProvider)
Add binding to USD prim variant
- Specified by:
addVariantUpdater
in interfaceInstancingUsdRepresentation<A>
- Specified by:
addVariantUpdater
in interfaceUsdRepresentation<A>
- Specified by:
addVariantUpdater
in classAbstractInstancingUsdRepresentation<A>
- Parameters:
varsetName
- variant set namevariantProvider
- function that provides variant name
@AnyLogicInternalAPI public OmniFrame.FrameInfo generate(boolean fullFrame)
@AnyLogicInternalAPI public void fillFrame(OmniFrame frame)
- Specified by:
fillFrame
in interfaceUsdRepresentation<A>
- Specified by:
fillFrame
in classAbstractInstancingUsdRepresentation<A>