Exemplo n.º 1
0
            public AOIAnalysisTab(HomeScreen _homeScreen)
            {
                homeScreen = _homeScreen;
                List <CheckBox>  checkboxListFaceTracking = new List <CheckBox>();
                TableLayoutPanel pnl_main_AOIAnalysis     = new TableLayoutPanel {
                    Dock = DockStyle.Fill, BackColor = Color.WhiteSmoke, Size = new Size(800, 800), AutoSizeMode = AutoSizeMode.GrowAndShrink
                };

                pnl_main_AOIAnalysis.Margin      = new Padding(0);
                pnl_main_AOIAnalysis.ColumnCount = 1;
                pnl_main_AOIAnalysis.RowCount    = 1;

                Accordion accParentfaceTracking = acc;

                acc.Insets         = new Padding(10);
                acc.ContentPadding = new Padding(10);
                acc.ContentMargin  = new Padding(0);
                acc.CheckBoxMargin = new Padding(0);


                /*Face Tracking Tab*/
                /**************************************************************************/
                FaceTrackingUI faceTrackingUI = new FaceTrackingUI(homeScreen);
                FaceTrackingBE ft             = new FaceTrackingBE(faceTrackingUI);

                accNestedaccParentfaceTracking = new Accordion()
                {
                    Dock = DockStyle.Fill, OpenOneOnly = true
                };
                checkboxListFaceTracking.Add(accNestedaccParentfaceTracking.Add(faceTrackingUI.pnl_trackingWithDefaultDetector, "Face Tracking (wtih default detector)"));
                checkboxListFaceTracking.Add(accNestedaccParentfaceTracking.Add(faceTrackingUI.pnl_trackingWithTrainedDetector, "Face Tracking (with trained detector)"));
                checkboxListFaceTracking.Add(accParentfaceTracking.Add(accNestedaccParentfaceTracking, "Face Tracking", "ToolTip 1"));
                /*End of Face Tracking*/



                /*Detect ROI */
                /**************************************************************************/
                DetectROIUI detectROIUI = new DetectROIUI(homeScreen);
                DetectROIBE droi        = new DetectROIBE(detectROIUI);

                accNestedaccParentdetectROI = new Accordion()
                {
                    Dock = DockStyle.Fill, OpenOneOnly = true
                };
                checkboxListFaceTracking.Add(accNestedaccParentdetectROI.Add(detectROIUI.pnl_preProcessGazeData, "Pre-Process Gaze Data"));
                checkboxListFaceTracking.Add(accNestedaccParentdetectROI.Add(detectROIUI.pnl_faceAsAOI, " Face as AOI"));
                checkboxListFaceTracking.Add(accParentfaceTracking.Add(accNestedaccParentdetectROI, "AOI Anaylse", "ToolTip 1"));
                /*End of Detect ROI*/

                /*Review Outcomes */
                /**************************************************************************/
                ReviewOutcomesUI reviewOutcomesUI = new ReviewOutcomesUI(homeScreen);
                ReviewOutcomesBE ro = new ReviewOutcomesBE(reviewOutcomesUI);

                accNestedaccParentreviewOutcomes = new Accordion()
                {
                    Dock = DockStyle.Fill, OpenOneOnly = true
                };
                checkboxListFaceTracking.Add(accNestedaccParentreviewOutcomes.Add(reviewOutcomesUI.pnl_visualizeTrackingResults, "Visualize Tracking"));
                checkboxListFaceTracking.Add(accNestedaccParentreviewOutcomes.Add(reviewOutcomesUI.pnl_findDetectionRatio, "Find AOIs Detection Ratio"));
                checkboxListFaceTracking.Add(accNestedaccParentreviewOutcomes.Add(reviewOutcomesUI.pnl_labelAOIMAnually, "Label AOIs Manually"));
                checkboxListFaceTracking.Add(accNestedaccParentreviewOutcomes.Add(reviewOutcomesUI.pnl_reanalyseAOI, "Re-analyse AOIs (considering manually labeled AOIs)"));
                checkboxListFaceTracking.Add(accParentfaceTracking.Add(accNestedaccParentreviewOutcomes, "Review Outcomes", "ToolTip 1"));

                /*End of Review Outcomes*/

                pnl_main_AOIAnalysis.Controls.Add(acc);
                Controls.Add(pnl_main_AOIAnalysis);
            }
Exemplo n.º 2
0
 public DetectROIBE(DetectROIUI _controls)
 {
     controls = _controls;
     initialize();
 }