AnyLogic
Expand
Font size
    java.lang.Object
      com.anylogic.engine.omniverse_connector.AbstractInstancingUsdRepresentation<A>
All Implemented Interfaces:
InstancingUsdRepresentation<A>, UsdRepresentation<A>
Direct Known Subclasses:
BatchMarkupUsdRepresentation, CollectionUsdRepresentation

@AnyLogicInternalCodegenAPI
public abstract class AbstractInstancingUsdRepresentation<A>
extends Object
implements InstancingUsdRepresentation<A>

Constructor Summary

ConstructorDescription
AbstractInstancingUsdRepresentation(Iterable<A> collection, List<String> assetPath, String containerPath) 

Method Summary

Modifier and TypeMethodDescription
abstract voidaddAttrUpdater(String name, Function<A,Object> valueProvider)
Add binding to USD prim attribute
abstract voidaddVariantUpdater(String name, Function<A,Object> valueProvider)
Add binding to USD prim variant
voiddisableCache() 
abstract voidfillFrame(OmniFrame frame) 
List<String>getAssetPaths() 
intgetCacheSize() 
StringgetContainerPath() 
Iterable<A>getObject() 
booleanisInstanceable()
Return if USD prims will be instanceable
voidsetCacheSize(int cacheSize) 
voidsetInstanceable(boolean instanceable)
Set if USD prims will be instanceable or not

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.omniverse_connector.UsdRepresentation

addAttrUpdater, addVariantUpdater

Constructor Details

AbstractInstancingUsdRepresentation

public AbstractInstancingUsdRepresentation(Iterable<A> collection,
 List<String> assetPath,
 String containerPath)

Method Details

setCacheSize

@AnyLogicInternalAPI
public void setCacheSize(int cacheSize)
Specified by:
setCacheSize in interface InstancingUsdRepresentation<A>

disableCache

@AnyLogicInternalAPI
public void disableCache()
Specified by:
disableCache in interface InstancingUsdRepresentation<A>

getObject

@AnyLogicInternalAPI
public Iterable<A> getObject()
Specified by:
getObject in interface UsdRepresentation<A>

getCacheSize

@AnyLogicInternalAPI
public int getCacheSize()
Specified by:
getCacheSize in interface InstancingUsdRepresentation<A>

isInstanceable

public boolean isInstanceable()
Return if USD prims will be instanceable
Specified by:
isInstanceable in interface InstancingUsdRepresentation<A>
Returns:

getContainerPath

@AnyLogicInternalAPI
public String getContainerPath()
Specified by:
getContainerPath in interface InstancingUsdRepresentation<A>

getAssetPaths

@AnyLogicInternalAPI
public List<String> getAssetPaths()
Specified by:
getAssetPaths in interface InstancingUsdRepresentation<A>

setInstanceable

public void setInstanceable(boolean instanceable)
Set if USD prims will be instanceable or not
Specified by:
setInstanceable in interface InstancingUsdRepresentation<A>
Parameters:
instanceable -

fillFrame

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

addAttrUpdater

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

addVariantUpdater

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