/// <summary> /// Init all information of the experiment /// </summary> protected override void Initialize() { text = new Text(GraphicsDevice, Services, SLConfig["content"], "Arial"); // Init Experiment Parameter ex = new SLExperiment(); ex.AddExType(ExType.RF_fBar); ex.AddCondition(ExPara.Orientation, 0); ex.Exdesign.trial = 50; ex.Exdesign.durT = 0.030f; ex.Exdesign.bgcolor = Color.Gray; // Init Two Bars Parameters BarPara bpara = BarPara.Default; bpara.width = 1.0f; bpara.height = 0.5f; bpara.BasePara.orientation = 0.0f; bpara.BasePara.color = Color.Black; bars[0].Init(GraphicsDevice, bpara); bpara.BasePara.color = Color.White; bars[1].Init(GraphicsDevice, bpara); Rstep = 0.5f; Cstep = 0.5f; InitGrid(); }
/// <summary> /// Init all information of the experiment /// </summary> protected override void Initialize() { text = new Text(GraphicsDevice, Services, SLConfig["content"], "Arial"); // Init Experiment Parameter ex = new SLExperiment(); ex.AddExType(ExType.Two_dBar); ex.AddCondition(ExPara.Direction, 4); ex.Exdesign.trial = 3; ex.Exdesign.trestT = 1.0f; ex.Exdesign.srestT = 0.5f; ex.Exdesign.preT = 0.25f; ex.Exdesign.durT = 1.0f; ex.Exdesign.posT = 0.25f; ex.Exdesign.bgcolor = Color.Black; // Init Two Bars Parameters BarPara bpara = BarPara.Default; bpara.width = 4.0f; bpara.height = 1.0f; bpara.BasePara.orientation = 90.0f; bpara.BasePara.direction = 0.0f; bpara.BasePara.speed = 10.0f; bpara.BasePara.space = 10.0f; bpara.BasePara.center = new Vector3(-2.0f, -2.0f, 0.0f); bpara.BasePara.color = Color.SeaGreen; bars[0] = new Bar(GraphicsDevice, bpara); bpara.BasePara.center = new Vector3(2.0f, 2.0f, 0.0f); bpara.BasePara.color = new Color(1.0f, 0.0f, 0.0f, 0.5f); bars[1] = new Bar(GraphicsDevice, bpara); barangle = 90.0f; }
/// <summary> /// Init all information of the experiment /// </summary> protected override void Initialize() { text = new Text(GraphicsDevice, Services, SLConfig["content"], "Arial"); // Init Experiment Parameters ex = new SLExperiment(); ex.AddExType(ExType.dGrating); ex.AddCondition(ExPara.Direction, 4); ex.Exdesign.trial = 3; ex.Exdesign.trestT = 1.0f; ex.Exdesign.srestT = 0.5f; ex.Exdesign.preT = 0.25f; ex.Exdesign.durT = 1.0f; ex.Exdesign.posT = 0.25f; ex.Exdesign.bgcolor = Color.Gray; // Init Grating Parameters GratingPara gpara = GratingPara.Default; gpara.gratingtype = GratingType.Sinusoidal; gpara.shape = Shape.Circle; gpara.tf = 2.0f; gpara.sf = 1.0f; gpara.luminance = 0.5f; gpara.contrast = 1.0f; gpara.BasePara.diameter = 5.0f; gpara.BasePara.center = new Vector3(0.0f, 0.0f, 0.0f); gpara.lhcolor = Color.RosyBrown; gpara.rlcolor = Color.Blue; grating = new Grating(GraphicsDevice, Services, SLConfig["content"], gpara); }
/// <summary> /// Init all information of the experiment /// </summary> protected override void Initialize() { text = new Text(GraphicsDevice, Services, SLConfig["content"], "Arial"); // Init Experiment Parameters ex = new SLExperiment(); ex.AddExType(ExType.RF_dBar); ex.AddCondition(ExPara.Direction, 4); ex.Exdesign.trial = 3; ex.Exdesign.trestT = 1.0f; ex.Exdesign.srestT = 0.5f; ex.Exdesign.preT = 0.25f; ex.Exdesign.durT = 1.0f; ex.Exdesign.posT = 0.25f; ex.Exdesign.bgcolor = Color.Black; // Init Bar Parameter BarPara bpara = BarPara.Default; bpara.width = 1.0f; bpara.height = 4.0f; bpara.BasePara.orientation = 0.0f; bpara.BasePara.direction = 0.0f; bpara.BasePara.speed = 10.0f; bpara.BasePara.space = 10.0f; bpara.BasePara.center = new Vector3(0.0f, 0.0f, 0.0f); bpara.BasePara.color = Color.White; bar = new Bar(GraphicsDevice, bpara); Step = 3.0f; InitScan(); }