public void initialize(MainWindow parent)
 {
     this.parent = parent;
     if (parent.bodyFrameHandler.bodyFrameReader != null)
     {
         parent.bodyFrameHandler.bodyFrameReader.FrameArrived += this.Reader_FrameArrived;
     }
 }
        public IndividualPosture(MainWindow parent)
        {
            this.parent = parent;
            myVoiceAndMovementObject = new PresentationAction();
            periodicMovements = new PeriodicMovements();

            tempMistakeList = new ArrayList();
            mistakeList = new ArrayList();
            voiceAndMovementsList = new ArrayList();
            audioMovementMistakeTempList = new ArrayList();
            bodyMistakes = new ArrayList();
        }
        public void initialize(MainWindow parent)
        {
            this.parent = parent;

            // create instance of video writer
        //    writer = new VideoFileWriter();
            // create new video file
      //      writer.Open("test.avi", myImage.ActualWidth, myImage.ActualHeight, 25, VideoCodec.MPEG4);
            // create a bitmap to save into the video file

            parent.videoHandler.multiFrameSourceReader.MultiSourceFrameArrived += multiFrameSourceReader_MultiSourceFrameArrived;
            
        }
        public JudgementMaker(MainWindow parent)
        {
           this.parent = parent;
           myVoiceAndMovementObject = new PresentationAction();
           periodicMovements = new PeriodicMovements();

           armMovementsCalc = new ArmMovementsCalc(this);
           tempMistakeList = new ArrayList();
           mistakeList = new ArrayList();
           voiceAndMovementsList = new ArrayList();
           audioMovementMistakeTempList = new ArrayList();
           bodyMistakes = new ArrayList();
            
        }
        public void initialize(MainWindow parent)
        {
            this.parent = parent;

            if (parent.audioHandler.reader != null)
            {
                // Subscribe to new audio frame arrived events
                parent.audioHandler.reader.FrameArrived += Reader_FrameArrived;
            }


                //    CompositionTarget.Rendering += this.UpdateEnergy;

            //if (this.reader != null)
            //{
            //    // Subscribe to new audio frame arrived events
            //    this.reader.FrameArrived += this.Reader_FrameArrived;
            //}

        }
 public RulesAnalyzerFIFO(MainWindow parent)
 {
     this.parent = parent;
     myJudgementMaker = new JudgementMaker(parent);
     mistakes = new ArrayList();
     crossedArms = new PresentationAction[interruptNumber];
     handsUnderHips = new PresentationAction[interruptNumber];
     handsBehindBack = new PresentationAction[interruptNumber];
     hunchPosture = new PresentationAction[interruptNumber];
     leaningPosture = new PresentationAction[interruptNumber];
     highVolumes = new PresentationAction[interruptNumber];
     lowVolumes = new PresentationAction[interruptNumber];
     longPauses = new PresentationAction[interruptNumber];
     longTalks = new PresentationAction[interruptNumber];
     periodicMovements = new PresentationAction[interruptNumber];
     hmmms = new PresentationAction[interruptNumber];
     legsCrossed = new PresentationAction[interruptNumber];
     handsNotMoving = new PresentationAction[interruptNumber];
     handsMovingMuch = new PresentationAction[interruptNumber];
     noModulation = new PresentationAction[interruptNumber];
     previousAction = new PresentationAction();
     previousAction.myMistake = PresentationAction.MistakeType.NOMISTAKE;
 }
 public IndividualTracker(MainWindow parent)
 {
     this.parent = parent;
 }
        public RulesAnalyzer(MainWindow parent)
        {
            this.parent = parent;
            periodicMovements = new PeriodicMovements();

        }