예제 #1
0
        public void ComputeResults(AlgoStep step, string inputPath, string outputPath, string outputPathTxt)
        {
            var hdLog = Program.Path(Subfolder.none, $"result_hausdorff_{ao.name}_{step.qualityStr}", Ext.txt);

            if (File.Exists(hdLog))
            {
                File.Delete(hdLog);
            }

            var hd = MeshlabWorkspace.Instance.RunFilter_HausdorffDistance(inputPath, outputPath, hdLog);

            if (File.Exists(outputPathTxt))
            {
                hd.time = long.Parse(File.ReadAllText(outputPathTxt));
            }

            Results.Result res = new Results.Result()
            {
                path = outputPath,
                step = step,
                hd   = hd
            };

            results.bboxDiag = res.hd.bboxDiag;
            results.AddResult(res);

            if (File.Exists(hdLog))
            {
                File.Delete(hdLog);
            }
        }
예제 #2
0
    public static Results FromFile(string path)
    {
        Results results = new Results();
        List <Dictionary <string, object> > csvData = new IO.CSVReader().Read(path);

        foreach (Dictionary <string, object> row in csvData)
        {
            results.AddResult(row);
        }

        return(results);
    }
예제 #3
0
 internal TestResults(
     ILogger <AspectDataBase> logger,
     IPipeline pipeline,
     IAspectEngine engine,
     IMissingPropertyService missingPropertyService,
     object value)
     : base(logger, pipeline, engine, missingPropertyService)
 {
     _value = value;
     // The ResultManager needs to have something added to it
     // in order to allow access to the values.
     // For this test, we can just give it a null reference.
     Results.AddResult(null);
 }
        private void AddBtn_Click(object sender, EventArgs e)
        {
            var      results = new Results();
            DateTime date_to_add;

            if (UseNowDateCheckBox.Checked)
            {
                date_to_add = DateTime.Now;
            }
            else
            {
                date_to_add = ResultDate.Value;
            }
            results.AddResult(Convert.ToInt32(CurrentResult.Value), date_to_add, currentUserId);
            this.Close();
        }
 internal void SetResults(IResultsSwigWrapper results)
 {
     CheckState();
     Results.AddResult(results);
 }