private void SetDefaults(AHMTrackingModule trackingModule)
        {
            trackingModule.PanelType = AHMPanelType.Simple;
            trackingModule.KernelLightingCorrection = true;
            trackingModule.NumTemplates = 16;
            trackingModule.ExtraDisplay = true;
            trackingModule.MouseControlModuleStandard = StandardMouseControl;

        }
        public AHMTrackingSuite()
        {
            AHMTrackingModule ahmTracker = new AHMTrackingModule();

            this.trackingModule     = ahmTracker;
            this.mouseControlModule = new CMSMouseControlModuleStandard();
            this.clickControlModule = new CMSClickControlModuleStandard();
            ahmTracker.MouseControlModuleStandard = mouseControlModule as CMSMouseControlModuleStandard;

            this.name         = "AHM";
            this.informalName = "Fast Motion Tracker (Advanced)";
            this.description  = "This tracker can track very fast motions. Advanced controls are visible.";
        }
Exemple #3
0
        public override void Update(CMSModule module)
        {
            AHMTrackingModule trackModule = module as AHMTrackingModule;

            KernelLightingCorrection = trackModule.KernelLightingCorrection;
            NumTemplates             = trackModule.NumTemplates;
            ExtraDisplay             = trackModule.ExtraDisplay;
            SetupType       = trackModule.SetupType;
            ObsSize         = trackModule.ObsSize;
            PanelType       = trackModule.PanelType;
            UpdateFrequency = trackModule.UpdateFrequency;
            AutoStartMode   = trackModule.AutoStartMode;
            SetState(AHMTrackingState.NoFeature);
        }
Exemple #4
0
        /*
         * public CMSMouseControlModuleStandard StandardMouseControl
         * {
         *  get
         *  {
         *      return this.mouseControlModule as CMSMouseControlModuleStandard;
         *  }
         *  set
         *  {
         *      this.mouseControlModule = value;
         *      if (trackingModule != null)
         *      {
         *          ((AHMTrackingModule)trackingModule).MouseControlModuleStandard = StandardMouseControl;
         *      }
         *  }
         * }
         */

        public AHMMovementClickTrackingSuite()
        {
            AHMTrackingModule ahmTracker = new AHMTrackingModule();

            ahmTracker.PanelType = AHMPanelType.Eyebrow;
            ahmTracker.KernelLightingCorrection = false;
            ahmTracker.SetupType    = AHMSetupType.Timing10Sec;
            ahmTracker.NumTemplates = 16;

            this.trackingModule     = ahmTracker;
            this.mouseControlModule = null;
            this.clickControlModule = new AHMMovementClickModule();

            this.name         = "AHMMovementClick";
            this.informalName = "Eyebrow Clicker";
            this.description  = "This tracker causes clicks to occur when the user moves his or her eyebrow. It is intended for users with stationary heads.";
        }
        public AHMSimpleTrackingSuite()
        {
            AHMTrackingModule ahmTracker = new AHMTrackingModule();
            SetDefaults(ahmTracker);
            //ahmTracker.PanelType = AHMPanelType.Simple;
            //ahmTracker.KernelLightingCorrection = false;
            //ahmTracker.NumTemplates = 16;
            
            this.trackingModule = ahmTracker;            
            this.mouseControlModule = new CMSMouseControlModuleStandard();
            this.clickControlModule = new CMSClickControlModuleStandard();
            ahmTracker.MouseControlModuleStandard = mouseControlModule as CMSMouseControlModuleStandard;

            this.name = "AHMSimple";
            this.informalName = "Fast Motion Tracker";
            this.description = "This tracker can track very fast motions";

        }
Exemple #6
0
 public void SetModule(AHMTrackingModule trackingModule)
 {
     this.trackingModule = trackingModule;
     LoadFromControls();
 }