AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public class OmniverseHelper
extends Object

Field Summary

Modifier and TypeFieldDescription
static final intOMNIVERSE_CONNECTOR_DEFAULT_PORT 
static final StringOMNIVERSE_PROTOCOL 
static final StringRELATIVE_SCENE_PREFIX 
static final StringROOT_PRIM_NAME 
static final StringUSD_CONTEXT_COLLECTION_KEY 
static final StringUSD_EXTENSION 
static final StringUSDA_EXTENSION 
static final StringUSDC_EXTENSION 
static final StringUSDZ_EXTENSION 

Constructor Summary

ConstructorDescription
OmniverseHelper() 

Method Summary

Modifier and TypeMethodDescription
static StringcombineUsdPaths(String parent, String child) 
static voidexportStage(String stagePath, String exportPath, boolean flatten) 
static List<String>formatAssetPath(String modelUsdPath, String scenePath) 
static StringformatPrimName(String objectName, String parent) 
static StringgetConnectorPath() 
static StringgetResourceUsdPath(String scenePath, String objectFilePath) 
static booleanisOmniverseConnectorInstalled() 
static booleanisOpenStageSupported() 
static booleanisRenderModelRun() 
static booleanisValidOmniversePath(String path) 
static booleanisValidUsdPath(String path) 
static booleanopenScene(String path) 
static voidopenSceneIfNeeded(OmniverseSyncParameters omniverseSyncParameters) 
static voidopenSceneIfNeeded(String scenePath, boolean openSceneConfigured) 
static voidstartLocalConnectorIfNeeded(OmniverseSyncParameters omniverseSyncParameters) 
static voidstartLocalConnectorIfNeeded(String password, boolean startConnectorConfigured) 

Methods inherited from class java.lang.Object

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

Field Details

ROOT_PRIM_NAME

public static final String ROOT_PRIM_NAME
See Also:
Constant Field Values

USD_CONTEXT_COLLECTION_KEY

public static final String USD_CONTEXT_COLLECTION_KEY
See Also:
Constant Field Values

OMNIVERSE_PROTOCOL

public static final String OMNIVERSE_PROTOCOL
See Also:
Constant Field Values

USDZ_EXTENSION

public static final String USDZ_EXTENSION
See Also:
Constant Field Values

USD_EXTENSION

public static final String USD_EXTENSION
See Also:
Constant Field Values

USDC_EXTENSION

public static final String USDC_EXTENSION
See Also:
Constant Field Values

USDA_EXTENSION

public static final String USDA_EXTENSION
See Also:
Constant Field Values

OMNIVERSE_CONNECTOR_DEFAULT_PORT

public static final int OMNIVERSE_CONNECTOR_DEFAULT_PORT
See Also:
Constant Field Values

RELATIVE_SCENE_PREFIX

public static final String RELATIVE_SCENE_PREFIX
See Also:
Constant Field Values

Constructor Details

OmniverseHelper

public OmniverseHelper()

Method Details

getConnectorPath

public static String getConnectorPath()

getResourceUsdPath

public static String getResourceUsdPath(String scenePath,
 String objectFilePath)

isOmniverseConnectorInstalled

public static boolean isOmniverseConnectorInstalled()

exportStage

public static void exportStage(String stagePath,
 String exportPath,
 boolean flatten)
                        throws Exception
Throws:
Exception

isOpenStageSupported

public static boolean isOpenStageSupported()

openScene

public static boolean openScene(String path)

openSceneIfNeeded

public static void openSceneIfNeeded(OmniverseSyncParameters omniverseSyncParameters)

openSceneIfNeeded

public static void openSceneIfNeeded(String scenePath,
 boolean openSceneConfigured)

startLocalConnectorIfNeeded

public static void startLocalConnectorIfNeeded(String password,
 boolean startConnectorConfigured)

startLocalConnectorIfNeeded

public static void startLocalConnectorIfNeeded(OmniverseSyncParameters omniverseSyncParameters)

isRenderModelRun

public static boolean isRenderModelRun()

isValidOmniversePath

public static boolean isValidOmniversePath(String path)

isValidUsdPath

public static boolean isValidUsdPath(String path)

formatPrimName

public static String formatPrimName(String objectName,
 String parent)

formatAssetPath

public static List<String> formatAssetPath(String modelUsdPath,
 String scenePath)

combineUsdPaths

@AnyLogicInternalAPI
public static String combineUsdPaths(String parent,
 String child)