- 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>
Modifier and Type | Field | Description |
---|---|---|
static final String | USD_ATTR_VISIBILITY |
Constructor | Description |
---|---|
AbstractUsdRepresentation |
Modifier and Type | Method | Description |
---|---|---|
void | addAttrUpdater | |
void | addAttrUpdater |
Add binding to USD prim attribute
|
void | addAttrUpdater |
Add binding to USD prim attribute
|
void | addPositionUpdater | |
void | addPositionUpdater | |
void | addPositionUpdater |
Add function to provide model element coordinates
|
void | addVariantUpdater | |
void | addVariantUpdater |
Add binding to USD prim variant
|
void | addVariantUpdater |
Add binding to USD prim variant
|
void | addVisibilityListener() |
Add default attribute updaters for visibility attribute
|
void | fillFrame | |
A | getObject() |
public static final String USD_ATTR_VISIBILITY
- See Also:
- Constant Field Values
public AbstractUsdRepresentation(UsdContext context, A objectToWatch, String usdPrimPath)
public void addAttrUpdater(String internalPrimPath, String attributeName, Function<A, Object> valueProvider)
Add binding to USD prim attribute
- Specified by:
addAttrUpdater
in interfaceUsdRepresentation<A>
- Parameters:
internalPrimPath
- path to child primattributeName
- attribute namevalueProvider
- function that provides attribute value
public void addAttrUpdater(String attributeName, Function<A, Object> valueProvider)
Add binding to USD prim attribute
- Specified by:
addAttrUpdater
in interfaceUsdRepresentation<A>
- Parameters:
name
- attribute namevalueProvider
- function that provides attribute value
@AnyLogicInternalAPI public void addAttrUpdater(com.anylogic.engine.omniverse_connector.FieldProvider<A> provider)
public void addPositionUpdater(Function<A, PositionAndScale> positionProvider)
Add function to provide model element coordinates
- Parameters:
positionProvider
- function to provide model element coordinates
@AnyLogicInternalAPI public void addPositionUpdater(String primPath, Function<A, PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator)
@AnyLogicInternalAPI public void addPositionUpdater(String primPath, Function<A, PositionAndScale> positionProvider, Consumer<PositionAndScale> transformator, AbstractPositionWatcher.BasisType basis)
public void addVariantUpdater(String internalPrimPath, String varsetName, Function<A, Object> variantProvider)
Add binding to USD prim variant
- Specified by:
addVariantUpdater
in interfaceUsdRepresentation<A>
- 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 interfaceUsdRepresentation<A>
- Parameters:
varsetName
- variant set namevariantProvider
- function that provides variant name
@AnyLogicInternalAPI public void addVariantUpdater(boolean absolutePath, String primPath, String varsetName, Function<A, Object> variantProvider)
public void addVisibilityListener()
Add default attribute updaters for visibility attribute
@AnyLogicInternalAPI public void fillFrame(OmniFrame frame)
- Specified by:
fillFrame
in interfaceUsdRepresentation<A>
@AnyLogicInternalAPI public A getObject()
- Specified by:
getObject
in interfaceUsdRepresentation<A>