/// <summary> /// Returns all layers in the recipe plate auto generating based on its array info. /// Sacrifice order/arrangement for speed. /// </summary> /// <param name="plateIn">The plate</param> /// <param name="callbackIn">A callback to receive the recipe layers</param> public static void BeginGetAllLayers_Parallel(MRecipePlate plateIn, Action <MRecipeDeviceLayer> callbackIn) { plateIn.BeginGetAllDevices_Parallel((device) => { BeginGetAllLayers_Parallel(device, callbackIn); }); }
/// <summary> /// The copy constructor. /// </summary> /// <param name="plate"></param> private MRecipePlate(MRecipePlate plate) : base(plate) { Devices = new ObservableCollection <MRecipeDevice>(); foreach (var device in plate.Devices) { var _device = (MRecipeDevice)device.Clone(); _device.Parent = this; Devices.Add(_device); } }
public MRecipe(MRecipePlate plate) : this() { Plates.Add(plate); }
public static Matrix4x4 GetRelativeTransform(MRecipePlate plate) { return(plate.TransformInfo.ToMatrix4x4()); }
public void AddPlate(MRecipePlate plate) { plate.Parent = this; Plates.Add(plate); }
public MRecipe(MRecipePlate plate, TransformInfo transformInfo) : this(plate) { TransformInfo = transformInfo; }