using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


public class FileInformation : MonoBehaviour
{
    [SerializeField] private RoscanModelUnity model;
    [SerializeField]private Text fileCreated, author, lastModified, CCDCamera, modelTitle, notes,
        numberTriangle, numberPointer, thermalPlace, scannerPlace, modelCenter, modelConstr,
        profiles, avaibleLayers;
    [SerializeField] private GameObject panel;

    /// <summary> Change text by obtained datas </summary>
    public void FileInfoOnLoad()
    {
            fileCreated.text = model.FileInformation["File Created"];
            lastModified.text = model.FileInformation["Last Modified"];
            author.text = model.FileInformation["Author"];
            CCDCamera.text = model.FileInformation["CCD camera placement"];
            modelTitle.text = model.FileInformation["Model Title"];
            notes.text = model.FileInformation["Notes"];
            numberTriangle.text = (model.indices.Length/3).ToString();
            numberPointer.text = model.points.Count.ToString();
            thermalPlace.text = model.FileInformation["Thermal Imager Placement"];
            scannerPlace.text = model.FileInformation["Scanner Placement"];
            modelCenter.text = model.FileInformation["Model Center"];
            modelConstr.text = model.FileInformation["Model Constraints"];
            profiles.text = model.FileInformation["Number of Profiles"];
            avaibleLayers.text = model.FileInformation["Available Layers"];

    }
}
