public CMSViewAdapter(CMSModel model, CMSController controller, CMSVideoSource videoSource) { this.videoSource = videoSource; this.model = model; this.controller = controller; }
public static void Main(String[] args) { ProcessCommandLineArguments(args); Environment.SetEnvironmentVariable("NotStudy", "true"); if (Environment.GetEnvironmentVariables().Contains("ExpSaveDir")) { string saveDir = Environment.GetEnvironmentVariables()["ExpSaveDir"] as string; ExperimentClickFrameSaver.Init(saveDir); } /* * if (Environment.GetEnvironmentVariables().Contains("ExpSaveDir") && * Environment.GetEnvironmentVariables().Contains("ExpSaveTime")) * { * string saveDir = Environment.GetEnvironmentVariables()["ExpSaveDir"] as string; * string saveTime = Environment.GetEnvironmentVariables()["ExpSaveTime"] as string; * * int iSaveTime = Int32.Parse(saveTime); * ExperimentFrameSaver.Init(iSaveTime, saveDir); * } */ CMSCameraProfile profile = CMSCameraProfile.OneCamera; if (Environment.GetEnvironmentVariables().Contains("CameraProfile")) { try { string pa = Environment.GetEnvironmentVariables()["CameraProfile"] as string; profile = (CMSCameraProfile)Enum.Parse(typeof(CMSCameraProfile), pa); } catch (Exception e) { } } if (profile.Equals(CMSCameraProfile.OneCamera)) { CMSController controller = new CMSController(); VideoForm vf = new VideoForm(); CMSSingleWebcamSource source = new CMSSingleWebcamSource(); CMSControlToggler ct = new CMSControlToggler(); controller.Start(source, vf, ct); } else if (profile.Equals(CMSCameraProfile.LeftRight)) { CMSController controller = new CMSController(); LeftRightWindowsForm lrvf = new LeftRightWindowsForm(); CMSMultipleWebcamSource source = new CMSMultipleWebcamSource(); source.Profile = CMSCameraProfile.LeftRight; CMSControlToggler ct = new CMSControlToggler(); controller.Start(source, lrvf, ct); } else { CMSController controller = new CMSController(); CMSMultipleCameraForm f = new CMSMultipleCameraForm(); CMSMultipleWebcamSource source = new CMSMultipleWebcamSource(); source.Profile = profile; CMSControlToggler ct = new CMSControlToggler(); controller.Start(source, f, ct); } }
public CMSStandardTrackingSuiteAdapter(CMSModel model, CMSController controller, CMSVideoDisplay view) { this.model = model; this.controller = controller; this.view = view; }