Exemplo n.º 1
0
 /// <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);
     });
 }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
 public MRecipe(MRecipePlate plate)
     : this()
 {
     Plates.Add(plate);
 }
Exemplo n.º 4
0
 public static Matrix4x4 GetRelativeTransform(MRecipePlate plate)
 {
     return(plate.TransformInfo.ToMatrix4x4());
 }
Exemplo n.º 5
0
 public void AddPlate(MRecipePlate plate)
 {
     plate.Parent = this;
     Plates.Add(plate);
 }
Exemplo n.º 6
0
 public MRecipe(MRecipePlate plate, TransformInfo transformInfo)
     : this(plate)
 {
     TransformInfo = transformInfo;
 }