public Spectro() { InitializeComponent(); _dataManager = new DataManager(); _renderSettings = new RenderSettings(); }
/// <summary> /// Calculate the tristimulus values from the data manager object. /// </summary> /// <param name="dataManager">The datamanager object that contains all the light sources, materials, observers</param> /// <returns>A Vector3 containing X, Y and Z values in each cell respectively.</returns> public static Vector3 CalculateTristimulusValues(DataManager dataManager) { LightSource ls = dataManager.LightSources[0]; Material mat = dataManager.Materials[0]; Observer obs = dataManager.Observers[0]; return CalculateTristimulusValues(ls, mat, obs); }