AGX Dynamics  2.37.3.2
agxBrick Namespace Reference

Interface to the Brick data and modelling format for simulation and engineering workflows. More...

Classes

class  BrickInterop
 
class  BrickInteropHost
 
struct  BrickInteropInitArgs
 

Typedefs

typedef agx::observer_ptr< const BrickInterop > BrickInteropConstObserver
 
typedef agx::ref_ptr< const BrickInterop > BrickInteropConstRef
 
typedef agx::observer_ptr< BrickInterop > BrickInteropObserver
 
typedef agx::ref_ptr< BrickInterop > BrickInteropRef
 

Functions

AGXBRICK_EXPORT agxSDK::Simulation * getRegisteredAgxSimulation (const agx::String &name)
 
AGXBRICK_EXPORT bool init (const agx::String &brickRoot, const agx::String &logLevel="info", bool initPythonnet=true)
 Initialize the embedded Brick .NET runtime. More...
 
AGXBRICK_EXPORT bool isInitialized ()
 
AGXBRICK_EXPORT bool loadBrickFile (agxSDK::Simulation *target, const agx::String &filePath, const agx::String &model)
 Load a Brick model from file into a target simulation. More...
 
AGXBRICK_EXPORT bool loadBrickFile (agxSDK::Assembly *target, agxSDK::Simulation *simulation, const agx::String &filePath, const agx::String &model)
 Load a Brick model from file into a target assembly. More...
 
AGXBRICK_EXPORT agx::String locateBrickRootFromEnvironment ()
 
AGXBRICK_EXPORT bool parseBrickModelLoadingDeclaration (const agx::String &declaration, agx::String &filepath, agx::String &modelname)
 Parsing of composite brick model path syntax, eg path/to/modelfile.yml:modelname More...
 
AGXBRICK_EXPORT bool registerAgxSimulation (agxSDK::Simulation *target, const agx::String &name)
 
AGXBRICK_EXPORT void setInteropInstance (BrickInterop *instance)
 
AGXBRICK_EXPORT bool syncBrickInputs (agxSDK::Simulation *target)
 
AGXBRICK_EXPORT bool syncBrickOutputs (agxSDK::Simulation *target)
 
AGXBRICK_EXPORT bool unregisterAgxSimulation (const agx::String &name)
 

Detailed Description

Interface to the Brick data and modelling format for simulation and engineering workflows.

Typedef Documentation

◆ BrickInteropConstObserver

◆ BrickInteropConstRef

Definition at line 56 of file BrickInterop.h.

◆ BrickInteropObserver

◆ BrickInteropRef

Definition at line 56 of file BrickInterop.h.

Function Documentation

◆ getRegisteredAgxSimulation()

AGXBRICK_EXPORT agxSDK::Simulation* agxBrick::getRegisteredAgxSimulation ( const agx::String &  name)

◆ init()

AGXBRICK_EXPORT bool agxBrick::init ( const agx::String &  brickRoot,
const agx::String &  logLevel = "info",
bool  initPythonnet = true 
)

Initialize the embedded Brick .NET runtime.

Parameters
brickRootPath to the root Brick directory
logLevelLogging level for the Brick runtime
initPythonnetSpecify if Brick should initialize pythonnet bridge
Returns
True if successful

◆ isInitialized()

AGXBRICK_EXPORT bool agxBrick::isInitialized ( )
Returns
True if Brick runtime is initialized

Referenced by agxOSG::PickHandler::setSimulation().

◆ loadBrickFile() [1/2]

AGXBRICK_EXPORT bool agxBrick::loadBrickFile ( agxSDK::Simulation *  target,
const agx::String &  filePath,
const agx::String &  model 
)

Load a Brick model from file into a target simulation.

Parameters
targetThe target simulation for loading the model
filePathThe filepath to the Brick model
modelThe name of the model in the file

◆ loadBrickFile() [2/2]

AGXBRICK_EXPORT bool agxBrick::loadBrickFile ( agxSDK::Assembly *  target,
agxSDK::Simulation *  simulation,
const agx::String &  filePath,
const agx::String &  model 
)

Load a Brick model from file into a target assembly.

Parameters
targetThe target simulation for loading the model
filePathThe filepath to the Brick model
modelThe name of the model in the file

◆ locateBrickRootFromEnvironment()

AGXBRICK_EXPORT agx::String agxBrick::locateBrickRootFromEnvironment ( )

◆ parseBrickModelLoadingDeclaration()

AGXBRICK_EXPORT bool agxBrick::parseBrickModelLoadingDeclaration ( const agx::String &  declaration,
agx::String &  filepath,
agx::String &  modelname 
)

Parsing of composite brick model path syntax, eg path/to/modelfile.yml:modelname

◆ registerAgxSimulation()

AGXBRICK_EXPORT bool agxBrick::registerAgxSimulation ( agxSDK::Simulation *  target,
const agx::String &  name 
)

◆ setInteropInstance()

AGXBRICK_EXPORT void agxBrick::setInteropInstance ( BrickInterop *  instance)

◆ syncBrickInputs()

AGXBRICK_EXPORT bool agxBrick::syncBrickInputs ( agxSDK::Simulation *  target)

◆ syncBrickOutputs()

AGXBRICK_EXPORT bool agxBrick::syncBrickOutputs ( agxSDK::Simulation *  target)

◆ unregisterAgxSimulation()

AGXBRICK_EXPORT bool agxBrick::unregisterAgxSimulation ( const agx::String &  name)