Beispiel #1
0
        /* creates a x and y vector on center of the screen */
        private Point centerShapePosition(Size size)
        {
            currentPosition = 2;
            StimulusPosition stimulusPosition = new StimulusPosition(ClientSize, size);
            Point            newPoint         = stimulusPosition.threePointsPosition(currentPosition);

            currentPositionOutput = stimulusPosition.CurrentPosition;

            return(newPoint);
        }
Beispiel #2
0
        /* creates a x and y vector according to program stimulus distance randomly, from eight different positions */
        private Point randomScreenEightPositions(Size size)
        {
            Random random = new Random();
            int    index  = random.Next(0, 8);

            currentPosition = index;

            StimulusPosition stimulusPosition = new StimulusPosition(ClientSize, size);
            Point            newPoint         = stimulusPosition.eightPointsPosition(currentPosition);

            currentPositionOutput = stimulusPosition.CurrentPosition;

            return(newPoint);
        }
Beispiel #3
0
 private void drawExposition()
 {
     waitingExpositionEnd = true;
     if (showModel)
     {
         stimuluPosition = new StimulusPosition(ClientSize, 1);
         drawModel();
     }
     else
     {
         if (!this.executingTest.ProgramInUse.RandomStimulusPosition)
         {
             stimuluPosition = new StimulusPosition(ClientSize, this.executingTest.ProgramInUse.StimuluNumber);
         }
         intervalElapsedTime = waitIntervalTime(this.executingTest.ProgramInUse.RandomIntervalModelStimulus, this.executingTest.ProgramInUse.IntervalTime);
         drawStimulu();
     }
 }
 void createStimulusAt(StimulusPosition position, int stimulus, int scale, bool totalRandom)
 {
     switch(position) {
     case StimulusPosition.center:
         if(_displayedStimulusR)
             GameObject.Destroy(_displayedStimulusR);
         if(_displayedStimulusL)
             GameObject.Destroy(_displayedStimulusL);
         if(_displayedStimulusC)
             GameObject.Destroy(_displayedStimulusC);
         _displayedStimulusC = createStimulusAt(new Vector3(0.0f,1.624638f,1.864399f),stimulus,scale,totalRandom);
         break;
     case StimulusPosition.right:
         if(_displayedStimulusC)
             GameObject.Destroy(_displayedStimulusC);
         if(_displayedStimulusR)
             GameObject.Destroy(_displayedStimulusR);
         _displayedStimulusR = createStimulusAt(new Vector3(-1.5f,2.624638f,1.864399f),stimulus,scale,totalRandom);
         break;
     case StimulusPosition.left:
         if(_displayedStimulusC)
             GameObject.Destroy(_displayedStimulusC);
         if(_displayedStimulusL)
             GameObject.Destroy(_displayedStimulusL);
         _displayedStimulusL = createStimulusAt(new Vector3(1.5f,2.624638f,1.864399f),stimulus,scale,totalRandom);
         break;
     }
 }