AnyLogic
Expand
Font size
    java.lang.Object
      com.anylogic.engine.omniverse_connector.AbstractUsdRepresentation<A>
All Implemented Interfaces:
UsdRepresentation<A>
Direct Known Subclasses:
AgentUsdRepresentation, CameraUsdRepresentation, ElevatorUsdRepresentation, JibCraneUsdRepresentation, LiftUsdRepresentation, OverheadCraneUsdRepresentation, PositionalMarkupUsdRepresentation, ShapeUsdRepresentation

@AnyLogicInternalAPI
public class AbstractUsdRepresentation<A>
extends Object
implements UsdRepresentation<A>

Field Summary

Modifier and TypeFieldDescription
static final StringUSD_ATTR_VISIBILITY 

Constructor Summary

ConstructorDescription
AbstractUsdRepresentation(UsdContext context, A objectToWatch, String usdPrimPath) 

Method Summary

Modifier and TypeMethodDescription
voidaddAttrUpdater(com.anylogic.engine.omniverse_connector.FieldProvider<A> provider) 
voidaddAttrUpdater(String internalPrimPath, String attributeName, Function<A,Object> valueProvider)
Add binding to USD prim attribute
voidaddAttrUpdater(String attributeName, Function<A,Object> valueProvider)
Add binding to USD prim attribute
voidaddPositionUpdater(String primPath, Function<A,PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator) 
voidaddPositionUpdater(String primPath, Function<A,PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator, AbstractPositionWatcher.BasisType basis) 
voidaddPositionUpdater(Function<A,PositionAndScale> positionProvider)
Add function to provide model element coordinates
voidaddVariantUpdater(boolean absolutePath, String primPath, String varsetName, Function<A,Object> variantProvider) 
voidaddVariantUpdater(String internalPrimPath, 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
voidaddVisibilityListener()
Add default attribute updaters for visibility attribute
voidfillFrame(OmniFrame frame) 
AgetObject() 

Methods inherited from class java.lang.Object

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

Field Details

USD_ATTR_VISIBILITY

public static final String USD_ATTR_VISIBILITY
See Also:
Constant Field Values

Constructor Details

AbstractUsdRepresentation

public AbstractUsdRepresentation(UsdContext context,
 A objectToWatch,
 String usdPrimPath)

Method Details

addAttrUpdater

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

addAttrUpdater

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

addAttrUpdater

@AnyLogicInternalAPI
public void addAttrUpdater(com.anylogic.engine.omniverse_connector.FieldProvider<A> provider)

addPositionUpdater

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

addPositionUpdater

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

addPositionUpdater

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

addVariantUpdater

public void addVariantUpdater(String internalPrimPath,
 String varsetName,
 Function<A,Object> variantProvider)
Add binding to USD prim variant
Specified by:
addVariantUpdater in interface UsdRepresentation<A>
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 UsdRepresentation<A>
Parameters:
varsetName - variant set name
variantProvider - function that provides variant name

addVariantUpdater

@AnyLogicInternalAPI
public void addVariantUpdater(boolean absolutePath,
 String primPath,
 String varsetName,
 Function<A,Object> variantProvider)

addVisibilityListener

public void addVisibilityListener()
Add default attribute updaters for visibility attribute

fillFrame

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

getObject

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