// ------------------------------------------------------------------------------------------------------------ public GraphismVAS2015_0(IRenderEngine renderEngine, IComputerVisionManager cvManager) { OutputControllerFactory = new InfoActionsGeneratorFactoryVAS0(); // Generadores de acciones OutputServicesControllerFactory = new InfoStateControllerFactoryVAS0(renderEngine, cvManager); // Controlador de servicios adicionales GraphicControllerOutputFactory = new GraphicControllerOutputFactoryVAS0(); // Generadores de animaciones TimerServices.StartTimerServices(); }
// ------------------------------------------------------------------------------------------------------------------ public ServiceAnchorInfo(InfoData pTheInfo, int dataFrameRate, IActionManager actionManager, RenderEngine.IRenderEngine renderEngine, IComputerVisionManager cvManager) { int iDelay = 1000 / dataFrameRate; mHandlerReadLiveData = new HandlerReadLiveData(this); mHandlerSendToVIZ = new HandlerSendToVIZ(this); mActionManager = actionManager; mTheInfo = pTheInfo; mRenderEngine = renderEngine; mcvManager = cvManager; TimerServices.registerInTimer50(mHandlerReadLiveData); TimerServices.registerInTimer100(mHandlerSendToVIZ); }
public InfoStateControllerAnchorPoint(RenderEngine.IRenderEngine renderEngine, IComputerVisionManager cvManager) { mRenderEngine = renderEngine; mcvManager = cvManager; }
internal static IGraphicsService Create(ParamsCreateScreenVIZ vizParams, string sceneName, IComputerVisionManager cvManager) { IRenderEngine renderEngine = createRenderEngine(vizParams, sceneName); // Crear el server --------------------------------------------------------------- IUserCommandParser userCommandParser = new UserCommandParser(); IOutputsSettings outputsSettings = new OutputsSettings(); GraphismVAS2015_0 theGraphism = new GraphismVAS2015_0(renderEngine, cvManager); TheGraphism = theGraphism; return(new GraphicsServiceBasic(userCommandParser, theGraphism, renderEngine, outputsSettings)); }
IComputerVisionManager mComputerVisionManager; // = new ComputerVisionManager(); //UniversalNETCom.UniversalNETCom mUnc; public MainWindow() { InitializeComponent(); if (Settings.Default.SettingsUpgradeRequired) { Settings.Default.Upgrade(); Settings.Default.SettingsUpgradeRequired = false; Settings.Default.Save(); } /*ServiceProvider.ServiceProviderUDPMulticast v = new ServiceProvider.ServiceProviderUDPMulticast(IPAddress.Parse("225.0.140.1"), 11972); * telemetryNET.Start(); * mUnc = new UniversalNETCom.UniversalNETCom( new CLProtocol.Codecs.CodecTXTSerial_02(), * telemetryNET);*/ this.Title = "Video Analyzer System - Prototype v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); mComputerVisionManager = new ComputerVisionManager(); mComputerVisionManager.OnKeyboardEvent += mComputerVisionManager_OnKeyboardEvent; TxtTCPAddress.Text = Settings.Default.TCPAddress; TxtUDPAddress.Text = Settings.Default.UDPAddress; TxtTCPPort.Text = Settings.Default.TCPPort.ToString(); TxtUDPPort.Text = Settings.Default.UDPPort.ToString(); TxtAreaTracking.Text = Settings.Default.AnchorSize; ChkActivateSBD.IsChecked = Settings.Default.SBDActive; TxtSBDThreshold.Text = Settings.Default.SBDThreshold.ToString("N2"); if (Settings.Default.FromDevice) { RadFromDevice.IsChecked = true; } else { RadFromFile.IsChecked = true; } TxtFileName.Text = Settings.Default.FileName; TxtDeviceNumber.Text = Settings.Default.DeviceNumber.ToString(); TxtScene.Text = Settings.Default.VIZSceneName; TxtResizeAt.Text = Settings.Default.FrameWorkingSize; ChkResize.IsChecked = Settings.Default.ActivateResize; TxtCaptureResolution.Text = Settings.Default.CaptureResolution; TxtCaptureFrameRate.Text = Settings.Default.CaptureFrameRate.ToString("N2"); TxtInterFrameAnchorDisp.Text = Settings.Default.MaxAnchorDisplacement.ToString(); //TxtSendDataDelay.Text = Settings.Default.SendDataDelay.ToString(); SendDelay = Settings.Default.SendDataDelay; DefaultSceneToReload = Settings.Default.DefaultSceneToReload; ActivateSCIM = Settings.Default.ActivateSCIM; SceneTrackingMode = Settings.Default.SceneTrackingMode; }
// ------------------------------------------------------------------------------------------------------------ public InfoStateControllerFactoryVAS0(IRenderEngine renderEngine, IComputerVisionManager cvManager) { mRenderEngine = renderEngine; mcvManager = cvManager; }