AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxBrick Namespace Reference

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)
 

Typedef Documentation

Definition at line 56 of file BrickInterop.h.

Definition at line 56 of file BrickInterop.h.

Function Documentation

AGXBRICK_EXPORT agxSDK::Simulation* agxBrick::getRegisteredAgxSimulation ( const agx::String &  name)
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
AGXBRICK_EXPORT bool agxBrick::isInitialized ( )
Returns
True if Brick runtime is initialized
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
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
AGXBRICK_EXPORT agx::String agxBrick::locateBrickRootFromEnvironment ( )
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

AGXBRICK_EXPORT bool agxBrick::registerAgxSimulation ( agxSDK::Simulation *  target,
const agx::String &  name 
)
AGXBRICK_EXPORT void agxBrick::setInteropInstance ( BrickInterop *  instance)
AGXBRICK_EXPORT bool agxBrick::syncBrickInputs ( agxSDK::Simulation *  target)
AGXBRICK_EXPORT bool agxBrick::syncBrickOutputs ( agxSDK::Simulation *  target)
AGXBRICK_EXPORT bool agxBrick::unregisterAgxSimulation ( const agx::String &  name)