public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfVertex3D.Class642 class642 = new DxfVertex3D.Class642(); // ISSUE: reference to a compiler-generated field class642.dxfVertex3D_0 = this; // ISSUE: reference to a compiler-generated field class642.point3D_0 = this.point3D_0; this.point3D_0 = matrix.Transform(this.point3D_0); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfVertex3D.Class643() { class642_0 = class642, point3D_0 = this.point3D_0 }.method_0), new System.Action(class642.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfPoint.Class420 class420 = new DxfPoint.Class420(); // ISSUE: reference to a compiler-generated field class420.dxfPoint_0 = this; // ISSUE: reference to a compiler-generated field class420.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class420.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class420.double_0 = this.double_1; this.point3D_0 = matrix.Transform(this.point3D_0); this.vector3D_0 = matrix.Transform(this.vector3D_0); this.double_1 *= this.vector3D_0.GetLength(); this.vector3D_0.Normalize(); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfPoint.Class421() { class420_0 = class420, point3D_0 = this.point3D_0, vector3D_0 = this.vector3D_0, double_0 = this.double_1 }.method_0), new System.Action(class420.method_0))); }
public virtual void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { throw new Exception("TransformMe method is not implemented."); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfRasterImage.Class738 class738 = new DxfRasterImage.Class738(); // ISSUE: reference to a compiler-generated field class738.dxfRasterImage_0 = this; // ISSUE: reference to a compiler-generated field class738.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class738.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class738.vector3D_1 = this.vector3D_1; // ISSUE: reference to a compiler-generated field class738.point3D_1 = matrix.Transform(this.point3D_0); // ISSUE: reference to a compiler-generated field class738.vector3D_2 = matrix.Transform(this.vector3D_0); // ISSUE: reference to a compiler-generated field class738.vector3D_3 = matrix.Transform(this.vector3D_1); // ISSUE: reference to a compiler-generated field this.point3D_0 = class738.point3D_1; // ISSUE: reference to a compiler-generated field this.vector3D_0 = class738.vector3D_2; // ISSUE: reference to a compiler-generated field this.vector3D_1 = class738.vector3D_3; // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup?.UndoStack.Push((ICommand) new Command((object)this, new System.Action(class738.method_0), new System.Action(class738.method_1))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfRay.Class1056 class1056 = new DxfRay.Class1056(); // ISSUE: reference to a compiler-generated field class1056.dxfRay_0 = this; // ISSUE: reference to a compiler-generated field class1056.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class1056.vector3D_0 = this.vector3D_0; this.point3D_0 = matrix.Transform(this.point3D_0); this.vector3D_0 = matrix.Transform(this.vector3D_0).GetUnit(); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfRay.Class1057() { class1056_0 = class1056, point3D_0 = this.point3D_0, vector3D_0 = this.vector3D_0 }.method_0), new System.Action(class1056.method_0))); }
internal void TransformMe(TransformConfig config, Matrix3D transform, CommandGroup undoGroup) { foreach (DxfPattern.Line line in this.list_0) { line.TransformMe(config, transform, undoGroup); } }
internal void TransformMe(TransformConfig config, Matrix3D transform) { foreach (DxfPattern.Line line in this.list_0) { line.TransformMe(config, transform); } }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Dxf3DFace.Class1061 class1061 = new Dxf3DFace.Class1061(); // ISSUE: reference to a compiler-generated field class1061.dxf3DFace_0 = this; // ISSUE: reference to a compiler-generated field class1061.point3D_0 = this.list_0.ToArray(); for (int index = 0; index < this.list_0.Count; ++index) { this.list_0[index] = matrix.Transform(this.list_0[index]); } if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new Dxf3DFace.Class1062() { class1061_0 = class1061, point3D_0 = this.list_0.ToArray() }.method_0), new System.Action(class1061.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfModelerGeometry.Class552 class552 = new DxfModelerGeometry.Class552(); // ISSUE: reference to a compiler-generated field class552.dxfModelerGeometry_0 = this; // ISSUE: reference to a compiler-generated field class552.string_0 = this.string_1; // ISSUE: reference to a compiler-generated field class552.memoryStream_0 = this.memoryStream_0 == null ? (MemoryStream)null : new MemoryStream(this.memoryStream_0.GetBuffer(), 0, (int)this.memoryStream_0.Length, true, true); this.ApplyTransformation(matrix); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfModelerGeometry.Class553() { class552_0 = class552, string_0 = this.string_1, memoryStream_0 = this.memoryStream_0 == null ? (MemoryStream)null : new MemoryStream(this.memoryStream_0.GetBuffer(), 0, (int)this.memoryStream_0.Length, true, true) }.method_0), new System.Action(class552.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { Matrix4D transformationWithOcs; this.method_13(matrix, undoGroup, out transformationWithOcs); }
public static void Start() { MixedRealityDisplay display = MixedRealityDisplay.currentDisplay; if (display.tracker != null) { input = new InputHandler(display.tracker); } if (display.leftHandTracker != null) { leftHand = new HandLocator(TrackerHandedness.Left); leftHandInput = new InputHandler(display.leftHandTracker, TrackerHandedness.Left);; } if (display.rightHandTracker != null) { rightHand = new HandLocator(TrackerHandedness.Right); rightHandInput = new InputHandler(display.rightHandTracker, TrackerHandedness.Right);; } if (display.cursorTracker != null) { cursor = new CursorLocator(Camera.main.transform); cursorInput = new InputHandler(display.cursorTracker);; } // Transmit the transform data Configuration.OnPreUpdate += () => { if (display.tracker != null) { Transform mr = MixedRealityDisplay.currentDisplayConfig.gameObject.transform.GetChild(0); TransformConfig transform = new TransformConfig(); transform.translate = mr.position; transform.rotate = mr.rotation; Transmitter.SendTransform(display.tracker, transform); } if (display.leftHandTracker != null) { Transmitter.SendTransform(display.leftHandTracker, leftHand.transform); } if (display.rightHandTracker != null) { Transmitter.SendTransform(display.rightHandTracker, rightHand.transform); } if (display.cursorTracker != null) { Transmitter.SendTransform(display.cursorTracker, cursor.transform); } }; }
/// <summary> /// Sends the holoLen's transform to the master. /// </summary> public static void SendTransform(TrackerConfig tracker, TransformConfig transform) { Transmitter transmitter = GetTransmitter(((OSCTrackerData)tracker.data).port); // Send the transform data Vector3 rotate = transform.rotate.eulerAngles; transmitter.SendOSC("/" + tracker.id + "/transform", transform.translate.x, transform.translate.y, transform.translate.z, rotate.x, rotate.y, rotate.z, 1f, 1f, 1f); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { foreach (DxfEntity dxfEntity in this.dxfHandledObjectCollection_1) { dxfEntity.TransformMe(config, matrix, undoGroup); } }
private static void UpdateOrigin(Vector3 position, Quaternion rotation) { Transform transform = MixedRealityDisplay.currentDisplayConfig.gameObject.transform; // Update container transform TransformConfig transformOffset = MixedRealityDisplay.currentDisplayConfig.transformOffset; transform.localPosition = transformOffset.translate - Vector3.Scale(Quaternion.Inverse(rotation) * position - HEVS.Camera.main.transform.localPosition, transformOffset.scale); transform.localRotation = transformOffset.rotate * Quaternion.Inverse(rotation); transform.localScale = transformOffset.scale; }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfEllipse.Class637 class637 = new DxfEllipse.Class637(); // ISSUE: reference to a compiler-generated field class637.dxfEllipse_0 = this; // ISSUE: reference to a compiler-generated field class637.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class637.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class637.vector3D_1 = this.vector3D_1; Vector3D vector3D = Vector3D.CrossProduct(this.vector3D_1, this.vector3D_0); vector3D.Normalize(); Vector3D vector = vector3D * (this.vector3D_0.GetLength() * this.double_1); // ISSUE: reference to a compiler-generated field class637.double_0 = this.double_1; this.point3D_0 = matrix.Transform(this.point3D_0); this.vector3D_0 = matrix.Transform(this.vector3D_0); Vector3D v = matrix.Transform(vector); if (v != Vector3D.Zero && this.vector3D_0 != Vector3D.Zero) { this.double_1 = v.GetLength() / this.vector3D_0.GetLength(); this.vector3D_1 = Vector3D.CrossProduct(this.vector3D_0, v); } else { this.vector3D_1 = matrix.Transform(this.vector3D_1); } this.vector3D_1.Normalize(); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfEllipse.Class638() { class637_0 = class637, point3D_0 = this.point3D_0, vector3D_0 = this.vector3D_0, vector3D_1 = this.vector3D_1, double_0 = this.double_1 }.method_0), new System.Action(class637.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { if (this.proxyGraphics_0 == null) { return; } CommandGroup undoGroup1 = undoGroup == null ? (CommandGroup)null : new CommandGroup((object)this); this.proxyGraphics_0.TransformMe(config, matrix, undoGroup1); undoGroup?.UndoStack.Push((ICommand)undoGroup1); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfShape.Class676 class676 = new DxfShape.Class676(); // ISSUE: reference to a compiler-generated field class676.dxfShape_0 = this; // ISSUE: reference to a compiler-generated field class676.double_0 = this.double_1; // ISSUE: reference to a compiler-generated field class676.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class676.double_1 = this.double_2; // ISSUE: reference to a compiler-generated field class676.double_2 = this.double_3; // ISSUE: reference to a compiler-generated field class676.vector3D_0 = this.vector3D_0; this.vector3D_0 = matrix.Transform(this.vector3D_0); this.double_1 *= this.vector3D_0.GetLength(); this.vector3D_0.Normalize(); Matrix4D inverse = DxfUtil.GetToWCSTransform(this.vector3D_0).GetInverse(); // ISSUE: reference to a compiler-generated field Matrix4D toWcsTransform = DxfUtil.GetToWCSTransform(class676.vector3D_0); Matrix4D matrix4D = inverse * matrix * toWcsTransform; this.point3D_0 = matrix4D.Transform(this.point3D_0); this.double_2 *= matrix.Transform(new Vector2D(1.0, 0.0)).GetLength(); this.double_3 = matrix4D.TransformAngle(this.double_3); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfShape.Class677() { class676_0 = class676, double_0 = this.double_1, point3D_0 = this.point3D_0, double_1 = this.double_2, double_2 = this.double_3, vector3D_0 = this.vector3D_0 }.method_0), new System.Action(class676.method_0))); }
private List <TestContext> GetContexts() { var transforms = new TransformConfig[] { new TransformConfig { Name = "testtransform1", Path = "D:\testtransform.out" } }; var settings1 = new ChutzpahTestSettingsFile { SettingsFileDirectory = @"D:\directory1", Transforms = new List <TransformConfig> { new TransformConfig { Name = "testtransform1", Path = @"D:\testtransform1.out", SettingsFileDirectory = @"D:\directory1" } } }; var settings2 = new ChutzpahTestSettingsFile { SettingsFileDirectory = @"D:\directory2", Transforms = new List <TransformConfig> { new TransformConfig { Name = "testtransform1", Path = @"D:\testtransform1.out", SettingsFileDirectory = @"D:\directory2" }, new TransformConfig { Name = "testtransform2", Path = @"D:\testtransform2.out", SettingsFileDirectory = @"D:\directory2" } } }; return(new List <TestContext> { new TestContext { TestFileSettings = settings1 }, new TestContext { TestFileSettings = settings1 }, new TestContext { TestFileSettings = settings2 } }); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { CommandGroup undoGroup1 = (CommandGroup)null; if (undoGroup != null) { undoGroup1 = new CommandGroup((object)this); undoGroup.UndoStack.Push((ICommand)undoGroup1); } foreach (DxfEntity dxfEntity in (DxfHandledObjectCollection <DxfVertex3D>) this.dxfVertex3DCollection_0) { dxfEntity.TransformMe(config, matrix, undoGroup1); } }
public void TransformMe(TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfMLeaderAnnotationContext.Class358 class358 = new DxfMLeaderAnnotationContext.Class358(); // ISSUE: reference to a compiler-generated field class358.dxfMLeaderAnnotationContext_0 = this; // ISSUE: reference to a compiler-generated field class358.point3D_0 = this.point3D_1; // ISSUE: reference to a compiler-generated field class358.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class358.vector3D_1 = this.vector3D_1; this.point3D_1 = matrix.Transform(this.point3D_1); this.vector3D_0 = matrix.Transform(this.vector3D_0); this.vector3D_1 = matrix.Transform(this.vector3D_1); CommandGroup undoGroup1 = (CommandGroup)null; if (undoGroup != null) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup1 = new CommandGroup((object)this, new ICommand[1] { (ICommand) new Command((object)this, new System.Action(new DxfMLeaderAnnotationContext.Class359() { class358_0 = class358, point3D_0 = this.point3D_1, vector3D_0 = this.vector3D_0, vector3D_1 = this.vector3D_1 }.method_0), new System.Action(class358.method_0)) }); undoGroup.UndoStack.Push((ICommand)undoGroup1); } foreach (MLeader.LeaderNode leaderNode in this.list_0) { leaderNode.TransformMe(config, matrix, undoGroup1); } if (this.content_0 == null) { return; } this.content_0.TransformMe(config, matrix, undoGroup1); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfSolid.Class902 class902 = new DxfSolid.Class902(); // ISSUE: reference to a compiler-generated field class902.dxfSolid_0 = this; // ISSUE: reference to a compiler-generated field class902.double_0 = this.double_1; // ISSUE: reference to a compiler-generated field class902.point3D_0 = this.list_0.ToArray(); // ISSUE: reference to a compiler-generated field class902.vector3D_0 = this.vector3D_0; this.vector3D_0 = matrix.Transform(this.vector3D_0); this.double_1 *= this.vector3D_0.GetLength(); this.vector3D_0.Normalize(); Matrix4D inverse = DxfUtil.GetToWCSTransform(this.vector3D_0).GetInverse(); // ISSUE: reference to a compiler-generated field Matrix4D toWcsTransform = DxfUtil.GetToWCSTransform(class902.vector3D_0); Matrix4D matrix4D = inverse * matrix * toWcsTransform; for (int index = this.list_0.Count - 1; index >= 0; --index) { this.list_0[index] = matrix4D.Transform(this.list_0[index]); } if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfSolid.Class903() { class902_0 = class902, double_0 = this.double_1, point3D_0 = this.list_0.ToArray(), vector3D_0 = this.vector3D_0 }.method_0), new System.Action(class902.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { CommandGroup undoGroup1 = (CommandGroup)null; if (undoGroup != null) { undoGroup1 = new CommandGroup((object)this); undoGroup.UndoStack.Push((ICommand)undoGroup1); } Matrix4D transformationWithOcs; this.method_13(matrix, undoGroup1, out transformationWithOcs); foreach (DxfVertex2D dxfVertex2D in (DxfHandledObjectCollection <DxfVertex2D>) this.dxfVertex2DCollection_0) { dxfVertex2D.TransformMeInOcs(transformationWithOcs, undoGroup1); } }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfMLine.Class1015 class1015 = new DxfMLine.Class1015(); // ISSUE: reference to a compiler-generated field class1015.dxfMLine_0 = this; // ISSUE: reference to a compiler-generated field class1015.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class1015.vector3D_0 = this.vector3D_0; CommandGroup undoGroup1 = (CommandGroup)null; if (undoGroup != null) { undoGroup1 = new CommandGroup((object)this); undoGroup.UndoStack.Push((ICommand)undoGroup1); } this.vector3D_0 = matrix.Transform(this.vector3D_0); this.vector3D_0.Normalize(); this.point3D_0 = matrix.Transform(this.point3D_0); if (undoGroup != null) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup1.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfMLine.Class1016() { class1015_0 = class1015, point3D_0 = this.point3D_0, vector3D_0 = this.vector3D_0 }.method_0), new System.Action(class1015.method_0))); } foreach (DxfMLine.Segment segment in this.list_0) { segment.TransformMe(matrix, undoGroup1); } }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfTolerance.Class398 class398 = new DxfTolerance.Class398(); // ISSUE: reference to a compiler-generated field class398.dxfTolerance_0 = this; // ISSUE: reference to a compiler-generated field class398.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class398.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class398.vector3D_1 = this.vector3D_1; // ISSUE: reference to a compiler-generated field class398.double_0 = this.dxfDimensionStyleOverrides_0.ScaleFactor; this.vector3D_0 = matrix.Transform(this.vector3D_0); this.vector3D_0.Normalize(); this.vector3D_1 = matrix.Transform(this.vector3D_1); this.vector3D_1.Normalize(); this.point3D_0 = matrix.Transform(this.point3D_0); this.dxfDimensionStyleOverrides_0.ScaleFactor *= matrix.Transform(new Vector2D(1.0, 0.0)).GetLength(); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfTolerance.Class399() { class398_0 = class398, point3D_0 = this.point3D_0, vector3D_0 = this.vector3D_0, vector3D_1 = this.vector3D_1, double_0 = this.dxfDimensionStyleOverrides_0.ScaleFactor }.method_0), new System.Action(class398.method_0))); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfOle.Class1066 class1066 = new DxfOle.Class1066(); // ISSUE: reference to a compiler-generated field class1066.dxfOle_0 = this; // ISSUE: reference to a compiler-generated field class1066.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class1066.point3D_1 = this.point3D_1; // ISSUE: reference to a compiler-generated field class1066.point3D_2 = this.point3D_2; // ISSUE: reference to a compiler-generated field class1066.point3D_3 = this.point3D_3; this.point3D_0 = matrix.Transform(this.point3D_0); this.point3D_1 = matrix.Transform(this.point3D_1); this.point3D_2 = matrix.Transform(this.point3D_2); this.point3D_3 = matrix.Transform(this.point3D_3); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfOle.Class1067() { class1066_0 = class1066, point3D_0 = this.point3D_0, point3D_1 = this.point3D_1, point3D_2 = this.point3D_2, point3D_3 = this.point3D_3 }.method_0), new System.Action(class1066.method_0))); }
private void colorToolStripMenuItem1_Click(object sender, EventArgs e) { var transform = new TransformConfig(); var cammymap = transform.transformmap[CharacterConfig.CHARACTERS.Cammy]; foreach (var thing in gameSet.characterDictionary) { var currentchar = thing.Key; if (transform.transformmap.ContainsKey(currentchar)) { var currentchartransform = transform.transformmap[currentchar]; foreach (var charact in thing.Value.characterColors) { foreach (var item in currentchartransform.Keys) { charact.sprite.SetColor(item, charact.sprite.GetColor(currentchartransform[item])); } } } } resetCurrentCharacterColorFromDropDown(); reload_everything(); }
public override void TransformMe(TransformConfig config, Matrix4D matrix) { this.TransformMe(config, matrix, (CommandGroup)null); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfMText.Class416 class416 = new DxfMText.Class416(); // ISSUE: reference to a compiler-generated field class416.dxfMText_0 = this; // ISSUE: reference to a compiler-generated field class416.point3D_0 = this.point3D_0; // ISSUE: reference to a compiler-generated field class416.double_0 = this.double_1; // ISSUE: reference to a compiler-generated field class416.double_1 = this.double_2; // ISSUE: reference to a compiler-generated field class416.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class416.vector3D_1 = this.vector3D_1; // ISSUE: reference to a compiler-generated field class416.attachmentPoint_0 = this.attachmentPoint_0; this.vector3D_1 = matrix.Transform(this.vector3D_1); this.vector3D_1.Normalize(); this.vector3D_0 = matrix.Transform(this.vector3D_0); this.vector3D_0.Normalize(); Matrix4D inverse = DxfUtil.GetToWCSTransform(this.vector3D_1, this.vector3D_0).GetInverse(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field Matrix4D toWcsTransform = DxfUtil.GetToWCSTransform(class416.vector3D_1, class416.vector3D_0); Matrix4D matrix4D = inverse * matrix * toWcsTransform; this.point3D_0 = matrix.Transform(this.point3D_0); this.double_1 = matrix4D.Transform(new WW.Math.Vector3D(0.0, this.double_1, 0.0)).GetLength(); this.double_2 = matrix4D.Transform(new WW.Math.Vector3D(this.double_2, 0.0, 0.0)).GetLength(); if (matrix.GetDeterminant() < 0.0) { // ISSUE: reference to a compiler-generated field bool flag = WW.Math.Vector3D.DotProduct(this.vector3D_1, class416.vector3D_1) < 0.0; Bounds2D textBounds = this.TextBounds; if (flag) { this.vector3D_1 = -this.vector3D_1; switch (this.attachmentPoint_0) { case AttachmentPoint.TopLeft: this.attachmentPoint_0 = AttachmentPoint.TopRight; break; case AttachmentPoint.TopRight: this.attachmentPoint_0 = AttachmentPoint.TopLeft; break; case AttachmentPoint.MiddleLeft: this.attachmentPoint_0 = AttachmentPoint.MiddleRight; break; case AttachmentPoint.MiddleRight: this.attachmentPoint_0 = AttachmentPoint.MiddleLeft; break; case AttachmentPoint.BottomLeft: this.attachmentPoint_0 = AttachmentPoint.BottomRight; break; case AttachmentPoint.BottomRight: this.attachmentPoint_0 = AttachmentPoint.BottomLeft; break; } } else { WW.Math.Vector3D.CrossProduct(this.vector3D_0, this.vector3D_1).GetUnit(); switch (this.attachmentPoint_0) { case AttachmentPoint.TopLeft: this.attachmentPoint_0 = AttachmentPoint.BottomLeft; break; case AttachmentPoint.TopCenter: this.attachmentPoint_0 = AttachmentPoint.BottomCenter; break; case AttachmentPoint.TopRight: this.attachmentPoint_0 = AttachmentPoint.BottomRight; break; case AttachmentPoint.BottomLeft: this.attachmentPoint_0 = AttachmentPoint.TopLeft; break; case AttachmentPoint.BottomCenter: this.attachmentPoint_0 = AttachmentPoint.TopCenter; break; case AttachmentPoint.BottomRight: this.attachmentPoint_0 = AttachmentPoint.TopRight; break; } } } this.method_15(); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfMText.Class417() { class416_0 = class416, point3D_0 = this.point3D_0, double_0 = this.double_1, double_1 = this.double_2, vector3D_0 = this.vector3D_0, vector3D_1 = this.vector3D_1, attachmentPoint_0 = this.attachmentPoint_0 }.method_0), new System.Action(class416.method_0))); }
public override void TransformMe(TransformConfig config, Matrix4D matrix) { this.ApplyTransformation(matrix); }
public override void TransformMe( TransformConfig config, Matrix4D matrix, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfLeader.Class897 class897 = new DxfLeader.Class897(); // ISSUE: reference to a compiler-generated field class897.dxfLeader_0 = this; // ISSUE: reference to a compiler-generated field class897.double_0 = this.double_2; // ISSUE: reference to a compiler-generated field class897.double_1 = this.double_3; // ISSUE: reference to a compiler-generated field class897.point3D_0 = new WW.Math.Point3D[this.list_0.Count]; // ISSUE: reference to a compiler-generated field class897.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class897.vector3D_1 = this.vector3D_1; // ISSUE: reference to a compiler-generated field class897.vector3D_2 = this.vector3D_2; // ISSUE: reference to a compiler-generated field class897.vector3D_3 = this.vector3D_3; this.vector3D_0 = matrix.Transform(this.vector3D_0); this.vector3D_0.Normalize(); Matrix4D inverse = DxfUtil.GetToWCSTransform(this.vector3D_0).GetInverse(); // ISSUE: reference to a compiler-generated field Matrix4D toWcsTransform = DxfUtil.GetToWCSTransform(class897.vector3D_0); Matrix4D matrix4D = inverse * matrix * toWcsTransform; this.double_3 = matrix.Transform(new Vector2D(this.double_3, 0.0)).GetLength(); this.double_2 = matrix.Transform(new Vector2D(0.0, this.double_2)).GetLength(); for (int index = this.list_0.Count - 1; index >= 0; --index) { WW.Math.Point3D point = this.list_0[index]; // ISSUE: reference to a compiler-generated field class897.point3D_0[index] = point; this.list_0[index] = matrix.Transform(point); } this.vector3D_1 = matrix.Transform(this.vector3D_1).GetUnit(); this.vector3D_2 = matrix.Transform(this.vector3D_2); this.vector3D_3 = matrix.Transform(this.vector3D_3); if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfLeader.Class898 class898 = new DxfLeader.Class898(); // ISSUE: reference to a compiler-generated field class898.class897_0 = class897; // ISSUE: reference to a compiler-generated field class898.double_0 = this.double_2; // ISSUE: reference to a compiler-generated field class898.double_1 = this.double_3; // ISSUE: reference to a compiler-generated field class898.point3D_0 = new WW.Math.Point3D[this.list_0.Count]; for (int index = this.list_0.Count - 1; index >= 0; --index) { // ISSUE: reference to a compiler-generated field class898.point3D_0[index] = this.list_0[index]; } // ISSUE: reference to a compiler-generated field class898.vector3D_0 = this.vector3D_0; // ISSUE: reference to a compiler-generated field class898.vector3D_1 = this.vector3D_1; // ISSUE: reference to a compiler-generated field class898.vector3D_2 = this.vector3D_2; // ISSUE: reference to a compiler-generated field class898.vector3D_3 = this.vector3D_3; // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(class898.method_0), new System.Action(class897.method_0))); }
public void ExportDwgToJpg(string destPath) { string sourcePath = String.Format("{0}{1}.dwg", DefaultDwgFolder, Control.ControlNo); Dictionary<string, string> dictDim = new Dictionary<string, string>(); foreach (ControlDrawingDetail detail in ControlDrawingDetails) { if (dictDim.ContainsKey(detail.Dim.DimNo) == false) { dictDim.Add(detail.Dim.DimNo, detail.DimValue); } } try { DxfModel readModel = DwgReader.Read(sourcePath); DxfModel writeModel = new DxfModel(); CloneContext ct = new CloneContext(readModel, ReferenceResolutionType.CloneMissing); TransformConfig tc = new TransformConfig(); Matrix4D translation = Transformation4D.Translation(250, 0, 0); ct.RenameClashingBlocks = true; for (int i = 0; i < readModel.Entities.Count; i++) { DxfEntity block = readModel.Entities[i]; if (block.GetType() == typeof(DxfMText)) { DxfMText di = (DxfMText)block; if (dictDim.ContainsKey(di.SimplifiedText)) { di.Text = dictDim[di.SimplifiedText]; di.Width = di.BoxWidth * 2; } writeModel.Entities.Add(di); } else if (block.GetType() == typeof(DxfText)) { DxfText di = (DxfText)block; if (dictDim.ContainsKey(di.SimplifiedText)) { di.Text = dictDim[di.SimplifiedText]; } writeModel.Entities.Add(di); } else { writeModel.Entities.Add(block); } } ct.ResolveReferences(); CADHelper.ExportToJpg(writeModel, destPath); } catch (Exception exc) { Tracing.Tracer.LogError(exc.Message); Logger.For(this).Error(exc.Message); } }