/// <summary> /// Extension for Model to convert it's config settings to a data structure /// suitable for interoperability /// </summary> /// <returns>PARAMS</returns> public static PARAMS ToParams(this Model model) { PARAMS output = new PARAMS(); output.ViewerType = (int)model.ViewerType; output.NumSegments = model.NumSegments; output.Duration = model.Duration; output.DurationBound = model.DurationBound; output.CharacterAppearanceRate = model.CharacterAppearanceRate; output.Variance = model.Variance; output.NumVariants = model.NumVariants; output.LibraryMultiplier = model.LibraryMultiplier; output.Timeout = model.Timeout; output.PrintLibraryDetails = Convert.ToInt32(model.PrintLibraryDetails); return(output); }
public static extern void NCSPSetParams(PARAMS p);