public void SetOutputDirectory(string OutputDirectoryPath) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } ControlLayer.SetOutputDirectoryExternal(theModel, OutputDirectoryPath); }
public void SetLogCallback(LogCallback theCallback) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } ControlLayer.SetLogCallbackExternal(theModel, theCallback); }
public ControlLayer() { theModel = ControlLayer.CreateModelExternal(); if (theModel == IntPtr.Zero) { throw new ApplicationException("Failed to initialize model"); } }
public int SetModuleDirectory(string ModuleDirectoryPath) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } return(ControlLayer.SetModuleDirectoryExternal(theModel, ModuleDirectoryPath)); }
public int StopModules() { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } return(ControlLayer.StopModulesExternal(theModel)); }
public int RunModel(int NumFrames) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } return(ControlLayer.RunModelExternal(theModel, NumFrames)); }
public int LoadModuleParameters(string ModuleParameterFileName) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } return(ControlLayer.LoadModuleParametersExternal(theModel, ModuleParameterFileName)); }
public int UnloadModel() { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } Environment.CurrentDirectory = SavedPath; return(ControlLayer.UnloadModelExternal(theModel)); }
public int LoadModelConfigFile(string ModelConfigFileName, float FrameSize_uS) { if (theModel == IntPtr.Zero) { throw new ApplicationException("Model not initialized"); } SavedPath = Environment.CurrentDirectory; Environment.CurrentDirectory = Path.GetDirectoryName(ModelConfigFileName); return(ControlLayer.LoadModelConfigFileExternal(theModel, ModelConfigFileName, FrameSize_uS)); }