Ejemplo n.º 1
0
        // Detach camera from view
        public bool DetachCameraViewAnalyzer(VsAppInterface vsApp)
        {
            try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); }
            catch { return(false); }

            return(true);
        }
Ejemplo n.º 2
0
        // Attach channel to view
        public bool AttachChannelView(VsAppInterface vsApp)
        {
            try { this.FrameOut += new VsImageEventHandler(vsApp.FrameIn); }
            catch { return(false); }

            return(true);
        }
Ejemplo n.º 3
0
        // Detach camera from view
        public bool DetachCameraView(VsAppInterface vsApp)
        {
            try { FrameOut -= new VsImageEventHandler(vsApp.FrameIn); }
            catch { return(false); }

            return(true);
        }
Ejemplo n.º 4
0
        // Detach camera from view
        public bool DetachChannelViewAnalyzer(VsAppInterface vsApp)
        {
            try
            {
                try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); }
                catch { return(false); }
            }
            catch (Exception err)
            {
                logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
            }

            return(true);
        }
Ejemplo n.º 5
0
        // Detach camera from view
        public bool DetachChannelViewAnalyzer(VsAppInterface vsApp)
        {
            try
            {
                try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); }
                catch { return false; }
            }
            catch (Exception err)
            {
                logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
            }

            return true;
        }
Ejemplo n.º 6
0
        // Detach channel from view
        public bool DetachChannelView(VsAppInterface vsApp)
        {
            try { this.FrameOut -= new VsImageEventHandler(vsApp.FrameIn); }
            catch { return false; }

            return true;
        }
Ejemplo n.º 7
0
        // Detach channel from view analyzer
        public bool DetachChannelViewAnalyzer(String channelName, VsAppInterface vsApp)
        {
            try
            {
                VsChannel vsChannel = GetChannelByName(channelName);

                return vsChannel.DetachChannelViewAnalyzer(vsApp);
            }
            catch (Exception err)
            {
                logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
            }

            return false;
        }
Ejemplo n.º 8
0
        // Detach camera from view analyzer
        public bool DetachCameraViewAnalyzer(String cameraName, VsAppInterface vsApp)
        {
            try
            {
                VsCamera vsCam = vsCameras.GetCameraByName(cameraName);

                return vsCam.DetachCameraViewAnalyzer(vsApp);
            }
            catch (Exception err)
            {
                logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);;
            }
            return false;
        }
Ejemplo n.º 9
0
        // Detach camera from view
        public bool DetachCameraViewAnalyzer(VsAppInterface vsApp)
        {
            try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); }
            catch { return false; }

            return true;
        }
Ejemplo n.º 10
0
        // Attach camera to view
        public bool AttachCameraView(VsAppInterface vsApp)
        {
            try { FrameOut += new VsImageEventHandler(vsApp.FrameIn); }
            catch { return false; }

            return true;
        }