From c3314c07d665ec3e221a1b7ff08deb936b72f9c4 Mon Sep 17 00:00:00 2001 From: Duong Dat Date: Sat, 8 Jul 2017 00:47:08 +0700 Subject: [PATCH] first commit --- build.gradle | 15 + settings.gradle | 1 + src/main/java/_Array/ArrayIterator.java | 441 ++ .../java/com/dongbat/walkable/FloatArray.java | 538 ++ .../java/com/dongbat/walkable/PathHelper.java | 199 + src/main/java/haxe/IMap.java | 11 + src/main/java/haxe/ds/ObjectMap.java | 1425 ++++ src/main/java/haxe/ds/StringMap.java | 1393 ++++ src/main/java/haxe/io/Bytes.java | 339 + src/main/java/haxe/io/Eof.java | 123 + src/main/java/haxe/io/Error.java | 40 + src/main/java/haxe/lang/Closure.java | 66 + src/main/java/haxe/lang/DynamicObject.java | 351 + src/main/java/haxe/lang/EmptyObject.java | 9 + src/main/java/haxe/lang/Enum.java | 41 + src/main/java/haxe/lang/Exceptions.java | 43 + src/main/java/haxe/lang/FieldLookup.java | 333 + src/main/java/haxe/lang/Function.java | 327 + src/main/java/haxe/lang/HaxeException.java | 114 + src/main/java/haxe/lang/HxObject.java | 173 + src/main/java/haxe/lang/IEquatable.java | 13 + src/main/java/haxe/lang/IHxObject.java | 33 + src/main/java/haxe/lang/ParamEnum.java | 234 + src/main/java/haxe/lang/Runtime.java | 621 ++ src/main/java/haxe/lang/StringExt.java | 196 + src/main/java/haxe/lang/StringRefl.java | 127 + src/main/java/haxe/lang/VarArgsBase.java | 123 + src/main/java/haxe/lang/VarArgsFunction.java | 29 + src/main/java/haxe/root/Array.java | 2021 ++++++ src/main/java/haxe/root/Reflect.java | 90 + src/main/java/haxe/root/Std.java | 400 ++ src/main/java/haxe/root/StringBuf.java | 257 + src/main/java/haxe/root/StringTools.java | 75 + src/main/java/haxe/root/Type.java | 95 + src/main/java/hxDaedalus/Main.java | 33 + src/main/java/hxDaedalus/ai/AStar.java | 2112 ++++++ src/main/java/hxDaedalus/ai/EntityAI.java | 1083 +++ src/main/java/hxDaedalus/ai/Funnel.java | 2474 +++++++ src/main/java/hxDaedalus/ai/PathFinder.java | 720 ++ .../ai/trajectory/LinearPathSampler.java | 2245 +++++++ .../ai/trajectory/PathIterator.java | 1438 ++++ src/main/java/hxDaedalus/data/Constants.java | 40 + .../hxDaedalus/data/ConstraintSegment.java | 645 ++ .../java/hxDaedalus/data/ConstraintShape.java | 417 ++ src/main/java/hxDaedalus/data/Edge.java | 1905 ++++++ src/main/java/hxDaedalus/data/Face.java | 722 ++ src/main/java/hxDaedalus/data/Mesh.java | 4622 +++++++++++++ src/main/java/hxDaedalus/data/Obstacle.java | 2810 ++++++++ src/main/java/hxDaedalus/data/Vertex.java | 1126 ++++ .../java/hxDaedalus/data/graph/Graph.java | 933 +++ .../java/hxDaedalus/data/graph/GraphEdge.java | 1616 +++++ .../java/hxDaedalus/data/graph/GraphNode.java | 1160 ++++ .../java/hxDaedalus/data/math/EdgeData.java | 363 + .../java/hxDaedalus/data/math/Geom2D.java | 1620 +++++ .../hxDaedalus/data/math/Intersection.java | 50 + .../java/hxDaedalus/data/math/Matrix2D.java | 1055 +++ .../java/hxDaedalus/data/math/NodeData.java | 257 + .../java/hxDaedalus/data/math/Point2D.java | 686 ++ .../java/hxDaedalus/data/math/Potrace.java | 484 ++ .../hxDaedalus/data/math/RandGenerator.java | 1090 +++ .../hxDaedalus/data/math/ShapeSimplifier.java | 104 + src/main/java/hxDaedalus/data/math/Tools.java | 261 + src/main/java/hxDaedalus/debug/Debug.java | 56 + .../java/hxDaedalus/factories/BitmapMesh.java | 109 + .../hxDaedalus/factories/BitmapObject.java | 149 + .../java/hxDaedalus/factories/RectMesh.java | 339 + .../iterators/FromEdgeToRotatedEdges.java | 28 + .../iterators/FromFaceToInnerEdges.java | 358 + .../iterators/FromFaceToInnerVertices.java | 358 + .../iterators/FromFaceToNeighbourFaces.java | 379 ++ .../hxDaedalus/iterators/FromMeshToFaces.java | 455 ++ .../iterators/FromMeshToVertices.java | 455 ++ .../iterators/FromVertexToHoldingFaces.java | 379 ++ .../iterators/FromVertexToIncomingEdges.java | 379 ++ .../FromVertexToNeighbourVertices.java | 370 ++ .../iterators/FromVertexToOutgoingEdges.java | 419 ++ src/main/java/hxDaedalus/view/SimpleView.java | 2072 ++++++ src/main/java/hxPixels/PixelFormat.java | 1141 ++++ .../java/hxPixels/_Pixels/Pixel_Impl_.java | 91 + .../java/hxPixels/_Pixels/PixelsData.java | 464 ++ .../java/hxPixels/_Pixels/Pixels_Impl_.java | 355 + .../wings/core/ISimpleDrawingContext.java | 33 + src/main/java/wings/data/MathPoints.java | 222 + src/main/java/wings/javaSwing/BasicSwing.java | 5837 +++++++++++++++++ .../wings/javaSwing/SimpleDrawingContext.java | 741 +++ src/main/java/wings/javaSwing/Surface.java | 5364 +++++++++++++++ .../java/wings/javaSwing/SwingHeader.java | 575 ++ 87 files changed, 63495 insertions(+) create mode 100644 build.gradle create mode 100644 settings.gradle create mode 100644 src/main/java/_Array/ArrayIterator.java create mode 100644 src/main/java/com/dongbat/walkable/FloatArray.java create mode 100644 src/main/java/com/dongbat/walkable/PathHelper.java create mode 100644 src/main/java/haxe/IMap.java create mode 100644 src/main/java/haxe/ds/ObjectMap.java create mode 100644 src/main/java/haxe/ds/StringMap.java create mode 100644 src/main/java/haxe/io/Bytes.java create mode 100644 src/main/java/haxe/io/Eof.java create mode 100644 src/main/java/haxe/io/Error.java create mode 100644 src/main/java/haxe/lang/Closure.java create mode 100644 src/main/java/haxe/lang/DynamicObject.java create mode 100644 src/main/java/haxe/lang/EmptyObject.java create mode 100644 src/main/java/haxe/lang/Enum.java create mode 100644 src/main/java/haxe/lang/Exceptions.java create mode 100644 src/main/java/haxe/lang/FieldLookup.java create mode 100644 src/main/java/haxe/lang/Function.java create mode 100644 src/main/java/haxe/lang/HaxeException.java create mode 100644 src/main/java/haxe/lang/HxObject.java create mode 100644 src/main/java/haxe/lang/IEquatable.java create mode 100644 src/main/java/haxe/lang/IHxObject.java create mode 100644 src/main/java/haxe/lang/ParamEnum.java create mode 100644 src/main/java/haxe/lang/Runtime.java create mode 100644 src/main/java/haxe/lang/StringExt.java create mode 100644 src/main/java/haxe/lang/StringRefl.java create mode 100644 src/main/java/haxe/lang/VarArgsBase.java create mode 100644 src/main/java/haxe/lang/VarArgsFunction.java create mode 100644 src/main/java/haxe/root/Array.java create mode 100644 src/main/java/haxe/root/Reflect.java create mode 100644 src/main/java/haxe/root/Std.java create mode 100644 src/main/java/haxe/root/StringBuf.java create mode 100644 src/main/java/haxe/root/StringTools.java create mode 100644 src/main/java/haxe/root/Type.java create mode 100644 src/main/java/hxDaedalus/Main.java create mode 100644 src/main/java/hxDaedalus/ai/AStar.java create mode 100644 src/main/java/hxDaedalus/ai/EntityAI.java create mode 100644 src/main/java/hxDaedalus/ai/Funnel.java create mode 100644 src/main/java/hxDaedalus/ai/PathFinder.java create mode 100644 src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java create mode 100644 src/main/java/hxDaedalus/ai/trajectory/PathIterator.java create mode 100644 src/main/java/hxDaedalus/data/Constants.java create mode 100644 src/main/java/hxDaedalus/data/ConstraintSegment.java create mode 100644 src/main/java/hxDaedalus/data/ConstraintShape.java create mode 100644 src/main/java/hxDaedalus/data/Edge.java create mode 100644 src/main/java/hxDaedalus/data/Face.java create mode 100644 src/main/java/hxDaedalus/data/Mesh.java create mode 100644 src/main/java/hxDaedalus/data/Obstacle.java create mode 100644 src/main/java/hxDaedalus/data/Vertex.java create mode 100644 src/main/java/hxDaedalus/data/graph/Graph.java create mode 100644 src/main/java/hxDaedalus/data/graph/GraphEdge.java create mode 100644 src/main/java/hxDaedalus/data/graph/GraphNode.java create mode 100644 src/main/java/hxDaedalus/data/math/EdgeData.java create mode 100644 src/main/java/hxDaedalus/data/math/Geom2D.java create mode 100644 src/main/java/hxDaedalus/data/math/Intersection.java create mode 100644 src/main/java/hxDaedalus/data/math/Matrix2D.java create mode 100644 src/main/java/hxDaedalus/data/math/NodeData.java create mode 100644 src/main/java/hxDaedalus/data/math/Point2D.java create mode 100644 src/main/java/hxDaedalus/data/math/Potrace.java create mode 100644 src/main/java/hxDaedalus/data/math/RandGenerator.java create mode 100644 src/main/java/hxDaedalus/data/math/ShapeSimplifier.java create mode 100644 src/main/java/hxDaedalus/data/math/Tools.java create mode 100644 src/main/java/hxDaedalus/debug/Debug.java create mode 100644 src/main/java/hxDaedalus/factories/BitmapMesh.java create mode 100644 src/main/java/hxDaedalus/factories/BitmapObject.java create mode 100644 src/main/java/hxDaedalus/factories/RectMesh.java create mode 100644 src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java create mode 100644 src/main/java/hxDaedalus/iterators/FromFaceToInnerEdges.java create mode 100644 src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java create mode 100644 src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java create mode 100644 src/main/java/hxDaedalus/iterators/FromMeshToFaces.java create mode 100644 src/main/java/hxDaedalus/iterators/FromMeshToVertices.java create mode 100644 src/main/java/hxDaedalus/iterators/FromVertexToHoldingFaces.java create mode 100644 src/main/java/hxDaedalus/iterators/FromVertexToIncomingEdges.java create mode 100644 src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java create mode 100644 src/main/java/hxDaedalus/iterators/FromVertexToOutgoingEdges.java create mode 100644 src/main/java/hxDaedalus/view/SimpleView.java create mode 100644 src/main/java/hxPixels/PixelFormat.java create mode 100644 src/main/java/hxPixels/_Pixels/Pixel_Impl_.java create mode 100644 src/main/java/hxPixels/_Pixels/PixelsData.java create mode 100644 src/main/java/hxPixels/_Pixels/Pixels_Impl_.java create mode 100644 src/main/java/wings/core/ISimpleDrawingContext.java create mode 100644 src/main/java/wings/data/MathPoints.java create mode 100644 src/main/java/wings/javaSwing/BasicSwing.java create mode 100644 src/main/java/wings/javaSwing/SimpleDrawingContext.java create mode 100644 src/main/java/wings/javaSwing/Surface.java create mode 100644 src/main/java/wings/javaSwing/SwingHeader.java diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..757411c --- /dev/null +++ b/build.gradle @@ -0,0 +1,15 @@ +apply plugin: 'java' + +sourceCompatibility = '1.6' +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' + +ext { + gdxVersion = '1.7.1' +} + +repositories { + mavenCentral() +} + +dependencies { +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..914aa3a --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'jwalkable' diff --git a/src/main/java/_Array/ArrayIterator.java b/src/main/java/_Array/ArrayIterator.java new file mode 100644 index 0000000..6b0b561 --- /dev/null +++ b/src/main/java/_Array/ArrayIterator.java @@ -0,0 +1,441 @@ +// Generated by Haxe 3.4.2 +package _Array; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public final class ArrayIterator extends haxe.lang.HxObject +{ + public ArrayIterator(haxe.lang.EmptyObject empty) + { + } + + + public ArrayIterator(haxe.root.Array a) + { + //line 472 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + _Array.ArrayIterator.__hx_ctor__Array_ArrayIterator(((_Array.ArrayIterator) (this) ), ((haxe.root.Array) (a) )); + } + + + public static void __hx_ctor__Array_ArrayIterator(_Array.ArrayIterator __hx_this, haxe.root.Array a) + { + //line 474 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __hx_this.arr = a; + //line 475 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __hx_this.len = a.length; + //line 476 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __hx_this.i = 0; + } + + + public haxe.root.Array arr; + + public int len; + + public int i; + + public final boolean hasNext() + { + //line 479 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ( this.i < this.len ); + } + + + public final T next() + { + //line 480 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.arr.__get(this.i++); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 105: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("i")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.i = ((int) (value) ); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107029: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("len")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.len = ((int) (value) ); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 105: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("i")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.i = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 96865: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("arr")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.arr = ((haxe.root.Array) (value) ); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107029: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("len")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.len = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("next")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 96865: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("arr")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.arr; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 696759469: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("hasNext")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hasNext")) ); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107029: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("len")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.len; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 105: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("i")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.i; + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 105: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("i")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((double) (this.i) ); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107029: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("len")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((double) (this.len) ); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("next")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.next(); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 696759469: + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("hasNext")) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.hasNext(); + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + baseArr.push("i"); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + baseArr.push("len"); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + baseArr.push("arr"); + //line 466 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/com/dongbat/walkable/FloatArray.java b/src/main/java/com/dongbat/walkable/FloatArray.java new file mode 100644 index 0000000..1390cc2 --- /dev/null +++ b/src/main/java/com/dongbat/walkable/FloatArray.java @@ -0,0 +1,538 @@ +/** ***************************************************************************** + * Copyright 2011 by + * Mario Zechner + * Nathan Sweet + * modified 2017 by implicit-invocation + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + * **************************************************************************** + */ +package com.dongbat.walkable; + +import java.util.Arrays; +import java.util.Random; + +/** + * A resizable, ordered or unordered float array. Avoids the boxing that occurs + * with ArrayList. If unordered, this class avoids a memory copy when + * removing elements (the last element is moved to the removed element's + * position). + * + * @author Nathan Sweet + */ +public class FloatArray { + + public float[] items; + public int size; + public boolean ordered; + + /** + * Creates an ordered array with a capacity of 16. + */ + public FloatArray() { + this(true, 16); + } + + /** + * Creates an ordered array with the specified capacity. + */ + public FloatArray(int capacity) { + this(true, capacity); + } + + /** + * @param ordered If false, methods that remove elements may change the order + * of other elements in the array, which avoids a memory copy. + * @param capacity Any elements added beyond this will cause the backing array + * to be grown. + */ + public FloatArray(boolean ordered, int capacity) { + this.ordered = ordered; + items = new float[capacity]; + } + + /** + * Creates a new array containing the elements in the specific array. The new + * array will be ordered if the specific array is ordered. The capacity is set + * to the number of elements, so any subsequent elements added will cause the + * backing array to be grown. + */ + public FloatArray(FloatArray array) { + this.ordered = array.ordered; + size = array.size; + items = new float[size]; + System.arraycopy(array.items, 0, items, 0, size); + } + + /** + * Creates a new ordered array containing the elements in the specified array. + * The capacity is set to the number of elements, so any subsequent elements + * added will cause the backing array to be grown. + */ + public FloatArray(float[] array) { + this(true, array, 0, array.length); + } + + /** + * Creates a new array containing the elements in the specified array. The + * capacity is set to the number of elements, so any subsequent elements added + * will cause the backing array to be grown. + * + * @param ordered If false, methods that remove elements may change the order + * of other elements in the array, which avoids a memory copy. + */ + public FloatArray(boolean ordered, float[] array, int startIndex, int count) { + this(ordered, count); + size = count; + System.arraycopy(array, startIndex, items, 0, count); + } + + public void add(float value) { + float[] items = this.items; + if (size == items.length) { + items = resize(Math.max(8, (int) (size * 1.75f))); + } + items[size++] = value; + } + + public void addAll(FloatArray array) { + addAll(array, 0, array.size); + } + + public void addAll(FloatArray array, int offset, int length) { + if (offset + length > array.size) { + throw new IllegalArgumentException("offset + length must be <= size: " + offset + " + " + length + " <= " + array.size); + } + addAll(array.items, offset, length); + } + + public void addAll(float... array) { + addAll(array, 0, array.length); + } + + public void addAll(float[] array, int offset, int length) { + float[] items = this.items; + int sizeNeeded = size + length; + if (sizeNeeded > items.length) { + items = resize(Math.max(8, (int) (sizeNeeded * 1.75f))); + } + System.arraycopy(array, offset, items, size, length); + size += length; + } + + public float get(int index) { + if (index >= size) { + throw new IndexOutOfBoundsException("index can't be >= size: " + index + " >= " + size); + } + return items[index]; + } + + public void set(int index, float value) { + if (index >= size) { + throw new IndexOutOfBoundsException("index can't be >= size: " + index + " >= " + size); + } + items[index] = value; + } + + public void incr(int index, float value) { + if (index >= size) { + throw new IndexOutOfBoundsException("index can't be >= size: " + index + " >= " + size); + } + items[index] += value; + } + + public void mul(int index, float value) { + if (index >= size) { + throw new IndexOutOfBoundsException("index can't be >= size: " + index + " >= " + size); + } + items[index] *= value; + } + + public void insert(int index, float value) { + if (index > size) { + throw new IndexOutOfBoundsException("index can't be > size: " + index + " > " + size); + } + float[] items = this.items; + if (size == items.length) { + items = resize(Math.max(8, (int) (size * 1.75f))); + } + if (ordered) { + System.arraycopy(items, index, items, index + 1, size - index); + } else { + items[size] = items[index]; + } + size++; + items[index] = value; + } + + public void swap(int first, int second) { + if (first >= size) { + throw new IndexOutOfBoundsException("first can't be >= size: " + first + " >= " + size); + } + if (second >= size) { + throw new IndexOutOfBoundsException("second can't be >= size: " + second + " >= " + size); + } + float[] items = this.items; + float firstValue = items[first]; + items[first] = items[second]; + items[second] = firstValue; + } + + public boolean contains(float value) { + int i = size - 1; + float[] items = this.items; + while (i >= 0) { + if (items[i--] == value) { + return true; + } + } + return false; + } + + public int indexOf(float value) { + float[] items = this.items; + for (int i = 0, n = size; i < n; i++) { + if (items[i] == value) { + return i; + } + } + return -1; + } + + public int lastIndexOf(char value) { + float[] items = this.items; + for (int i = size - 1; i >= 0; i--) { + if (items[i] == value) { + return i; + } + } + return -1; + } + + public boolean removeValue(float value) { + float[] items = this.items; + for (int i = 0, n = size; i < n; i++) { + if (items[i] == value) { + removeIndex(i); + return true; + } + } + return false; + } + + /** + * Removes and returns the item at the specified index. + */ + public float removeIndex(int index) { + if (index >= size) { + throw new IndexOutOfBoundsException("index can't be >= size: " + index + " >= " + size); + } + float[] items = this.items; + float value = items[index]; + size--; + if (ordered) { + System.arraycopy(items, index + 1, items, index, size - index); + } else { + items[index] = items[size]; + } + return value; + } + + /** + * Removes the items between the specified indices, inclusive. + */ + public void removeRange(int start, int end) { + if (end >= size) { + throw new IndexOutOfBoundsException("end can't be >= size: " + end + " >= " + size); + } + if (start > end) { + throw new IndexOutOfBoundsException("start can't be > end: " + start + " > " + end); + } + float[] items = this.items; + int count = end - start + 1; + if (ordered) { + System.arraycopy(items, start + count, items, start, size - (start + count)); + } else { + int lastIndex = this.size - 1; + for (int i = 0; i < count; i++) { + items[start + i] = items[lastIndex - i]; + } + } + size -= count; + } + + /** + * Removes from this array all of elements contained in the specified array. + * + * @return true if this array was modified. + */ + public boolean removeAll(FloatArray array) { + int size = this.size; + int startSize = size; + float[] items = this.items; + for (int i = 0, n = array.size; i < n; i++) { + float item = array.get(i); + for (int ii = 0; ii < size; ii++) { + if (item == items[ii]) { + removeIndex(ii); + size--; + break; + } + } + } + return size != startSize; + } + + /** + * Removes and returns the last item. + */ + public float pop() { + return items[--size]; + } + + /** + * Returns the last item. + */ + public float peek() { + return items[size - 1]; + } + + /** + * Returns the first item. + */ + public float first() { + if (size == 0) { + throw new IllegalStateException("Array is empty."); + } + return items[0]; + } + + public void clear() { + size = 0; + } + + /** + * Reduces the size of the backing array to the size of the actual items. This + * is useful to release memory when many items have been removed, or if it is + * known that more items will not be added. + * + * @return {@link #items} + */ + public float[] shrink() { + if (items.length != size) { + resize(size); + } + return items; + } + + /** + * Increases the size of the backing array to accommodate the specified number + * of additional items. Useful before adding many items to avoid multiple + * backing array resizes. + * + * @return {@link #items} + */ + public float[] ensureCapacity(int additionalCapacity) { + int sizeNeeded = size + additionalCapacity; + if (sizeNeeded > items.length) { + resize(Math.max(8, sizeNeeded)); + } + return items; + } + + /** + * Sets the array size, leaving any values beyond the current size undefined. + * + * @return {@link #items} + */ + public float[] setSize(int newSize) { + if (newSize > items.length) { + resize(Math.max(8, newSize)); + } + size = newSize; + return items; + } + + protected float[] resize(int newSize) { + float[] newItems = new float[newSize]; + float[] items = this.items; + System.arraycopy(items, 0, newItems, 0, Math.min(size, newItems.length)); + this.items = newItems; + return newItems; + } + + public void sort() { + Arrays.sort(items, 0, size); + } + + public void reverse() { + float[] items = this.items; + for (int i = 0, lastIndex = size - 1, n = size / 2; i < n; i++) { + int ii = lastIndex - i; + float temp = items[i]; + items[i] = items[ii]; + items[ii] = temp; + } + } + + static public Random random = new Random(); + + static public int random(int range) { + return random.nextInt(range + 1); + } + + static public int random(int start, int end) { + return start + random.nextInt(end - start + 1); + } + + public void shuffle() { + float[] items = this.items; + for (int i = size - 1; i >= 0; i--) { + int ii = random(i); + float temp = items[i]; + items[i] = items[ii]; + items[ii] = temp; + } + } + + /** + * Reduces the size of the array to the specified size. If the array is + * already smaller than the specified size, no action is taken. + */ + public void truncate(int newSize) { + if (size > newSize) { + size = newSize; + } + } + + /** + * Returns a random item from the array, or zero if the array is empty. + */ + public float random() { + if (size == 0) { + return 0; + } + return items[random(0, size - 1)]; + } + + public float[] toArray() { + float[] array = new float[size]; + System.arraycopy(items, 0, array, 0, size); + return array; + } + + public int hashCode() { + if (!ordered) { + return super.hashCode(); + } + float[] items = this.items; + int h = 1; + for (int i = 0, n = size; i < n; i++) { + h = h * 31 + Float.floatToIntBits(items[i]); + } + return h; + } + + public boolean equals(Object object) { + if (object == this) { + return true; + } + if (!ordered) { + return false; + } + if (!(object instanceof FloatArray)) { + return false; + } + FloatArray array = (FloatArray) object; + if (!array.ordered) { + return false; + } + int n = size; + if (n != array.size) { + return false; + } + float[] items1 = this.items; + float[] items2 = array.items; + for (int i = 0; i < n; i++) { + if (items1[i] != items2[i]) { + return false; + } + } + return true; + } + + public boolean equals(Object object, float epsilon) { + if (object == this) { + return true; + } + if (!(object instanceof FloatArray)) { + return false; + } + FloatArray array = (FloatArray) object; + int n = size; + if (n != array.size) { + return false; + } + if (!ordered) { + return false; + } + if (!array.ordered) { + return false; + } + float[] items1 = this.items; + float[] items2 = array.items; + for (int i = 0; i < n; i++) { + if (Math.abs(items1[i] - items2[i]) > epsilon) { + return false; + } + } + return true; + } + + public String toString() { + if (size == 0) { + return "[]"; + } + float[] items = this.items; + StringBuilder buffer = new StringBuilder(32); + buffer.append('['); + buffer.append(items[0]); + for (int i = 1; i < size; i++) { + buffer.append(", "); + buffer.append(items[i]); + } + buffer.append(']'); + return buffer.toString(); + } + + public String toString(String separator) { + if (size == 0) { + return ""; + } + float[] items = this.items; + StringBuilder buffer = new StringBuilder(32); + buffer.append(items[0]); + for (int i = 1; i < size; i++) { + buffer.append(separator); + buffer.append(items[i]); + } + return buffer.toString(); + } + + /** + * @see #FloatArray(float[]) + */ + static public FloatArray with(float... array) { + return new FloatArray(array); + } +} diff --git a/src/main/java/com/dongbat/walkable/PathHelper.java b/src/main/java/com/dongbat/walkable/PathHelper.java new file mode 100644 index 0000000..8eacf80 --- /dev/null +++ b/src/main/java/com/dongbat/walkable/PathHelper.java @@ -0,0 +1,199 @@ +/* + * Copyright 2017 Dong Bat Co.,Ltd.. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.dongbat.walkable; + +import haxe.root.Array; +import hxDaedalus.ai.EntityAI; +import hxDaedalus.ai.PathFinder; +import hxDaedalus.data.Mesh; +import hxDaedalus.data.Obstacle; +import hxDaedalus.factories.RectMesh; +import java.util.List; + +/** + * + * @author tao + */ +public class PathHelper { + + private final Mesh mesh; + private final EntityAI entity; + private final PathFinder pathFinder; + private final Array path; + + public PathHelper(float w, float h) { + mesh = RectMesh.buildRectangle(w, h); + entity = new EntityAI(); + pathFinder = new PathFinder(); + pathFinder.set_mesh(mesh); + pathFinder.entity = entity; + path = new Array(); + } + + public Obstacle addPolyline(float[] vertices) { + return addPolyline(vertices, 0, 0); + } + + public Obstacle addPolyline(float[] vertices, float x, float y) { + if (vertices.length < 4) { + System.out.println("Polylines must contain at least 2 points."); + return null; + } + Obstacle object = new Obstacle(); + Array array = new Array(); + object.set_coordinates(array); + float prevX = 0, prevY = 0; + for (int i = 0; i < vertices.length; i += 2) { + float vx = vertices[i]; + float vy = vertices[i + 1]; + + if (i > 0) { + array.push(prevX); + array.push(prevY); + array.push(vx); + array.push(vy); + } + + prevX = vx; + prevY = vy; + } + object.set_x(x); + object.set_y(y); + mesh.insertObject(object); + return object; + } + + public Obstacle addPolygon(float[] vertices) { + return addPolygon(vertices, 0, 0); + } + + public Obstacle addPolygon(float[] vertices, float x, float y) { + if (vertices.length < 6) { + System.out.println("Polygons must contain at least 3 points."); + return null; + } + Obstacle object = new Obstacle(); + Array array = new Array(); + object.set_coordinates(array); + float prevX = vertices[vertices.length - 2], prevY = vertices[vertices.length - 1]; + for (int i = 0; i < vertices.length; i += 2) { + float vx = vertices[i]; + float vy = vertices[i + 1]; + + array.push(prevX); + array.push(prevY); + array.push(vx); + array.push(vy); + + prevX = vx; + prevY = vy; + } + object.set_x(x); + object.set_y(y); + mesh.insertObject(object); + + return object; + } + + public Obstacle addRect(float x, float y, float w, float h) { + Obstacle object = new Obstacle(); + Array array = new Array(); + array.push(0); + array.push(0); + + array.push(w); + array.push(0); + + array.push(w); + array.push(0); + + array.push(w); + array.push(h); + + array.push(w); + array.push(h); + + array.push(0); + array.push(h); + + array.push(0); + array.push(h); + + array.push(0); + array.push(0); + + object.set_coordinates(array); + object.set_x(x); + object.set_y(y); + mesh.insertObject(object); + + return object; + } + + public void removeObstacle(Obstacle obstacle) { + mesh.deleteObject(obstacle); + } + + private void doFindPath(float fromX, float fromY, float toX, float toY, float radius) { + entity.set_radius(radius); + entity.x = fromX; + entity.y = fromY; + try { + pathFinder.findPath(toX, toY, path); + } catch (Exception e) { + path.splice(0, path.length); + System.out.println(e.getMessage()); + } + } + + public float[] findPath(float fromX, float fromY, float toX, float toY, float radius) { + doFindPath(fromX, fromY, toX, toY, radius); + + float[] result = new float[path.length]; + + for (int i = 0; i < path.length; i++) { + result[i] = ((Double) path.__get(i)).floatValue(); + } + return result; + } + + public int findPath(float fromX, float fromY, float toX, float toY, float radius, float[] result) { + doFindPath(fromX, fromY, toX, toY, radius); + + for (int i = 0; i < path.length; i++) { + result[i] = ((Double) path.__get(i)).floatValue(); + } + return path.length; + } + + public void findPath(float fromX, float fromY, float toX, float toY, float radius, List result) { + doFindPath(fromX, fromY, toX, toY, radius); + + result.clear(); + for (int i = 0; i < path.length; i++) { + result.add(((Double) path.__get(i)).floatValue()); + } + } + + public void findPath(float fromX, float fromY, float toX, float toY, float radius, FloatArray result) { + doFindPath(fromX, fromY, toX, toY, radius); + + result.clear(); + for (int i = 0; i < path.length; i++) { + result.add(((Double) path.__get(i)).floatValue()); + } + } +} diff --git a/src/main/java/haxe/IMap.java b/src/main/java/haxe/IMap.java new file mode 100644 index 0000000..916afaf --- /dev/null +++ b/src/main/java/haxe/IMap.java @@ -0,0 +1,11 @@ +// Generated by Haxe 3.4.2 +package haxe; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public interface IMap extends haxe.lang.IHxObject +{ +} + + diff --git a/src/main/java/haxe/ds/ObjectMap.java b/src/main/java/haxe/ds/ObjectMap.java new file mode 100644 index 0000000..e92a729 --- /dev/null +++ b/src/main/java/haxe/ds/ObjectMap.java @@ -0,0 +1,1425 @@ +// Generated by Haxe 3.4.2 +package haxe.ds; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class ObjectMap extends haxe.lang.HxObject implements haxe.IMap +{ + public ObjectMap(haxe.lang.EmptyObject empty) + { + } + + + public ObjectMap() + { + //line 59 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + haxe.ds.ObjectMap.__hx_ctor_haxe_ds_ObjectMap(((haxe.ds.ObjectMap) (this) )); + } + + + public static void __hx_ctor_haxe_ds_ObjectMap(haxe.ds.ObjectMap __hx_this) + { + //line 61 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __hx_this.cachedIndex = -1; + } + + + public int[] hashes; + + public K[] _keys; + + public V[] vals; + + public int nBuckets; + + public int size; + + public int nOccupied; + + public int upperBound; + + public K cachedKey; + + public int cachedIndex; + + public void set(K key, V value) + { + //line 66 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int x = 0; + //line 66 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int k = 0; + //line 67 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.nOccupied >= this.upperBound )) + { + //line 69 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.nBuckets > ( this.size << 1 ) )) + { + //line 70 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.resize(( this.nBuckets - 1 )); + } + else + { + //line 72 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.resize(( this.nBuckets + 2 )); + } + + } + + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int[] hashes = this.hashes; + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K[] keys = this._keys; + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int[] hashes1 = hashes; + //line 76 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 77 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int mask = ( (( this.nBuckets == 0 )) ? (0) : (( this.nBuckets - 1 )) ); + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x = this.nBuckets; + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int site = x; + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int k1 = key.hashCode(); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 + 2127912214 ) + (( k1 << 12 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 ^ -949894596 ) ^ ( k1 >> 19 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 + 374761393 ) + (( k1 << 5 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 + -744332180 ) ^ ( k1 << 9 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 + -42973499 ) + (( k1 << 3 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = ( ( k1 ^ -1252372727 ) ^ ( k1 >> 16 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int ret = k1; + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( (( ret & -2 )) == 0 )) + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( ret == 0 )) + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + ret = 2; + } + else + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + ret = -1; + } + + } + + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ret; + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int i = ( k & mask ); + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int nProbes = 0; + //line 82 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int delKey = -1; + //line 84 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( hashes1[i] == 0 )) + { + //line 85 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x = i; + } + else + { + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int last = i; + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int flag = 0; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + while (true) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean tmp = false; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + flag = hashes1[i]; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( flag != 0 )) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( flag == k )) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = keys[i].equals(key); + } + else + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = false; + } + + } + else + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = true; + } + + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if ( ! (( ! (tmp) )) ) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + //line 91 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( ( flag == 1 ) && ( delKey == -1 ) )) + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + delKey = i; + } + + //line 93 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + i = ( ( i + ++ nProbes ) & mask ); + } + + //line 101 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( ( flag == 0 ) && ( delKey != -1 ) )) + { + //line 102 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x = delKey; + } + else + { + //line 104 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x = i; + } + + } + + } + + //line 114 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int flag1 = hashes1[x]; + //line 115 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( flag1 == 0 )) + { + //line 117 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + keys[x] = key; + //line 118 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals[x] = value; + //line 119 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + hashes1[x] = k; + //line 120 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.size++; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nOccupied++; + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( flag1 == 1 )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + keys[x] = key; + //line 124 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals[x] = value; + //line 125 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + hashes1[x] = k; + //line 126 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.size++; + } + else + { + //line 129 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals[x] = value; + } + + } + + //line 132 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedIndex = x; + //line 133 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedKey = key; + } + + + public int lookup(K key) + { + //line 138 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.nBuckets != 0 )) + { + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int[] hashes = this.hashes; + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K[] keys = this._keys; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int mask = ( this.nBuckets - 1 ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int k = key.hashCode(); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k + 2127912214 ) + (( k << 12 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k ^ -949894596 ) ^ ( k >> 19 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k + 374761393 ) + (( k << 5 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k + -744332180 ) ^ ( k << 9 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k + -42973499 ) + (( k << 3 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k = ( ( k ^ -1252372727 ) ^ ( k >> 16 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int ret = k; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( (( ret & -2 )) == 0 )) + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( ret == 0 )) + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + ret = 2; + } + else + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + ret = -1; + } + + } + + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int hash = ret; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int k1 = hash; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int nProbes = 0; + //line 143 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int i = ( k1 & mask ); + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int last = i; + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int flag = 0; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + while (true) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean tmp = false; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + flag = hashes[i]; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( flag != 0 )) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if ( ! ((( ( flag == 1 ) || ( flag != k1 ) ))) ) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = ! (keys[i].equals(key)) ; + } + else + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = true; + } + + } + else + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = false; + } + + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if ( ! (tmp) ) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + i = ( ( i + ++ nProbes ) & mask ); + } + + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( (( flag & -2 )) == 0 )) + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return -1; + } + else + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return i; + } + + } + + //line 164 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return -1; + } + + + public void resize(int newNBuckets) + { + //line 170 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int[] newHash = null; + //line 171 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int j = 1; + //line 172 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int x = newNBuckets; + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + -- x; + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x |= ( x >>> 1 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x |= ( x >>> 2 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x |= ( x >>> 4 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x |= ( x >>> 8 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + x |= ( x >>> 16 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + newNBuckets = ++ x; + //line 174 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( newNBuckets < 4 )) + { + //line 174 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + newNBuckets = 4; + } + + //line 175 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.size >= ( ( newNBuckets * 0.77 ) + 0.5 ) )) + { + //line 177 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + j = 0; + } + else + { + //line 179 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int nfSize = newNBuckets; + //line 180 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + newHash = new int[nfSize]; + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.nBuckets < newNBuckets )) + { + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K[] k = ((K[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 184 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this._keys != null )) + { + //line 185 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (this._keys) ), ((int) (0) ), ((java.lang.Object) (k) ), ((int) (0) ), ((int) (this.nBuckets) )); + } + + //line 186 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this._keys = k; + //line 188 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + V[] v = ((V[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 189 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( this.vals != null )) + { + //line 190 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.vals) ), ((int) (0) ), ((java.lang.Object) (v) ), ((int) (0) ), ((int) (this.nBuckets) )); + } + + //line 191 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals = v; + } + + } + + } + + //line 196 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( j != 0 )) + { + //line 199 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedKey = null; + //line 200 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedIndex = -1; + //line 202 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + j = -1; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int nBuckets = this.nBuckets; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K[] _keys = this._keys; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + V[] vals = this.vals; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int[] hashes = this.hashes; + //line 205 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int newMask = ( newNBuckets - 1 ); + //line 206 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + while (( ++ j < nBuckets )) + { + //line 208 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int k1 = hashes[j]; + //line 209 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( (( k1 & -2 )) != 0 )) + { + //line 211 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K key = _keys[j]; + //line 212 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + V val = vals[j]; + //line 214 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + hashes[j] = 1; + //line 215 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + while (true) + { + //line 217 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int nProbes = 0; + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int i = ( k1 & newMask ); + //line 221 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + while (( newHash[i] != 0 )) + { + //line 222 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + i = ( ( i + ++ nProbes ) & newMask ); + } + + //line 224 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + newHash[i] = k1; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean tmp = false; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( i < nBuckets )) + { + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + k1 = hashes[i]; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = ( (( k1 & -2 )) != 0 ); + } + else + { + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = false; + } + + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (tmp) + { + //line 228 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 229 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K tmp1 = _keys[i]; + //line 230 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + _keys[i] = key; + //line 231 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + key = tmp1; + } + + //line 233 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 234 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + V tmp2 = vals[i]; + //line 235 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + vals[i] = val; + //line 236 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + val = tmp2; + } + + //line 239 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + hashes[i] = 1; + } + else + { + //line 241 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + _keys[i] = key; + //line 242 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + vals[i] = val; + //line 243 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + } + + } + + } + + //line 249 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( nBuckets > newNBuckets )) + { + //line 251 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 252 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + K[] k2 = ((K[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 253 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (_keys) ), ((int) (0) ), ((java.lang.Object) (k2) ), ((int) (0) ), ((int) (newNBuckets) )); + //line 254 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this._keys = k2; + } + + //line 256 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 257 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + V[] v1 = ((V[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 258 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (vals) ), ((int) (0) ), ((java.lang.Object) (v1) ), ((int) (0) ), ((int) (newNBuckets) )); + //line 259 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals = v1; + } + + } + + //line 263 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.hashes = newHash; + //line 264 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nBuckets = newNBuckets; + //line 265 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nOccupied = this.size; + //line 266 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.upperBound = ((int) (( ( newNBuckets * 0.77 ) + .5 )) ); + } + + } + + + public java.lang.Object get(K key) + { + //line 272 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + int idx = -1; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean tmp = false; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (haxe.lang.Runtime.eq(this.cachedKey, key)) + { + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + idx = this.cachedIndex; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = ( idx != -1 ); + } + else + { + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + tmp = false; + } + + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (tmp) + { + //line 275 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.vals[idx]; + } + + //line 278 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + idx = this.lookup(key); + //line 279 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (( idx != -1 )) + { + //line 281 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedKey = key; + //line 282 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedIndex = idx; + //line 284 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.vals[idx]; + } + + //line 287 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return null; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedIndex = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nBuckets = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedKey = ((K) (((java.lang.Object) (value) )) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (haxe.lang.Runtime.toDouble(((java.lang.Object) (value) ))) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.size = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.upperBound = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nOccupied = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1224424900: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("hashes")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.hashes = ((int[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.cachedKey = ((K) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 91023059: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("_keys")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this._keys = ((K[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.upperBound = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3612018: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("vals")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.vals = ((V[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nOccupied = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.nBuckets = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.size = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + switch (field.hashCode()) + { + case 102230: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("get")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1224424900: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("hashes")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.hashes; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -934437708: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("resize")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "resize")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 91023059: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("_keys")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this._keys; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1097094790: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("lookup")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lookup")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3612018: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("vals")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.vals; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 113762: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("set")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.nBuckets; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.cachedIndex; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.size; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.cachedKey; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.nOccupied; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.upperBound; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (this.cachedIndex) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (this.nBuckets) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (haxe.lang.Runtime.toDouble(((java.lang.Object) (this.cachedKey) ))) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (this.size) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (this.upperBound) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return ((double) (this.nOccupied) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + switch (field.hashCode()) + { + case 102230: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("get")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.get(((K) (dynargs.__get(0)) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case 113762: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("set")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.set(((K) (dynargs.__get(0)) ), ((V) (dynargs.__get(1)) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -934437708: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("resize")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + this.resize(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + case -1097094790: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (field.equals("lookup")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return this.lookup(((K) (dynargs.__get(0)) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("cachedIndex"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("cachedKey"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("upperBound"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("nOccupied"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("size"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("nBuckets"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("vals"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("_keys"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + baseArr.push("hashes"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/ObjectMap.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/ds/StringMap.java b/src/main/java/haxe/ds/StringMap.java new file mode 100644 index 0000000..1db0e47 --- /dev/null +++ b/src/main/java/haxe/ds/StringMap.java @@ -0,0 +1,1393 @@ +// Generated by Haxe 3.4.2 +package haxe.ds; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class StringMap extends haxe.lang.HxObject implements haxe.IMap +{ + public StringMap(haxe.lang.EmptyObject empty) + { + } + + + public StringMap() + { + //line 59 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + haxe.ds.StringMap.__hx_ctor_haxe_ds_StringMap(((haxe.ds.StringMap) (this) )); + } + + + public static void __hx_ctor_haxe_ds_StringMap(haxe.ds.StringMap __hx_this) + { + //line 61 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __hx_this.cachedIndex = -1; + } + + + public int[] hashes; + + public java.lang.String[] _keys; + + public T[] vals; + + public int nBuckets; + + public int size; + + public int nOccupied; + + public int upperBound; + + public java.lang.String cachedKey; + + public int cachedIndex; + + public void set(java.lang.String key, T value) + { + //line 66 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int x = 0; + //line 66 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int k = 0; + //line 67 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.nOccupied >= this.upperBound )) + { + //line 69 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.nBuckets > ( this.size << 1 ) )) + { + //line 70 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.resize(( this.nBuckets - 1 )); + } + else + { + //line 72 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.resize(( this.nBuckets + 2 )); + } + + } + + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int[] hashes = this.hashes; + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String[] keys = this._keys; + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int[] hashes1 = hashes; + //line 76 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 77 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int mask = ( (( this.nBuckets == 0 )) ? (0) : (( this.nBuckets - 1 )) ); + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x = this.nBuckets; + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int site = x; + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int k1 = key.hashCode(); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 + 2127912214 ) + (( k1 << 12 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 ^ -949894596 ) ^ ( k1 >> 19 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 + 374761393 ) + (( k1 << 5 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 + -744332180 ) ^ ( k1 << 9 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 + -42973499 ) + (( k1 << 3 )) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = ( ( k1 ^ -1252372727 ) ^ ( k1 >> 16 ) ); + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int ret = k1; + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( (( ret & -2 )) == 0 )) + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( ret == 0 )) + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + ret = 2; + } + else + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + ret = -1; + } + + } + + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ret; + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int i = ( k & mask ); + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int nProbes = 0; + //line 82 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int delKey = -1; + //line 84 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( hashes1[i] == 0 )) + { + //line 85 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x = i; + } + else + { + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int last = i; + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int flag = 0; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + while (true) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean tmp = false; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + flag = hashes1[i]; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( flag != 0 )) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( flag == k )) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = haxe.lang.Runtime.valEq(this._keys[i], key); + } + else + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = false; + } + + } + else + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = true; + } + + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if ( ! (( ! (tmp) )) ) + { + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + //line 91 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( ( flag == 1 ) && ( delKey == -1 ) )) + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + delKey = i; + } + + //line 93 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + i = ( ( i + ++ nProbes ) & mask ); + } + + //line 101 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( ( flag == 0 ) && ( delKey != -1 ) )) + { + //line 102 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x = delKey; + } + else + { + //line 104 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x = i; + } + + } + + } + + //line 114 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int flag1 = hashes1[x]; + //line 115 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( flag1 == 0 )) + { + //line 117 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + keys[x] = key; + //line 118 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals[x] = value; + //line 119 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + hashes1[x] = k; + //line 120 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.size++; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nOccupied++; + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( flag1 == 1 )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + keys[x] = key; + //line 124 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals[x] = value; + //line 125 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + hashes1[x] = k; + //line 126 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.size++; + } + else + { + //line 128 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean x1 = haxe.lang.Runtime.valEq(this._keys[x], key); + //line 129 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals[x] = value; + } + + } + + //line 132 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedIndex = x; + //line 133 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedKey = key; + } + + + public int lookup(java.lang.String key) + { + //line 138 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.nBuckets != 0 )) + { + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int[] hashes = this.hashes; + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String[] keys = this._keys; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int mask = ( this.nBuckets - 1 ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int k = key.hashCode(); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k + 2127912214 ) + (( k << 12 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k ^ -949894596 ) ^ ( k >> 19 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k + 374761393 ) + (( k << 5 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k + -744332180 ) ^ ( k << 9 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k + -42973499 ) + (( k << 3 )) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k = ( ( k ^ -1252372727 ) ^ ( k >> 16 ) ); + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int ret = k; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( (( ret & -2 )) == 0 )) + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( ret == 0 )) + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + ret = 2; + } + else + { + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + ret = -1; + } + + } + + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int hash = ret; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int k1 = hash; + //line 142 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int nProbes = 0; + //line 143 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int i = ( k1 & mask ); + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int last = i; + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int flag = 0; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + while (true) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean tmp = false; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + flag = hashes[i]; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( flag != 0 )) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if ( ! ((( ( flag == 1 ) || ( flag != k1 ) ))) ) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = ! (haxe.lang.Runtime.valEq(keys[i], key)) ; + } + else + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = true; + } + + } + else + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = false; + } + + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if ( ! (tmp) ) + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + i = ( ( i + ++ nProbes ) & mask ); + } + + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( (( flag & -2 )) == 0 )) + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return -1; + } + else + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return i; + } + + } + + //line 164 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return -1; + } + + + public void resize(int newNBuckets) + { + //line 170 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int[] newHash = null; + //line 171 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int j = 1; + //line 172 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int x = newNBuckets; + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + -- x; + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x |= ( x >>> 1 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x |= ( x >>> 2 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x |= ( x >>> 4 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x |= ( x >>> 8 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + x |= ( x >>> 16 ); + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + newNBuckets = ++ x; + //line 174 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( newNBuckets < 4 )) + { + //line 174 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + newNBuckets = 4; + } + + //line 175 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.size >= ( ( newNBuckets * 0.77 ) + 0.5 ) )) + { + //line 177 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + j = 0; + } + else + { + //line 179 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int nfSize = newNBuckets; + //line 180 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + newHash = new int[nfSize]; + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.nBuckets < newNBuckets )) + { + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String[] k = new java.lang.String[newNBuckets]; + //line 184 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this._keys != null )) + { + //line 185 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (this._keys) ), ((int) (0) ), ((java.lang.Object) (k) ), ((int) (0) ), ((int) (this.nBuckets) )); + } + + //line 186 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this._keys = k; + //line 188 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + T[] v = ((T[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 189 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( this.vals != null )) + { + //line 190 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.vals) ), ((int) (0) ), ((java.lang.Object) (v) ), ((int) (0) ), ((int) (this.nBuckets) )); + } + + //line 191 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals = v; + } + + } + + } + + //line 196 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( j != 0 )) + { + //line 199 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedKey = null; + //line 200 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedIndex = -1; + //line 202 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + j = -1; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int nBuckets = this.nBuckets; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String[] _keys = this._keys; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + T[] vals = this.vals; + //line 203 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int[] hashes = this.hashes; + //line 205 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int newMask = ( newNBuckets - 1 ); + //line 206 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + while (( ++ j < nBuckets )) + { + //line 208 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int k1 = hashes[j]; + //line 209 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( (( k1 & -2 )) != 0 )) + { + //line 211 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String key = _keys[j]; + //line 212 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + T val = vals[j]; + //line 214 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + hashes[j] = 1; + //line 215 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + while (true) + { + //line 217 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int nProbes = 0; + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int i = ( k1 & newMask ); + //line 221 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + while (( newHash[i] != 0 )) + { + //line 222 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + i = ( ( i + ++ nProbes ) & newMask ); + } + + //line 224 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + newHash[i] = k1; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean tmp = false; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( i < nBuckets )) + { + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + k1 = hashes[i]; + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = ( (( k1 & -2 )) != 0 ); + } + else + { + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = false; + } + + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (tmp) + { + //line 228 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 229 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String tmp1 = _keys[i]; + //line 230 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + _keys[i] = key; + //line 231 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + key = tmp1; + } + + //line 233 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 234 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + T tmp2 = vals[i]; + //line 235 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + vals[i] = val; + //line 236 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + val = tmp2; + } + + //line 239 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + hashes[i] = 1; + } + else + { + //line 241 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + _keys[i] = key; + //line 242 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + vals[i] = val; + //line 243 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + } + + } + + } + + //line 249 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( nBuckets > newNBuckets )) + { + //line 251 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 252 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.String[] k2 = new java.lang.String[newNBuckets]; + //line 253 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (_keys) ), ((int) (0) ), ((java.lang.Object) (k2) ), ((int) (0) ), ((int) (newNBuckets) )); + //line 254 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this._keys = k2; + } + + //line 256 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 257 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + T[] v1 = ((T[]) (((java.lang.Object) (new java.lang.Object[newNBuckets]) )) ); + //line 258 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + java.lang.System.arraycopy(((java.lang.Object) (vals) ), ((int) (0) ), ((java.lang.Object) (v1) ), ((int) (0) ), ((int) (newNBuckets) )); + //line 259 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals = v1; + } + + } + + //line 263 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.hashes = newHash; + //line 264 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nBuckets = newNBuckets; + //line 265 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nOccupied = this.size; + //line 266 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.upperBound = ((int) (( ( newNBuckets * 0.77 ) + .5 )) ); + } + + } + + + public java.lang.Object get(java.lang.String key) + { + //line 272 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + int idx = -1; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean tmp = false; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (haxe.lang.Runtime.valEq(this.cachedKey, key)) + { + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + idx = this.cachedIndex; + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = ( idx != -1 ); + } + else + { + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + tmp = false; + } + + //line 273 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (tmp) + { + //line 275 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.vals[idx]; + } + + //line 278 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + idx = this.lookup(key); + //line 279 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (( idx != -1 )) + { + //line 281 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedKey = key; + //line 282 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedIndex = idx; + //line 284 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.vals[idx]; + } + + //line 287 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return null; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedIndex = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nBuckets = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.upperBound = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.size = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nOccupied = ((int) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1224424900: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("hashes")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.hashes = ((int[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.cachedKey = haxe.lang.Runtime.toString(value); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 91023059: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("_keys")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this._keys = ((java.lang.String[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.upperBound = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3612018: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("vals")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.vals = ((T[]) (value) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nOccupied = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.nBuckets = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.size = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return value; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + switch (field.hashCode()) + { + case 102230: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("get")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1224424900: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("hashes")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.hashes; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -934437708: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("resize")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "resize")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 91023059: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("_keys")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this._keys; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1097094790: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("lookup")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lookup")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3612018: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("vals")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.vals; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 113762: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("set")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set")) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.nBuckets; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.cachedIndex; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.size; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -553141795: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedKey")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.cachedKey; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.nOccupied; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.upperBound; + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + switch (field.hashCode()) + { + case 1005083856: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("cachedIndex")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((double) (this.cachedIndex) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 325636987: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nBuckets")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((double) (this.nBuckets) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1690761732: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("upperBound")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((double) (this.upperBound) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 3530753: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("size")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((double) (this.size) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -394102484: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("nOccupied")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return ((double) (this.nOccupied) ); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + boolean __temp_executeDef1 = true; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + switch (field.hashCode()) + { + case 102230: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("get")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.get(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case 113762: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("set")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.set(haxe.lang.Runtime.toString(dynargs.__get(0)), ((T) (dynargs.__get(1)) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -934437708: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("resize")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + this.resize(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + case -1097094790: + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (field.equals("lookup")) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + __temp_executeDef1 = false; + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return this.lookup(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + break; + } + + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + if (__temp_executeDef1) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("cachedIndex"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("cachedKey"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("upperBound"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("nOccupied"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("size"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("nBuckets"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("vals"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("_keys"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + baseArr.push("hashes"); + //line 26 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/haxe/ds/StringMap.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/io/Bytes.java b/src/main/java/haxe/io/Bytes.java new file mode 100644 index 0000000..d6b17a8 --- /dev/null +++ b/src/main/java/haxe/io/Bytes.java @@ -0,0 +1,339 @@ +// Generated by Haxe 3.4.2 +package haxe.io; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Bytes extends haxe.lang.HxObject +{ + public Bytes(haxe.lang.EmptyObject empty) + { + } + + + public Bytes(int length, byte[] b) + { + //line 33 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + haxe.io.Bytes.__hx_ctor_haxe_io_Bytes(this, length, b); + } + + + public static void __hx_ctor_haxe_io_Bytes(haxe.io.Bytes __hx_this, int length, byte[] b) + { + //line 34 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __hx_this.length = length; + //line 35 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __hx_this.b = b; + } + + + public static haxe.io.Bytes alloc(int length) + { + //line 478 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return new haxe.io.Bytes(length, new byte[length]); + } + + + public int length; + + public byte[] b; + + public void blit(int pos, haxe.io.Bytes src, int srcpos, int len) + { + //line 81 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (( ( ( ( ( pos < 0 ) || ( srcpos < 0 ) ) || ( len < 0 ) ) || ( ( pos + len ) > this.length ) ) || ( ( srcpos + len ) > src.length ) )) + { + //line 81 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + throw haxe.lang.HaxeException.wrap(haxe.io.Error.OutsideBounds); + } + + //line 91 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + java.lang.System.arraycopy(((java.lang.Object) (src.b) ), ((int) (srcpos) ), ((java.lang.Object) (this.b) ), ((int) (pos) ), ((int) (len) )); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + boolean __temp_executeDef1 = true; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + switch (field.hashCode()) + { + case -1106363674: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("length")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + this.length = ((int) (value) ); + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return value; + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (__temp_executeDef1) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + boolean __temp_executeDef1 = true; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + switch (field.hashCode()) + { + case 98: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("b")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + this.b = ((byte[]) (value) ); + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return value; + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + case -1106363674: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("length")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + this.length = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return value; + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (__temp_executeDef1) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + boolean __temp_executeDef1 = true; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + switch (field.hashCode()) + { + case 3026677: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("blit")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "blit")) ); + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + case -1106363674: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("length")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return this.length; + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + case 98: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("b")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return this.b; + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (__temp_executeDef1) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + boolean __temp_executeDef1 = true; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + switch (field.hashCode()) + { + case -1106363674: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("length")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return ((double) (this.length) ); + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (__temp_executeDef1) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + boolean __temp_executeDef1 = true; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + switch (field.hashCode()) + { + case 3026677: + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (field.equals("blit")) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + __temp_executeDef1 = false; + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + this.blit(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((haxe.io.Bytes) (dynargs.__get(1)) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(2))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(3))) )); + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + break; + } + + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + if (__temp_executeDef1) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + baseArr.push("b"); + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + baseArr.push("length"); + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Bytes.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/io/Eof.java b/src/main/java/haxe/io/Eof.java new file mode 100644 index 0000000..4cd290b --- /dev/null +++ b/src/main/java/haxe/io/Eof.java @@ -0,0 +1,123 @@ +// Generated by Haxe 3.4.2 +package haxe.io; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Eof extends haxe.lang.HxObject +{ + public Eof(haxe.lang.EmptyObject empty) + { + } + + + public Eof() + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + haxe.io.Eof.__hx_ctor_haxe_io_Eof(this); + } + + + public static void __hx_ctor_haxe_io_Eof(haxe.io.Eof __hx_this) + { + } + + + @Override public java.lang.String toString() + { + //line 31 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + return "Eof"; + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + boolean __temp_executeDef1 = true; + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + if (field.equals("toString")) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + __temp_executeDef1 = false; + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + break; + } + + + } + + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + if (__temp_executeDef1) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + boolean __temp_executeDef1 = true; + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + if (field.equals("toString")) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + __temp_executeDef1 = false; + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + return this.toString(); + } + + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + break; + } + + + } + + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + if (__temp_executeDef1) + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Eof.hx" + throw null; + } + + } + + } + + +} + + diff --git a/src/main/java/haxe/io/Error.java b/src/main/java/haxe/io/Error.java new file mode 100644 index 0000000..b421609 --- /dev/null +++ b/src/main/java/haxe/io/Error.java @@ -0,0 +1,40 @@ +// Generated by Haxe 3.4.2 +package haxe.io; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Error extends haxe.lang.ParamEnum +{ + public Error(int index, java.lang.Object[] params) + { + //line 99 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + super(index, params); + } + + + public static final java.lang.String[] __hx_constructs = new java.lang.String[]{"Blocked", "Overflow", "OutsideBounds", "Custom"}; + + public static final haxe.io.Error Blocked = new haxe.io.Error(0, null); + + public static final haxe.io.Error Overflow = new haxe.io.Error(1, null); + + public static final haxe.io.Error OutsideBounds = new haxe.io.Error(2, null); + + public static haxe.io.Error Custom(java.lang.Object e) + { + //line 35 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Error.hx" + return new haxe.io.Error(3, new java.lang.Object[]{e}); + } + + + @Override public java.lang.String getTag() + { + //line 27 "/Users/tao/.hvm/versions/haxe/3.4.2/std/haxe/io/Error.hx" + return haxe.io.Error.__hx_constructs[this.index]; + } + + +} + + diff --git a/src/main/java/haxe/lang/Closure.java b/src/main/java/haxe/lang/Closure.java new file mode 100644 index 0000000..65253d9 --- /dev/null +++ b/src/main/java/haxe/lang/Closure.java @@ -0,0 +1,66 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Closure extends haxe.lang.VarArgsBase +{ + public Closure(java.lang.Object obj, java.lang.String field) + { + //line 71 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + super(-1, -1); + //line 72 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + this.obj = obj; + //line 73 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + this.field = field; + } + + + public java.lang.Object obj; + + public java.lang.String field; + + @Override public java.lang.Object __hx_invokeDynamic(haxe.root.Array dynArgs) + { + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return haxe.lang.Runtime.callField(this.obj, this.field, dynArgs); + } + + + @Override public boolean equals(java.lang.Object obj) + { + //line 83 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( obj == null )) + { + //line 84 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return false; + } + + //line 86 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + haxe.lang.Closure c = ((haxe.lang.Closure) (obj) ); + //line 87 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (haxe.lang.Runtime.eq(c.obj, this.obj)) + { + //line 87 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return haxe.lang.Runtime.valEq(c.field, this.field); + } + else + { + //line 87 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return false; + } + + } + + + @Override public int hashCode() + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ( ((int) (haxe.lang.Runtime.toInt(this.obj.hashCode())) ) ^ ((int) (this.field.hashCode()) ) ); + } + + +} + + diff --git a/src/main/java/haxe/lang/DynamicObject.java b/src/main/java/haxe/lang/DynamicObject.java new file mode 100644 index 0000000..03da426 --- /dev/null +++ b/src/main/java/haxe/lang/DynamicObject.java @@ -0,0 +1,351 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class DynamicObject extends haxe.lang.HxObject +{ + public DynamicObject(haxe.lang.EmptyObject empty) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + super(haxe.lang.EmptyObject.EMPTY); + } + + + public DynamicObject() + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.DynamicObject.__hx_ctor_haxe_lang_DynamicObject(((haxe.lang.DynamicObject) (this) )); + } + + + public DynamicObject(java.lang.String[] __hx_hashes, java.lang.Object[] __hx_dynamics, java.lang.String[] __hx_hashes_f, double[] __hx_dynamics_f) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.DynamicObject.__hx_ctor_haxe_lang_DynamicObject(((haxe.lang.DynamicObject) (this) ), ((java.lang.String[]) (__hx_hashes) ), ((java.lang.Object[]) (__hx_dynamics) ), ((java.lang.String[]) (__hx_hashes_f) ), ((double[]) (__hx_dynamics_f) )); + } + + + public static void __hx_ctor_haxe_lang_DynamicObject(haxe.lang.DynamicObject __hx_this) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_hashes = new java.lang.String[]{}; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_dynamics = new java.lang.Object[]{}; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_hashes_f = new java.lang.String[]{}; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_dynamics_f = new double[]{}; + } + + + public static void __hx_ctor_haxe_lang_DynamicObject(haxe.lang.DynamicObject __hx_this, java.lang.String[] __hx_hashes, java.lang.Object[] __hx_dynamics, java.lang.String[] __hx_hashes_f, double[] __hx_dynamics_f) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_hashes = __hx_hashes; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_dynamics = __hx_dynamics; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_hashes_f = __hx_hashes_f; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_dynamics_f = __hx_dynamics_f; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_length = __hx_hashes.length; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + __hx_this.__hx_length_f = __hx_hashes_f.length; + } + + + @Override public java.lang.String toString() + { + //line 46 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.Function ts = ((haxe.lang.Function) (haxe.lang.Runtime.getField(this, "toString", false)) ); + //line 47 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( ts != null )) + { + //line 48 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return haxe.lang.Runtime.toString(ts.__hx_invoke0_o()); + } + + //line 49 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.root.StringBuf ret = new haxe.root.StringBuf(); + //line 50 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString("{")); + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + boolean first = true; + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g = 0; + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.root.Array _g1 = haxe.root.Reflect.fields(this); + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( _g < _g1.length )) + { + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.String f = _g1.__get(_g); + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ++ _g; + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (first) + { + //line 55 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + first = false; + } + else + { + //line 57 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(",")); + } + + //line 58 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(" ")); + //line 58 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(f)); + //line 59 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(" : ")); + //line 60 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(((java.lang.Object) (haxe.root.Reflect.field(this, f)) )); + } + + } + + //line 62 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if ( ! (first) ) + { + //line 62 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(" ")); + } + + //line 63 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString("}")); + //line 64 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return ret.toString(); + } + + + public java.lang.String[] __hx_hashes; + + public java.lang.Object[] __hx_dynamics; + + public java.lang.String[] __hx_hashes_f; + + public double[] __hx_dynamics_f; + + public int __hx_length; + + public int __hx_length_f; + + @Override public boolean __hx_deleteField(java.lang.String field) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes, this.__hx_length); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeString(this.__hx_hashes, this.__hx_length, res); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeDynamic(this.__hx_dynamics, this.__hx_length, res); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length--; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return true; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes_f, this.__hx_length_f); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeString(this.__hx_hashes_f, this.__hx_length_f, res); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeFloat(this.__hx_dynamics_f, this.__hx_length_f, res); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length_f--; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return true; + } + + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return false; + } + + + @Override public java.lang.Object __hx_lookupField(java.lang.String field, boolean throwErrors, boolean isCheck) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes, this.__hx_length); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_dynamics[res]; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes_f, this.__hx_length_f); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_dynamics_f[res]; + } + + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (isCheck) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return haxe.lang.Runtime.undefined; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return null; + } + + } + + + @Override public double __hx_lookupField_f(java.lang.String field, boolean throwErrors) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes_f, this.__hx_length_f); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_dynamics_f[res]; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes, this.__hx_length); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_dynamics[res])) ); + } + + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return 0.0; + } + + + @Override public java.lang.Object __hx_lookupSetField(java.lang.String field, java.lang.Object value) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes, this.__hx_length); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_dynamics[res] = value; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res2 = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes_f, this.__hx_length_f); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res2 >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeString(this.__hx_hashes_f, this.__hx_length_f, res2); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeFloat(this.__hx_dynamics_f, this.__hx_length_f, res2); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length_f--; + } + + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_hashes = haxe.lang.FieldLookup.insertString(this.__hx_hashes, this.__hx_length, ~ (res) , field); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_dynamics = haxe.lang.FieldLookup.insertDynamic(this.__hx_dynamics, this.__hx_length, ~ (res) , value); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length++; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return value; + } + + + @Override public double __hx_lookupSetField_f(java.lang.String field, double value) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes_f, this.__hx_length_f); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_dynamics_f[res] = value; + } + else + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int res2 = haxe.lang.FieldLookup.findHash(field, this.__hx_hashes, this.__hx_length); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( res2 >= 0 )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeString(this.__hx_hashes, this.__hx_length, res2); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.FieldLookup.removeDynamic(this.__hx_dynamics, this.__hx_length, res2); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length--; + } + + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_hashes_f = haxe.lang.FieldLookup.insertString(this.__hx_hashes_f, this.__hx_length_f, ~ (res) , field); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_dynamics_f = haxe.lang.FieldLookup.insertFloat(this.__hx_dynamics_f, this.__hx_length_f, ~ (res) , value); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.__hx_length_f++; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return value; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int i = 0; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + i = 0; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( i < this.__hx_length )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + baseArr.push(this.__hx_hashes[i++]); + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + i = 0; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( i < this.__hx_length_f )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + baseArr.push(this.__hx_hashes_f[i++]); + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/lang/EmptyObject.java b/src/main/java/haxe/lang/EmptyObject.java new file mode 100644 index 0000000..c6e8525 --- /dev/null +++ b/src/main/java/haxe/lang/EmptyObject.java @@ -0,0 +1,9 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +public enum EmptyObject +{ + EMPTY +} + + diff --git a/src/main/java/haxe/lang/Enum.java b/src/main/java/haxe/lang/Enum.java new file mode 100644 index 0000000..32af7e5 --- /dev/null +++ b/src/main/java/haxe/lang/Enum.java @@ -0,0 +1,41 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Enum +{ + public Enum(int index) + { + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.index = index; + } + + + public final int index; + + public java.lang.String getTag() + { + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + throw haxe.lang.HaxeException.wrap("Not Implemented"); + } + + + public haxe.root.Array getParams() + { + //line 85 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return new haxe.root.Array(new java.lang.Object[]{}); + } + + + @Override public java.lang.String toString() + { + //line 90 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.getTag(); + } + + +} + + diff --git a/src/main/java/haxe/lang/Exceptions.java b/src/main/java/haxe/lang/Exceptions.java new file mode 100644 index 0000000..290c37a --- /dev/null +++ b/src/main/java/haxe/lang/Exceptions.java @@ -0,0 +1,43 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Exceptions extends haxe.lang.HxObject +{ + static + { + //line 29 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + haxe.lang.Exceptions.exception = new java.lang.ThreadLocal(); + } + + public Exceptions(haxe.lang.EmptyObject empty) + { + } + + + public Exceptions() + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + haxe.lang.Exceptions.__hx_ctor_haxe_lang_Exceptions(this); + } + + + public static void __hx_ctor_haxe_lang_Exceptions(haxe.lang.Exceptions __hx_this) + { + } + + + public static java.lang.ThreadLocal exception; + + public static void setException(java.lang.Throwable exc) + { + //line 33 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + haxe.lang.Exceptions.exception.set(((java.lang.Throwable) (exc) )); + } + + +} + + diff --git a/src/main/java/haxe/lang/FieldLookup.java b/src/main/java/haxe/lang/FieldLookup.java new file mode 100644 index 0000000..7545d86 --- /dev/null +++ b/src/main/java/haxe/lang/FieldLookup.java @@ -0,0 +1,333 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FieldLookup extends haxe.lang.HxObject +{ + public FieldLookup(haxe.lang.EmptyObject empty) + { + } + + + public FieldLookup() + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + haxe.lang.FieldLookup.__hx_ctor_haxe_lang_FieldLookup(this); + } + + + public static void __hx_ctor_haxe_lang_FieldLookup(haxe.lang.FieldLookup __hx_this) + { + } + + + public static int hash(java.lang.String s) + { + + return s.hashCode(); + + } + + + public static int findHash(java.lang.String hash, java.lang.String[] hashs, int length) + { + //line 41 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int min = 0; + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int max = length; + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + while (( min < max )) + { + //line 46 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int mid = ((int) (( (( max + min )) / 2 )) ); + //line 47 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int classify = hash.compareTo(hashs[mid]); + //line 48 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( classify < 0 )) + { + //line 50 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + max = mid; + } + else + { + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( classify > 0 )) + { + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + min = ( mid + 1 ); + } + else + { + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + return mid; + } + + } + + } + + //line 58 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + return ~ (min) ; + } + + + public static void removeString(java.lang.String[] a, int length, int pos) + { + //line 62 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (( pos + 1 )) ), ((java.lang.Object) (a) ), ((int) (pos) ), ((int) (( ( length - pos ) - 1 )) )); + //line 63 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a[( length - 1 )] = null; + } + + + public static void removeFloat(double[] a, int length, int pos) + { + //line 67 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (( pos + 1 )) ), ((java.lang.Object) (a) ), ((int) (pos) ), ((int) (( ( length - pos ) - 1 )) )); + //line 68 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a[( length - 1 )] = ((double) (0) ); + } + + + public static void removeDynamic(java.lang.Object[] a, int length, int pos) + { + //line 72 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (( pos + 1 )) ), ((java.lang.Object) (a) ), ((int) (pos) ), ((int) (( ( length - pos ) - 1 )) )); + //line 73 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a[( length - 1 )] = null; + } + + + public static java.lang.String[] insertString(java.lang.String[] a, int length, int pos, java.lang.String x) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.String[] a1 = a; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int capacity = a1.length; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == length )) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.String[] newarr = new java.lang.String[( (( length << 1 )) + 1 )]; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (a1.length) )); + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr; + } + + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == 0 )) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.String[] newarr1 = new java.lang.String[( (( length << 1 )) + 1 )]; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr1) ), ((int) (1) ), ((int) (length) )); + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr1; + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (1) ), ((int) (length) )); + } + + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.String[] newarr2 = new java.lang.String[( (( length << 1 )) + 1 )]; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr2) ), ((int) (0) ), ((int) (pos) )); + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (newarr2) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr2; + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (a1) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (0) ), ((int) (pos) )); + } + + } + + } + + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1[pos] = x; + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + return a1; + } + + + public static double[] insertFloat(double[] a, int length, int pos, double x) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + double[] a1 = a; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int capacity = a1.length; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == length )) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + double[] newarr = new double[( (( length << 1 )) + 1 )]; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (a1.length) )); + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr; + } + + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == 0 )) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + double[] newarr1 = new double[( (( length << 1 )) + 1 )]; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr1) ), ((int) (1) ), ((int) (length) )); + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr1; + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (1) ), ((int) (length) )); + } + + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + double[] newarr2 = new double[( (( length << 1 )) + 1 )]; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr2) ), ((int) (0) ), ((int) (pos) )); + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (newarr2) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr2; + } + else + { + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (a1) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (0) ), ((int) (pos) )); + } + + } + + } + + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1[pos] = x; + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + return a1; + } + + + public static java.lang.Object[] insertDynamic(java.lang.Object[] a, int length, int pos, java.lang.Object x) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.Object[] a1 = a; + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + int capacity = a1.length; + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == length )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.Object[] newarr = new java.lang.Object[( (( length << 1 )) + 1 )]; + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (a1.length) )); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr; + } + + } + else + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( pos == 0 )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.Object[] newarr1 = new java.lang.Object[( (( length << 1 )) + 1 )]; + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr1) ), ((int) (1) ), ((int) (length) )); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr1; + } + else + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (1) ), ((int) (length) )); + } + + } + else + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + if (( capacity == length )) + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.Object[] newarr2 = new java.lang.Object[( (( length << 1 )) + 1 )]; + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (newarr2) ), ((int) (0) ), ((int) (pos) )); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (newarr2) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1 = newarr2; + } + else + { + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (pos) ), ((java.lang.Object) (a1) ), ((int) (( pos + 1 )) ), ((int) (( length - pos )) )); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + java.lang.System.arraycopy(((java.lang.Object) (a1) ), ((int) (0) ), ((java.lang.Object) (a1) ), ((int) (0) ), ((int) (pos) )); + } + + } + + } + + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + a1[pos] = ((java.lang.Object) (x) ); + //line 123 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/FieldLookup.hx" + return a1; + } + + +} + + diff --git a/src/main/java/haxe/lang/Function.java b/src/main/java/haxe/lang/Function.java new file mode 100644 index 0000000..9415362 --- /dev/null +++ b/src/main/java/haxe/lang/Function.java @@ -0,0 +1,327 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Function +{ + public Function(int arity, int type) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + this.__fn_type = type; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + this.__hx_arity = arity; + } + + + public java.lang.Object __hx_invokeDynamic(haxe.root.Array __fn_dynargs) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + switch (( (( __fn_dynargs == null )) ? (0) : (__fn_dynargs.length) )) + { + case 0: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke0_o(); + } + + + case 1: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke1_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) )); + } + + + case 2: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke2_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(1)) )); + } + + + case 3: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke3_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(1)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(2)) )); + } + + + case 4: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke4_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(1)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(2)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(3)) )); + } + + + case 5: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke5_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(1)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(2)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(3)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(4)) )); + } + + + case 6: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke6_o(0.0, ((java.lang.Object) (__fn_dynargs.__get(0)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(1)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(2)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(3)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(4)) ), 0.0, ((java.lang.Object) (__fn_dynargs.__get(5)) )); + } + + + default: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Too many arguments"); + } + + } + + } + + + public int __fn_type; + + public int __hx_arity; + + public java.lang.Object __hx_invoke6_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5, double __fn_float6, java.lang.Object __fn_dyn6) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke6_f(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4, __fn_float5, __fn_dyn5, __fn_float6, __fn_dyn6); + } + + } + + + public double __hx_invoke6_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5, double __fn_float6, java.lang.Object __fn_dyn6) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke6_o(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4, __fn_float5, __fn_dyn5, __fn_float6, __fn_dyn6))) ); + } + + } + + + public java.lang.Object __hx_invoke5_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke5_f(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4, __fn_float5, __fn_dyn5); + } + + } + + + public double __hx_invoke5_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke5_o(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4, __fn_float5, __fn_dyn5))) ); + } + + } + + + public java.lang.Object __hx_invoke4_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke4_f(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4); + } + + } + + + public double __hx_invoke4_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke4_o(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3, __fn_float4, __fn_dyn4))) ); + } + + } + + + public java.lang.Object __hx_invoke3_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke3_f(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3); + } + + } + + + public double __hx_invoke3_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke3_o(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2, __fn_float3, __fn_dyn3))) ); + } + + } + + + public java.lang.Object __hx_invoke2_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke2_f(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2); + } + + } + + + public double __hx_invoke2_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke2_o(__fn_float1, __fn_dyn1, __fn_float2, __fn_dyn2))) ); + } + + } + + + public java.lang.Object __hx_invoke1_o(double __fn_float1, java.lang.Object __fn_dyn1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke1_f(__fn_float1, __fn_dyn1); + } + + } + + + public double __hx_invoke1_f(double __fn_float1, java.lang.Object __fn_dyn1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke1_o(__fn_float1, __fn_dyn1))) ); + } + + } + + + public java.lang.Object __hx_invoke0_o() + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 1 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invoke0_f(); + } + + } + + + public double __hx_invoke0_f() + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + if (( this.__fn_type != 0 )) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Wrong number of arguments"); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invoke0_o())) ); + } + + } + + +} + + diff --git a/src/main/java/haxe/lang/HaxeException.java b/src/main/java/haxe/lang/HaxeException.java new file mode 100644 index 0000000..3fb0e11 --- /dev/null +++ b/src/main/java/haxe/lang/HaxeException.java @@ -0,0 +1,114 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class HaxeException extends java.lang.RuntimeException +{ + public static final long serialVersionUID = 5956463319488556322L;public HaxeException(java.lang.Object obj, java.lang.String msg, java.lang.Throwable cause) + { + //line 49 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + super(msg, cause); + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + if (( obj instanceof haxe.lang.HaxeException )) + { + //line 53 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + haxe.lang.HaxeException _obj = ((haxe.lang.HaxeException) (obj) ); + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + obj = _obj.getObject(); + } + + //line 57 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + this.obj = obj; + } + + + public static java.lang.RuntimeException wrap(java.lang.Object obj) + { + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + java.lang.RuntimeException ret = null; + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + if (( obj instanceof java.lang.RuntimeException )) + { + //line 90 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + ret = ((java.lang.RuntimeException) (obj) ); + } + else + { + //line 91 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + if (( obj instanceof java.lang.String )) + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + ret = new haxe.lang.HaxeException(obj, haxe.lang.Runtime.toString(obj), null); + } + else + { + //line 93 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + if (( obj instanceof java.lang.Throwable )) + { + //line 94 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + ret = new haxe.lang.HaxeException(obj, haxe.root.Std.string(obj), ((java.lang.Throwable) (obj) )); + } + else + { + //line 96 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + ret = new haxe.lang.HaxeException(obj, haxe.root.Std.string(obj), null); + } + + } + + } + + //line 97 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return ret; + } + + + public java.lang.Object obj; + + public java.lang.Object getObject() + { + //line 62 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return this.obj; + } + + + @Override public java.lang.Throwable fillInStackTrace() + { + //line 68 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return this; + } + + + @Override public java.lang.String toString() + { + //line 74 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return ( "Haxe Exception: " + haxe.root.Std.string(this.obj) ); + } + + + @Override public java.lang.String getMessage() + { + //line 79 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + java.lang.String _g = super.getMessage(); + //line 81 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + if (( _g == null )) + { + //line 81 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return haxe.root.Std.string(this.obj); + } + else + { + //line 82 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + java.lang.String message = _g; + //line 82 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Exceptions.hx" + return message; + } + + } + + +} + + diff --git a/src/main/java/haxe/lang/HxObject.java b/src/main/java/haxe/lang/HxObject.java new file mode 100644 index 0000000..fdbcd65 --- /dev/null +++ b/src/main/java/haxe/lang/HxObject.java @@ -0,0 +1,173 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class HxObject implements haxe.lang.IHxObject +{ + public HxObject(haxe.lang.EmptyObject empty) + { + } + + + public HxObject() + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.HxObject.__hx_ctor_haxe_lang_HxObject(this); + } + + + public static void __hx_ctor_haxe_lang_HxObject(haxe.lang.HxObject __hx_this) + { + } + + + public boolean __hx_deleteField(java.lang.String field) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return false; + } + + + public java.lang.Object __hx_lookupField(java.lang.String field, boolean throwErrors, boolean isCheck) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (isCheck) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return haxe.lang.Runtime.undefined; + } + else + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (throwErrors) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + throw haxe.lang.HaxeException.wrap("Field not found."); + } + else + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return null; + } + + } + + } + + + public double __hx_lookupField_f(java.lang.String field, boolean throwErrors) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (throwErrors) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + throw haxe.lang.HaxeException.wrap("Field not found or incompatible field type."); + } + else + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return 0.0; + } + + } + + + public java.lang.Object __hx_lookupSetField(java.lang.String field, java.lang.Object value) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing."); + } + + + public double __hx_lookupSetField_f(java.lang.String field, double value) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing or incompatible type."); + } + + + public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_lookupSetField_f(field, value); + } + + } + + } + + + public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_lookupSetField(field, value); + } + + } + + } + + + public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_lookupField(field, throwErrors, isCheck); + } + + } + + } + + + public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.__hx_lookupField_f(field, throwErrors); + } + + } + + } + + + public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return ((haxe.lang.Function) (this.__hx_getField(field, true, false, false)) ).__hx_invokeDynamic(dynargs); + } + + } + + } + + + public void __hx_getFields(haxe.root.Array baseArr) + { + } + + +} + + diff --git a/src/main/java/haxe/lang/IEquatable.java b/src/main/java/haxe/lang/IEquatable.java new file mode 100644 index 0000000..212d76c --- /dev/null +++ b/src/main/java/haxe/lang/IEquatable.java @@ -0,0 +1,13 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public interface IEquatable +{ + boolean equals(java.lang.Object to); + +} + + diff --git a/src/main/java/haxe/lang/IHxObject.java b/src/main/java/haxe/lang/IHxObject.java new file mode 100644 index 0000000..d37e593 --- /dev/null +++ b/src/main/java/haxe/lang/IHxObject.java @@ -0,0 +1,33 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public interface IHxObject +{ + boolean __hx_deleteField(java.lang.String field); + + java.lang.Object __hx_lookupField(java.lang.String field, boolean throwErrors, boolean isCheck); + + double __hx_lookupField_f(java.lang.String field, boolean throwErrors); + + java.lang.Object __hx_lookupSetField(java.lang.String field, java.lang.Object value); + + double __hx_lookupSetField_f(java.lang.String field, double value); + + double __hx_setField_f(java.lang.String field, double value, boolean handleProperties); + + java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties); + + java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties); + + double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties); + + java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs); + + void __hx_getFields(haxe.root.Array baseArr); + +} + + diff --git a/src/main/java/haxe/lang/ParamEnum.java b/src/main/java/haxe/lang/ParamEnum.java new file mode 100644 index 0000000..822a8f9 --- /dev/null +++ b/src/main/java/haxe/lang/ParamEnum.java @@ -0,0 +1,234 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class ParamEnum extends haxe.lang.Enum +{ + public ParamEnum(int index, java.lang.Object[] params) + { + //line 101 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + super(index); + //line 102 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + this.params = params; + } + + + public final java.lang.Object[] params; + + @Override public haxe.root.Array getParams() + { + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( this.params == null )) + { + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return new haxe.root.Array(new java.lang.Object[]{}); + } + else + { + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.Object[] this1 = this.params; + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.root.Array a = new haxe.root.Array(); + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int len = ((java.lang.Object[]) (this1) ).length; + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g1 = 0; + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g = len; + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( _g1 < _g )) + { + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int i = _g1++; + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + a.__set(i, ((java.lang.Object) (((java.lang.Object[]) (this1) )[i]) )); + } + + } + + //line 107 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return ((haxe.root.Array) (a) ); + } + + } + + + @Override public java.lang.String toString() + { + //line 112 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( ( this.params == null ) || ( ((java.lang.Object[]) (this.params) ).length == 0 ) )) + { + //line 112 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return this.getTag(); + } + + //line 113 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.root.StringBuf ret = new haxe.root.StringBuf(); + //line 114 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(this.getTag())); + //line 114 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString("(")); + //line 115 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + boolean first = true; + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g = 0; + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.Object[] _g1 = this.params; + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( _g < ((java.lang.Object[]) (_g1) ).length )) + { + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.Object p = ((java.lang.Object) (((java.lang.Object[]) (_g1) )[_g]) ); + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ++ _g; + //line 118 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (first) + { + //line 119 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + first = false; + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(",")); + } + + //line 122 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(((java.lang.Object) (p) )); + } + + } + + //line 124 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ret.add(haxe.lang.Runtime.toString(")")); + //line 125 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return ret.toString(); + } + + + @Override public boolean equals(java.lang.Object obj) + { + //line 130 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (haxe.lang.Runtime.eq(obj, this)) + { + //line 131 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return true; + } + + //line 132 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + haxe.lang.ParamEnum obj1 = ( (( obj instanceof haxe.lang.ParamEnum )) ? (((haxe.lang.ParamEnum) (obj) )) : (null) ); + //line 133 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + boolean ret = ( ( ( obj1 != null ) && haxe.root.Std.is(obj1, haxe.root.Type.getEnum(((java.lang.Object) (this) ))) ) && ( obj1.index == this.index ) ); + //line 134 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if ( ! (ret) ) + { + //line 135 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return false; + } + + //line 136 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( obj1.params == this.params )) + { + //line 137 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return true; + } + + //line 138 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int len = 0; + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + boolean tmp = false; + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if ( ! ((( ( obj1.params == null ) || ( this.params == null ) ))) ) + { + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + len = ((java.lang.Object[]) (this.params) ).length; + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + tmp = ( len != ((java.lang.Object[]) (obj1.params) ).length ); + } + else + { + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + tmp = true; + } + + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (tmp) + { + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return false; + } + + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + { + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g1 = 0; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g = len; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( _g1 < _g )) + { + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int i = _g1++; + //line 143 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if ( ! (((boolean) (haxe.root.Type.enumEq(((java.lang.Object) (((java.lang.Object[]) (obj1.params) )[i]) ), ((java.lang.Object) (((java.lang.Object[]) (this.params) )[i]) ))) )) ) + { + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return false; + } + + } + + } + + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return true; + } + + + @Override public int hashCode() + { + //line 151 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int h = 19; + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( this.params != null )) + { + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + int _g = 0; + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.Object[] _g1 = this.params; + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + while (( _g < ((java.lang.Object[]) (_g1) ).length )) + { + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + java.lang.Object p = ((java.lang.Object) (((java.lang.Object[]) (_g1) )[_g]) ); + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + ++ _g; + //line 154 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + h *= 31; + //line 155 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + if (( ! (( p == null )) )) + { + //line 156 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + h = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (haxe.lang.Runtime.plus(h, p.hashCode())) ))) ); + } + + } + + } + + //line 158 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + h += this.index; + //line 159 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + return h; + } + + +} + + diff --git a/src/main/java/haxe/lang/Runtime.java b/src/main/java/haxe/lang/Runtime.java new file mode 100644 index 0000000..23c7223 --- /dev/null +++ b/src/main/java/haxe/lang/Runtime.java @@ -0,0 +1,621 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Runtime +{ + + public static java.lang.Object getField(haxe.lang.IHxObject obj, java.lang.String field, boolean throwErrors) + { + if (obj == null && !throwErrors) return null; + return obj.__hx_getField(field, throwErrors, false, false); + } + + public static double getField_f(haxe.lang.IHxObject obj, java.lang.String field, boolean throwErrors) + { + if (obj == null && !throwErrors) return 0.0; + return obj.__hx_getField_f(field, throwErrors, false); + } + + public static java.lang.Object setField(haxe.lang.IHxObject obj, java.lang.String field, java.lang.Object value) + { + return obj.__hx_setField(field, value, false); + } + + public static double setField_f(haxe.lang.IHxObject obj, java.lang.String field, double value) + { + return obj.__hx_setField_f(field, value, false); + } + + public static java.lang.Object callField(haxe.lang.IHxObject obj, java.lang.String field, Array args) + { + return obj.__hx_invokeField(field, args); + } + static + { + //line 61 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + haxe.lang.Runtime.undefined = ((java.lang.Object) (new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{}, new double[]{})) ); + } + + public Runtime() + { + } + + + public static java.lang.Object undefined; + + public static java.lang.Object closure(java.lang.Object obj, java.lang.String field) + { + + return new haxe.lang.Closure(obj, field); + + } + + + public static boolean eq(java.lang.Object v1, java.lang.Object v2) + { + + if (v1 == v2) + return true; + if (v1 == null || v2 == null) + return false; + + if (v1 instanceof java.lang.Number) + { + if (!(v2 instanceof java.lang.Number)) + return false; + + java.lang.Number v1c = (java.lang.Number) v1; + java.lang.Number v2c = (java.lang.Number) v2; + if (v1 instanceof java.lang.Long || v2 instanceof java.lang.Long) + return v1c.longValue() == v2c.longValue(); + return v1c.doubleValue() == v2c.doubleValue(); + } else if (v1 instanceof java.lang.String || v1 instanceof haxe.lang.IEquatable) { //TODO see what happens with Boolean cases + return v1.equals(v2); + } + + return false; + + } + + + public static boolean refEq(java.lang.Object v1, java.lang.Object v2) + { + + if (v1 == v2) + return true; + + if (v1 instanceof java.lang.String || v1 instanceof haxe.lang.IEquatable) + { + return v1 != null && v1.equals(v2); + } else { + return v1 == v2; + } + + } + + + public static boolean valEq(java.lang.Object v1, java.lang.Object v2) + { + + return v1 == v2 || (v1 != null && v1.equals(v2)); + + } + + + public static double toDouble(java.lang.Object obj) + { + + return (obj == null) ? 0.0 : ((java.lang.Number) obj).doubleValue(); + + } + + + public static boolean toBool(java.lang.Object obj) + { + + return (obj == null) ? false : ((java.lang.Boolean) obj).booleanValue(); + + } + + + public static int toInt(java.lang.Object obj) + { + + return (obj == null) ? 0 : ((java.lang.Number) obj).intValue(); + + } + + + public static long toLong(java.lang.Object obj) + { + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + if (( obj == null )) + { + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return ((long) (0) ); + } + else + { + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return ((java.lang.Number) (obj) ).longValue(); + } + + } + + + public static boolean isDouble(java.lang.Object obj) + { + + if (obj != null && obj instanceof java.lang.Number) + { + return true; + } else { + return false; + } + + } + + + public static boolean isInt(java.lang.Number num) + { + //line 175 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return ( ( num != null ) && ( num.doubleValue() == num.intValue() ) ); + } + + + public static boolean isInt(java.lang.Object obj) + { + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + if (( obj instanceof java.lang.Number )) + { + //line 167 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + java.lang.Number n = ((java.lang.Number) (obj) ); + //line 168 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return ( n.doubleValue() == n.intValue() ); + } + else + { + //line 170 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return false; + } + + } + + + public static boolean slowHasField(java.lang.Object o, java.lang.String field) + { + + java.lang.Class cl = null; + if (o instanceof java.lang.Class) + { + if (o == java.lang.String.class) + return field.equals("fromCharCode"); + + cl = (java.lang.Class) o; + } else if (o instanceof java.lang.String) { + return haxe.lang.StringRefl.handleGetField( (java.lang.String) o, field, false) != null; + } else { + cl = o.getClass(); + } + + try + { + java.lang.reflect.Field f = cl.getField(field); + return true; + } + catch(Throwable t) + { + java.lang.reflect.Method[] ms = cl.getMethods(); + for (int i = 0; i < ms.length; i++) + { + if (ms[i].getName().equals(field)) + { + return true; + } + } + } + + return false; + + } + + + public static int compare(java.lang.Object v1, java.lang.Object v2) + { + + if (v1 == v2) + return 0; + if (v1 == null) return -1; + if (v2 == null) return 1; + + if (v1 instanceof java.lang.Number || v2 instanceof java.lang.Number) + { + java.lang.Number v1c = (java.lang.Number) v1; + java.lang.Number v2c = (java.lang.Number) v2; + + if (v1 instanceof java.lang.Long || v2 instanceof java.lang.Long) + { + long l1 = (v1 == null) ? 0L : v1c.longValue(); + long l2 = (v2 == null) ? 0L : v2c.longValue(); + return (l1 < l2) ? -1 : (l1 > l2) ? 1 : 0; + } else { + double d1 = (v1 == null) ? 0.0 : v1c.doubleValue(); + double d2 = (v2 == null) ? 0.0 : v2c.doubleValue(); + + return (d1 < d2) ? -1 : (d1 > d2) ? 1 : 0; + } + } + //if it's not a number it must be a String + return ((java.lang.String) v1).compareTo((java.lang.String) v2); + + } + + + public static java.lang.Object plus(java.lang.Object v1, java.lang.Object v2) + { + + if (v1 instanceof java.lang.String || v2 instanceof java.lang.String) + return toString(v1) + toString(v2); + + if (v1 instanceof java.lang.Number || v2 instanceof java.lang.Number) + { + java.lang.Number v1c = (java.lang.Number) v1; + java.lang.Number v2c = (java.lang.Number) v2; + + double d1 = (v1 == null) ? 0.0 : v1c.doubleValue(); + double d2 = (v2 == null) ? 0.0 : v2c.doubleValue(); + + return d1 + d2; + } + + throw new java.lang.IllegalArgumentException("Cannot dynamically add " + v1 + " and " + v2); + + } + + + public static java.lang.Object slowGetField(java.lang.Object obj, java.lang.String field, boolean throwErrors) + { + + + if (obj == null) + if (throwErrors) + throw new java.lang.NullPointerException("Cannot access field '" + field + "' of null."); + else + return null; + + java.lang.Class cl = null; + try + { + if (obj instanceof java.lang.Class) + { + if (obj == java.lang.String.class && field.equals("fromCharCode")) + return new haxe.lang.Closure(haxe.lang.StringExt.class, field); + + cl = (java.lang.Class) obj; + obj = null; + } else if (obj instanceof java.lang.String) { + return haxe.lang.StringRefl.handleGetField((java.lang.String) obj, field, throwErrors); + } else { + cl = obj.getClass(); + } + + java.lang.reflect.Field f = cl.getField(field); + f.setAccessible(true); + return f.get(obj); + } catch (Throwable t) + { + try + { + java.lang.reflect.Method[] ms = cl.getMethods(); + for (int i = 0; i < ms.length; i++) + { + if (ms[i].getName().equals(field)) + { + return new haxe.lang.Closure(obj != null ? obj : cl, field); + } + } + } catch (Throwable t2) + { + + } + + if (throwErrors) + throw HaxeException.wrap(t); + + return null; + } + + + } + + + public static java.lang.Object slowSetField(java.lang.Object obj, java.lang.String field, java.lang.Object value) + { + + java.lang.Class cl = null; + if (obj instanceof java.lang.Class) + { + cl = (java.lang.Class) obj; + obj = null; + } else { + cl = obj.getClass(); + } + + try { + java.lang.reflect.Field f = cl.getField(field); + f.setAccessible(true); + + //FIXME we must evaluate if field to be set receives either int or double + if (isInt(value)) + { + f.setInt(obj, toInt(value)); + } else if (isDouble(value)) { + f.setDouble(obj, toDouble(value)); + } else { + f.set(obj, value); + } + return value; + } + catch (Throwable t) + { + throw HaxeException.wrap(t); + } + + } + + + public static java.lang.Object slowCallField(java.lang.Object obj, java.lang.String field, haxe.root.Array args) + { + + java.lang.Class cl = null; + if (obj instanceof java.lang.Class) + { + if (obj == java.lang.String.class && field.equals("fromCharCode")) + return haxe.lang.StringExt.fromCharCode(toInt(args.__get(0))); + + cl = (java.lang.Class) obj; + obj = null; + } else if (obj instanceof java.lang.String) { + return haxe.lang.StringRefl.handleCallField((java.lang.String) obj, field, args); + } else { + cl = obj.getClass(); + } + + if (args == null) args = new Array(); + + int len = args.length; + java.lang.Class[] cls = new java.lang.Class[len]; + java.lang.Object[] objs = new java.lang.Object[len]; + + java.lang.reflect.Method[] ms = cl.getMethods(); + int msl = ms.length; + int realMsl = 0; + for(int i =0; i < msl; i++) + { + if (!ms[i].getName().equals(field) || (!ms[i].isVarArgs() && ms[i].getParameterTypes().length != len)) + { + ms[i] = null; + } else { + ms[realMsl] = ms[i]; + if (realMsl != i) + ms[i] = null; + realMsl++; + } + } + + boolean hasNumber = false; + + for (int i = 0; i < len; i++) + { + Object o = args.__get(i); + if (o == null) + { + continue; //can be anything + } + objs[i]= o; + cls[i] = o.getClass(); + boolean isNum = false; + + if (o instanceof java.lang.Number) + { + cls[i] = java.lang.Number.class; + isNum = hasNumber = true; + } else if (o instanceof java.lang.Boolean) { + cls[i] = java.lang.Boolean.class; + isNum = true; + } + + msl = realMsl; + realMsl = 0; + + for (int j = 0; j < msl; j++) + { + java.lang.Class[] allcls = ms[j].getParameterTypes(); + if (i < allcls.length) + { + if (! ((isNum && allcls[i].isPrimitive()) || allcls[i].isAssignableFrom(cls[i])) ) + { + ms[j] = null; + } else { + ms[realMsl] = ms[j]; + if (realMsl != j) + ms[j] = null; + realMsl++; + } + } + } + + } + + java.lang.reflect.Method found; + if (ms.length == 0 || (found = ms[0]) == null) + throw haxe.lang.HaxeException.wrap("No compatible method found for: " + field); + + if (hasNumber) + { + java.lang.Class[] allcls = found.getParameterTypes(); + + for (int i = 0; i < len; i++) + { + java.lang.Object o = objs[i]; + if (o instanceof java.lang.Number) + { + java.lang.Class curCls = null; + if (i < allcls.length) + { + curCls = allcls[i]; + if (!curCls.isAssignableFrom(o.getClass())) + { + String name = curCls.getName(); + if (name.equals("double") || name.equals("java.lang.Double")) + { + objs[i] = ((java.lang.Number)o).doubleValue(); + } else if (name.equals("int") || name.equals("java.lang.Integer")) + { + objs[i] = ((java.lang.Number)o).intValue(); + } else if (name.equals("float") || name.equals("java.lang.Float")) + { + objs[i] = ((java.lang.Number)o).floatValue(); + } else if (name.equals("byte") || name.equals("java.lang.Byte")) + { + objs[i] = ((java.lang.Number)o).byteValue(); + } else if (name.equals("short") || name.equals("java.lang.Short")) + { + objs[i] = ((java.lang.Number)o).shortValue(); + } else if (name.equals("long") || name.equals("java.lang.Long")) + { + objs[i] = ((java.lang.Number)o).longValue(); + } + } + } //else varargs not handled TODO + } + } + } + + try { + found.setAccessible(true); + return found.invoke(obj, objs); + } + + catch (java.lang.reflect.InvocationTargetException e) + { + throw haxe.lang.HaxeException.wrap(e.getCause()); + } + + catch (Throwable t) + { + throw haxe.lang.HaxeException.wrap(t); + } + + } + + + public static java.lang.Object callField(java.lang.Object obj, java.lang.String field, haxe.root.Array args) + { + + if (obj instanceof haxe.lang.IHxObject) + { + return ((haxe.lang.IHxObject) obj).__hx_invokeField(field, args); + } + + return slowCallField(obj, field, args); + + } + + + public static java.lang.Object getField(java.lang.Object obj, java.lang.String field, boolean throwErrors) + { + + + if (obj instanceof haxe.lang.IHxObject) + return ((haxe.lang.IHxObject) obj).__hx_getField(field, throwErrors, false, false); + + return slowGetField(obj, field, throwErrors); + + + } + + + public static double getField_f(java.lang.Object obj, java.lang.String field, boolean throwErrors) + { + + + if (obj instanceof haxe.lang.IHxObject) + return ((haxe.lang.IHxObject) obj).__hx_getField_f(field, throwErrors, false); + + return toDouble(slowGetField(obj, field, throwErrors)); + + + } + + + public static java.lang.Object setField(java.lang.Object obj, java.lang.String field, java.lang.Object value) + { + + + if (obj instanceof haxe.lang.IHxObject) + return ((haxe.lang.IHxObject) obj).__hx_setField(field, value, false); + + return slowSetField(obj, field, value); + + + } + + + public static double setField_f(java.lang.Object obj, java.lang.String field, double value) + { + + + if (obj instanceof haxe.lang.IHxObject) + return ((haxe.lang.IHxObject) obj).__hx_setField_f(field, value, false); + + return toDouble(slowSetField(obj, field, value)); + + + } + + + public static java.lang.String toString(java.lang.Object obj) + { + //line 573 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + if (( obj == null )) + { + //line 574 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return null; + } + + //line 576 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + if (( ( ( obj instanceof java.lang.Number ) && ! (( obj instanceof java.lang.Integer )) ) && haxe.lang.Runtime.isInt(((java.lang.Number) (obj) )) )) + { + //line 577 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return java.lang.Integer.toString(((int) (haxe.lang.Runtime.toInt(obj)) )); + } + + //line 578 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return obj.toString(); + } + + + public static boolean isFinite(double v) + { + //line 583 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + if (( v == v )) + { + //line 583 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return ! (java.lang.Double.isInfinite(((double) (v) ))) ; + } + else + { + //line 583 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Runtime.hx" + return false; + } + + } + + +} + + diff --git a/src/main/java/haxe/lang/StringExt.java b/src/main/java/haxe/lang/StringExt.java new file mode 100644 index 0000000..cb124a6 --- /dev/null +++ b/src/main/java/haxe/lang/StringExt.java @@ -0,0 +1,196 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class StringExt +{ + public StringExt() + { + } + + + public static java.lang.String charAt(java.lang.String me, int index) + { + + if ( index >= me.length() || index < 0 ) + return ""; + else + return java.lang.Character.toString(me.charAt(index)); + + } + + + public static java.lang.Object charCodeAt(java.lang.String me, int index) + { + + if ( index >= me.length() || index < 0 ) + return null; + else + return (int) me.charAt(index); + + } + + + public static int indexOf(java.lang.String me, java.lang.String str, java.lang.Object startIndex) + { + + int sIndex = (startIndex != null ) ? (haxe.lang.Runtime.toInt(startIndex)) : 0; + if (sIndex >= me.length() || sIndex < 0) + return -1; + return me.indexOf(str, sIndex); + + } + + + public static int lastIndexOf(java.lang.String me, java.lang.String str, java.lang.Object startIndex) + { + + int sIndex = (startIndex != null ) ? (haxe.lang.Runtime.toInt(startIndex)) : (me.length() - 1); + if (sIndex > me.length() || sIndex < 0) + sIndex = me.length() - 1; + else if (sIndex < 0) + return -1; + return me.lastIndexOf(str, sIndex); + + } + + + public static haxe.root.Array split(java.lang.String me, java.lang.String delimiter) + { + + Array ret = new Array(); + + int slen = delimiter.length(); + if (slen == 0) + { + int len = me.length(); + for (int i = 0; i < len; i++) + { + ret.push(me.substring(i, i + 1)); + } + } else { + int start = 0; + int pos = me.indexOf(delimiter, start); + + while (pos >= 0) + { + ret.push(me.substring(start, pos)); + + start = pos + slen; + pos = me.indexOf(delimiter, start); + } + + ret.push(me.substring(start)); + } + return ret; + + } + + + public static java.lang.String substr(java.lang.String me, int pos, java.lang.Object len) + { + + int meLen = me.length(); + int targetLen = meLen; + if (len != null) + { + targetLen = haxe.lang.Runtime.toInt(len); + if (targetLen == 0) + return ""; + if( pos != 0 && targetLen < 0 ){ + return ""; + } + } + + if( pos < 0 ){ + pos = meLen + pos; + if( pos < 0 ) pos = 0; + } else if( targetLen < 0 ){ + targetLen = meLen + targetLen - pos; + } + + if( pos + targetLen > meLen ){ + targetLen = meLen - pos; + } + + if ( pos < 0 || targetLen <= 0 ) return ""; + + return me.substring(pos, pos + targetLen); + + } + + + public static java.lang.String substring(java.lang.String me, int startIndex, java.lang.Object endIndex) + { + + int endIdx; + int len = me.length(); + if ( endIndex == null) { + endIdx = len; + } else if ( (endIdx = haxe.lang.Runtime.toInt(endIndex)) < 0 ) { + endIdx = 0; + } else if ( endIdx > len ) { + endIdx = len; + } + + if ( startIndex < 0 ) { + startIndex = 0; + } else if ( startIndex > len ) { + startIndex = len; + } + + if ( startIndex > endIdx ) { + int tmp = startIndex; + startIndex = endIdx; + endIdx = tmp; + } + + return me.substring(startIndex, endIdx); + + + } + + + public static java.lang.String toString(java.lang.String me) + { + //line 174 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return me; + } + + + public static java.lang.String toLowerCase(java.lang.String me) + { + + return me.toLowerCase(); + + } + + + public static java.lang.String toUpperCase(java.lang.String me) + { + + return me.toUpperCase(); + + } + + + public static java.lang.String toNativeString(java.lang.String me) + { + //line 195 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return me; + } + + + public static java.lang.String fromCharCode(int code) + { + + return java.lang.Character.toString( (char) code ); + + } + + +} + + diff --git a/src/main/java/haxe/lang/StringRefl.java b/src/main/java/haxe/lang/StringRefl.java new file mode 100644 index 0000000..3d89f32 --- /dev/null +++ b/src/main/java/haxe/lang/StringRefl.java @@ -0,0 +1,127 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class StringRefl +{ + static + { + //line 209 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + haxe.lang.StringRefl.fields = new haxe.root.Array(new java.lang.String[]{"length", "toUpperCase", "toLowerCase", "charAt", "charCodeAt", "indexOf", "lastIndexOf", "split", "substr", "substring"}); + } + + public StringRefl() + { + } + + + public static haxe.root.Array fields; + + public static java.lang.Object handleGetField(java.lang.String str, java.lang.String f, boolean throwErrors) + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + java.lang.String __temp_svar1 = (f); + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + int __temp_hash3 = __temp_svar1.hashCode(); + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + boolean __temp_executeDef2 = true; + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + switch (__temp_hash3) + { + case -1106363674: + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + if (__temp_svar1.equals("length")) + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + __temp_executeDef2 = false; + //line 215 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return str.length(); + } + + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + break; + } + + + case -399551817: + case -1137582698: + case 530542161: + case -891529231: + case 109648666: + case -467511597: + case 1943291465: + case 397153782: + case -1361633751: + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + if (( (( ( __temp_hash3 == -399551817 ) && __temp_svar1.equals("toUpperCase") )) || ( (( ( __temp_hash3 == -1137582698 ) && __temp_svar1.equals("toLowerCase") )) || ( (( ( __temp_hash3 == 530542161 ) && __temp_svar1.equals("substring") )) || ( (( ( __temp_hash3 == -891529231 ) && __temp_svar1.equals("substr") )) || ( (( ( __temp_hash3 == 109648666 ) && __temp_svar1.equals("split") )) || ( (( ( __temp_hash3 == -467511597 ) && __temp_svar1.equals("lastIndexOf") )) || ( (( ( __temp_hash3 == 1943291465 ) && __temp_svar1.equals("indexOf") )) || ( (( ( __temp_hash3 == 397153782 ) && __temp_svar1.equals("charCodeAt") )) || __temp_svar1.equals("charAt") ) ) ) ) ) ) ) )) + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + __temp_executeDef2 = false; + //line 217 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return new haxe.lang.Closure(str, f); + } + + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + break; + } + + + } + + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + if (__temp_executeDef2) + { + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + if (throwErrors) + { + //line 220 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + throw haxe.lang.HaxeException.wrap(( ( "Field not found: \'" + f ) + "\' in String" )); + } + else + { + //line 222 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return null; + } + + } + else + { + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + throw null; + } + + } + + } + + + public static java.lang.Object handleCallField(java.lang.String str, java.lang.String f, haxe.root.Array args) + { + //line 228 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + haxe.root.Array _args = new haxe.root.Array(new java.lang.Object[]{str}); + //line 229 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + if (( args == null )) + { + //line 230 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + args = _args; + } + else + { + //line 232 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + args = _args.concat(args); + } + + //line 234 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/StringExt.hx" + return haxe.lang.Runtime.slowCallField(haxe.lang.StringExt.class, f, args); + } + + +} + + diff --git a/src/main/java/haxe/lang/VarArgsBase.java b/src/main/java/haxe/lang/VarArgsBase.java new file mode 100644 index 0000000..92902de --- /dev/null +++ b/src/main/java/haxe/lang/VarArgsBase.java @@ -0,0 +1,123 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class VarArgsBase extends haxe.lang.Function +{ + public VarArgsBase(int arity, int type) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + super(arity, type); + } + + + @Override public java.lang.Object __hx_invokeDynamic(haxe.root.Array dynArgs) + { + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + throw haxe.lang.HaxeException.wrap("Abstract implementation"); + } + + + @Override public java.lang.Object __hx_invoke6_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5, double __fn_float6, java.lang.Object __fn_dyn6) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) ), ( (( __fn_dyn5 == haxe.lang.Runtime.undefined )) ? (__fn_float5) : (((java.lang.Object) (__fn_dyn5) )) ), ( (( __fn_dyn6 == haxe.lang.Runtime.undefined )) ? (__fn_float6) : (((java.lang.Object) (__fn_dyn6) )) )})); + } + + + @Override public double __hx_invoke6_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5, double __fn_float6, java.lang.Object __fn_dyn6) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) ), ( (( __fn_dyn5 == haxe.lang.Runtime.undefined )) ? (__fn_float5) : (((java.lang.Object) (__fn_dyn5) )) ), ( (( __fn_dyn6 == haxe.lang.Runtime.undefined )) ? (__fn_float6) : (((java.lang.Object) (__fn_dyn6) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke5_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) ), ( (( __fn_dyn5 == haxe.lang.Runtime.undefined )) ? (__fn_float5) : (((java.lang.Object) (__fn_dyn5) )) )})); + } + + + @Override public double __hx_invoke5_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4, double __fn_float5, java.lang.Object __fn_dyn5) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) ), ( (( __fn_dyn5 == haxe.lang.Runtime.undefined )) ? (__fn_float5) : (((java.lang.Object) (__fn_dyn5) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke4_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) )})); + } + + + @Override public double __hx_invoke4_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3, double __fn_float4, java.lang.Object __fn_dyn4) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) ), ( (( __fn_dyn4 == haxe.lang.Runtime.undefined )) ? (__fn_float4) : (((java.lang.Object) (__fn_dyn4) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke3_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) )})); + } + + + @Override public double __hx_invoke3_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2, double __fn_float3, java.lang.Object __fn_dyn3) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) ), ( (( __fn_dyn3 == haxe.lang.Runtime.undefined )) ? (__fn_float3) : (((java.lang.Object) (__fn_dyn3) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke2_o(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) )})); + } + + + @Override public double __hx_invoke2_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) ), ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (__fn_float2) : (((java.lang.Object) (__fn_dyn2) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke1_o(double __fn_float1, java.lang.Object __fn_dyn1) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) )})); + } + + + @Override public double __hx_invoke1_f(double __fn_float1, java.lang.Object __fn_dyn1) + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(new haxe.root.Array(new java.lang.Object[]{( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (__fn_float1) : (((java.lang.Object) (__fn_dyn1) )) )})))) ); + } + + + @Override public java.lang.Object __hx_invoke0_o() + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return this.__hx_invokeDynamic(null); + } + + + @Override public double __hx_invoke0_f() + { + //line 40 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((double) (haxe.lang.Runtime.toDouble(this.__hx_invokeDynamic(null))) ); + } + + +} + + diff --git a/src/main/java/haxe/lang/VarArgsFunction.java b/src/main/java/haxe/lang/VarArgsFunction.java new file mode 100644 index 0000000..244efc3 --- /dev/null +++ b/src/main/java/haxe/lang/VarArgsFunction.java @@ -0,0 +1,29 @@ +// Generated by Haxe 3.4.2 +package haxe.lang; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class VarArgsFunction extends haxe.lang.VarArgsBase +{ + public VarArgsFunction(haxe.lang.Function fun) + { + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + super(-1, -1); + //line 55 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + this.fun = fun; + } + + + public haxe.lang.Function fun; + + @Override public java.lang.Object __hx_invokeDynamic(haxe.root.Array dynArgs) + { + //line 60 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/Function.hx" + return ((java.lang.Object) (this.fun.__hx_invoke1_o(0.0, dynArgs)) ); + } + + +} + + diff --git a/src/main/java/haxe/root/Array.java b/src/main/java/haxe/root/Array.java new file mode 100644 index 0000000..876e918 --- /dev/null +++ b/src/main/java/haxe/root/Array.java @@ -0,0 +1,2021 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public final class Array extends haxe.lang.HxObject +{ + + public Array(T[] _native) + { + this.__a = _native; + this.length = _native.length; + } + public Array(haxe.lang.EmptyObject empty) + { + } + + + public Array() + { + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array.__hx_ctor__Array(((haxe.root.Array) (this) )); + } + + + public static void __hx_ctor__Array(haxe.root.Array __hx_this) + { + //line 56 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __hx_this.length = 0; + //line 57 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __hx_this.__a = ((T_c[]) (((java.lang.Object) (new java.lang.Object[0]) )) ); + } + + + public static haxe.root.Array ofNative(X[] _native) + { + + return new Array(_native); + + } + + + public static haxe.root.Array alloc(int size) + { + + return new Array((Y[]) ((java.lang.Object)new java.lang.Object[size])); + + } + + + public int length; + + public T[] __a; + + public final haxe.root.Array concat(haxe.root.Array a) + { + //line 62 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 63 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = ( length + a.length ); + //line 64 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] retarr = ((T[]) (((java.lang.Object) (new java.lang.Object[len]) )) ); + //line 65 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.__a) ), ((int) (0) ), ((java.lang.Object) (retarr) ), ((int) (0) ), ((int) (length) )); + //line 66 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a.__a) ), ((int) (0) ), ((java.lang.Object) (retarr) ), ((int) (length) ), ((int) (a.length) )); + //line 68 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.root.Array) (haxe.root.Array.ofNative(((T[]) (retarr) ))) ); + } + + + public final void concatNative(T[] a) + { + //line 73 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 74 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 75 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = ( length + a.length ); + //line 76 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( __a.length >= len )) + { + //line 78 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (0) ), ((java.lang.Object) (__a) ), ((int) (length) ), ((int) (length) )); + } + else + { + //line 80 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[len]) )) ); + //line 81 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (length) )); + //line 82 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (length) ), ((int) (a.length) )); + //line 84 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = newarr; + } + + //line 87 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = len; + } + + + public final java.lang.String join(java.lang.String sep) + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.StringBuf buf = new haxe.root.StringBuf(); + //line 93 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = -1; + //line 95 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean first = true; + //line 96 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 97 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( ++ i < length )) + { + //line 99 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (first) + { + //line 100 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + first = false; + } + else + { + //line 102 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + buf.add(haxe.lang.Runtime.toString(sep)); + } + + //line 103 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + buf.add(((T) (this.__a[i]) )); + } + + //line 106 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return buf.toString(); + } + + + public final java.lang.Object pop() + { + //line 111 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 112 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 113 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( length > 0 )) + { + //line 115 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T val = __a[ -- length]; + //line 116 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __a[length] = null; + //line 117 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = length; + //line 119 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return val; + } + else + { + //line 121 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return null; + } + + } + + + public final int push(T x) + { + //line 127 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 128 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( length >= this.__a.length )) + { + //line 130 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int newLen = ( (( length << 1 )) + 1 ); + //line 131 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[newLen]) )) ); + //line 132 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.__a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (this.__a.length) )); + //line 134 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = newarr; + } + + //line 137 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a[length] = x; + //line 138 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ++ this.length; + } + + + public final void reverse() + { + //line 143 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = 0; + //line 144 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int l = this.length; + //line 145 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int half = ( l >> 1 ); + //line 147 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + -- l; + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( i < half )) + { + //line 150 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T tmp = a[i]; + //line 151 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + a[i] = a[( l - i )]; + //line 152 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + a[( l - i )] = tmp; + //line 153 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ i; + } + + } + + + public final java.lang.Object shift() + { + //line 159 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int l = this.length; + //line 160 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( l == 0 )) + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return null; + } + + //line 163 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 164 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T x = a[0]; + //line 165 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + -- l; + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (1) ), ((java.lang.Object) (a) ), ((int) (0) ), ((int) (( this.length - 1 )) )); + //line 167 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + a[l] = null; + //line 168 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = l; + //line 170 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return x; + } + + + public final haxe.root.Array slice(int pos, java.lang.Object end) + { + //line 175 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 176 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = ( this.length + pos ); + //line 177 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 178 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + } + + } + + //line 180 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (haxe.lang.Runtime.eq(end, null)) + { + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + end = this.length; + } + else + { + //line 182 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( haxe.lang.Runtime.compare(end, 0) < 0 )) + { + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + end = ((int) (haxe.lang.Runtime.toInt(haxe.lang.Runtime.plus(this.length, end))) ); + } + + } + + //line 184 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( haxe.lang.Runtime.compare(end, this.length) > 0 )) + { + //line 185 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + end = this.length; + } + + //line 186 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = ( ((int) (haxe.lang.Runtime.toInt(end)) ) - ((int) (pos) ) ); + //line 187 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( len < 0 )) + { + //line 187 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return new haxe.root.Array(); + } + + //line 189 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[len]) )) ); + //line 190 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.__a) ), ((int) (pos) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (len) )); + //line 192 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.root.Array) (haxe.root.Array.ofNative(((T[]) (newarr) ))) ); + } + + + public final void sort(haxe.lang.Function f) + { + //line 197 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( this.length == 0 )) + { + //line 198 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ; + } + + //line 199 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.quicksort(0, ( this.length - 1 ), f); + } + + + public final void quicksort(int lo, int hi, haxe.lang.Function f) + { + //line 204 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] buf = this.__a; + //line 205 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = lo; + //line 205 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int j = hi; + //line 206 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T p = buf[( ( i + j ) >> 1 )]; + //line 207 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( i <= j )) + { + //line 209 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( ( i < hi ) && ( ((int) (f.__hx_invoke2_f(0.0, buf[i], 0.0, p)) ) < 0 ) )) + { + //line 209 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ i; + } + + //line 210 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( ( j > lo ) && ( ((int) (f.__hx_invoke2_f(0.0, buf[j], 0.0, p)) ) > 0 ) )) + { + //line 210 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + -- j; + } + + //line 211 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i <= j )) + { + //line 213 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T t = buf[i]; + //line 214 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + buf[i++] = buf[j]; + //line 215 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + buf[j--] = t; + } + + } + + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( lo < j )) + { + //line 219 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.quicksort(lo, j, f); + } + + //line 220 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i < hi )) + { + //line 220 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.quicksort(i, hi, f); + } + + } + + + public final haxe.root.Array splice(int pos, int len) + { + //line 225 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( len < 0 )) + { + //line 225 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return new haxe.root.Array(); + } + + //line 226 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 227 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = ( this.length + pos ); + //line 228 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 228 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + } + + } + + //line 230 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos > this.length )) + { + //line 231 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + //line 232 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = 0; + } + else + { + //line 233 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( ( pos + len ) > this.length )) + { + //line 234 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = ( this.length - pos ); + //line 235 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( len < 0 )) + { + //line 235 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = 0; + } + + } + + } + + //line 237 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 239 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] ret = ((T[]) (((java.lang.Object) (new java.lang.Object[len]) )) ); + //line 240 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (pos) ), ((java.lang.Object) (ret) ), ((int) (0) ), ((int) (len) )); + //line 241 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array ret1 = ((haxe.root.Array) (haxe.root.Array.ofNative(((T[]) (ret) ))) ); + //line 243 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int end = ( pos + len ); + //line 244 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (end) ), ((java.lang.Object) (a) ), ((int) (pos) ), ((int) (( this.length - end )) )); + //line 245 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length -= len; + //line 246 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( -- len >= 0 )) + { + //line 247 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + a[( this.length + len )] = null; + } + + //line 248 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ret1; + } + + + public final void spliceVoid(int pos, int len) + { + //line 253 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( len < 0 )) + { + //line 253 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ; + } + + //line 254 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 255 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = ( this.length + pos ); + //line 256 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 256 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + } + + } + + //line 258 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos > this.length )) + { + //line 259 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + //line 260 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = 0; + } + else + { + //line 261 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( ( pos + len ) > this.length )) + { + //line 262 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = ( this.length - pos ); + //line 263 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( len < 0 )) + { + //line 263 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + len = 0; + } + + } + + } + + //line 265 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 267 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int end = ( pos + len ); + //line 268 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (a) ), ((int) (end) ), ((java.lang.Object) (a) ), ((int) (pos) ), ((int) (( this.length - end )) )); + //line 269 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length -= len; + //line 270 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( -- len >= 0 )) + { + //line 271 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + a[( this.length + len )] = null; + } + + } + + + @Override public java.lang.String toString() + { + //line 276 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.StringBuf ret = new haxe.root.StringBuf(); + //line 277 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 278 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.add(haxe.lang.Runtime.toString("[")); + //line 279 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean first = true; + //line 280 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 280 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int _g1 = 0; + //line 280 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int _g = this.length; + //line 280 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( _g1 < _g )) + { + //line 280 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = _g1++; + //line 282 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (first) + { + //line 283 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + first = false; + } + else + { + //line 285 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.add(haxe.lang.Runtime.toString(",")); + } + + //line 286 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.add(((T) (a[i]) )); + } + + } + + //line 289 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.add(haxe.lang.Runtime.toString("]")); + //line 290 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ret.toString(); + } + + + public final void unshift(T x) + { + //line 295 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 296 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 297 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( length >= __a.length )) + { + //line 299 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int newLen = ( (( length << 1 )) + 1 ); + //line 300 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[newLen]) )) ); + //line 301 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (1) ), ((int) (length) )); + //line 303 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = newarr; + } + else + { + //line 305 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (__a) ), ((int) (1) ), ((int) (length) )); + } + + //line 308 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a[0] = x; + //line 309 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ this.length; + } + + + public final void insert(int pos, T x) + { + //line 314 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int l = this.length; + //line 315 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 316 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = ( l + pos ); + //line 317 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos < 0 )) + { + //line 317 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + pos = 0; + } + + } + + //line 319 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos >= l )) + { + //line 320 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.push(x); + //line 321 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ; + } + else + { + //line 322 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( pos == 0 )) + { + //line 323 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.unshift(x); + //line 324 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ; + } + + } + + //line 327 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( l >= this.__a.length )) + { + //line 329 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int newLen = ( (( this.length << 1 )) + 1 ); + //line 330 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[newLen]) )) ); + //line 331 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.__a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (pos) )); + //line 332 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + newarr[pos] = x; + //line 333 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (this.__a) ), ((int) (pos) ), ((java.lang.Object) (newarr) ), ((int) (( pos + 1 )) ), ((int) (( l - pos )) )); + //line 335 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = newarr; + //line 336 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ this.length; + } + else + { + //line 338 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 339 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (pos) ), ((java.lang.Object) (__a) ), ((int) (( pos + 1 )) ), ((int) (( l - pos )) )); + //line 340 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (__a) ), ((int) (0) ), ((int) (pos) )); + //line 341 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __a[pos] = x; + //line 342 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ this.length; + } + + } + + + public final boolean remove(T x) + { + //line 348 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 349 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = -1; + //line 350 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int length = this.length; + //line 351 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( ++ i < length )) + { + //line 353 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (haxe.lang.Runtime.eq(__a[i], x)) + { + //line 355 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (( i + 1 )) ), ((java.lang.Object) (__a) ), ((int) (i) ), ((int) (( ( length - i ) - 1 )) )); + //line 356 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __a[ -- this.length] = null; + //line 358 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return true; + } + + } + + //line 362 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return false; + } + + + public final int indexOf(T x, java.lang.Object fromIndex) + { + //line 366 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = this.length; + //line 366 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 366 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = ( (haxe.lang.Runtime.eq(fromIndex, null)) ? (0) : (((int) (haxe.lang.Runtime.toInt(fromIndex)) )) ); + //line 367 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i < 0 )) + { + //line 369 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + i += len; + //line 370 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i < 0 )) + { + //line 370 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + i = 0; + } + + } + + //line 372 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( i < len )) + { + //line 374 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (haxe.lang.Runtime.eq(a[i], x)) + { + //line 375 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return i; + } + + //line 376 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ i; + } + + //line 378 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return -1; + } + + + public final int lastIndexOf(T x, java.lang.Object fromIndex) + { + //line 382 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = this.length; + //line 382 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] a = this.__a; + //line 382 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int i = ( (haxe.lang.Runtime.eq(fromIndex, null)) ? (( len - 1 )) : (((int) (haxe.lang.Runtime.toInt(fromIndex)) )) ); + //line 383 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i >= len )) + { + //line 384 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + i = ( len - 1 ); + } + else + { + //line 385 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( i < 0 )) + { + //line 386 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + i += len; + } + + } + + //line 387 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( i >= 0 )) + { + //line 389 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (haxe.lang.Runtime.eq(a[i], x)) + { + //line 390 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return i; + } + + //line 391 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + -- i; + } + + //line 393 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return -1; + } + + + public final haxe.root.Array copy() + { + //line 398 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int len = this.length; + //line 399 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 400 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newarr = ((T[]) (((java.lang.Object) (new java.lang.Object[len]) )) ); + //line 401 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (newarr) ), ((int) (0) ), ((int) (len) )); + //line 402 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.root.Array) (haxe.root.Array.ofNative(((T[]) (newarr) ))) ); + } + + + public final java.lang.Object iterator() + { + //line 407 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return new _Array.ArrayIterator(((haxe.root.Array) (this) )); + } + + + public final haxe.root.Array map(haxe.lang.Function f) + { + //line 411 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array ret = new haxe.root.Array(( (S[]) (new java.lang.Object[] {}) )); + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int _g = 0; + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array _g1 = this; + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( _g < _g1.length )) + { + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T elt = _g1.__get(_g); + //line 412 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ _g; + //line 413 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.push(((S) (f.__hx_invoke1_o(0.0, elt)) )); + } + + } + + //line 414 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ret; + } + + + public final haxe.root.Array filter(haxe.lang.Function f) + { + //line 418 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array ret = new haxe.root.Array(( (T[]) (new java.lang.Object[] {}) )); + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int _g = 0; + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + haxe.root.Array _g1 = this; + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + while (( _g < _g1.length )) + { + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T elt = _g1.__get(_g); + //line 419 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ++ _g; + //line 420 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (haxe.lang.Runtime.toBool(f.__hx_invoke1_o(0.0, elt))) + { + //line 421 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + ret.push(elt); + } + + } + + } + + //line 422 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ret; + } + + + public final T __get(int idx) + { + //line 427 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 428 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( ( idx >= __a.length ) || ( idx < 0 ) )) + { + //line 429 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return null; + } + + //line 431 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return __a[idx]; + } + + + public final T __set(int idx, T v) + { + //line 436 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] __a = this.__a; + //line 437 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( idx >= __a.length )) + { + //line 439 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + int newl = ( idx + 1 ); + //line 440 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( idx == __a.length )) + { + //line 441 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + newl = ( (( idx << 1 )) + 1 ); + } + + //line 442 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + T[] newArr = ((T[]) (((java.lang.Object) (new java.lang.Object[newl]) )) ); + //line 443 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( this.length > 0 )) + { + //line 444 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + java.lang.System.arraycopy(((java.lang.Object) (__a) ), ((int) (0) ), ((java.lang.Object) (newArr) ), ((int) (0) ), ((int) (this.length) )); + } + + //line 445 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __a = newArr; + //line 445 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = __a; + } + + //line 448 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (( idx >= this.length )) + { + //line 449 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = ( idx + 1 ); + } + + //line 451 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return __a[idx] = v; + } + + + public final T __unsafe_get(int idx) + { + //line 456 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__a[idx]; + } + + + public final T __unsafe_set(int idx, T val) + { + //line 461 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__a[idx] = val; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case -1106363674: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("length")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = ((int) (value) ); + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case 94337: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__a")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.__a = ((T[]) (value) ); + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1106363674: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("length")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.length = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return value; + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case -537840087: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__unsafe_set")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "__unsafe_set")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1106363674: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("length")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.length; + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -537851619: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__unsafe_get")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "__unsafe_get")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 94337: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__a")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__a; + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 90678402: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__set")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "__set")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1354795244: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("concat")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "concat")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 90666870: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__get")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "__get")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1238494133: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("concatNative")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "concatNative")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1274492040: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("filter")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "filter")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3267882: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("join")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "join")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107868: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("map")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "map")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 111185: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("pop")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "pop")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1182533742: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("iterator")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "iterator")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3452698: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("push")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "push")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3059573: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("copy")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "copy")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1099846370: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("reverse")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reverse")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -467511597: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("lastIndexOf")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lastIndexOf")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 109407362: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("shift")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "shift")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1943291465: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("indexOf")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "indexOf")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 109526418: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("slice")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "slice")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -934610812: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("remove")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "remove")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3536286: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("sort")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "sort")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1183792455: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("insert")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insert")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1301699851: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("quicksort")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "quicksort")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -277637751: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("unshift")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "unshift")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -895859076: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("splice")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "splice")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1776922004: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("toString")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -821858768: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("spliceVoid")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "spliceVoid")) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case -1106363674: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("length")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((double) (this.length) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + boolean __temp_executeDef1 = true; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + switch (field.hashCode()) + { + case -537840087: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__unsafe_set")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__unsafe_set(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((T) (dynargs.__get(1)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1354795244: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("concat")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.concat(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -537851619: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__unsafe_get")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__unsafe_get(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1238494133: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("concatNative")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.concatNative(((T[]) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 90678402: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__set")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__set(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((T) (dynargs.__get(1)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3267882: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("join")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.join(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 90666870: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("__get")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.__get(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 111185: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("pop")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.pop(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1274492040: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("filter")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.filter(((haxe.lang.Function) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3452698: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("push")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.push(((T) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 107868: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("map")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return ((haxe.root.Array) (this.map(((haxe.lang.Function) (dynargs.__get(0)) ))) ); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1099846370: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("reverse")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.reverse(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1182533742: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("iterator")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.iterator(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 109407362: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("shift")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.shift(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3059573: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("copy")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.copy(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 109526418: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("slice")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.slice(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), dynargs.__get(1)); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -467511597: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("lastIndexOf")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.lastIndexOf(((T) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 3536286: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("sort")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.sort(((haxe.lang.Function) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1943291465: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("indexOf")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.indexOf(((T) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case 1301699851: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("quicksort")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.quicksort(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(1))) ), ((haxe.lang.Function) (dynargs.__get(2)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -934610812: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("remove")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.remove(((T) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -895859076: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("splice")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.splice(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(1))) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1183792455: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("insert")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.insert(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((T) (dynargs.__get(1)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -821858768: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("spliceVoid")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.spliceVoid(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(1))) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -277637751: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("unshift")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + this.unshift(((T) (dynargs.__get(0)) )); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + case -1776922004: + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (field.equals("toString")) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + __temp_executeDef1 = false; + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return this.toString(); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + break; + } + + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + if (__temp_executeDef1) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + baseArr.push("__a"); + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + baseArr.push("length"); + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Array.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/root/Reflect.java b/src/main/java/haxe/root/Reflect.java new file mode 100644 index 0000000..b71914a --- /dev/null +++ b/src/main/java/haxe/root/Reflect.java @@ -0,0 +1,90 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Reflect extends haxe.lang.HxObject +{ + public Reflect(haxe.lang.EmptyObject empty) + { + } + + + public Reflect() + { + //line 28 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + haxe.root.Reflect.__hx_ctor__Reflect(this); + } + + + public static void __hx_ctor__Reflect(haxe.root.Reflect __hx_this) + { + } + + + public static java.lang.Object field(java.lang.Object o, java.lang.String field) + { + //line 41 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + if (( o instanceof haxe.lang.IHxObject )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + return ((haxe.lang.IHxObject) (o) ).__hx_getField(field, false, false, false); + } + + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + return haxe.lang.Runtime.slowGetField(o, field, false); + } + + + public static void setField(java.lang.Object o, java.lang.String field, java.lang.Object value) + { + //line 50 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + if (( o instanceof haxe.lang.IHxObject )) + { + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + ((haxe.lang.IHxObject) (o) ).__hx_setField(field, value, false); + } + else + { + //line 53 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + haxe.lang.Runtime.slowSetField(o, field, value); + } + + } + + + public static haxe.root.Array fields(java.lang.Object o) + { + //line 87 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + if (( o instanceof haxe.lang.IHxObject )) + { + //line 88 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + haxe.root.Array ret = new haxe.root.Array(new java.lang.String[]{}); + //line 89 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + ((haxe.lang.IHxObject) (o) ).__hx_getFields(ret); + //line 90 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + return ret; + } + else + { + //line 91 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + if (( o instanceof java.lang.Class )) + { + //line 92 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + return haxe.root.Type.getClassFields(((java.lang.Class) (o) )); + } + else + { + //line 94 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Reflect.hx" + return new haxe.root.Array(new java.lang.String[]{}); + } + + } + + } + + +} + + diff --git a/src/main/java/haxe/root/Std.java b/src/main/java/haxe/root/Std.java new file mode 100644 index 0000000..614149f --- /dev/null +++ b/src/main/java/haxe/root/Std.java @@ -0,0 +1,400 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Std +{ + public Std() + { + } + + + public static boolean is(java.lang.Object v, java.lang.Object t) + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( v == null )) + { + //line 31 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return haxe.lang.Runtime.eq(t, java.lang.Object.class); + } + + //line 32 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( t == null )) + { + //line 33 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return false; + } + + //line 34 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.Class clt = ((java.lang.Class) (t) ); + //line 35 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( ((java.lang.Object) (clt) ) == ((java.lang.Object) (null) ) )) + { + //line 36 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return false; + } + + //line 37 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.String name = clt.getName(); + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + { + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.String __temp_svar1 = (name); + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + int __temp_hash3 = __temp_svar1.hashCode(); + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + switch (__temp_hash3) + { + case 344809556: + case 64711720: + { + //line 46 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( (( ( __temp_hash3 == 344809556 ) && __temp_svar1.equals("java.lang.Boolean") )) || __temp_svar1.equals("boolean") )) + { + //line 46 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return v instanceof java.lang.Boolean; + } + + //line 46 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + case 1063877011: + { + //line 48 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (__temp_svar1.equals("java.lang.Object")) + { + //line 48 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return true; + } + + //line 48 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + case 761287205: + case -1325958191: + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( (( ( __temp_hash3 == 761287205 ) && __temp_svar1.equals("java.lang.Double") )) || __temp_svar1.equals("double") )) + { + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return haxe.lang.Runtime.isDouble(v); + } + + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + case -2056817302: + case 104431: + { + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( (( ( __temp_hash3 == -2056817302 ) && __temp_svar1.equals("java.lang.Integer") )) || __temp_svar1.equals("int") )) + { + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return haxe.lang.Runtime.isInt(v); + } + + //line 44 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + } + + } + + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.Class clv = v.getClass(); + //line 53 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return clt.isAssignableFrom(((java.lang.Class) (clv) )); + } + + + public static java.lang.String string(java.lang.Object s) + { + //line 57 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return ( haxe.lang.Runtime.toString(s) + "" ); + } + + + public static int _int(double x) + { + //line 61 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return ((int) (x) ); + } + + + public static java.lang.Object parseInt(java.lang.String x) + { + + if (x == null) return null; + + int ret = 0; + int base = 10; + int i = 0; + int len = x.length(); + + if (x.startsWith("0") && len > 2) + { + char c = x.charAt(1); + if (c == 'x' || c == 'X') + { + i = 2; + base = 16; + } + } + + boolean foundAny = i != 0; + boolean isNeg = false; + for (; i < len; i++) + { + char c = x.charAt(i); + if (!foundAny) + { + switch(c) + { + case '-': + isNeg = true; + continue; + case '+': + case '\n': + case '\t': + case '\r': + case ' ': + if (isNeg) return null; + continue; + } + } + + if (c >= '0' && c <= '9') + { + if (!foundAny && c == '0') + { + foundAny = true; + continue; + } + ret *= base; foundAny = true; + + ret += ((int) (c - '0')); + } else if (base == 16) { + if (c >= 'a' && c <= 'f') { + ret *= base; foundAny = true; + ret += ((int) (c - 'a')) + 10; + } else if (c >= 'A' && c <= 'F') { + ret *= base; foundAny = true; + ret += ((int) (c - 'A')) + 10; + } else { + break; + } + } else { + break; + } + } + + if (foundAny) + return isNeg ? -ret : ret; + else + return null; + + } + + + public static double parseFloat(java.lang.String x) + { + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( x == null )) + { + //line 139 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return java.lang.Double.NaN; + } + + //line 140 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + x = haxe.root.StringTools.ltrim(x); + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean found = false; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean hasDot = false; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean hasSign = false; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean hasE = false; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean hasESign = false; + //line 141 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + boolean hasEData = false; + //line 143 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + int i = -1; + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + { + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + label1: + //line 146 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + while (( ++ i < x.length() )) + { + //line 148 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + int chr = ((int) (((char) (x.charAt(i)) )) ); + //line 149 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( ( chr >= 48 ) && ( chr <= 57 ) )) + { + //line 151 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (hasE) + { + //line 153 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + hasEData = true; + } + + //line 155 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + found = true; + } + else + { + //line 156 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + switch (chr) + { + case 43: + case 45: + { + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( ! (found) && ! (hasSign) )) + { + //line 162 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + hasSign = true; + } + else + { + //line 163 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( ( ( found && ! (hasESign) ) && hasE ) && ! (hasEData) )) + { + //line 164 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + hasESign = true; + } + else + { + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break label1; + } + + } + + //line 161 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + case 46: + { + //line 159 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if ( ! (hasDot) ) + { + //line 160 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + hasDot = true; + } + else + { + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break label1; + } + + //line 159 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + case 69: + case 101: + { + //line 157 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if ( ! (hasE) ) + { + //line 158 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + hasE = true; + } + else + { + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break label1; + } + + //line 157 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break; + } + + + default: + { + //line 166 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + break label1; + } + + } + + } + + } + + } + + //line 169 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( hasE && ! (hasEData) )) + { + //line 171 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + -- i; + //line 172 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (hasESign) + { + //line 173 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + -- i; + } + + } + + //line 176 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( i != x.length() )) + { + //line 178 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + x = haxe.lang.StringExt.substr(x, 0, i); + } + + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + try + { + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return java.lang.Double.parseDouble(haxe.lang.Runtime.toString(x)); + } + catch (java.lang.Throwable __temp_catchallException1) + { + //line 181 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + haxe.lang.Exceptions.setException(__temp_catchallException1); + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.Object __temp_catchall2 = __temp_catchallException1; + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + if (( __temp_catchall2 instanceof haxe.lang.HaxeException )) + { + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + __temp_catchall2 = ((haxe.lang.HaxeException) (__temp_catchallException1) ).obj; + } + + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + { + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + java.lang.Object e = __temp_catchall2; + //line 183 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Std.hx" + return java.lang.Double.NaN; + } + + } + + + } + + +} + + diff --git a/src/main/java/haxe/root/StringBuf.java b/src/main/java/haxe/root/StringBuf.java new file mode 100644 index 0000000..7421f04 --- /dev/null +++ b/src/main/java/haxe/root/StringBuf.java @@ -0,0 +1,257 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class StringBuf extends haxe.lang.HxObject +{ + public StringBuf(haxe.lang.EmptyObject empty) + { + } + + + public StringBuf() + { + //line 30 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + haxe.root.StringBuf.__hx_ctor__StringBuf(this); + } + + + public static void __hx_ctor__StringBuf(haxe.root.StringBuf __hx_this) + { + //line 31 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __hx_this.b = new java.lang.StringBuilder(); + } + + + public java.lang.StringBuilder b; + + + + public void add(T x) + { + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (haxe.lang.Runtime.isInt(x)) + { + //line 41 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + int x1 = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (x) ))) ); + //line 42 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + java.lang.Object xd = x1; + //line 43 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + this.b.append(((java.lang.Object) (xd) )); + } + else + { + //line 45 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + this.b.append(((java.lang.Object) (x) )); + } + + } + + + @Override public java.lang.String toString() + { + //line 59 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return this.b.toString(); + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + boolean __temp_executeDef1 = true; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + switch (field.hashCode()) + { + case 98: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("b")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + this.b = ((java.lang.StringBuilder) (value) ); + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return value; + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (__temp_executeDef1) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + boolean __temp_executeDef1 = true; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("toString")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + case 98: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("b")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return this.b; + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + case 96417: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("add")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "add")) ); + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (__temp_executeDef1) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + boolean __temp_executeDef1 = true; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("toString")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return this.toString(); + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + case 96417: + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (field.equals("add")) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + __temp_executeDef1 = false; + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + this.add(((java.lang.Object) (dynargs.__get(0)) )); + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return ((java.lang.Object) (null) ); + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + break; + } + + + } + + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + if (__temp_executeDef1) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + baseArr.push("length"); + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + baseArr.push("b"); + //line 24 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/StringBuf.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/haxe/root/StringTools.java b/src/main/java/haxe/root/StringTools.java new file mode 100644 index 0000000..025b6ec --- /dev/null +++ b/src/main/java/haxe/root/StringTools.java @@ -0,0 +1,75 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class StringTools extends haxe.lang.HxObject +{ + public StringTools(haxe.lang.EmptyObject empty) + { + } + + + public StringTools() + { + //line 33 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + haxe.root.StringTools.__hx_ctor__StringTools(this); + } + + + public static void __hx_ctor__StringTools(haxe.root.StringTools __hx_this) + { + } + + + public static boolean isSpace(java.lang.String s, int pos) + { + //line 249 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + java.lang.Object c = haxe.lang.StringExt.charCodeAt(s, pos); + //line 250 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + if ( ! ((( ( haxe.lang.Runtime.compare(c, 8) > 0 ) && ( haxe.lang.Runtime.compare(c, 14) < 0 ) ))) ) + { + //line 250 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + return haxe.lang.Runtime.eq(c, 32); + } + else + { + //line 250 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + return true; + } + + } + + + public static java.lang.String ltrim(java.lang.String s) + { + //line 266 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + int l = s.length(); + //line 267 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + int r = 0; + //line 268 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + while (( ( r < l ) && haxe.root.StringTools.isSpace(s, r) )) + { + //line 269 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + ++ r; + } + + //line 271 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + if (( r > 0 )) + { + //line 272 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + return haxe.lang.StringExt.substr(s, r, ( l - r )); + } + else + { + //line 274 "/Users/tao/.hvm/versions/haxe/3.4.2/std/StringTools.hx" + return s; + } + + } + + +} + + diff --git a/src/main/java/haxe/root/Type.java b/src/main/java/haxe/root/Type.java new file mode 100644 index 0000000..581b47d --- /dev/null +++ b/src/main/java/haxe/root/Type.java @@ -0,0 +1,95 @@ +// Generated by Haxe 3.4.2 +package haxe.root; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Type extends haxe.lang.HxObject +{ + public Type(haxe.lang.EmptyObject empty) + { + } + + + public Type() + { + //line 39 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Type.hx" + haxe.root.Type.__hx_ctor__Type(this); + } + + + public static void __hx_ctor__Type(haxe.root.Type __hx_this) + { + } + + + public static java.lang.Class getEnum(java.lang.Object o) + { + //line 51 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Type.hx" + if (( ( o instanceof java.lang.Enum ) || ( o instanceof haxe.lang.Enum ) )) + { + //line 52 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Type.hx" + return o.getClass(); + } + + //line 54 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/_std/Type.hx" + return null; + } + + + public static haxe.root.Array getClassFields(java.lang.Class c) + { + + Array ret = new Array(); + if (c == java.lang.String.class) + { + ret.push("fromCharCode"); + return ret; + } + + for (java.lang.reflect.Field f : c.getDeclaredFields()) + { + java.lang.String fname = f.getName(); + if (java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_")) + ret.push(fname); + } + + for (java.lang.reflect.Method m : c.getDeclaredMethods()) + { + if (m.getDeclaringClass() == java.lang.Object.class) + continue; + java.lang.String mname = m.getName(); + if (java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_")) + ret.push(mname); + } + + return ret; + + } + + + public static boolean enumEq(T a, T b) + { + + if (a instanceof haxe.lang.Enum) + return a.equals(b); + else + return haxe.lang.Runtime.eq(a, b); + + } + + + public static int enumIndex(java.lang.Object e) + { + + if (e instanceof java.lang.Enum) + return ((java.lang.Enum) e).ordinal(); + else + return ((haxe.lang.Enum) e).index; + + } + + +} + + diff --git a/src/main/java/hxDaedalus/Main.java b/src/main/java/hxDaedalus/Main.java new file mode 100644 index 0000000..c4b8d2c --- /dev/null +++ b/src/main/java/hxDaedalus/Main.java @@ -0,0 +1,33 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Main extends haxe.lang.HxObject +{ + public Main(haxe.lang.EmptyObject empty) + { + } + + + public Main() + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/Main.hx" + hxDaedalus.Main.__hx_ctor_hxDaedalus_Main(this); + } + + + public static void __hx_ctor_hxDaedalus_Main(hxDaedalus.Main __hx_this) + { + } + + + public static void main() + { + } + + +} + + diff --git a/src/main/java/hxDaedalus/ai/AStar.java b/src/main/java/hxDaedalus/ai/AStar.java new file mode 100644 index 0000000..d4dc801 --- /dev/null +++ b/src/main/java/hxDaedalus/ai/AStar.java @@ -0,0 +1,2112 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class AStar extends haxe.lang.HxObject +{ + public AStar(haxe.lang.EmptyObject empty) + { + } + + + public AStar() + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.ai.AStar.__hx_ctor_hxDaedalus_ai_AStar(this); + } + + + public static void __hx_ctor_hxDaedalus_ai_AStar(hxDaedalus.ai.AStar __hx_this) + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __hx_this.iterEdge = new hxDaedalus.iterators.FromFaceToInnerEdges(); + } + + + + + public double _radius; + + + + public hxDaedalus.data.Mesh _mesh; + + public haxe.ds.ObjectMap closedFaces; + + public haxe.root.Array sortedOpenedFaces; + + public haxe.ds.ObjectMap openedFaces; + + public haxe.ds.ObjectMap entryEdges; + + public haxe.ds.ObjectMap entryX; + + public haxe.ds.ObjectMap entryY; + + public haxe.ds.ObjectMap scoreF; + + public haxe.ds.ObjectMap scoreG; + + public haxe.ds.ObjectMap scoreH; + + public haxe.ds.ObjectMap predecessor; + + public hxDaedalus.iterators.FromFaceToInnerEdges iterEdge; + + public double radiusSquared; + + public double diameter; + + public double diameterSquared; + + public hxDaedalus.data.Face fromFace; + + public hxDaedalus.data.Face toFace; + + public hxDaedalus.data.Face curFace; + + public void dispose() + { + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._mesh = null; + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.closedFaces = null; + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces = null; + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.openedFaces = null; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryEdges = null; + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryX = null; + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryY = null; + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreF = null; + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreG = null; + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreH = null; + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.predecessor = null; + } + + + public double get_radius() + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this._radius; + } + + + public double set_radius(double value) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._radius = value; + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.radiusSquared = ( this._radius * this._radius ); + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameter = ( this._radius * 2 ); + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameterSquared = ( this.diameter * this.diameter ); + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + + public hxDaedalus.data.Mesh set_mesh(hxDaedalus.data.Mesh value) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._mesh = value; + //line 74 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + + public void findPath(double fromX, double fromY, double toX, double toY, haxe.root.Array resultListFaces, haxe.root.Array resultListEdges) + { + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.closedFaces = new haxe.ds.ObjectMap(); + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces = new haxe.root.Array(); + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.openedFaces = ((haxe.ds.ObjectMap) (((haxe.ds.ObjectMap) (new haxe.ds.ObjectMap()) )) ); + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryEdges = new haxe.ds.ObjectMap(); + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryX = new haxe.ds.ObjectMap(); + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryY = new haxe.ds.ObjectMap(); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreF = new haxe.ds.ObjectMap(); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreG = new haxe.ds.ObjectMap(); + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreH = new haxe.ds.ObjectMap(); + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.predecessor = new haxe.ds.ObjectMap(); + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Intersection loc = null; + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge locEdge = null; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex locVertex = null; + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double distance = 0.0; + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D p1 = null; + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D p2 = null; + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D p3 = null; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + loc = hxDaedalus.data.math.Geom2D.locatePosition(fromX, fromY, this._mesh); + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (loc.index) + { + case 0: + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex vertex = ((hxDaedalus.data.Vertex) (loc.params[0]) ); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + locVertex = vertex; + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ; + } + + + case 1: + { + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge edge = ((hxDaedalus.data.Edge) (loc.params[0]) ); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + locEdge = edge; + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (locEdge.get_isConstrained()) + { + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ; + } + + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.fromFace = locEdge.get_leftFace(); + } + + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 2: + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face face = ((hxDaedalus.data.Face) (loc.params[0]) ); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.fromFace = face; + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 3: + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + loc = hxDaedalus.data.math.Geom2D.locatePosition(toX, toY, this._mesh); + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (loc.index) + { + case 0: + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex vertex1 = ((hxDaedalus.data.Vertex) (loc.params[0]) ); + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + locVertex = vertex1; + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.toFace = locVertex.get_edge().get_leftFace(); + } + + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1: + { + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge edge1 = ((hxDaedalus.data.Edge) (loc.params[0]) ); + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + locEdge = edge1; + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.toFace = locEdge.get_leftFace(); + } + + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 2: + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face face1 = ((hxDaedalus.data.Face) (loc.params[0]) ); + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.toFace = face1; + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 3: + { + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces.push(this.fromFace); + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryEdges) )) ).set(this.fromFace, null); + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryX) )) ).set(this.fromFace, fromX); + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryY) )) ).set(this.fromFace, fromY); + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreG) )) ).set(this.fromFace, 0); + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double dist = java.lang.Math.sqrt(( ( (( toX - fromX )) * (( toX - fromX )) ) + ( (( toY - fromY )) * (( toY - fromY )) ) )); + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreH) )) ).set(this.fromFace, dist); + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).set(this.fromFace, dist); + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge innerEdge = null; + //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face neighbourFace = null; + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double f = 0.0; + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double g = 0.0; + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double h = 0.0; + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D fromPoint = new hxDaedalus.data.math.Point2D(null, null); + //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D entryPoint = new hxDaedalus.data.math.Point2D(null, null); + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D distancePoint = new hxDaedalus.data.math.Point2D(null, null); + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean fillDatas = false; + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + while (true) + { + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( this.sortedOpenedFaces.length == 0 )) + { + //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.curFace = null; + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + //line 162 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.curFace = ((hxDaedalus.data.Face) (this.sortedOpenedFaces.pop()) ); + //line 163 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( this.curFace == this.toFace )) + { + //line 163 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + //line 165 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.iterEdge.set_fromFace(this.curFace); + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + while (true) + { + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + innerEdge = this.iterEdge.next(); + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if ( ! ((( innerEdge != null ))) ) + { + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + //line 167 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (innerEdge.get_isConstrained()) + { + //line 167 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + continue; + } + + //line 168 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + neighbourFace = innerEdge.get_rightFace(); + //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ! (haxe.lang.Runtime.toBool(((haxe.ds.ObjectMap) (((haxe.IMap) (this.closedFaces) )) ).get(neighbourFace))) )) + { + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( ( this.curFace != this.fromFace ) && ( this._radius > 0 ) ) && ! (this.isWalkableByRadius(((hxDaedalus.data.Edge) (((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryEdges) )) ).get(this.curFace)) ), this.curFace, innerEdge)) )) + { + //line 175 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + continue; + } + + //line 178 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + fromPoint.x = ((double) (haxe.lang.Runtime.toDouble(((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryX) )) ).get(this.curFace))) ); + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + fromPoint.y = ((double) (haxe.lang.Runtime.toDouble(((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryY) )) ).get(this.curFace))) ); + //line 180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + entryPoint.x = ( (( innerEdge.get_originVertex().get_pos().x + innerEdge.get_destinationVertex().get_pos().x )) / 2 ); + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + entryPoint.y = ( (( innerEdge.get_originVertex().get_pos().y + innerEdge.get_destinationVertex().get_pos().y )) / 2 ); + //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distancePoint.x = ( entryPoint.x - toX ); + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distancePoint.y = ( entryPoint.y - toY ); + //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + h = distancePoint.get_length(); + //line 185 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distancePoint.x = ( fromPoint.x - entryPoint.x ); + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distancePoint.y = ( fromPoint.y - entryPoint.y ); + //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + g = ((double) (haxe.lang.Runtime.toDouble(haxe.lang.Runtime.plus(((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreG) )) ).get(this.curFace), distancePoint.get_length()))) ); + //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + f = ( h + g ); + //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + fillDatas = false; + //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( haxe.lang.Runtime.eq(((haxe.ds.ObjectMap) (((haxe.IMap) (this.openedFaces) )) ).get(neighbourFace), null) || ( ! (haxe.lang.Runtime.toBool(((haxe.ds.ObjectMap) (((haxe.IMap) (this.openedFaces) )) ).get(neighbourFace))) ) )) + { + //line 192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces.push(neighbourFace); + //line 193 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.openedFaces) )) ).set(neighbourFace, true); + //line 194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + fillDatas = true; + } + else + { + //line 196 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( haxe.lang.Runtime.compare(((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).get(neighbourFace), f) > 0 )) + { + //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + fillDatas = true; + } + + } + + //line 200 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (fillDatas) + { + //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryEdges) )) ).set(neighbourFace, innerEdge); + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double v = entryPoint.x; + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryX) )) ).set(neighbourFace, v); + } + + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double v1 = entryPoint.y; + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryY) )) ).set(neighbourFace, v1); + } + + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).set(neighbourFace, f); + //line 206 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreG) )) ).set(neighbourFace, g); + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreH) )) ).set(neighbourFace, h); + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face v2 = this.curFace; + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.predecessor) )) ).set(neighbourFace, v2); + } + + } + + } + + } + + //line 213 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.openedFaces) )) ).set(this.curFace, false); + //line 214 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (this.closedFaces) )) ).set(this.curFace, true); + //line 215 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces.sort(((haxe.lang.Function) (new haxe.lang.Closure(this, "sortingFaces")) )); + } + + //line 220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( this.curFace == null )) + { + //line 221 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ; + } + + //line 225 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + resultListFaces.push(this.curFace); + //line 227 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + while (( this.curFace != this.fromFace )) + { + //line 228 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + resultListEdges.unshift(((hxDaedalus.data.Edge) (((haxe.ds.ObjectMap) (((haxe.IMap) (this.entryEdges) )) ).get(this.curFace)) )); + //line 231 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.curFace = ((hxDaedalus.data.Face) (((haxe.ds.ObjectMap) (((haxe.IMap) (this.predecessor) )) ).get(this.curFace)) ); + //line 233 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + resultListFaces.unshift(this.curFace); + } + + } + + + public int sortingFaces(hxDaedalus.data.Face a, hxDaedalus.data.Face b) + { + //line 239 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (haxe.lang.Runtime.eq(((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).get(a), ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).get(b))) + { + //line 240 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return 0; + } + else + { + //line 241 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( haxe.lang.Runtime.compare(((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).get(a), ((haxe.ds.ObjectMap) (((haxe.IMap) (this.scoreF) )) ).get(b)) < 0 )) + { + //line 242 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return 1; + } + else + { + //line 244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return -1; + } + + } + + } + + + public boolean isWalkableByRadius(hxDaedalus.data.Edge fromEdge, hxDaedalus.data.Face throughFace, hxDaedalus.data.Edge toEdge) + { + //line 249 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex vA = null; + //line 250 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex vB = null; + //line 251 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Vertex vC = null; + //line 254 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( fromEdge.get_originVertex() == toEdge.get_originVertex() )) + { + //line 256 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vA = fromEdge.get_destinationVertex(); + //line 257 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vB = toEdge.get_destinationVertex(); + //line 258 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vC = fromEdge.get_originVertex(); + } + else + { + //line 260 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( fromEdge.get_destinationVertex() == toEdge.get_destinationVertex() )) + { + //line 262 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vA = fromEdge.get_originVertex(); + //line 263 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vB = toEdge.get_originVertex(); + //line 264 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vC = fromEdge.get_destinationVertex(); + } + else + { + //line 266 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( fromEdge.get_originVertex() == toEdge.get_destinationVertex() )) + { + //line 268 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vA = fromEdge.get_destinationVertex(); + //line 269 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vB = toEdge.get_originVertex(); + //line 270 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vC = fromEdge.get_originVertex(); + } + else + { + //line 272 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( fromEdge.get_destinationVertex() == toEdge.get_originVertex() )) + { + //line 274 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vA = fromEdge.get_originVertex(); + //line 275 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vB = toEdge.get_destinationVertex(); + //line 276 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vC = fromEdge.get_destinationVertex(); + } + + } + + } + + } + + //line 279 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double dot = 0.0; + //line 280 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean result = false; + //line 281 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double distSquared = 0.0; + //line 284 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + dot = ( ( (( vC.get_pos().x - vA.get_pos().x )) * (( vB.get_pos().x - vA.get_pos().x )) ) + ( (( vC.get_pos().y - vA.get_pos().y )) * (( vB.get_pos().y - vA.get_pos().y )) ) ); + //line 285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( dot <= 0 )) + { + //line 287 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distSquared = ( ( (( vC.get_pos().x - vA.get_pos().x )) * (( vC.get_pos().x - vA.get_pos().x )) ) + ( (( vC.get_pos().y - vA.get_pos().y )) * (( vC.get_pos().y - vA.get_pos().y )) ) ); + //line 288 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( distSquared >= this.diameterSquared )) + { + //line 289 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return true; + } + else + { + //line 291 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + + } + + //line 297 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + dot = ( ( (( vC.get_pos().x - vB.get_pos().x )) * (( vA.get_pos().x - vB.get_pos().x )) ) + ( (( vC.get_pos().y - vB.get_pos().y )) * (( vA.get_pos().y - vB.get_pos().y )) ) ); + //line 298 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( dot <= 0 )) + { + //line 300 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distSquared = ( ( (( vC.get_pos().x - vB.get_pos().x )) * (( vC.get_pos().x - vB.get_pos().x )) ) + ( (( vC.get_pos().y - vB.get_pos().y )) * (( vC.get_pos().y - vB.get_pos().y )) ) ); + //line 301 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( distSquared >= this.diameterSquared )) + { + //line 302 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return true; + } + else + { + //line 304 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + + } + + //line 310 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge adjEdge = null; + //line 311 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( ( ( throughFace.get_edge() != fromEdge ) && ( throughFace.get_edge().get_oppositeEdge() != fromEdge ) ) && ( throughFace.get_edge() != toEdge ) ) && ( throughFace.get_edge().get_oppositeEdge() != toEdge ) )) + { + //line 312 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + adjEdge = throughFace.get_edge(); + } + else + { + //line 313 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( ( ( throughFace.get_edge().get_nextLeftEdge() != fromEdge ) && ( throughFace.get_edge().get_nextLeftEdge().get_oppositeEdge() != fromEdge ) ) && ( throughFace.get_edge().get_nextLeftEdge() != toEdge ) ) && ( throughFace.get_edge().get_nextLeftEdge().get_oppositeEdge() != toEdge ) )) + { + //line 314 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + adjEdge = throughFace.get_edge().get_nextLeftEdge(); + } + else + { + //line 316 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + adjEdge = throughFace.get_edge().get_prevLeftEdge(); + } + + } + + //line 319 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (adjEdge.get_isConstrained()) + { + //line 320 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Point2D proj = new hxDaedalus.data.math.Point2D(vC.get_pos().x, vC.get_pos().y); + //line 321 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.math.Geom2D.projectOrthogonaly(proj, adjEdge); + //line 322 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + distSquared = ( ( (( proj.x - vC.get_pos().x )) * (( proj.x - vC.get_pos().x )) ) + ( (( proj.y - vC.get_pos().y )) * (( proj.y - vC.get_pos().y )) ) ); + //line 323 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( distSquared >= this.diameterSquared )) + { + //line 324 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return true; + } + else + { + //line 326 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + + } + else + { + //line 332 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double distSquaredA = ( ( (( vC.get_pos().x - vA.get_pos().x )) * (( vC.get_pos().x - vA.get_pos().x )) ) + ( (( vC.get_pos().y - vA.get_pos().y )) * (( vC.get_pos().y - vA.get_pos().y )) ) ); + //line 333 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + double distSquaredB = ( ( (( vC.get_pos().x - vB.get_pos().x )) * (( vC.get_pos().x - vB.get_pos().x )) ) + ( (( vC.get_pos().y - vB.get_pos().y )) * (( vC.get_pos().y - vB.get_pos().y )) ) ); + //line 334 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( distSquaredA < this.diameterSquared ) || ( distSquaredB < this.diameterSquared ) )) + { + //line 335 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + else + { + //line 337 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + haxe.root.Array vFaceToCheck = new haxe.root.Array(); + //line 338 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + haxe.root.Array vFaceIsFromEdge = new haxe.root.Array(); + //line 339 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + haxe.ds.ObjectMap facesDone = new haxe.ds.ObjectMap(); + //line 340 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceIsFromEdge.push(adjEdge); + //line 341 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( adjEdge.get_leftFace() == throughFace )) + { + //line 342 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceToCheck.push(adjEdge.get_rightFace()); + //line 343 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + facesDone.set(adjEdge.get_rightFace(), true); + } + else + { + //line 345 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceToCheck.push(adjEdge.get_leftFace()); + //line 346 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + facesDone.set(adjEdge.get_leftFace(), true); + } + + //line 349 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face currFace = null; + //line 350 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge faceFromEdge = null; + //line 351 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge currEdgeA = null; + //line 352 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face nextFaceA = null; + //line 353 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Edge currEdgeB = null; + //line 354 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + hxDaedalus.data.Face nextFaceB = null; + //line 355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + while (( vFaceToCheck.length > 0 )) + { + //line 356 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currFace = ((hxDaedalus.data.Face) (vFaceToCheck.shift()) ); + //line 357 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + faceFromEdge = ((hxDaedalus.data.Edge) (vFaceIsFromEdge.shift()) ); + //line 360 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( currFace.get_edge() == faceFromEdge ) || ( currFace.get_edge() == faceFromEdge.get_oppositeEdge() ) )) + { + //line 362 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeA = currFace.get_edge().get_nextLeftEdge(); + //line 363 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeB = currFace.get_edge().get_nextLeftEdge().get_nextLeftEdge(); + } + else + { + //line 364 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( currFace.get_edge().get_nextLeftEdge() == faceFromEdge ) || ( currFace.get_edge().get_nextLeftEdge() == faceFromEdge.get_oppositeEdge() ) )) + { + //line 366 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeA = currFace.get_edge(); + //line 367 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeB = currFace.get_edge().get_nextLeftEdge().get_nextLeftEdge(); + } + else + { + //line 369 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeA = currFace.get_edge(); + //line 370 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + currEdgeB = currFace.get_edge().get_nextLeftEdge(); + } + + } + + //line 373 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( currEdgeA.get_leftFace() == currFace )) + { + //line 374 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + nextFaceA = currEdgeA.get_rightFace(); + } + else + { + //line 376 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + nextFaceA = currEdgeA.get_leftFace(); + } + + //line 378 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( currEdgeB.get_leftFace() == currFace )) + { + //line 379 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + nextFaceB = currEdgeB.get_rightFace(); + } + else + { + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + nextFaceB = currEdgeB.get_leftFace(); + } + + //line 385 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (facesDone.get(nextFaceA)) ))) ) && ( hxDaedalus.data.math.Geom2D.distanceSquaredVertexToEdge(vC, currEdgeA) < this.diameterSquared ) )) + { + //line 387 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (currEdgeA.get_isConstrained()) + { + //line 389 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + else + { + //line 392 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceToCheck.push(nextFaceA); + //line 393 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceIsFromEdge.push(currEdgeA); + //line 394 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + facesDone.set(nextFaceA, true); + } + + } + + //line 398 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (( ( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (facesDone.get(nextFaceB)) ))) ) && ( hxDaedalus.data.math.Geom2D.distanceSquaredVertexToEdge(vC, currEdgeB) < this.diameterSquared ) )) + { + //line 400 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (currEdgeB.get_isConstrained()) + { + //line 402 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return false; + } + else + { + //line 405 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceToCheck.push(nextFaceB); + //line 406 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + vFaceIsFromEdge.push(currEdgeB); + //line 407 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + facesDone.set(nextFaceB, true); + } + + } + + } + + //line 412 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return true; + } + + } + + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (field.hashCode()) + { + case -2099968614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameterSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameterSquared = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -938578798: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.set_radius(value); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -233204595: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameter")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameter = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1769892273: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._radius = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -677179915: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radiusSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.radiusSquared = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (field.hashCode()) + { + case 1125625021: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("curFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.curFace = ((hxDaedalus.data.Face) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -938578798: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.set_radius(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -869293192: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("toFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.toFace = ((hxDaedalus.data.Face) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1769892273: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._radius = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1245086425: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("fromFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.fromFace = ((hxDaedalus.data.Face) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 3347949: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("mesh")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.set_mesh(((hxDaedalus.data.Mesh) (value) )); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -2099968614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameterSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameterSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 91082444: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_mesh")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this._mesh = ((hxDaedalus.data.Mesh) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -233204595: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameter")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.diameter = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 616703914: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("closedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.closedFaces = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -677179915: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radiusSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.radiusSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 63996880: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("sortedOpenedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.sortedOpenedFaces = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1181683957: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("iterEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.iterEdge = ((hxDaedalus.iterators.FromFaceToInnerEdges) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 512628429: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("openedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.openedFaces = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1925032183: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("predecessor")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.predecessor = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1989818108: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryEdges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryEdges = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766794: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreH")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreH = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1298266586: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryX")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryX = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766795: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreG")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreG = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1298266585: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryY")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.entryY = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766796: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreF")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.scoreF = ((haxe.ds.ObjectMap) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (field.hashCode()) + { + case 1566142678: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("isWalkableByRadius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isWalkableByRadius")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -938578798: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.get_radius(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 96567954: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("sortingFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "sortingFaces")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1769892273: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this._radius; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -679327362: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("findPath")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findPath")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 91082444: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_mesh")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this._mesh; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1415348138: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("set_mesh")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_mesh")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 616703914: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("closedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.closedFaces; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1216062705: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("set_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_radius")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 63996880: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("sortedOpenedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.sortedOpenedFaces; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1142099355: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("get_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_radius")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 512628429: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("openedFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.openedFaces; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1671767583: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("dispose")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1989818108: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryEdges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.entryEdges; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1125625021: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("curFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.curFace; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1298266586: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryX")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.entryX; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -869293192: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("toFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.toFace; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1298266585: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("entryY")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.entryY; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1245086425: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("fromFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.fromFace; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766796: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreF")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.scoreF; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -2099968614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameterSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.diameterSquared; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766795: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreG")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.scoreG; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -233204595: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameter")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.diameter; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -907766794: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("scoreH")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.scoreH; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -677179915: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radiusSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.radiusSquared; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1925032183: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("predecessor")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.predecessor; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1181683957: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("iterEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.iterEdge; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (field.hashCode()) + { + case -2099968614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameterSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.diameterSquared; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -938578798: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.get_radius(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -233204595: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("diameter")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.diameter; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1769892273: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this._radius; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -677179915: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("radiusSquared")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.radiusSquared; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + switch (field.hashCode()) + { + case 1566142678: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("isWalkableByRadius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.isWalkableByRadius(((hxDaedalus.data.Edge) (dynargs.__get(0)) ), ((hxDaedalus.data.Face) (dynargs.__get(1)) ), ((hxDaedalus.data.Edge) (dynargs.__get(2)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1671767583: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("dispose")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.dispose(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 96567954: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("sortingFaces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.sortingFaces(((hxDaedalus.data.Face) (dynargs.__get(0)) ), ((hxDaedalus.data.Face) (dynargs.__get(1)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1142099355: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("get_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.get_radius(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -679327362: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("findPath")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + this.findPath(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) ), ((haxe.root.Array) (dynargs.__get(4)) ), ((haxe.root.Array) (dynargs.__get(5)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case -1216062705: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("set_radius")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.set_radius(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + case 1415348138: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (field.equals("set_mesh")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return this.set_mesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("curFace"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("toFace"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("fromFace"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("diameterSquared"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("diameter"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("radiusSquared"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("iterEdge"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("predecessor"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("scoreH"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("scoreG"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("scoreF"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("entryY"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("entryX"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("entryEdges"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("openedFaces"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("sortedOpenedFaces"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("closedFaces"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("_mesh"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("mesh"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("_radius"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + baseArr.push("radius"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/AStar.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/ai/EntityAI.java b/src/main/java/hxDaedalus/ai/EntityAI.java new file mode 100644 index 0000000..dd02ae8 --- /dev/null +++ b/src/main/java/hxDaedalus/ai/EntityAI.java @@ -0,0 +1,1083 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai; + +import hxDaedalus.data.Obstacle; + +@SuppressWarnings(value = {"rawtypes", "unchecked"}) +public class EntityAI extends haxe.lang.HxObject { + + static { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + hxDaedalus.ai.EntityAI.NUM_SEGMENTS = 6; + } + + public EntityAI(haxe.lang.EmptyObject empty) { + } + + public EntityAI() { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + hxDaedalus.ai.EntityAI.__hx_ctor_hxDaedalus_ai_EntityAI(this); + } + + public static void __hx_ctor_hxDaedalus_ai_EntityAI(hxDaedalus.ai.EntityAI __hx_this) { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __hx_this._radius = ((double) (10)); + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __hx_this.x = __hx_this.y = ((double) (0)); + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __hx_this.dirNormX = ((double) (1)); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __hx_this.dirNormY = ((double) (0)); + } + + public static int NUM_SEGMENTS; + + public double dirNormY; + + public double dirNormX; + + public double y; + + public double x; + + public double _radius; + + public double _radiusSquared; + + public double _x; + + public double _y; + + public double _dirNormX; + + public double _dirNormY; + + public Obstacle _approximateObject; + + public void buildApproximation() { + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject = new Obstacle(); + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject.get_matrix().translate(this.x, this.y); + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + haxe.root.Array coordinates = new haxe.root.Array(); + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject.set_coordinates(coordinates); + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if ((this._radius == 0)) { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return; + } + + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + int _g = 0; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + while ((_g < 6)) { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + int i = _g++; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + coordinates.push((this._radius * java.lang.Math.cos((((2 * java.lang.Math.PI) * i) / 6)))); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + coordinates.push((this._radius * java.lang.Math.sin((((2 * java.lang.Math.PI) * i) / 6)))); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + coordinates.push((this._radius * java.lang.Math.cos((((2 * java.lang.Math.PI) * ((i + 1))) / 6)))); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + coordinates.push((this._radius * java.lang.Math.sin((((2 * java.lang.Math.PI) * ((i + 1))) / 6)))); + } + + } + + } + + public Obstacle get_approximateObject() { + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject.get_matrix().identity(); + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject.get_matrix().translate(this.x, this.y); + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._approximateObject; + } + + public double get_radius() { + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radius; + } + + public double get_radiusSquared() { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radiusSquared; + } + + public double set_radius(double value) { + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radius = value; + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radiusSquared = (this._radius * this._radius); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + @Override + public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + switch (field.hashCode()) { + case 315675887: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._dirNormY = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158032: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.dirNormY = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675886: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._dirNormX = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158031: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.dirNormX = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3066: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._y = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 121: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.y = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3065: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._x = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 120: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.x = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -1460609034: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radiusSquared = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -938578798: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.set_radius(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1769892273: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radius = ((double) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (__temp_executeDef1) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return super.__hx_setField_f(field, value, handleProperties); + } else { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + throw null; + } + + } + + } + + @Override + public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + switch (field.hashCode()) { + case -580090636: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_approximateObject")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._approximateObject = ((Obstacle) (value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158032: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.dirNormY = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675887: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._dirNormY = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158031: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.dirNormX = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675886: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._dirNormX = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 121: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.y = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3066: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._y = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 120: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.x = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3065: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._x = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -938578798: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.set_radius(((double) (haxe.lang.Runtime.toDouble(value)))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -1460609034: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radiusSquared = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1769892273: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this._radius = ((double) (haxe.lang.Runtime.toDouble(value))); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (__temp_executeDef1) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return super.__hx_setField(field, value, handleProperties); + } else { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + throw null; + } + + } + + } + + @Override + public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + switch (field.hashCode()) { + case -1216062705: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("set_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_radius"))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -347497613: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("approximateObject")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_approximateObject(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -750657332: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_radiusSquared"))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158032: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.dirNormY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1142099355: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_radius"))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158031: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.dirNormX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -2096813366: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_approximateObject")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_approximateObject"))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 121: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 209133353: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("buildApproximation")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "buildApproximation"))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 120: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -580090636: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_approximateObject")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._approximateObject; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -938578798: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radius(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675887: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._dirNormY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -677179915: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radiusSquared(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675886: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._dirNormX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1769892273: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radius; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3066: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -1460609034: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radiusSquared; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3065: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (__temp_executeDef1) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } else { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + throw null; + } + + } + + } + + @Override + public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + switch (field.hashCode()) { + case 315675887: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._dirNormY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158032: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormY")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.dirNormY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 315675886: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._dirNormX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 225158031: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("dirNormX")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.dirNormX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3066: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 121: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("y")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 3065: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 120: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("x")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -1460609034: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radiusSquared; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -938578798: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radius(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1769892273: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this._radius; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -677179915: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radiusSquared(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (__temp_executeDef1) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } else { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + throw null; + } + + } + + } + + @Override + public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + switch (field.hashCode()) { + case -1216062705: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("set_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.set_radius(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 209133353: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("buildApproximation")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + this.buildApproximation(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -750657332: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_radiusSquared")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radiusSquared(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case -2096813366: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_approximateObject")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_approximateObject(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + case 1142099355: { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (field.equals("get_radius")) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return this.get_radius(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + break; + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + if (__temp_executeDef1) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + return null; + } + + @Override + public void __hx_getFields(haxe.root.Array baseArr) { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_approximateObject"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_dirNormY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_dirNormX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_y"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_x"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_radiusSquared"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("_radius"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("radiusSquared"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("radius"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("x"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("y"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("dirNormX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("dirNormY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + baseArr.push("approximateObject"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/EntityAI.hx" + super.__hx_getFields(baseArr); + } + +} diff --git a/src/main/java/hxDaedalus/ai/Funnel.java b/src/main/java/hxDaedalus/ai/Funnel.java new file mode 100644 index 0000000..24bd716 --- /dev/null +++ b/src/main/java/hxDaedalus/ai/Funnel.java @@ -0,0 +1,2474 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Funnel extends haxe.lang.HxObject +{ + public Funnel(haxe.lang.EmptyObject empty) + { + } + + + public Funnel() + { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.ai.Funnel.__hx_ctor_hxDaedalus_ai_Funnel(this); + } + + + public static void __hx_ctor_hxDaedalus_ai_Funnel(hxDaedalus.ai.Funnel __hx_this) + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._currPoolPointsIndex = 0; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._poolPointsSize = 3000; + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._numSamplesCircle = 16; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._radiusSquared = ((double) (((int) (0.0) )) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._radius = ((double) (((int) (0.0) )) ); + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._poolPoints = new haxe.root.Array(); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g1 = 0; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g = __hx_this._poolPointsSize; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g1 < _g )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i = _g1++; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __hx_this._poolPoints.push(new hxDaedalus.data.math.Point2D(null, null)); + } + + } + + } + + + + + public double _radius; + + public double _radiusSquared; + + public int _numSamplesCircle; + + public haxe.root.Array _sampleCircle; + + public double _sampleCircleDistanceSquared; + + public void dispose() + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircle = null; + } + + + public int _poolPointsSize; + + public haxe.root.Array _poolPoints; + + public int _currPoolPointsIndex; + + public hxDaedalus.data.math.Point2D __point; + + public hxDaedalus.data.math.Point2D getPoint(java.lang.Object x, java.lang.Object y) + { + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double __temp_y2 = ( (haxe.lang.Runtime.eq(y, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(y)) )) ); + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double __temp_x1 = ( (haxe.lang.Runtime.eq(x, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(x)) )) ); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.__point = this._poolPoints.__get(this._currPoolPointsIndex); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.__point.setXY(__temp_x1, __temp_y2); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._currPoolPointsIndex++; + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( this._currPoolPointsIndex == this._poolPointsSize )) + { + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._poolPoints.push(new hxDaedalus.data.math.Point2D(null, null)); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._poolPointsSize++; + } + + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.__point; + } + + + public hxDaedalus.data.math.Point2D getCopyPoint(hxDaedalus.data.math.Point2D pointToCopy) + { + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.getPoint(pointToCopy.x, pointToCopy.y); + } + + + public double get_radius() + { + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radius; + } + + + public double set_radius(double value) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radius = java.lang.Math.max(((double) (0) ), value); + //line 74 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radiusSquared = ( this._radius * this._radius ); + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircle = new haxe.root.Array(); + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( this.get_radius() == 0 )) + { + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((double) (0) ); + } + + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g1 = 0; + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g = this._numSamplesCircle; + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g1 < _g )) + { + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i = _g1++; + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircle.push(new hxDaedalus.data.math.Point2D(( this._radius * java.lang.Math.cos(( ( ( -2 * java.lang.Math.PI ) * i ) / this._numSamplesCircle )) ), ( this._radius * java.lang.Math.sin(( ( ( -2 * java.lang.Math.PI ) * i ) / this._numSamplesCircle )) ))); + } + + } + + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircleDistanceSquared = ( ( (( this._sampleCircle.__get(0).x - this._sampleCircle.__get(1).x )) * (( this._sampleCircle.__get(0).x - this._sampleCircle.__get(1).x )) ) + ( (( this._sampleCircle.__get(0).y - this._sampleCircle.__get(1).y )) * (( this._sampleCircle.__get(0).y - this._sampleCircle.__get(1).y )) ) ); + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radius; + } + + + public void findPath(double fromX, double fromY, double toX, double toY, haxe.root.Array listFaces, haxe.root.Array listEdges, haxe.root.Array resultPath) + { + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._currPoolPointsIndex = 0; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( this._radius > 0 )) + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Face checkFace = listFaces.__get(0); + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double distanceSquared = 0.0; + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double distance = 0.0; + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D p1 = null; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D p2 = null; + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D p3 = null; + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p1 = checkFace.get_edge().get_originVertex().get_pos(); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p2 = checkFace.get_edge().get_destinationVertex().get_pos(); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p3 = checkFace.get_edge().get_nextLeftEdge().get_destinationVertex().get_pos(); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p1.x - fromX )) * (( p1.x - fromX )) ) + ( (( p1.y - fromY )) * (( p1.y - fromY )) ) ); + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromX = ( ( ( this._radius * 1.01 ) * (( (( fromX - p1.x )) / distance )) ) + p1.x ); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromY = ( ( ( this._radius * 1.01 ) * (( (( fromY - p1.y )) / distance )) ) + p1.y ); + } + else + { + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p2.x - fromX )) * (( p2.x - fromX )) ) + ( (( p2.y - fromY )) * (( p2.y - fromY )) ) ); + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromX = ( ( ( this._radius * 1.01 ) * (( (( fromX - p2.x )) / distance )) ) + p2.x ); + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromY = ( ( ( this._radius * 1.01 ) * (( (( fromY - p2.y )) / distance )) ) + p2.y ); + } + else + { + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p3.x - fromX )) * (( p3.x - fromX )) ) + ( (( p3.y - fromY )) * (( p3.y - fromY )) ) ); + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromX = ( ( ( this._radius * 1.01 ) * (( (( fromX - p3.x )) / distance )) ) + p3.x ); + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromY = ( ( ( this._radius * 1.01 ) * (( (( fromY - p3.y )) / distance )) ) + p3.y ); + } + + } + + } + + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + checkFace = listFaces.__get(( listFaces.length - 1 )); + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p1 = checkFace.get_edge().get_originVertex().get_pos(); + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p2 = checkFace.get_edge().get_destinationVertex().get_pos(); + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + p3 = checkFace.get_edge().get_nextLeftEdge().get_destinationVertex().get_pos(); + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p1.x - toX )) * (( p1.x - toX )) ) + ( (( p1.y - toY )) * (( p1.y - toY )) ) ); + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toX = ( ( ( this._radius * 1.01 ) * (( (( toX - p1.x )) / distance )) ) + p1.x ); + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toY = ( ( ( this._radius * 1.01 ) * (( (( toY - p1.y )) / distance )) ) + p1.y ); + } + else + { + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p2.x - toX )) * (( p2.x - toX )) ) + ( (( p2.y - toY )) * (( p2.y - toY )) ) ); + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toX = ( ( ( this._radius * 1.01 ) * (( (( toX - p2.x )) / distance )) ) + p2.x ); + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toY = ( ( ( this._radius * 1.01 ) * (( (( toY - p2.y )) / distance )) ) + p2.y ); + } + else + { + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distanceSquared = ( ( (( p3.x - toX )) * (( p3.x - toX )) ) + ( (( p3.y - toY )) * (( p3.y - toY )) ) ); + //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._radiusSquared )) + { + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = java.lang.Math.sqrt(distanceSquared); + //line 160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toX = ( ( ( this._radius * 1.01 ) * (( (( toX - p3.x )) / distance )) ) + p3.x ); + //line 161 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + toY = ( ( ( this._radius * 1.01 ) * (( (( toY - p3.y )) / distance )) ) + p3.y ); + } + + } + + } + + } + + //line 171 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D startPoint = null; + //line 172 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D endPoint = null; + //line 173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + startPoint = new hxDaedalus.data.math.Point2D(fromX, fromY); + //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + endPoint = new hxDaedalus.data.math.Point2D(toX, toY); + //line 176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( listFaces.length == 1 )) + { + //line 178 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(startPoint.x); + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(startPoint.y); + //line 180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(endPoint.x); + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(endPoint.y); + //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i = 0; + //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int j = 0; + //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int k = 0; + //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Edge currEdge = null; + //line 191 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Vertex currVertex = null; + //line 192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int direction = 0; + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Intersection _g = hxDaedalus.data.math.Geom2D.isInFace(fromX, fromY, listFaces.__get(0)); + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (_g.index) + { + case 1: + { + //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Edge edge = ((hxDaedalus.data.Edge) (_g.params[0]) ); + //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( listEdges.__get(0) == edge )) + { + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + listEdges.shift(); + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + listFaces.shift(); + } + + //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + default: + { + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + } + + } + + //line 214 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array funnelLeft = new haxe.root.Array(); + //line 215 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array funnelRight = new haxe.root.Array(); + //line 216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.push(startPoint); + //line 217 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.push(startPoint); + //line 220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.ds.ObjectMap verticesDoneSide = new haxe.ds.ObjectMap(); + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array pointsList = new haxe.root.Array(); + //line 224 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.ds.ObjectMap pointSides = new haxe.ds.ObjectMap(); + //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.ds.ObjectMap pointSuccessor = new haxe.ds.ObjectMap(); + //line 228 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(startPoint, 0); + //line 230 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currEdge = listEdges.__get(0); + //line 231 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int relativPos = hxDaedalus.data.math.Geom2D.getRelativePosition2(fromX, fromY, currEdge); + //line 232 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D prevPoint = null; + //line 233 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D newPointA = null; + //line 234 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D newPointB = null; + //line 235 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPointA = this.getCopyPoint(currEdge.get_destinationVertex().get_pos()); + //line 236 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPointB = this.getCopyPoint(currEdge.get_originVertex().get_pos()); + //line 238 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointsList.push(newPointA); + //line 239 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointsList.push(newPointB); + //line 240 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSuccessor.set(startPoint, newPointA); + //line 241 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSuccessor.set(newPointA, newPointB); + //line 242 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + prevPoint = newPointB; + //line 243 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( relativPos == 1 )) + { + //line 244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(newPointA, 1); + //line 245 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(newPointB, -1); + //line 246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + verticesDoneSide.set(currEdge.get_destinationVertex(), 1); + //line 247 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + verticesDoneSide.set(currEdge.get_originVertex(), -1); + } + else + { + //line 248 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( relativPos == -1 )) + { + //line 249 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(newPointA, -1); + //line 250 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(newPointB, 1); + //line 251 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + verticesDoneSide.set(currEdge.get_destinationVertex(), -1); + //line 252 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + verticesDoneSide.set(currEdge.get_originVertex(), 1); + } + + } + + //line 257 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Vertex fromVertex = listEdges.__get(0).get_originVertex(); + //line 258 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.Vertex fromFromVertex = listEdges.__get(0).get_destinationVertex(); + //line 259 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 259 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g2 = 1; + //line 259 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g1 = listEdges.length; + //line 259 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g2 < _g1 )) + { + //line 259 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i1 = _g2++; + //line 261 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currEdge = listEdges.__get(i1); + //line 262 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( currEdge.get_originVertex() == fromVertex )) + { + //line 264 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currVertex = currEdge.get_destinationVertex(); + } + else + { + //line 266 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( currEdge.get_destinationVertex() == fromVertex )) + { + //line 268 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currVertex = currEdge.get_originVertex(); + } + else + { + //line 270 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( currEdge.get_originVertex() == fromFromVertex )) + { + //line 272 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currVertex = currEdge.get_destinationVertex(); + //line 273 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromVertex = fromFromVertex; + } + else + { + //line 275 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( currEdge.get_destinationVertex() == fromFromVertex )) + { + //line 277 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currVertex = currEdge.get_originVertex(); + //line 278 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromVertex = fromFromVertex; + } + + } + + } + + } + + //line 285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPointA = this.getCopyPoint(currVertex.get_pos()); + //line 286 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointsList.push(newPointA); + //line 287 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = ( - (((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (verticesDoneSide.get(fromVertex)) ))) )) ); + //line 288 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(newPointA, direction); + //line 289 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSuccessor.set(prevPoint, newPointA); + //line 290 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + verticesDoneSide.set(currVertex, direction); + //line 291 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + prevPoint = newPointA; + //line 292 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromFromVertex = fromVertex; + //line 293 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + fromVertex = currVertex; + } + + } + + //line 296 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSuccessor.set(prevPoint, endPoint); + //line 297 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointSides.set(endPoint, 0); + //line 322 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array pathPoints = new haxe.root.Array(); + //line 323 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.ds.ObjectMap pathSides = new haxe.ds.ObjectMap(); + //line 324 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(startPoint); + //line 325 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(startPoint, 0); + //line 328 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D currPos = null; + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g21 = 0; + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g11 = pointsList.length; + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g21 < _g11 )) + { + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i2 = _g21++; + //line 330 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + currPos = pointsList.__get(i2); + //line 333 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (haxe.lang.Runtime.eq(((java.lang.Object) (pointSides.get(currPos)) ), -1)) + { + //line 336 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelLeft.length - 2 ); + //line 337 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 338 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelLeft.__get(j).x, funnelLeft.__get(j).y, funnelLeft.__get(( j + 1 )).x, funnelLeft.__get(( j + 1 )).y, currPos.x, currPos.y); + //line 339 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction != -1 )) + { + //line 343 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.shift(); + //line 344 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 344 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g4 = 0; + //line 344 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g3 = j; + //line 344 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g4 < _g3 )) + { + //line 344 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int k1 = _g4++; + //line 345 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelLeft.__get(0)); + //line 346 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelLeft.__get(0), 1); + //line 347 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.shift(); + } + + } + + //line 349 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelLeft.__get(0)); + //line 350 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelLeft.__get(0), 1); + //line 351 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.splice(0, funnelRight.length); + //line 352 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.push(funnelLeft.__get(0)); + //line 353 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.push(currPos); + //line 354 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + //line 356 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + //line 359 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.push(currPos); + //line 360 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelRight.length - 3 ); + //line 361 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 362 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelRight.__get(j).x, funnelRight.__get(j).y, funnelRight.__get(( j + 1 )).x, funnelRight.__get(( j + 1 )).y, currPos.x, currPos.y); + //line 363 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction == -1 )) + { + //line 364 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + else + { + //line 367 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.splice(( j + 1 ), 1); + } + + //line 369 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + } + else + { + //line 375 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelRight.length - 2 ); + //line 376 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 377 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelRight.__get(j).x, funnelRight.__get(j).y, funnelRight.__get(( j + 1 )).x, funnelRight.__get(( j + 1 )).y, currPos.x, currPos.y); + //line 378 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction != 1 )) + { + //line 380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.shift(); + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g41 = 0; + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g31 = j; + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g41 < _g31 )) + { + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int k2 = _g41++; + //line 382 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelRight.__get(0)); + //line 383 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelRight.__get(0), -1); + //line 384 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.shift(); + } + + } + + //line 386 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelRight.__get(0)); + //line 387 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelRight.__get(0), -1); + //line 388 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.splice(0, funnelLeft.length); + //line 389 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.push(funnelRight.__get(0)); + //line 390 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.push(currPos); + //line 391 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + //line 393 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + //line 396 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.push(currPos); + //line 397 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelLeft.length - 3 ); + //line 398 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 399 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelLeft.__get(j).x, funnelLeft.__get(j).y, funnelLeft.__get(( j + 1 )).x, funnelLeft.__get(( j + 1 )).y, currPos.x, currPos.y); + //line 400 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction == 1 )) + { + //line 401 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + else + { + //line 404 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.splice(( j + 1 ), 1); + } + + //line 406 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + } + + } + + } + + //line 413 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean blocked = false; + //line 415 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelRight.length - 2 ); + //line 416 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 417 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelRight.__get(j).x, funnelRight.__get(j).y, funnelRight.__get(( j + 1 )).x, funnelRight.__get(( j + 1 )).y, toX, toY); + //line 419 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction != 1 )) + { + //line 423 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.shift(); + //line 424 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 424 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g22 = 0; + //line 424 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g12 = ( j + 1 ); + //line 424 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g22 < _g12 )) + { + //line 424 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int k3 = _g22++; + //line 425 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelRight.__get(0)); + //line 426 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelRight.__get(0), -1); + //line 427 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelRight.shift(); + } + + } + + //line 429 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(endPoint); + //line 430 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(endPoint, 0); + //line 431 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + blocked = true; + //line 432 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + //line 434 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + //line 437 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if ( ! (blocked) ) + { + //line 441 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + j = ( funnelLeft.length - 2 ); + //line 442 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( j >= 0 )) + { + //line 443 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + direction = hxDaedalus.data.math.Geom2D.getDirection(funnelLeft.__get(j).x, funnelLeft.__get(j).y, funnelLeft.__get(( j + 1 )).x, funnelLeft.__get(( j + 1 )).y, toX, toY); + //line 445 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( direction != -1 )) + { + //line 449 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.shift(); + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g23 = 0; + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g13 = ( j + 1 ); + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g23 < _g13 )) + { + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int k4 = _g23++; + //line 451 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(funnelLeft.__get(0)); + //line 452 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(funnelLeft.__get(0), 1); + //line 453 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + funnelLeft.shift(); + } + + } + + //line 456 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(endPoint); + //line 457 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(endPoint, 0); + //line 458 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + blocked = true; + //line 459 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + //line 461 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- j; + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if ( ! (blocked) ) + { + //line 469 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathPoints.push(endPoint); + //line 470 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pathSides.set(endPoint, 0); + //line 471 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + blocked = true; + } + + //line 475 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array adjustedPoints = new haxe.root.Array(); + //line 476 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( this.get_radius() > 0 )) + { + //line 479 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array newPath = new haxe.root.Array(); + //line 481 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( pathPoints.length == 2 )) + { + //line 483 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(pathPoints.__get(0), false, pathPoints.__get(1), false, pointSides, pointSuccessor, newPath, adjustedPoints); + } + else + { + //line 485 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( pathPoints.length > 2 )) + { + //line 488 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(pathPoints.__get(0), false, pathPoints.__get(1), true, pointSides, pointSuccessor, newPath, adjustedPoints); + //line 491 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( pathPoints.length > 3 )) + { + //line 493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g24 = 1; + //line 493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g14 = ( ( pathPoints.length - 3 ) + 1 ); + //line 493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g24 < _g14 )) + { + //line 493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i3 = _g24++; + //line 494 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(pathPoints.__get(i3), true, pathPoints.__get(( i3 + 1 )), true, pointSides, pointSuccessor, newPath, adjustedPoints); + } + + } + + //line 500 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int pathLength = pathPoints.length; + //line 501 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(pathPoints.__get(( pathLength - 2 )), true, pathPoints.__get(( pathLength - 1 )), false, pointSides, pointSuccessor, newPath, adjustedPoints); + } + + } + + //line 504 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPath.push(endPoint); + //line 507 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.checkAdjustedPath(newPath, adjustedPoints, pointSides); + //line 509 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array smoothPoints = new haxe.root.Array(); + //line 510 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + i = ( newPath.length - 2 ); + //line 511 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( i >= 1 )) + { + //line 512 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.smoothAngle(adjustedPoints.__get(( ( i * 2 ) - 1 )), newPath.__get(i), adjustedPoints.__get(( i * 2 )), ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(newPath.__get(i))) ))) ), smoothPoints); + //line 513 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( smoothPoints.length != 0 )) + { + //line 515 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int temp = ( i * 2 ); + //line 516 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.splice(temp, 0); + //line 517 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.insert(temp, ((hxDaedalus.data.math.Point2D) (smoothPoints.pop()) )); + } + + //line 519 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- i; + } + + } + else + { + //line 524 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints = pathPoints; + } + + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g25 = 0; + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g15 = adjustedPoints.length; + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g25 < _g15 )) + { + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i4 = _g25++; + //line 530 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(adjustedPoints.__get(i4).x); + //line 531 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + resultPath.push(adjustedPoints.__get(i4).y); + } + + } + + } + + + public void adjustWithTangents(hxDaedalus.data.math.Point2D p1, boolean applyRadiusToP1, hxDaedalus.data.math.Point2D p2, boolean applyRadiusToP2, haxe.ds.ObjectMap pointSides, haxe.ds.ObjectMap pointSuccessor, haxe.root.Array newPath, haxe.root.Array adjustedPoints) + { + //line 543 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array tangentsResult = new haxe.root.Array(); + //line 545 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int side1 = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(p1)) ))) ); + //line 546 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int side2 = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(p2)) ))) ); + //line 548 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pTangent1 = null; + //line 549 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pTangent2 = null; + //line 552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ! (applyRadiusToP1) && ! (applyRadiusToP2) )) + { + //line 555 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = p1; + //line 556 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = p2; + } + else + { + //line 559 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if ( ! (applyRadiusToP1) ) + { + //line 562 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (hxDaedalus.data.math.Geom2D.tangentsPointToCircle(p1.x, p1.y, p2.x, p2.y, this._radius, tangentsResult)) + { + //line 564 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( side2 == 1 )) + { + //line 566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = p1; + //line 567 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + } + else + { + //line 572 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = p1; + //line 573 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + } + + } + else + { + //line 577 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + } + else + { + //line 581 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if ( ! (applyRadiusToP2) ) + { + //line 584 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (hxDaedalus.data.math.Geom2D.tangentsPointToCircle(p2.x, p2.y, p1.x, p1.y, this._radius, tangentsResult)) + { + //line 585 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( tangentsResult.length > 0 )) + { + //line 588 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( side1 == 1 )) + { + //line 590 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 591 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = p2; + } + else + { + //line 596 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 597 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = p2; + } + + } + + } + else + { + //line 602 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + } + else + { + //line 610 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == 1 ) && ( side2 == 1 ) )) + { + //line 612 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsParalCircleToCircle(this._radius, p1.x, p1.y, p2.x, p2.y, tangentsResult); + //line 614 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 615 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(4))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(5))) )); + } + else + { + //line 618 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == -1 ) && ( side2 == -1 ) )) + { + //line 620 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsParalCircleToCircle(this._radius, p1.x, p1.y, p2.x, p2.y, tangentsResult); + //line 622 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 623 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(6))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(7))) )); + } + else + { + //line 626 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == 1 ) && ( side2 == -1 ) )) + { + //line 628 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (hxDaedalus.data.math.Geom2D.tangentsCrossCircleToCircle(this._radius, p1.x, p1.y, p2.x, p2.y, tangentsResult)) + { + //line 631 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 632 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(6))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(7))) )); + } + else + { + //line 639 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + } + else + { + //line 645 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (hxDaedalus.data.math.Geom2D.tangentsCrossCircleToCircle(this._radius, p1.x, p1.y, p2.x, p2.y, tangentsResult)) + { + //line 648 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 649 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(4))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(5))) )); + } + else + { + //line 656 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + } + + } + + } + + } + + } + + } + + //line 661 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D successor = ((hxDaedalus.data.math.Point2D) (pointSuccessor.get(p1)) ); + //line 662 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double distance = 0.0; + //line 663 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( successor != p2 )) + { + //line 665 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + distance = hxDaedalus.data.math.Geom2D.distanceSquaredPointToSegment(successor.x, successor.y, pTangent1.x, pTangent1.y, pTangent2.x, pTangent2.y); + //line 666 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distance < this._radiusSquared )) + { + //line 668 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(p1, applyRadiusToP1, successor, true, pointSides, pointSuccessor, newPath, adjustedPoints); + //line 669 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(successor, true, p2, applyRadiusToP2, pointSides, pointSuccessor, newPath, adjustedPoints); + //line 670 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + else + { + //line 674 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + successor = ((hxDaedalus.data.math.Point2D) (pointSuccessor.get(successor)) ); + } + + } + + //line 693 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.push(pTangent1); + //line 694 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.push(pTangent2); + //line 695 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPath.push(p1); + } + + + public void checkAdjustedPath(haxe.root.Array newPath, haxe.root.Array adjustedPoints, haxe.ds.ObjectMap pointSides) + { + //line 701 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean needCheck = true; + //line 703 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D point0 = null; + //line 704 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int point0Side = 0; + //line 705 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D point1 = null; + //line 706 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int point1Side = 0; + //line 707 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D point2 = null; + //line 708 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int point2Side = 0; + //line 710 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pt1 = null; + //line 711 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pt2 = null; + //line 712 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pt3 = null; + //line 713 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double dot = 0.0; + //line 715 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + haxe.root.Array tangentsResult = new haxe.root.Array(); + //line 716 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pTangent1 = null; + //line 717 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Point2D pTangent2 = null; + //line 719 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (needCheck) + { + //line 721 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + needCheck = false; + //line 722 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i = 2; + //line 723 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( i < newPath.length )) + { + //line 724 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point2 = newPath.__get(i); + //line 725 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point2Side = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(point2)) ))) ); + //line 726 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point1 = newPath.__get(( i - 1 )); + //line 727 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point1Side = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(point1)) ))) ); + //line 728 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point0 = newPath.__get(( i - 2 )); + //line 729 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + point0Side = ((int) (haxe.lang.Runtime.toInt(((java.lang.Object) (pointSides.get(point0)) ))) ); + //line 731 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( point1Side == point2Side )) + { + //line 733 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pt1 = adjustedPoints.__get(( (( i - 2 )) * 2 )); + //line 734 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pt2 = adjustedPoints.__get(( ( (( i - 1 )) * 2 ) - 1 )); + //line 735 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pt3 = adjustedPoints.__get(( (( i - 1 )) * 2 )); + //line 736 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + dot = ( ( (( pt1.x - pt2.x )) * (( pt3.x - pt2.x )) ) + ( (( pt1.y - pt2.y )) * (( pt3.y - pt2.y )) ) ); + //line 737 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( dot > 0 )) + { + //line 742 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( i == 2 )) + { + //line 745 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsPointToCircle(point0.x, point0.y, point2.x, point2.y, this._radius, tangentsResult); + //line 747 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( point2Side == 1 )) + { + //line 749 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = point0; + //line 750 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + } + else + { + //line 754 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = point0; + //line 755 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + } + + } + else + { + //line 758 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( i == ( newPath.length - 1 ) )) + { + //line 761 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsPointToCircle(point2.x, point2.y, point0.x, point0.y, this._radius, tangentsResult); + //line 763 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( point0Side == 1 )) + { + //line 765 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 766 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = point2; + } + else + { + //line 771 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 772 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = point2; + } + + } + else + { + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( point0Side == 1 ) && ( point2Side == -1 ) )) + { + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsCrossCircleToCircle(this._radius, point0.x, point0.y, point2.x, point2.y, tangentsResult); + //line 783 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 784 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(6))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(7))) )); + } + else + { + //line 787 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( point0Side == -1 ) && ( point2Side == 1 ) )) + { + //line 790 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsCrossCircleToCircle(this._radius, point0.x, point0.y, point2.x, point2.y, tangentsResult); + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 793 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(4))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(5))) )); + } + else + { + //line 796 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( point0Side == 1 ) && ( point2Side == 1 ) )) + { + //line 799 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsParalCircleToCircle(this._radius, point0.x, point0.y, point2.x, point2.y, tangentsResult); + //line 801 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(3))) )); + //line 802 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(4))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(5))) )); + } + else + { + //line 805 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( point0Side == -1 ) && ( point2Side == -1 ) )) + { + //line 808 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + hxDaedalus.data.math.Geom2D.tangentsParalCircleToCircle(this._radius, point0.x, point0.y, point2.x, point2.y, tangentsResult); + //line 810 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent1 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(1))) )); + //line 811 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pTangent2 = this.getPoint(((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(6))) ), ((double) (haxe.lang.Runtime.toDouble(tangentsResult.__get(7))) )); + } + + } + + } + + } + + } + + } + + //line 814 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int temp = ( (( i - 2 )) * 2 ); + //line 815 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.splice(temp, 1); + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.insert(temp, pTangent1); + //line 817 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + temp = ( ( i * 2 ) - 1 ); + //line 818 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.splice(temp, 1); + //line 819 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.insert(temp, pTangent2); + //line 822 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + newPath.splice(( i - 1 ), 1); + //line 823 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + adjustedPoints.splice(( ( (( i - 1 )) * 2 ) - 1 ), 2); + //line 825 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + tangentsResult.splice(0, tangentsResult.length); + //line 826 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + -- i; + } + + } + + //line 829 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + ++ i; + } + + } + + } + + + public void smoothAngle(hxDaedalus.data.math.Point2D prevPoint, hxDaedalus.data.math.Point2D pointToSmooth, hxDaedalus.data.math.Point2D nextPoint, int side, haxe.root.Array encirclePoints) + { + //line 836 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int angleType = hxDaedalus.data.math.Geom2D.getDirection(prevPoint.x, prevPoint.y, pointToSmooth.x, pointToSmooth.y, nextPoint.x, nextPoint.y); + //line 846 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double distanceSquared = ( ( (( prevPoint.x - nextPoint.x )) * (( prevPoint.x - nextPoint.x )) ) + ( (( prevPoint.y - nextPoint.y )) * (( prevPoint.y - nextPoint.y )) ) ); + //line 847 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( distanceSquared <= this._sampleCircleDistanceSquared )) + { + //line 848 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ; + } + + //line 850 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int index = 0; + //line 851 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int side1 = 0; + //line 852 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int side2 = 0; + //line 853 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean pointInArea = false; + //line 854 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double xToCheck = 0.0; + //line 855 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + double yToCheck = 0.0; + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g1 = 0; + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int _g = this._numSamplesCircle; + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + while (( _g1 < _g )) + { + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + int i = _g1++; + //line 857 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointInArea = false; + //line 858 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + xToCheck = ( pointToSmooth.x + this._sampleCircle.__get(i).x ); + //line 859 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + yToCheck = ( pointToSmooth.y + this._sampleCircle.__get(i).y ); + //line 860 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + side1 = hxDaedalus.data.math.Geom2D.getDirection(prevPoint.x, prevPoint.y, pointToSmooth.x, pointToSmooth.y, xToCheck, yToCheck); + //line 861 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + side2 = hxDaedalus.data.math.Geom2D.getDirection(pointToSmooth.x, pointToSmooth.y, nextPoint.x, nextPoint.y, xToCheck, yToCheck); + //line 864 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( side == 1 )) + { + //line 868 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( angleType == -1 )) + { + //line 871 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == -1 ) && ( side2 == -1 ) )) + { + //line 872 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointInArea = true; + } + + } + else + { + //line 878 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == -1 ) || ( side2 == -1 ) )) + { + //line 879 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointInArea = true; + } + + } + + } + else + { + //line 886 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( angleType == 1 )) + { + //line 888 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == 1 ) && ( side2 == 1 ) )) + { + //line 889 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointInArea = true; + } + + } + else + { + //line 894 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( ( side1 == 1 ) || ( side2 == 1 ) )) + { + //line 895 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + pointInArea = true; + } + + } + + } + + //line 898 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (pointInArea) + { + //line 900 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + encirclePoints.splice(index, 0); + //line 901 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + encirclePoints.insert(index, new hxDaedalus.data.math.Point2D(xToCheck, yToCheck)); + //line 902 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + ++ index; + } + else + { + //line 905 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + index = 0; + } + + } + + } + + //line 907 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (( side == -1 )) + { + //line 908 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + encirclePoints.reverse(); + } + + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (field.hashCode()) + { + case 127970466: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_currPoolPointsIndex")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._currPoolPointsIndex = ((int) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -938578798: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.set_radius(value); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2115827423: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPointsSize")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._poolPointsSize = ((int) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1769892273: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radius = ((double) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1835192057: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircleDistanceSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircleDistanceSquared = ((double) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1460609034: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radiusSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radiusSquared = ((double) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1630359218: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_numSamplesCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._numSamplesCircle = ((int) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (field.hashCode()) + { + case 1240118704: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("__point")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.__point = ((hxDaedalus.data.math.Point2D) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -938578798: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.set_radius(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 127970466: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_currPoolPointsIndex")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._currPoolPointsIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1769892273: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radius = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1430303166: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPoints")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._poolPoints = ((haxe.root.Array) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1460609034: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radiusSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._radiusSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2115827423: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPointsSize")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._poolPointsSize = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1630359218: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_numSamplesCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._numSamplesCircle = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1835192057: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircleDistanceSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircleDistanceSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1836065017: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this._sampleCircle = ((haxe.root.Array) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (field.hashCode()) + { + case -404590651: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("smoothAngle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "smoothAngle")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -938578798: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.get_radius(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1381532965: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("checkAdjustedPath")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "checkAdjustedPath")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1769892273: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radius; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2118091491: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("adjustWithTangents")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "adjustWithTangents")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1460609034: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radiusSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radiusSquared; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -679327362: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("findPath")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findPath")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1630359218: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_numSamplesCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._numSamplesCircle; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1216062705: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("set_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_radius")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1836065017: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._sampleCircle; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1142099355: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("get_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_radius")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1835192057: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircleDistanceSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._sampleCircleDistanceSquared; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1482066021: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("getCopyPoint")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getCopyPoint")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1671767583: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("dispose")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1962671066: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("getPoint")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPoint")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2115827423: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPointsSize")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._poolPointsSize; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1240118704: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("__point")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.__point; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1430303166: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPoints")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._poolPoints; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 127970466: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_currPoolPointsIndex")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._currPoolPointsIndex; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (field.hashCode()) + { + case 127970466: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_currPoolPointsIndex")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((double) (this._currPoolPointsIndex) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -938578798: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.get_radius(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2115827423: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_poolPointsSize")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((double) (this._poolPointsSize) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1769892273: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radius; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1835192057: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_sampleCircleDistanceSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._sampleCircleDistanceSquared; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1460609034: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_radiusSquared")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this._radiusSquared; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1630359218: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("_numSamplesCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return ((double) (this._numSamplesCircle) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + switch (field.hashCode()) + { + case -404590651: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("smoothAngle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.smoothAngle(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) ), ((hxDaedalus.data.math.Point2D) (dynargs.__get(1)) ), ((hxDaedalus.data.math.Point2D) (dynargs.__get(2)) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(3))) ), ((haxe.root.Array) (dynargs.__get(4)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1671767583: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("dispose")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.dispose(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1381532965: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("checkAdjustedPath")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.checkAdjustedPath(((haxe.root.Array) (dynargs.__get(0)) ), ((haxe.root.Array) (dynargs.__get(1)) ), ((haxe.ds.ObjectMap) (dynargs.__get(2)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1962671066: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("getPoint")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.getPoint(dynargs.__get(0), dynargs.__get(1)); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 2118091491: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("adjustWithTangents")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.adjustWithTangents(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) ), haxe.lang.Runtime.toBool(dynargs.__get(1)), ((hxDaedalus.data.math.Point2D) (dynargs.__get(2)) ), haxe.lang.Runtime.toBool(dynargs.__get(3)), ((haxe.ds.ObjectMap) (dynargs.__get(4)) ), ((haxe.ds.ObjectMap) (dynargs.__get(5)) ), ((haxe.root.Array) (dynargs.__get(6)) ), ((haxe.root.Array) (dynargs.__get(7)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1482066021: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("getCopyPoint")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.getCopyPoint(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -679327362: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("findPath")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + this.findPath(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) ), ((haxe.root.Array) (dynargs.__get(4)) ), ((haxe.root.Array) (dynargs.__get(5)) ), ((haxe.root.Array) (dynargs.__get(6)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case 1142099355: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("get_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.get_radius(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + case -1216062705: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (field.equals("set_radius")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return this.set_radius(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("__point"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_currPoolPointsIndex"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_poolPoints"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_poolPointsSize"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_sampleCircleDistanceSquared"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_sampleCircle"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_numSamplesCircle"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_radiusSquared"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("_radius"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + baseArr.push("radius"); + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/Funnel.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/ai/PathFinder.java b/src/main/java/hxDaedalus/ai/PathFinder.java new file mode 100644 index 0000000..4175e94 --- /dev/null +++ b/src/main/java/hxDaedalus/ai/PathFinder.java @@ -0,0 +1,720 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class PathFinder extends haxe.lang.HxObject +{ + public PathFinder(haxe.lang.EmptyObject empty) + { + } + + + public PathFinder() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + hxDaedalus.ai.PathFinder.__hx_ctor_hxDaedalus_ai_PathFinder(this); + } + + + public static void __hx_ctor_hxDaedalus_ai_PathFinder(hxDaedalus.ai.PathFinder __hx_this) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __hx_this.astar = new hxDaedalus.ai.AStar(); + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __hx_this.funnel = new hxDaedalus.ai.Funnel(); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __hx_this.listFaces = new haxe.root.Array(); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __hx_this.listEdges = new haxe.root.Array(); + } + + + public hxDaedalus.ai.EntityAI entity; + + + + public hxDaedalus.data.Mesh _mesh; + + public hxDaedalus.ai.AStar astar; + + public hxDaedalus.ai.Funnel funnel; + + public double radius; + + public haxe.root.Array listFaces; + + public haxe.root.Array listEdges; + + public void dispose() + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this._mesh = null; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar.dispose(); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar = null; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.funnel.dispose(); + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.funnel = null; + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listEdges = null; + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listFaces = null; + } + + + public hxDaedalus.data.Mesh get_mesh() + { + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this._mesh; + } + + + public hxDaedalus.data.Mesh set_mesh(hxDaedalus.data.Mesh value) + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this._mesh = value; + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar.set_mesh(this._mesh); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + + public void findPath(double toX, double toY, haxe.root.Array resultPath) + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + resultPath.splice(0, resultPath.length); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean cond = ( this._mesh == null ); + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean cond1 = ( this.entity == null ); + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (hxDaedalus.data.math.Geom2D.isCircleIntersectingAnyConstraint(toX, toY, this.entity.get_radius(), this._mesh)) + { + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ; + } + + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar.set_radius(this.entity.get_radius()); + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.funnel.set_radius(this.entity.get_radius()); + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listFaces.splice(0, this.listFaces.length); + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listEdges.splice(0, this.listEdges.length); + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar.findPath(this.entity.x, this.entity.y, toX, toY, this.listFaces, this.listEdges); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (( this.listFaces.length == 0 )) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ; + } + + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.funnel.findPath(this.entity.x, this.entity.y, toX, toY, this.listFaces, this.listEdges, resultPath); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean __temp_executeDef1 = true; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + switch (field.hashCode()) + { + case -938578798: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("radius")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.radius = ((double) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (__temp_executeDef1) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean __temp_executeDef1 = true; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + switch (field.hashCode()) + { + case -1248568232: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("listEdges")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listEdges = ((haxe.root.Array) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1298275357: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("entity")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.entity = ((hxDaedalus.ai.EntityAI) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1247737928: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("listFaces")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.listFaces = ((haxe.root.Array) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 3347949: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.set_mesh(((hxDaedalus.data.Mesh) (value) )); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -938578798: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("radius")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.radius = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 91082444: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this._mesh = ((hxDaedalus.data.Mesh) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1263355978: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("funnel")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.funnel = ((hxDaedalus.ai.Funnel) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 93122099: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("astar")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.astar = ((hxDaedalus.ai.AStar) (value) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return value; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (__temp_executeDef1) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean __temp_executeDef1 = true; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + switch (field.hashCode()) + { + case -679327362: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("findPath")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findPath")) ); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1298275357: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("entity")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.entity; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1415348138: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("set_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_mesh")) ); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 3347949: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.get_mesh(); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1976460598: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("get_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_mesh")) ); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 91082444: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this._mesh; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1671767583: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("dispose")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 93122099: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("astar")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.astar; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1248568232: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("listEdges")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.listEdges; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1263355978: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("funnel")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.funnel; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -1247737928: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("listFaces")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.listFaces; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case -938578798: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("radius")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.radius; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (__temp_executeDef1) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean __temp_executeDef1 = true; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + switch (field.hashCode()) + { + case -938578798: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("radius")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.radius; + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (__temp_executeDef1) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + boolean __temp_executeDef1 = true; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + switch (field.hashCode()) + { + case -679327362: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("findPath")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.findPath(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((haxe.root.Array) (dynargs.__get(2)) )); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1671767583: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("dispose")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + this.dispose(); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1415348138: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("set_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.set_mesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) )); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + case 1976460598: + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (field.equals("get_mesh")) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + __temp_executeDef1 = false; + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return this.get_mesh(); + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + break; + } + + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + if (__temp_executeDef1) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("listEdges"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("listFaces"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("radius"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("funnel"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("astar"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("_mesh"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("mesh"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + baseArr.push("entity"); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/PathFinder.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java b/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java new file mode 100644 index 0000000..4651fde --- /dev/null +++ b/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java @@ -0,0 +1,2245 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai.trajectory; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class LinearPathSampler extends haxe.lang.HxObject +{ + public LinearPathSampler(haxe.lang.EmptyObject empty) + { + } + + + public LinearPathSampler() + { + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + hxDaedalus.ai.trajectory.LinearPathSampler.__hx_ctor_hxDaedalus_ai_trajectory_LinearPathSampler(this); + } + + + public static void __hx_ctor_hxDaedalus_ai_trajectory_LinearPathSampler(hxDaedalus.ai.trajectory.LinearPathSampler __hx_this) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __hx_this._samplingDistanceSquared = ((double) (((int) (1.0) )) ); + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __hx_this._samplingDistance = ((double) (((int) (1.0) )) ); + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __hx_this._preCompX = new haxe.root.Array(); + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __hx_this._preCompY = new haxe.root.Array(); + } + + + public static double pythag(double a, double b) + { + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); + } + + + public hxDaedalus.ai.EntityAI entity; + + + + + + + + + + + + + + + + + + public hxDaedalus.ai.EntityAI _entity; + + public double _currentX; + + public double _currentY; + + public boolean _hasPrev; + + public boolean _hasNext; + + public double _samplingDistance; + + public double _samplingDistanceSquared; + + public haxe.root.Array _path; + + public int _iPrev; + + public int _iNext; + + public boolean _preComputed; + + public int _count; + + public haxe.root.Array _preCompX; + + public haxe.root.Array _preCompY; + + public void dispose() + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.entity = null; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._path = null; + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompX = null; + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompY = null; + } + + + public double get_x() + { + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentX; + } + + + public double get_y() + { + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentY; + } + + + public boolean get_hasPrev() + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._hasPrev; + } + + + public boolean get_hasNext() + { + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._hasNext; + } + + + public int get_count() + { + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._count; + } + + + public int set_count(int value) + { + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = value; + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._count < 0 )) + { + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = 0; + } + + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._count > ( this.get_countMax() - 1 ) )) + { + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = ( this.get_countMax() - 1 ); + } + + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = ( (( this._count == 0 )) ? (false) : (true) ); + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = ( (( this._count == ( this.get_countMax() - 1 ) )) ? (false) : (true) ); + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._count; + } + + + public int get_countMax() + { + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ( this._preCompX.length - 1 ); + } + + + public double get_samplingDistance() + { + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._samplingDistance; + } + + + public double set_samplingDistance(double value) + { + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistance = value; + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistanceSquared = ( this._samplingDistance * this._samplingDistance ); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + + public haxe.root.Array set_path(haxe.root.Array value) + { + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._path = value; + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preComputed = false; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.reset(); + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + + public void reset() + { + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._path.length > 0 )) + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean cond = ( (( this._path.length & 1 )) == 0 ); + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(0))) ); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(1))) ); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev = 0; + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext = 2; + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = false; + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = true; + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = 0; + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + } + else + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = false; + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = false; + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = 0; + } + + } + + + public void preCompute() + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompX.splice(0, this._preCompX.length); + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompY.splice(0, this._preCompY.length); + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = 0; + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompX.push(this._currentX); + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompY.push(this._currentY); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preComputed = false; + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + while (this.next()) + { + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompX.push(this._currentX); + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompY.push(this._currentY); + } + + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.reset(); + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preComputed = true; + } + + + public boolean prev() + { + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if ( ! (this._hasPrev) ) + { + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return false; + } + + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = true; + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (this._preComputed) + { + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count--; + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._count == 0 )) + { + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = false; + } + + //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); + //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double remainingDist = this._samplingDistance; + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double dist = ((double) (0) ); + //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + while (true) + { + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double pathPrev = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ); + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double pathPrev1 = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ); + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double a = ( this._currentX - pathPrev ); + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double b = ( this._currentY - pathPrev1 ); + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + dist = java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); + //line 155 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( dist < remainingDist )) + { + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + remainingDist -= dist; + //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev -= 2; + //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext -= 2; + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._iNext == 0 )) + { + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + } + else + { + //line 161 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + } + + //line 164 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._iNext == 0 )) + { + //line 165 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(0))) ); + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(1))) ); + //line 167 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = false; + //line 168 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext = 2; + //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev = 0; + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 171 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + else + { + //line 173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ) - this._currentX )) * remainingDist ) / dist ); + //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ) - this._currentY )) * remainingDist ) / dist ); + //line 175 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + + } + + + public boolean next() + { + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if ( ! (this._hasNext) ) + { + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return false; + } + + //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = true; + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (this._preComputed) + { + //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count++; + //line 185 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._count == ( this._preCompX.length - 1 ) )) + { + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = false; + } + + //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); + //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); + //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + + //line 192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double remainingDist = this._samplingDistance; + //line 193 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double dist = ((double) (0) ); + //line 194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + while (true) + { + //line 196 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double pathNext = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ); + //line 197 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double pathNext1 = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ); + //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double a = ( this._currentX - pathNext ); + //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + double b = ( this._currentY - pathNext1 ); + //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + dist = java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( dist < remainingDist )) + { + //line 200 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + remainingDist -= dist; + //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ); + //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ); + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev += 2; + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext += 2; + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._iNext == this._path.length )) + { + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + } + else + { + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + } + + //line 209 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this._iNext == this._path.length )) + { + //line 210 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ); + //line 211 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ); + //line 212 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = false; + //line 213 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext = ( this._path.length - 2 ); + //line 214 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev = ( this._iNext - 2 ); + //line 215 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + else + { + //line 218 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ) - this._currentX )) * remainingDist ) / dist ); + //line 219 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ) - this._currentY )) * remainingDist ) / dist ); + //line 220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + //line 221 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return true; + } + + } + + + public void updateEntity() + { + //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (( this.entity == null )) + { + //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ; + } + + //line 227 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean cond = ( java.lang.Double.isNaN(this._currentX) && java.lang.Double.isNaN(this._currentY) ); + //line 228 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.entity.x = this._currentX; + //line 229 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.entity.y = this._currentY; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + switch (field.hashCode()) + { + case -1480346608: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = ((int) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 94851343: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.set_count(((int) (value) )); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475803651: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext = ((int) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -363992836: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.set_samplingDistance(value); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475732163: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev = ((int) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920350: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 437299980: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistanceSquared")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistanceSquared = ((double) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920351: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -648590501: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistance = ((double) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + switch (field.hashCode()) + { + case -1230180442: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preCompY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompY = ((haxe.root.Array) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1298275357: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("entity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.entity = ((hxDaedalus.ai.EntityAI) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1230180443: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preCompX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preCompX = ((haxe.root.Array) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 94851343: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.set_count(((int) (haxe.lang.Runtime.toInt(value)) )); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1480346608: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._count = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -363992836: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.set_samplingDistance(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 651338001: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preComputed")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._preComputed = haxe.lang.Runtime.toBool(value); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 3433509: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("path")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.set_path(((haxe.root.Array) (value) )); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475803651: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iNext = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1410195714: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_entity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._entity = ((hxDaedalus.ai.EntityAI) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475732163: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._iPrev = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920350: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 91168004: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_path")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._path = ((haxe.root.Array) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920351: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 437299980: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistanceSquared")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistanceSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1239911762: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_hasPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasPrev = haxe.lang.Runtime.toBool(value); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -648590501: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._samplingDistance = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1239983250: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_hasNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this._hasNext = haxe.lang.Runtime.toBool(value); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + switch (field.hashCode()) + { + case -1346531828: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("updateEntity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateEntity")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1298275357: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("entity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.entity; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 3377907: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("next")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 120: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("x")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_x(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 3449395: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("prev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prev")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 121: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("y")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_y(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 2119286804: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("preCompute")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "preCompute")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 696830957: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("hasPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_hasPrev(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 108404047: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("reset")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reset")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 696759469: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("hasNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_hasNext(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1415433698: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_path")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_path")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 94851343: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_count(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 492674873: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_samplingDistance")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -372044331: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("countMax")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_countMax(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1103598277: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_samplingDistance")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -363992836: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_samplingDistance(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1999868062: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_countMax")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_countMax")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1410195714: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_entity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._entity; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 917184242: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_count")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920350: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentX; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1131801318: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_count")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920351: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentY; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 773272772: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_hasNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasNext")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1239911762: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_hasPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._hasPrev; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 773344260: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_hasPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasPrev")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1239983250: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_hasNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._hasNext; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 98246096: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_y")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_y")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -648590501: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._samplingDistance; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 98246095: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_x")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_x")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 437299980: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistanceSquared")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._samplingDistanceSquared; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1671767583: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("dispose")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 91168004: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_path")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._path; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1230180442: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preCompY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._preCompY; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475732163: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._iPrev; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1230180443: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preCompX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._preCompX; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475803651: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._iNext; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1480346608: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._count; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 651338001: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_preComputed")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._preComputed; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + switch (field.hashCode()) + { + case -1480346608: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((double) (this._count) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 120: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("x")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_x(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475803651: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((double) (this._iNext) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 121: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("y")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_y(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -1475732163: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_iPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((double) (this._iPrev) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 94851343: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((double) (this.get_count()) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 437299980: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistanceSquared")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._samplingDistanceSquared; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -372044331: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("countMax")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return ((double) (this.get_countMax()) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -648590501: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._samplingDistance; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case -363992836: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_samplingDistance(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920351: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentY; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 665920350: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("_currentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this._currentX; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + switch (field.hashCode()) + { + case -1346531828: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("updateEntity")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.updateEntity(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1671767583: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("dispose")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.dispose(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 3377907: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("next")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.next(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 98246095: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_x")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_x(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 3449395: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("prev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.prev(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 98246096: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_y")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_y(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 2119286804: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("preCompute")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.preCompute(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 773344260: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_hasPrev")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_hasPrev(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 108404047: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("reset")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + this.reset(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 773272772: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_hasNext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_hasNext(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1415433698: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_path")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.set_path(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1131801318: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_count(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 492674873: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.set_samplingDistance(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 917184242: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("set_count")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.set_count(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1103598277: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_samplingDistance")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_samplingDistance(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + case 1999868062: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (field.equals("get_countMax")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return this.get_countMax(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_preCompY"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_preCompX"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_count"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_preComputed"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_iNext"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_iPrev"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_path"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_samplingDistanceSquared"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_samplingDistance"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_hasNext"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_hasPrev"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_currentY"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_currentX"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("_entity"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("path"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("samplingDistance"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("countMax"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("count"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("hasNext"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("hasPrev"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("y"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("x"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + baseArr.push("entity"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java b/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java new file mode 100644 index 0000000..ffc13bb --- /dev/null +++ b/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java @@ -0,0 +1,1438 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.ai.trajectory; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class PathIterator extends haxe.lang.HxObject +{ + public PathIterator(haxe.lang.EmptyObject empty) + { + } + + + public PathIterator() + { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + hxDaedalus.ai.trajectory.PathIterator.__hx_ctor_hxDaedalus_ai_trajectory_PathIterator(this); + } + + + public static void __hx_ctor_hxDaedalus_ai_trajectory_PathIterator(hxDaedalus.ai.trajectory.PathIterator __hx_this) + { + } + + + + + + + + + + + + + + + + + + + public hxDaedalus.ai.EntityAI _entity; + + public double _currentX; + + public double _currentY; + + public boolean _hasPrev; + + public boolean _hasNext; + + public haxe.root.Array _path; + + public int _count; + + public int _countMax; + + public hxDaedalus.ai.EntityAI get_entity() + { + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._entity; + } + + + public hxDaedalus.ai.EntityAI set_entity(hxDaedalus.ai.EntityAI value) + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._entity = value; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + + public double get_x() + { + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentX; + } + + + public double get_y() + { + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentY; + } + + + public boolean get_hasPrev() + { + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._hasPrev; + } + + + public boolean get_hasNext() + { + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._hasNext; + } + + + public int get_count() + { + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._count; + } + + + public int get_countMax() + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._countMax; + } + + + public haxe.root.Array set_path(haxe.root.Array value) + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._path = value; + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._countMax = ((int) (( this._path.length / 2 )) ); + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.reset(); + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + + public void reset() + { + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._count = 0; + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._count))) ); + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count + 1 )))) ); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.updateEntity(); + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasPrev = false; + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasNext = ( this._path.length > 2 ); + } + + + public boolean prev() + { + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if ( ! (this._hasPrev) ) + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return false; + } + + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasNext = true; + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._count--; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count * 2 )))) ); + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( ( this._count * 2 ) + 1 )))) ); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.updateEntity(); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (( this._count == 0 )) + { + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasPrev = false; + } + + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return true; + } + + + public boolean next() + { + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if ( ! (this._hasNext) ) + { + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return false; + } + + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasPrev = true; + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._count++; + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count * 2 )))) ); + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( ( this._count * 2 ) + 1 )))) ); + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.updateEntity(); + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (( ( (( this._count + 1 )) * 2 ) == this._path.length )) + { + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasNext = false; + } + + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return true; + } + + + public void updateEntity() + { + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (( this._entity == null )) + { + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ; + } + + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._entity.x = this._currentX; + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._entity.y = this._currentY; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + switch (field.hashCode()) + { + case -281526476: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._countMax = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920350: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentX = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1480346608: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._count = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920351: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentY = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + switch (field.hashCode()) + { + case -281526476: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._countMax = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1298275357: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.set_entity(((hxDaedalus.ai.EntityAI) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1480346608: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._count = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 3433509: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("path")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.set_path(((haxe.root.Array) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 91168004: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_path")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._path = ((haxe.root.Array) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1410195714: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._entity = ((hxDaedalus.ai.EntityAI) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1239983250: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_hasNext")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasNext = haxe.lang.Runtime.toBool(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920350: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentX = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1239911762: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_hasPrev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._hasPrev = haxe.lang.Runtime.toBool(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920351: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this._currentY = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + switch (field.hashCode()) + { + case -1346531828: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("updateEntity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateEntity")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1298275357: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_entity(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 108404047: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("reset")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reset")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 696830957: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("hasPrev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_hasPrev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1415433698: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("set_path")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_path")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 696759469: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("hasNext")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_hasNext(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1999868062: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_countMax")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 94851343: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_count(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1131801318: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_count")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -372044331: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_countMax(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 773272772: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_hasNext")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasNext")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1410195714: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._entity; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 773344260: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_hasPrev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasPrev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920350: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 98246096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_y")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920351: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 98246095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_x")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1239911762: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_hasPrev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._hasPrev; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1575759264: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("set_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_entity")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1239983250: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_hasNext")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._hasNext; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 782402796: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_entity")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 91168004: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_path")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._path; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -281526476: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._countMax; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1480346608: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._count; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + switch (field.hashCode()) + { + case -281526476: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((double) (this._countMax) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1480346608: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((double) (this._count) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920351: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 94851343: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((double) (this.get_count()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 665920350: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("_currentX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this._currentX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -372044331: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return ((double) (this.get_countMax()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + switch (field.hashCode()) + { + case -1346531828: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("updateEntity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.updateEntity(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 782402796: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_entity(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case -1575759264: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("set_entity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.set_entity(((hxDaedalus.ai.EntityAI) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.prev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 98246095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 108404047: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("reset")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + this.reset(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 98246096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1415433698: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("set_path")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.set_path(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 773344260: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_hasPrev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_hasPrev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1999868062: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_countMax")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_countMax(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 773272772: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_hasNext")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_hasNext(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + case 1131801318: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (field.equals("get_count")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return this.get_count(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_countMax"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_count"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_path"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_hasNext"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_hasPrev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_currentY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_currentX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("_entity"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("path"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("countMax"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("count"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("hasNext"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("hasPrev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("y"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("x"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + baseArr.push("entity"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Constants.java b/src/main/java/hxDaedalus/data/Constants.java new file mode 100644 index 0000000..3849106 --- /dev/null +++ b/src/main/java/hxDaedalus/data/Constants.java @@ -0,0 +1,40 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Constants extends haxe.lang.HxObject +{ + static + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" + hxDaedalus.data.Constants.EPSILON = 0.01; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" + hxDaedalus.data.Constants.EPSILON_SQUARED = 0.0001; + } + + public Constants(haxe.lang.EmptyObject empty) + { + } + + + public Constants() + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" + hxDaedalus.data.Constants.__hx_ctor_hxDaedalus_data_Constants(this); + } + + + public static void __hx_ctor_hxDaedalus_data_Constants(hxDaedalus.data.Constants __hx_this) + { + } + + + public static double EPSILON; + + public static double EPSILON_SQUARED; + +} + + diff --git a/src/main/java/hxDaedalus/data/ConstraintSegment.java b/src/main/java/hxDaedalus/data/ConstraintSegment.java new file mode 100644 index 0000000..1d3c71a --- /dev/null +++ b/src/main/java/hxDaedalus/data/ConstraintSegment.java @@ -0,0 +1,645 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class ConstraintSegment extends haxe.lang.HxObject +{ + static + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + hxDaedalus.data.ConstraintSegment.INC = 0; + } + + public ConstraintSegment(haxe.lang.EmptyObject empty) + { + } + + + public ConstraintSegment() + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + hxDaedalus.data.ConstraintSegment.__hx_ctor_hxDaedalus_data_ConstraintSegment(this); + } + + + public static void __hx_ctor_hxDaedalus_data_ConstraintSegment(hxDaedalus.data.ConstraintSegment __hx_this) + { + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __hx_this._id = hxDaedalus.data.ConstraintSegment.INC; + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + hxDaedalus.data.ConstraintSegment.INC++; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __hx_this._edges = new haxe.root.Array(); + } + + + public static int INC; + + + + public hxDaedalus.data.ConstraintShape fromShape; + + + + public int _id; + + public haxe.root.Array _edges; + + public int get_id() + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this._id; + } + + + public void addEdge(hxDaedalus.data.Edge edge) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (( ( this._edges.indexOf(edge, null) == -1 ) && ( this._edges.indexOf(edge.get_oppositeEdge(), null) == -1 ) )) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._edges.push(edge); + } + + } + + + public void removeEdge(hxDaedalus.data.Edge edge) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + int index = this._edges.indexOf(edge, null); + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (( index == -1 )) + { + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + index = this._edges.indexOf(edge.get_oppositeEdge(), null); + } + + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (( index != -1 )) + { + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._edges.splice(index, 1); + } + + } + + + public haxe.root.Array get_edges() + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this._edges; + } + + + public void dispose() + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._edges = null; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this.fromShape = null; + } + + + @Override public java.lang.String toString() + { + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ( "seg_id " + this._id ); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._id = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + switch (field.hashCode()) + { + case -1478841001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._edges = ((haxe.root.Array) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 69239319: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("fromShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this.fromShape = ((hxDaedalus.data.ConstraintShape) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("toString")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 69239319: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("fromShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.fromShape; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1133306925: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("get_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_edges")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 96356950: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.get_edges(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1098119265: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("removeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this._id; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case -1149033986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("addEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case -1478841001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this._edges; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((double) (this._id) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return ((double) (this.get_id()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("toString")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.toString(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this.dispose(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case -1149033986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("addEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this.addEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1133306925: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("get_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return this.get_edges(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + case 1098119265: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (field.equals("removeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + this.removeEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + baseArr.push("_edges"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + baseArr.push("_id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + baseArr.push("edges"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + baseArr.push("fromShape"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + baseArr.push("id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintSegment.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/ConstraintShape.java b/src/main/java/hxDaedalus/data/ConstraintShape.java new file mode 100644 index 0000000..106d16b --- /dev/null +++ b/src/main/java/hxDaedalus/data/ConstraintShape.java @@ -0,0 +1,417 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class ConstraintShape extends haxe.lang.HxObject +{ + static + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + hxDaedalus.data.ConstraintShape.INC = 0; + } + + public ConstraintShape(haxe.lang.EmptyObject empty) + { + } + + + public ConstraintShape() + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + hxDaedalus.data.ConstraintShape.__hx_ctor_hxDaedalus_data_ConstraintShape(this); + } + + + public static void __hx_ctor_hxDaedalus_data_ConstraintShape(hxDaedalus.data.ConstraintShape __hx_this) + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __hx_this._id = hxDaedalus.data.ConstraintShape.INC; + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + hxDaedalus.data.ConstraintShape.INC++; + //line 14 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __hx_this.segments = new haxe.root.Array(); + } + + + public static int INC; + + + + public haxe.root.Array segments; + + public int _id; + + public int get_id() + { + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return this._id; + } + + + public void dispose() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + while (( this.segments.length > 0 )) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + ((hxDaedalus.data.ConstraintSegment) (this.segments.pop()) ).dispose(); + } + + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + this.segments = null; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + this._id = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case 1055868832: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("segments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + this.segments = ((haxe.root.Array) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + switch (field.hashCode()) + { + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case 1055868832: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("segments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return this.segments; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return this._id; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return ((double) (this._id) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return ((double) (this.get_id()) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + switch (field.hashCode()) + { + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + this.dispose(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + baseArr.push("_id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + baseArr.push("segments"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + baseArr.push("id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/ConstraintShape.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Edge.java b/src/main/java/hxDaedalus/data/Edge.java new file mode 100644 index 0000000..76e112b --- /dev/null +++ b/src/main/java/hxDaedalus/data/Edge.java @@ -0,0 +1,1905 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Edge extends haxe.lang.HxObject +{ + static + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + hxDaedalus.data.Edge.INC = 0; + } + + public Edge(haxe.lang.EmptyObject empty) + { + } + + + public Edge() + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + hxDaedalus.data.Edge.__hx_ctor_hxDaedalus_data_Edge(this); + } + + + public static void __hx_ctor_hxDaedalus_data_Edge(hxDaedalus.data.Edge __hx_this) + { + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __hx_this.colorDebug = -1; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __hx_this._id = hxDaedalus.data.Edge.INC; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + hxDaedalus.data.Edge.INC++; + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __hx_this.fromConstraintSegments = new haxe.root.Array(); + } + + + public static int INC; + + + + + + + + + + + + + + public haxe.root.Array fromConstraintSegments; + + + + + + + + + + + + + + + + + + public int _id; + + public boolean _isReal; + + public boolean _isConstrained; + + public hxDaedalus.data.Vertex _originVertex; + + public hxDaedalus.data.Edge _oppositeEdge; + + public hxDaedalus.data.Edge _nextLeftEdge; + + public hxDaedalus.data.Face _leftFace; + + public int colorDebug; + + public int get_id() + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._id; + } + + + public boolean get_isReal() + { + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._isReal; + } + + + public boolean get_isConstrained() + { + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._isConstrained; + } + + + public void setDatas(hxDaedalus.data.Vertex originVertex, hxDaedalus.data.Edge oppositeEdge, hxDaedalus.data.Edge nextLeftEdge, hxDaedalus.data.Face leftFace, java.lang.Object isReal, java.lang.Object isConstrained) + { + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_isConstrained4 = ( (haxe.lang.Runtime.eq(isConstrained, null)) ? (false) : (haxe.lang.Runtime.toBool(isConstrained)) ); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_isReal3 = ( (haxe.lang.Runtime.eq(isReal, null)) ? (true) : (haxe.lang.Runtime.toBool(isReal)) ); + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._isConstrained = __temp_isConstrained4; + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._isReal = __temp_isReal3; + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._originVertex = originVertex; + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._oppositeEdge = oppositeEdge; + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._nextLeftEdge = nextLeftEdge; + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._leftFace = leftFace; + } + + + public void addFromConstraintSegment(hxDaedalus.data.ConstraintSegment segment) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (( this.fromConstraintSegments.indexOf(segment, null) == -1 )) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.fromConstraintSegments.push(segment); + } + + } + + + public void removeFromConstraintSegment(hxDaedalus.data.ConstraintSegment segment) + { + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + int index = this.fromConstraintSegments.indexOf(segment, null); + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (( index != -1 )) + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.fromConstraintSegments.splice(index, 1); + } + + } + + + public hxDaedalus.data.Vertex set_originVertex(hxDaedalus.data.Vertex value) + { + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._originVertex = value; + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + + public hxDaedalus.data.Edge set_nextLeftEdge(hxDaedalus.data.Edge value) + { + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._nextLeftEdge = value; + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + + public hxDaedalus.data.Face set_leftFace(hxDaedalus.data.Face value) + { + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._leftFace = value; + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + + public boolean set_isConstrained(boolean value) + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._isConstrained = value; + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + + public void dispose() + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._originVertex = null; + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._oppositeEdge = null; + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._nextLeftEdge = null; + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._leftFace = null; + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.fromConstraintSegments = null; + } + + + public hxDaedalus.data.Vertex get_originVertex() + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._originVertex; + } + + + public hxDaedalus.data.Vertex get_destinationVertex() + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_oppositeEdge().get_originVertex(); + } + + + public hxDaedalus.data.Edge get_oppositeEdge() + { + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge; + } + + + public hxDaedalus.data.Edge get_nextLeftEdge() + { + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._nextLeftEdge; + } + + + public hxDaedalus.data.Edge get_prevLeftEdge() + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._nextLeftEdge.get_nextLeftEdge(); + } + + + public hxDaedalus.data.Edge get_nextRightEdge() + { + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge.get_nextLeftEdge().get_nextLeftEdge().get_oppositeEdge(); + } + + + public hxDaedalus.data.Edge get_prevRightEdge() + { + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge.get_nextLeftEdge().get_oppositeEdge(); + } + + + public hxDaedalus.data.Edge get_rotLeftEdge() + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._nextLeftEdge.get_nextLeftEdge().get_oppositeEdge(); + } + + + public hxDaedalus.data.Edge get_rotRightEdge() + { + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge.get_nextLeftEdge(); + } + + + public hxDaedalus.data.Face get_leftFace() + { + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._leftFace; + } + + + public hxDaedalus.data.Face get_rightFace() + { + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge.get_leftFace(); + } + + + @Override public java.lang.String toString() + { + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ( ( ( "edge " + this.get_originVertex().get_id() ) + " - " ) + this.get_destinationVertex().get_id() ); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("colorDebug")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.colorDebug = ((int) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 94650: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._id = ((int) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("colorDebug")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.colorDebug = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1278230732: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.set_isConstrained(haxe.lang.Runtime.toBool(value)); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1808515171: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._leftFace = ((hxDaedalus.data.Face) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1817499754: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.set_originVertex(((hxDaedalus.data.Vertex) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1428235178: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._nextLeftEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 675246711: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.set_nextLeftEdge(((hxDaedalus.data.Edge) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1320793891: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_oppositeEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._oppositeEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1717997316: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.set_leftFace(((hxDaedalus.data.Face) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -285982135: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._originVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -528444953: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("fromConstraintSegments")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.fromConstraintSegments = ((haxe.root.Array) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 494801613: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._isConstrained = haxe.lang.Runtime.toBool(value); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 94650: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1528312583: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_isReal")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this._isReal = haxe.lang.Runtime.toBool(value); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("toString")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 3355: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_id(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1054706448: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rightFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rightFace")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1180158488: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("isReal")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_isReal(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -205057587: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_leftFace")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1278230732: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_isConstrained(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -674188245: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rotRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rotRightEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1817499754: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_originVertex(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 84285938: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rotLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rotLeftEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 675246711: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_nextLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 872828893: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_prevRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_prevRightEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1717997316: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_leftFace(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 392249117: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_nextRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_nextRightEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -528444953: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("fromConstraintSegments")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.fromConstraintSegments; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -558546944: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_prevLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_prevLeftEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1558175918: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("destinationVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_destinationVertex(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 949971136: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_nextLeftEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -870691516: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("oppositeEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_oppositeEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -595967091: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_oppositeEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_oppositeEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -833271369: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("prevLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_prevLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 987475625: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_destinationVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_destinationVertex")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 465726534: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("nextRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_nextRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 2092224179: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_originVertex")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 946306310: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("prevRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_prevRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1671767583: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("dispose")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -755860133: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("rotLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rotLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 264600495: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_isConstrained")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -948912670: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("rotRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rotRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1343935041: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_leftFace")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1569546599: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("rightFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rightFace(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -881471692: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_nextLeftEdge")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 94650: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._id; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 260781351: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_originVertex")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1528312583: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_isReal")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._isReal; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1170407912: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("removeFromConstraintSegment")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeFromConstraintSegment")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 494801613: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._isConstrained; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 910337515: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("addFromConstraintSegment")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addFromConstraintSegment")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -285982135: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._originVertex; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1390069447: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("setDatas")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDatas")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1320793891: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_oppositeEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._oppositeEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1204753315: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_isConstrained")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1428235178: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._nextLeftEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 900519665: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_isReal")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_isReal")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1808515171: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this._leftFace; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1249338716: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1264295088: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("colorDebug")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.colorDebug; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("colorDebug")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((double) (this.colorDebug) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 3355: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((double) (this.get_id()) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 94650: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return ((double) (this._id) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("toString")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.toString(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1249338716: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_id")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_id(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -1054706448: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rightFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rightFace(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 900519665: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_isReal")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_isReal(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -205057587: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_leftFace(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1204753315: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_isConstrained(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -674188245: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rotRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rotRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1390069447: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("setDatas")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.setDatas(((hxDaedalus.data.Vertex) (dynargs.__get(0)) ), ((hxDaedalus.data.Edge) (dynargs.__get(1)) ), ((hxDaedalus.data.Edge) (dynargs.__get(2)) ), ((hxDaedalus.data.Face) (dynargs.__get(3)) ), dynargs.__get(4), dynargs.__get(5)); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 84285938: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_rotLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_rotLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 910337515: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("addFromConstraintSegment")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.addFromConstraintSegment(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 872828893: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_prevRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_prevRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1170407912: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("removeFromConstraintSegment")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.removeFromConstraintSegment(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 392249117: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_nextRightEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_nextRightEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 260781351: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.set_originVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -558546944: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_prevLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_prevLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -881471692: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.set_nextLeftEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 949971136: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_nextLeftEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_nextLeftEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1343935041: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_leftFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.set_leftFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case -595967091: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_oppositeEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_oppositeEdge(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 264600495: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("set_isConstrained")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.set_isConstrained(haxe.lang.Runtime.toBool(dynargs.__get(0))); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 987475625: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_destinationVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_destinationVertex(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 1671767583: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("dispose")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + this.dispose(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + case 2092224179: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (field.equals("get_originVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return this.get_originVertex(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("colorDebug"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_leftFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_nextLeftEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_oppositeEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_originVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_isConstrained"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_isReal"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("_id"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("rightFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("rotRightEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("rotLeftEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("prevRightEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("nextRightEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("prevLeftEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("oppositeEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("destinationVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("fromConstraintSegments"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("leftFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("nextLeftEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("originVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("isConstrained"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("isReal"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + baseArr.push("id"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Edge.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Face.java b/src/main/java/hxDaedalus/data/Face.java new file mode 100644 index 0000000..ff58605 --- /dev/null +++ b/src/main/java/hxDaedalus/data/Face.java @@ -0,0 +1,722 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Face extends haxe.lang.HxObject +{ + static + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + hxDaedalus.data.Face.INC = 0; + } + + public Face(haxe.lang.EmptyObject empty) + { + } + + + public Face() + { + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + hxDaedalus.data.Face.__hx_ctor_hxDaedalus_data_Face(this); + } + + + public static void __hx_ctor_hxDaedalus_data_Face(hxDaedalus.data.Face __hx_this) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __hx_this.colorDebug = -1; + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __hx_this._id = hxDaedalus.data.Face.INC; + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + hxDaedalus.data.Face.INC++; + } + + + public static int INC; + + + + + + + + public int _id; + + public boolean _isReal; + + public hxDaedalus.data.Edge _edge; + + public int colorDebug; + + public int get_id() + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._id; + } + + + public boolean get_isReal() + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._isReal; + } + + + public void set_datas(hxDaedalus.data.Edge edge) + { + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._isReal = true; + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._edge = edge; + } + + + public void setDatas(hxDaedalus.data.Edge edge, java.lang.Object isReal) + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_isReal5 = ( (haxe.lang.Runtime.eq(isReal, null)) ? (true) : (haxe.lang.Runtime.toBool(isReal)) ); + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._isReal = __temp_isReal5; + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._edge = edge; + } + + + public void dispose() + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._edge = null; + } + + + public hxDaedalus.data.Edge get_edge() + { + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._edge; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this.colorDebug = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._id = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this.colorDebug = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 90842780: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._edge = ((hxDaedalus.data.Edge) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1528312583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this._isReal = haxe.lang.Runtime.toBool(value); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + switch (field.hashCode()) + { + case 1976220934: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_edge")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case -1180158488: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_isReal(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1390069447: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("setDatas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDatas")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 3108285: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_edge(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 917689324: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("set_datas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_datas")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._id; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 900519665: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_isReal")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1528312583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._isReal; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 90842780: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this._edge; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.colorDebug; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((double) (this.colorDebug) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((double) (this.get_id()) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return ((double) (this._id) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + switch (field.hashCode()) + { + case 1976220934: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_edge(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this.dispose(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 900519665: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("get_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return this.get_isReal(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 1390069447: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("setDatas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this.setDatas(((hxDaedalus.data.Edge) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + case 917689324: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (field.equals("set_datas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + this.set_datas(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("colorDebug"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("_edge"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("_isReal"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("_id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("edge"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("isReal"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + baseArr.push("id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Face.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Mesh.java b/src/main/java/hxDaedalus/data/Mesh.java new file mode 100644 index 0000000..b37d2c3 --- /dev/null +++ b/src/main/java/hxDaedalus/data/Mesh.java @@ -0,0 +1,4622 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Mesh extends haxe.lang.HxObject +{ + static + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Mesh.INC = 0; + } + + public Mesh(haxe.lang.EmptyObject empty) + { + } + + + public Mesh(double width, double height) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Mesh.__hx_ctor_hxDaedalus_data_Mesh(this, width, height); + } + + + public static void __hx_ctor_hxDaedalus_data_Mesh(hxDaedalus.data.Mesh __hx_this, double width, double height) + { + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this.__objectsUpdateInProgress = false; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this.__edgesToCheck = null; + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this.__centerVertex = null; + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._objects = null; + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._constraintShapes = null; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._faces = null; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._edges = null; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._vertices = null; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._clipping = false; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._height = ((double) (((int) (0.0) )) ); + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._width = ((double) (((int) (0.0) )) ); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._id = hxDaedalus.data.Mesh.INC; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Mesh.INC++; + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._width = width; + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._height = height; + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._clipping = true; + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._vertices = new haxe.root.Array(); + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._edges = new haxe.root.Array(); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._faces = new haxe.root.Array(); + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._constraintShapes = new haxe.root.Array(); + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this._objects = new haxe.root.Array(); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __hx_this.__edgesToCheck = new haxe.root.Array(); + } + + + public static int INC; + + + + + + + + + + + + public int _id; + + public double _width; + + public double _height; + + public boolean _clipping; + + public haxe.root.Array _vertices; + + public haxe.root.Array _edges; + + public haxe.root.Array _faces; + + public haxe.root.Array _constraintShapes; + + public haxe.root.Array _objects; + + public hxDaedalus.data.Vertex __centerVertex; + + public haxe.root.Array __edgesToCheck; + + public double get_height() + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._height; + } + + + public double get_width() + { + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._width; + } + + + public boolean get_clipping() + { + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._clipping; + } + + + public boolean set_clipping(boolean value) + { + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._clipping = value; + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + + public int get_id() + { + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._id; + } + + + public void dispose() + { + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this._vertices.length > 0 )) + { + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((hxDaedalus.data.Vertex) (this._vertices.pop()) ).dispose(); + } + + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._vertices = null; + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this._edges.length > 0 )) + { + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((hxDaedalus.data.Edge) (this._edges.pop()) ).dispose(); + } + + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges = null; + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this._faces.length > 0 )) + { + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((hxDaedalus.data.Face) (this._faces.pop()) ).dispose(); + } + + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces = null; + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this._constraintShapes.length > 0 )) + { + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((hxDaedalus.data.ConstraintShape) (this._constraintShapes.pop()) ).dispose(); + } + + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._constraintShapes = null; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this._objects.length > 0 )) + { + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((hxDaedalus.data.Obstacle) (this._objects.pop()) ).dispose(); + } + + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._objects = null; + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck = null; + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__centerVertex = null; + } + + + public haxe.root.Array get___constraintShapes() + { + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._constraintShapes; + } + + + public void buildFromRecord(java.lang.String rec) + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array positions = haxe.lang.StringExt.split(rec, ";"); + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( i < positions.length )) + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertConstraintSegment(haxe.root.Std.parseFloat(positions.__get(i)), haxe.root.Std.parseFloat(positions.__get(( i + 1 ))), haxe.root.Std.parseFloat(positions.__get(( i + 2 ))), haxe.root.Std.parseFloat(positions.__get(( i + 3 )))); + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + i += 4; + } + + } + + + public void insertObject(hxDaedalus.data.Obstacle object) + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( object.get_constraintShape() != null )) + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteObject(object); + } + + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.ConstraintShape shape = new hxDaedalus.data.ConstraintShape(); + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.ConstraintSegment segment = null; + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array coordinates = object.get_coordinates(); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Matrix2D m = object.get_matrix(); + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + object.updateMatrixFromValues(); + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double x1 = 0.0; + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double y1 = 0.0; + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double x2 = 0.0; + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double y2 = 0.0; + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double transfx1 = 0.0; + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double transfy1 = 0.0; + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double transfx2 = 0.0; + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double transfy2 = 0.0; + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( i < coordinates.length )) + { + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + x1 = ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(i))) ); + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + y1 = ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 1 )))) ); + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + x2 = ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 2 )))) ); + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + y2 = ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 3 )))) ); + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + transfx1 = m.transformX(x1, y1); + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + transfy1 = m.transformY(x1, y1); + //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + transfx2 = m.transformX(x2, y2); + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + transfy2 = m.transformY(x2, y2); + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment = this.insertConstraintSegment(transfx1, transfy1, transfx2, transfy2); + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( segment != null )) + { + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.fromShape = shape; + //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + shape.segments.push(segment); + } + + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + i += 4; + } + + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._constraintShapes.push(shape); + //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + object.set_constraintShape(shape); + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (this.__objectsUpdateInProgress) ) + { + //line 160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._objects.push(object); + } + + } + + + public void deleteObject(hxDaedalus.data.Obstacle object) + { + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( object.get_constraintShape() == null )) + { + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ; + } + + //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteConstraintShape(object.get_constraintShape()); + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + object.set_constraintShape(null); + //line 172 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (this.__objectsUpdateInProgress) ) + { + //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int index = this._objects.indexOf(object, null); + //line 175 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._objects.splice(index, 1); + } + + } + + + public boolean __objectsUpdateInProgress; + + public void updateObjects() + { + //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__objectsUpdateInProgress = true; + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = this._objects.length; + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = _g1++; + //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (this._objects.__get(i).get_hasChanged()) + { + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteObject(this._objects.__get(i)); + //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertObject(this._objects.__get(i)); + //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._objects.__get(i).set_hasChanged(false); + } + + } + + } + + //line 191 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__objectsUpdateInProgress = false; + } + + + public hxDaedalus.data.ConstraintShape insertConstraintShape(haxe.root.Array coordinates) + { + //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.ConstraintShape shape = new hxDaedalus.data.ConstraintShape(); + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.ConstraintSegment segment = null; + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 206 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( i < coordinates.length )) + { + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment = this.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(coordinates.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 2 )))) ), ((double) (haxe.lang.Runtime.toDouble(coordinates.__get(( i + 3 )))) )); + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( segment != null )) + { + //line 210 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.fromShape = shape; + //line 211 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + shape.segments.push(segment); + } + + //line 213 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + i += 4; + } + + //line 216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._constraintShapes.push(shape); + //line 218 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return shape; + } + + + public void deleteConstraintShape(hxDaedalus.data.ConstraintShape shape) + { + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = shape.segments.length; + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = _g1++; + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteConstraintSegment(shape.segments.__get(i)); + } + + } + + //line 224 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + shape.dispose(); + //line 225 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._constraintShapes.splice(this._constraintShapes.indexOf(shape, null), 1); + } + + + public hxDaedalus.data.ConstraintSegment insertConstraintSegment(double x1, double y1, double x2, double y2) + { + //line 239 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int p1pos = this.findPositionFromBounds(x1, y1); + //line 240 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int p2pos = this.findPositionFromBounds(x2, y2); + //line 242 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double newX1 = x1; + //line 243 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double newY1 = y1; + //line 244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double newX2 = x2; + //line 245 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double newY2 = y2; + //line 247 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( this._clipping && (( ( p1pos != 0 ) || ( p2pos != 0 ) )) )) + { + //line 249 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Point2D intersectPoint = new hxDaedalus.data.math.Point2D(null, null); + //line 252 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( p1pos != 0 ) && ( p2pos != 0 ) )) + { + //line 255 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( ( ( x1 <= 0 ) && ( x2 <= 0 ) ) || ( ( x1 >= this._width ) && ( x2 >= this._width ) ) ) || ( ( y1 <= 0 ) && ( y2 <= 0 ) ) ) || ( ( y1 >= this._height ) && ( y2 >= this._height ) ) )) + { + //line 256 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + //line 260 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 8 ) && ( p2pos == 4 ) ) || ( ( p1pos == 4 ) && ( p2pos == 8 ) ) )) + { + //line 263 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null); + //line 264 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 265 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 267 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null); + //line 268 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 269 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 272 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 2 ) && ( p2pos == 6 ) ) || ( ( p1pos == 6 ) && ( p2pos == 2 ) ) )) + { + //line 275 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null); + //line 276 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 277 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 279 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null); + //line 280 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 281 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 284 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 2 ) && ( p2pos == 8 ) ) || ( ( p1pos == 8 ) && ( p2pos == 2 ) ) )) + { + //line 287 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null)) + { + //line 289 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 290 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 293 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null); + //line 294 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 295 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 297 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + } + else + { + //line 300 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 2 ) && ( p2pos == 4 ) ) || ( ( p1pos == 4 ) && ( p2pos == 2 ) ) )) + { + //line 303 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null)) + { + //line 305 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 309 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null); + //line 310 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 311 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 313 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + } + else + { + //line 316 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 6 ) && ( p2pos == 4 ) ) || ( ( p1pos == 4 ) && ( p2pos == 6 ) ) )) + { + //line 319 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null)) + { + //line 321 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 322 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 325 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null); + //line 326 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 327 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 329 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + } + else + { + //line 332 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( p1pos == 8 ) && ( p2pos == 6 ) ) || ( ( p1pos == 6 ) && ( p2pos == 8 ) ) )) + { + //line 335 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null)) + { + //line 337 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 338 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 341 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null); + //line 342 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 343 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + else + { + //line 345 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + } + else + { + //line 350 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean firstDone = false; + //line 351 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean secondDone = false; + //line 353 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null)) + { + //line 355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 356 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 357 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + firstDone = true; + } + + //line 360 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null)) + { + //line 362 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (firstDone) ) + { + //line 364 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 365 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 366 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + firstDone = true; + } + else + { + //line 370 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 371 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + //line 372 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + secondDone = true; + } + + } + + //line 376 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ! (secondDone) && hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null) )) + { + //line 378 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (firstDone) ) + { + //line 380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = intersectPoint.x; + //line 381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = intersectPoint.y; + //line 382 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + firstDone = true; + } + else + { + //line 386 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 387 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + //line 388 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + secondDone = true; + } + + } + + //line 392 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ! (secondDone) && hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null) )) + { + //line 393 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 394 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + + //line 397 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (firstDone) ) + { + //line 397 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + } + + } + + } + + } + + } + + } + + } + else + { + //line 404 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( p1pos == 2 ) || ( p2pos == 2 ) )) + { + //line 406 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null); + } + else + { + //line 409 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( p1pos == 4 ) || ( p2pos == 4 ) )) + { + //line 411 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null); + } + else + { + //line 414 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( p1pos == 6 ) || ( p2pos == 6 ) )) + { + //line 416 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null); + } + else + { + //line 419 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( p1pos == 8 ) || ( p2pos == 8 ) )) + { + //line 421 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null); + } + else + { + //line 427 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), this._width, ((double) (0) ), intersectPoint, null, null)) ) + { + //line 430 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, this._width, ((double) (0) ), this._width, this._height, intersectPoint, null, null)) ) + { + //line 433 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), this._height, this._width, this._height, intersectPoint, null, null)) ) + { + //line 436 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2segments(x1, y1, x2, y2, ((double) (0) ), ((double) (0) ), ((double) (0) ), this._height, intersectPoint, null, null); + } + + } + + } + + } + + } + + } + + } + + //line 442 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( p1pos == 0 )) + { + //line 443 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = x1; + //line 444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = y1; + } + else + { + //line 446 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX1 = x2; + //line 447 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY1 = y2; + } + + //line 449 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newX2 = intersectPoint.x; + //line 450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newY2 = intersectPoint.y; + } + + } + + //line 456 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexDown = this.insertVertex(newX1, newY1); + //line 457 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vertexDown == null )) + { + //line 457 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + //line 458 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexUp = this.insertVertex(newX2, newY2); + //line 459 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vertexUp == null )) + { + //line 459 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + //line 460 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vertexDown == vertexUp )) + { + //line 460 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + //line 462 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.iterators.FromVertexToOutgoingEdges iterVertexToOutEdges = new hxDaedalus.iterators.FromVertexToOutgoingEdges(); + //line 463 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex currVertex = null; + //line 464 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge currEdge = null; + //line 465 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 468 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.ConstraintSegment segment = new hxDaedalus.data.ConstraintSegment(); + //line 470 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge tempEdgeDownUp = new hxDaedalus.data.Edge(); + //line 471 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge tempSdgeUpDown = new hxDaedalus.data.Edge(); + //line 472 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.setDatas(vertexDown, tempSdgeUpDown, null, null, true, true); + //line 473 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempSdgeUpDown.setDatas(vertexUp, tempEdgeDownUp, null, null, true, true); + //line 475 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array intersectedEdges = new haxe.root.Array(); + //line 476 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array leftBoundingEdges = new haxe.root.Array(); + //line 477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array rightBoundingEdges = new haxe.root.Array(); + //line 479 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Intersection currObjet = null; + //line 480 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Point2D pIntersect = new hxDaedalus.data.math.Point2D(null, null); + //line 481 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeLeft = null; + //line 482 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge newEdgeDownUp = null; + //line 483 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge newEdgeUpDown = null; + //line 484 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean done = false; + //line 485 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currVertex = vertexDown; + //line 486 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(currVertex); + //line 487 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 489 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + done = false; + //line 491 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (currObjet.index) + { + case 0: + { + //line 492 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertex = ((hxDaedalus.data.Vertex) (currObjet.params[0]) ); + //line 492 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 495 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currVertex = vertex; + //line 496 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertexToOutEdges.set_fromVertex(currVertex); + //line 497 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 497 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = iterVertexToOutEdges.next(); + //line 497 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( currEdge != null ))) ) + { + //line 497 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 500 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == vertexUp )) + { + //line 503 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (currEdge.get_isConstrained()) ) + { + //line 505 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.set_isConstrained(true); + //line 506 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().set_isConstrained(true); + } + + //line 508 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.addFromConstraintSegment(segment); + //line 509 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().fromConstraintSegments = currEdge.fromConstraintSegments; + //line 510 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown.addFromConstraintSegment(segment); + //line 511 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexUp.addFromConstraintSegment(segment); + //line 512 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.addEdge(currEdge); + //line 513 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return segment; + } + + //line 516 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( hxDaedalus.data.math.Geom2D.distanceSquaredVertexToEdge(currEdge.get_destinationVertex(), tempEdgeDownUp) <= 0.0001 )) + { + //line 519 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (currEdge.get_isConstrained()) ) + { + //line 522 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.set_isConstrained(true); + //line 523 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().set_isConstrained(true); + } + + //line 525 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.addFromConstraintSegment(segment); + //line 526 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().fromConstraintSegments = currEdge.fromConstraintSegments; + //line 527 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown.addFromConstraintSegment(segment); + //line 528 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.addEdge(currEdge); + //line 529 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown = currEdge.get_destinationVertex(); + //line 530 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.set_originVertex(vertexDown); + //line 531 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(vertexDown); + //line 532 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + done = true; + //line 533 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + } + + //line 537 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (done) + { + //line 538 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + continue; + } + + //line 540 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertexToOutEdges.set_fromVertex(currVertex); + //line 541 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 541 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = iterVertexToOutEdges.next(); + //line 541 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( currEdge != null ))) ) + { + //line 541 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 543 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = currEdge.get_nextLeftEdge(); + //line 544 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2edges(currEdge, tempEdgeDownUp, pIntersect, null, null)) + { + //line 547 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (currEdge.get_isConstrained()) + { + //line 550 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown = this.splitEdge(currEdge, pIntersect.x, pIntersect.y); + //line 551 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertexToOutEdges.set_fromVertex(currVertex); + //line 552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = iterVertexToOutEdges.next(); + //line 552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( currEdge != null ))) ) + { + //line 552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 554 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == vertexDown )) + { + //line 556 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.set_isConstrained(true); + //line 557 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().set_isConstrained(true); + //line 558 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.addFromConstraintSegment(segment); + //line 559 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().fromConstraintSegments = currEdge.fromConstraintSegments; + //line 560 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.addEdge(currEdge); + //line 561 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + } + + //line 564 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currVertex.addFromConstraintSegment(segment); + //line 565 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.set_originVertex(vertexDown); + //line 566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(vertexDown); + } + else + { + //line 571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.push(currEdge); + //line 572 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(currEdge.get_nextLeftEdge()); + //line 573 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(currEdge.get_prevLeftEdge()); + //line 574 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = currEdge.get_oppositeEdge(); + //line 575 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EEdge(currEdge); + } + + //line 577 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + } + + } + + //line 492 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1: + { + //line 582 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edge = ((hxDaedalus.data.Edge) (currObjet.params[0]) ); + //line 582 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 583 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = edge; + //line 585 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeLeft = currEdge.get_nextLeftEdge(); + //line 586 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( edgeLeft.get_destinationVertex() == vertexUp )) + { + //line 589 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(edgeLeft.get_nextLeftEdge()); + //line 590 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(edgeLeft); + //line 592 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp = new hxDaedalus.data.Edge(); + //line 593 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown = new hxDaedalus.data.Edge(); + //line 594 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp.setDatas(vertexDown, newEdgeUpDown, null, null, true, true); + //line 595 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown.setDatas(vertexUp, newEdgeDownUp, null, null, true, true); + //line 596 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.push(newEdgeDownUp); + //line 597 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(newEdgeUpDown); + //line 598 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertNewConstrainedEdge(segment, newEdgeDownUp, intersectedEdges, leftBoundingEdges, rightBoundingEdges); + //line 600 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return segment; + } + else + { + //line 602 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( hxDaedalus.data.math.Geom2D.distanceSquaredVertexToEdge(edgeLeft.get_destinationVertex(), tempEdgeDownUp) <= 0.0001 )) + { + //line 605 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(edgeLeft.get_nextLeftEdge()); + //line 606 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(edgeLeft); + //line 608 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp = new hxDaedalus.data.Edge(); + //line 609 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown = new hxDaedalus.data.Edge(); + //line 610 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp.setDatas(vertexDown, newEdgeUpDown, null, null, true, true); + //line 611 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown.setDatas(edgeLeft.get_destinationVertex(), newEdgeDownUp, null, null, true, true); + //line 612 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.push(newEdgeDownUp); + //line 613 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(newEdgeUpDown); + //line 614 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertNewConstrainedEdge(segment, newEdgeDownUp, intersectedEdges, leftBoundingEdges, rightBoundingEdges); + //line 616 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.splice(0, intersectedEdges.length); + //line 617 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.splice(0, leftBoundingEdges.length); + //line 618 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.splice(0, rightBoundingEdges.length); + //line 620 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown = edgeLeft.get_destinationVertex(); + //line 621 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.set_originVertex(vertexDown); + //line 622 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(vertexDown); + } + else + { + //line 626 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (hxDaedalus.data.math.Geom2D.intersections2edges(edgeLeft, tempEdgeDownUp, pIntersect, null, null)) + { + //line 629 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (edgeLeft.get_isConstrained()) + { + //line 632 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currVertex = this.splitEdge(edgeLeft, pIntersect.x, pIntersect.y); + //line 634 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertexToOutEdges.set_fromVertex(currVertex); + //line 635 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 635 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = iterVertexToOutEdges.next(); + //line 635 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( currEdge != null ))) ) + { + //line 635 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 637 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == leftBoundingEdges.__get(0).get_originVertex() )) + { + //line 639 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(currEdge); + } + + //line 641 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == rightBoundingEdges.__get(( rightBoundingEdges.length - 1 )).get_destinationVertex() )) + { + //line 643 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(currEdge.get_oppositeEdge()); + } + + } + + //line 647 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp = new hxDaedalus.data.Edge(); + //line 648 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown = new hxDaedalus.data.Edge(); + //line 649 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp.setDatas(vertexDown, newEdgeUpDown, null, null, true, true); + //line 650 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown.setDatas(currVertex, newEdgeDownUp, null, null, true, true); + //line 651 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.push(newEdgeDownUp); + //line 652 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(newEdgeUpDown); + //line 653 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertNewConstrainedEdge(segment, newEdgeDownUp, intersectedEdges, leftBoundingEdges, rightBoundingEdges); + //line 655 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.splice(0, intersectedEdges.length); + //line 656 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.splice(0, leftBoundingEdges.length); + //line 657 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.splice(0, rightBoundingEdges.length); + //line 658 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown = currVertex; + //line 659 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.set_originVertex(vertexDown); + //line 660 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(vertexDown); + } + else + { + //line 665 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.push(edgeLeft); + //line 666 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(edgeLeft.get_nextLeftEdge()); + //line 667 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = edgeLeft.get_oppositeEdge(); + //line 668 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EEdge(currEdge); + } + + } + else + { + //line 674 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeLeft = edgeLeft.get_nextLeftEdge(); + //line 675 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.intersections2edges(edgeLeft, tempEdgeDownUp, pIntersect, null, null); + //line 676 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (edgeLeft.get_isConstrained()) + { + //line 679 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currVertex = this.splitEdge(edgeLeft, pIntersect.x, pIntersect.y); + //line 681 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertexToOutEdges.set_fromVertex(currVertex); + //line 682 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 682 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = iterVertexToOutEdges.next(); + //line 682 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( currEdge != null ))) ) + { + //line 682 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 684 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == leftBoundingEdges.__get(0).get_originVertex() )) + { + //line 686 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.unshift(currEdge); + } + + //line 688 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( currEdge.get_destinationVertex() == rightBoundingEdges.__get(( rightBoundingEdges.length - 1 )).get_destinationVertex() )) + { + //line 690 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(currEdge.get_oppositeEdge()); + } + + } + + //line 694 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp = new hxDaedalus.data.Edge(); + //line 695 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown = new hxDaedalus.data.Edge(); + //line 696 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeDownUp.setDatas(vertexDown, newEdgeUpDown, null, null, true, true); + //line 697 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newEdgeUpDown.setDatas(currVertex, newEdgeDownUp, null, null, true, true); + //line 698 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.push(newEdgeDownUp); + //line 699 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(newEdgeUpDown); + //line 700 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertNewConstrainedEdge(segment, newEdgeDownUp, intersectedEdges, leftBoundingEdges, rightBoundingEdges); + //line 702 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.splice(0, intersectedEdges.length); + //line 703 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + leftBoundingEdges.splice(0, leftBoundingEdges.length); + //line 704 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.splice(0, rightBoundingEdges.length); + //line 705 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexDown = currVertex; + //line 706 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + tempEdgeDownUp.set_originVertex(vertexDown); + //line 707 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EVertex(vertexDown); + } + else + { + //line 712 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + intersectedEdges.push(edgeLeft); + //line 713 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + rightBoundingEdges.push(edgeLeft.get_prevLeftEdge()); + //line 714 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = edgeLeft.get_oppositeEdge(); + //line 715 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currObjet = hxDaedalus.data.math.Intersection.EEdge(currEdge); + } + + } + + } + + } + + } + + //line 582 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 2: + { + //line 720 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face face = ((hxDaedalus.data.Face) (currObjet.params[0]) ); + //line 720 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 3: + { + //line 722 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + } + + } + + + public void insertNewConstrainedEdge(hxDaedalus.data.ConstraintSegment fromSegment, hxDaedalus.data.Edge edgeDownUp, haxe.root.Array intersectedEdges, haxe.root.Array leftBoundingEdges, haxe.root.Array rightBoundingEdges) + { + //line 734 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeDownUp); + //line 735 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeDownUp.get_oppositeEdge()); + //line 737 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeDownUp.addFromConstraintSegment(fromSegment); + //line 738 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeDownUp.get_oppositeEdge().fromConstraintSegments = edgeDownUp.fromConstraintSegments; + //line 740 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fromSegment.addEdge(edgeDownUp); + //line 742 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeDownUp.get_originVertex().addFromConstraintSegment(fromSegment); + //line 743 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeDownUp.get_destinationVertex().addFromConstraintSegment(fromSegment); + //line 745 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.untriangulate(intersectedEdges); + //line 747 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(leftBoundingEdges, true); + //line 748 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(rightBoundingEdges, true); + } + + + public void deleteConstraintSegment(hxDaedalus.data.ConstraintSegment segment) + { + //line 754 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 755 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array vertexToDelete = new haxe.root.Array(); + //line 756 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edge = null; + //line 757 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertex = null; + //line 758 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array fromConstraintSegment = null; + //line 759 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 759 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 759 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = segment.get_edges().length; + //line 759 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 759 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i1 = _g1++; + //line 760 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = segment.get_edges().__get(i1); + //line 762 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.removeFromConstraintSegment(segment); + //line 763 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( edge.fromConstraintSegments.length == 0 )) + { + //line 765 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.set_isConstrained(false); + //line 766 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.get_oppositeEdge().set_isConstrained(false); + } + + //line 769 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex = edge.get_originVertex(); + //line 770 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex.removeFromConstraintSegment(segment); + //line 771 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexToDelete.push(vertex); + } + + } + + //line 775 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex = edge.get_destinationVertex(); + //line 776 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex.removeFromConstraintSegment(segment); + //line 777 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexToDelete.push(vertex); + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g11 = 0; + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g2 = vertexToDelete.length; + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g11 < _g2 )) + { + //line 781 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i2 = _g11++; + //line 782 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteVertex(vertexToDelete.__get(i2)); + } + + } + + //line 787 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + segment.dispose(); + } + + + public void check() + { + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = this._edges.length; + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = _g1++; + //line 793 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( this._edges.__get(i).get_nextLeftEdge() == null )) + { + //line 796 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ; + } + + } + + } + + + public hxDaedalus.data.Vertex insertVertex(double x, double y) + { + //line 805 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( ( x < 0 ) || ( y < 0 ) ) || ( x > this._width ) ) || ( y > this._height ) )) + { + //line 805 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + //line 807 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.splice(0, this.__edgesToCheck.length); + //line 809 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Intersection inObject = hxDaedalus.data.math.Geom2D.locatePosition(x, y, this); + //line 810 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex newVertex = null; + //line 812 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (inObject.index) + { + case 0: + { + //line 813 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertex = ((hxDaedalus.data.Vertex) (inObject.params[0]) ); + //line 815 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newVertex = vertex; + //line 813 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1: + { + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edge = ((hxDaedalus.data.Edge) (inObject.params[0]) ); + //line 818 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newVertex = this.splitEdge(edge, x, y); + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 2: + { + //line 819 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face face = ((hxDaedalus.data.Face) (inObject.params[0]) ); + //line 821 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + newVertex = this.splitFace(face, x, y); + //line 819 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 3: + { + //line 822 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 826 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.restoreAsDelaunay(); + //line 828 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return newVertex; + } + + + public hxDaedalus.data.Edge flipEdge(hxDaedalus.data.Edge edge) + { + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eBot_Top = edge; + //line 835 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Bot = edge.get_oppositeEdge(); + //line 836 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Right = new hxDaedalus.data.Edge(); + //line 837 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Left = new hxDaedalus.data.Edge(); + //line 838 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Left = eBot_Top.get_nextLeftEdge(); + //line 839 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Bot = eTop_Left.get_nextLeftEdge(); + //line 840 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eBot_Right = eTop_Bot.get_nextLeftEdge(); + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Top = eBot_Right.get_nextLeftEdge(); + //line 843 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vBot = eBot_Top.get_originVertex(); + //line 844 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vTop = eTop_Bot.get_originVertex(); + //line 845 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vLeft = eLeft_Bot.get_originVertex(); + //line 846 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vRight = eRight_Top.get_originVertex(); + //line 848 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fLeft = eBot_Top.get_leftFace(); + //line 849 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fRight = eTop_Bot.get_leftFace(); + //line 850 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fBot = new hxDaedalus.data.Face(); + //line 851 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTop = new hxDaedalus.data.Face(); + //line 854 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eLeft_Right); + //line 855 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eRight_Left); + //line 858 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fTop); + //line 859 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fBot); + //line 862 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Right.setDatas(vLeft, eRight_Left, eRight_Top, fTop, edge.get_isReal(), edge.get_isConstrained()); + //line 863 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Left.setDatas(vRight, eLeft_Right, eLeft_Bot, fBot, edge.get_isReal(), edge.get_isConstrained()); + //line 866 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTop.setDatas(eLeft_Right, null); + //line 867 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fBot.setDatas(eRight_Left, null); + //line 870 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vTop.get_edge() == eTop_Bot )) + { + //line 871 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vTop.setDatas(eTop_Left, null); + } + + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vBot.get_edge() == eBot_Top )) + { + //line 874 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vBot.setDatas(eBot_Right, null); + } + + //line 878 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_nextLeftEdge(eLeft_Right); + //line 879 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_leftFace(fTop); + //line 880 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Bot.set_nextLeftEdge(eBot_Right); + //line 881 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Bot.set_leftFace(fBot); + //line 882 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Right.set_nextLeftEdge(eRight_Left); + //line 883 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Right.set_leftFace(fBot); + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_nextLeftEdge(eTop_Left); + //line 885 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_leftFace(fTop); + //line 888 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Top.dispose(); + //line 889 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Bot.dispose(); + //line 890 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(eBot_Top, null), 1); + //line 891 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(eTop_Bot, null), 1); + //line 894 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fLeft.dispose(); + //line 895 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fRight.dispose(); + //line 896 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(fLeft, null), 1); + //line 897 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(fRight, null), 1); + //line 899 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return eRight_Left; + } + + + public hxDaedalus.data.Vertex splitEdge(hxDaedalus.data.Edge edge, double x, double y) + { + //line 905 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.splice(0, this.__edgesToCheck.length); + //line 908 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Right = edge; + //line 909 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Left = eLeft_Right.get_oppositeEdge(); + //line 910 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Top = eLeft_Right.get_nextLeftEdge(); + //line 911 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Left = eRight_Top.get_nextLeftEdge(); + //line 912 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Bot = eRight_Left.get_nextLeftEdge(); + //line 913 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eBot_Right = eLeft_Bot.get_nextLeftEdge(); + //line 915 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vTop = eTop_Left.get_originVertex(); + //line 916 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vLeft = eLeft_Right.get_originVertex(); + //line 917 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vBot = eBot_Right.get_originVertex(); + //line 918 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vRight = eRight_Left.get_originVertex(); + //line 920 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTop = eLeft_Right.get_leftFace(); + //line 921 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fBot = eRight_Left.get_leftFace(); + //line 924 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( (( vLeft.get_pos().x - x )) * (( vLeft.get_pos().x - x )) ) + ( (( vLeft.get_pos().y - y )) * (( vLeft.get_pos().y - y )) ) ) <= 0.0001 )) + { + //line 925 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return vLeft; + } + + //line 926 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( ( (( vRight.get_pos().x - x )) * (( vRight.get_pos().x - x )) ) + ( (( vRight.get_pos().y - y )) * (( vRight.get_pos().y - y )) ) ) <= 0.0001 )) + { + //line 927 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return vRight; + } + + //line 931 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vCenter = new hxDaedalus.data.Vertex(); + //line 933 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Center = new hxDaedalus.data.Edge(); + //line 934 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Top = new hxDaedalus.data.Edge(); + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eBot_Center = new hxDaedalus.data.Edge(); + //line 936 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Bot = new hxDaedalus.data.Edge(); + //line 938 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Center = new hxDaedalus.data.Edge(); + //line 939 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Left = new hxDaedalus.data.Edge(); + //line 940 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Center = new hxDaedalus.data.Edge(); + //line 941 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Right = new hxDaedalus.data.Edge(); + //line 943 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTopLeft = new hxDaedalus.data.Face(); + //line 944 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fBotLeft = new hxDaedalus.data.Face(); + //line 945 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fBotRight = new hxDaedalus.data.Face(); + //line 946 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTopRight = new hxDaedalus.data.Face(); + //line 949 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._vertices.push(vCenter); + //line 952 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Top); + //line 953 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eTop_Center); + //line 954 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Left); + //line 955 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eLeft_Center); + //line 956 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Bot); + //line 957 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eBot_Center); + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Right); + //line 959 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eRight_Center); + //line 962 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fTopRight); + //line 963 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fBotRight); + //line 964 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fBotLeft); + //line 965 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fTopLeft); + //line 968 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.setDatas(( (fTop.get_isReal()) ? (eCenter_Top) : (eCenter_Bot) ), null); + //line 969 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.get_pos().x = x; + //line 970 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.get_pos().y = y; + //line 971 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.projectOrthogonaly(vCenter.get_pos(), eLeft_Right); + //line 974 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Top.setDatas(vCenter, eTop_Center, eTop_Left, fTopLeft, fTop.get_isReal(), null); + //line 975 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Center.setDatas(vTop, eCenter_Top, eCenter_Right, fTopRight, fTop.get_isReal(), null); + //line 976 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Left.setDatas(vCenter, eLeft_Center, eLeft_Bot, fBotLeft, edge.get_isReal(), edge.get_isConstrained()); + //line 977 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Center.setDatas(vLeft, eCenter_Left, eCenter_Top, fTopLeft, edge.get_isReal(), edge.get_isConstrained()); + //line 978 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Bot.setDatas(vCenter, eBot_Center, eBot_Right, fBotRight, fBot.get_isReal(), null); + //line 979 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Center.setDatas(vBot, eCenter_Bot, eCenter_Left, fBotLeft, fBot.get_isReal(), null); + //line 980 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Right.setDatas(vCenter, eRight_Center, eRight_Top, fTopRight, edge.get_isReal(), edge.get_isConstrained()); + //line 981 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Center.setDatas(vRight, eCenter_Right, eCenter_Bot, fBotRight, edge.get_isReal(), edge.get_isConstrained()); + //line 984 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTopLeft.setDatas(eCenter_Top, fTop.get_isReal()); + //line 985 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fBotLeft.setDatas(eCenter_Left, fBot.get_isReal()); + //line 986 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fBotRight.setDatas(eCenter_Bot, fBot.get_isReal()); + //line 987 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTopRight.setDatas(eCenter_Right, fTop.get_isReal()); + //line 990 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vLeft.get_edge() == eLeft_Right )) + { + //line 990 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vLeft.setDatas(eLeft_Center, null); + } + + //line 991 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( vRight.get_edge() == eRight_Left )) + { + //line 991 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vRight.setDatas(eRight_Center, null); + } + + //line 995 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_nextLeftEdge(eLeft_Center); + //line 996 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_leftFace(fTopLeft); + //line 997 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Bot.set_nextLeftEdge(eBot_Center); + //line 998 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Bot.set_leftFace(fBotLeft); + //line 999 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Right.set_nextLeftEdge(eRight_Center); + //line 1000 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eBot_Right.set_leftFace(fBotRight); + //line 1001 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_nextLeftEdge(eTop_Center); + //line 1002 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_leftFace(fTopRight); + //line 1008 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (eLeft_Right.get_isConstrained()) + { + //line 1010 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array fromSegments = eLeft_Right.fromConstraintSegments; + //line 1011 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Center.fromConstraintSegments = fromSegments.slice(0, null); + //line 1012 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Left.fromConstraintSegments = eLeft_Center.fromConstraintSegments; + //line 1013 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Right.fromConstraintSegments = fromSegments.slice(0, null); + //line 1014 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Center.fromConstraintSegments = eCenter_Right.fromConstraintSegments; + //line 1016 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array edges = null; + //line 1017 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int index = 0; + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = eLeft_Right.fromConstraintSegments.length; + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = _g1++; + //line 1019 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges = eLeft_Right.fromConstraintSegments.__get(i).get_edges(); + //line 1020 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + index = edges.indexOf(eLeft_Right, null); + //line 1021 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index != -1 )) + { + //line 1022 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.splice(index, 1); + //line 1023 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(index, eLeft_Center); + //line 1024 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(( index + 1 ), eCenter_Right); + } + else + { + //line 1026 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + index = edges.indexOf(eRight_Left, null); + //line 1027 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.splice(index, 1); + //line 1028 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(index, eRight_Center); + //line 1029 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(( index + 1 ), eCenter_Left); + } + + } + + } + + //line 1033 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.set_fromConstraintSegments(fromSegments.slice(0, null)); + } + + //line 1038 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Right.dispose(); + //line 1039 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Left.dispose(); + //line 1040 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(eLeft_Right, null), 1); + //line 1041 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(eRight_Left, null), 1); + //line 1044 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTop.dispose(); + //line 1045 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fBot.dispose(); + //line 1046 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(fTop, null), 1); + //line 1047 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(fBot, null), 1); + //line 1050 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__centerVertex = vCenter; + //line 1051 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eTop_Left); + //line 1052 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eLeft_Bot); + //line 1053 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eBot_Right); + //line 1054 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eRight_Top); + //line 1056 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return vCenter; + } + + + public hxDaedalus.data.Vertex splitFace(hxDaedalus.data.Face face, double x, double y) + { + //line 1062 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.splice(0, this.__edgesToCheck.length); + //line 1065 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Left = face.get_edge(); + //line 1066 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Right = eTop_Left.get_nextLeftEdge(); + //line 1067 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Top = eLeft_Right.get_nextLeftEdge(); + //line 1069 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vTop = eTop_Left.get_originVertex(); + //line 1070 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vLeft = eLeft_Right.get_originVertex(); + //line 1071 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vRight = eRight_Top.get_originVertex(); + //line 1074 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vCenter = new hxDaedalus.data.Vertex(); + //line 1076 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eTop_Center = new hxDaedalus.data.Edge(); + //line 1077 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Top = new hxDaedalus.data.Edge(); + //line 1078 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eLeft_Center = new hxDaedalus.data.Edge(); + //line 1079 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Left = new hxDaedalus.data.Edge(); + //line 1080 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eRight_Center = new hxDaedalus.data.Edge(); + //line 1081 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge eCenter_Right = new hxDaedalus.data.Edge(); + //line 1083 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTopLeft = new hxDaedalus.data.Face(); + //line 1084 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fBot = new hxDaedalus.data.Face(); + //line 1085 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face fTopRight = new hxDaedalus.data.Face(); + //line 1088 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._vertices.push(vCenter); + //line 1091 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eTop_Center); + //line 1092 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Top); + //line 1093 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eLeft_Center); + //line 1094 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Left); + //line 1095 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eRight_Center); + //line 1096 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(eCenter_Right); + //line 1099 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fTopLeft); + //line 1100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fBot); + //line 1101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(fTopRight); + //line 1104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.setDatas(eCenter_Top, null); + //line 1105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.get_pos().x = x; + //line 1106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vCenter.get_pos().y = y; + //line 1109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Center.setDatas(vTop, eCenter_Top, eCenter_Right, fTopRight, null, null); + //line 1110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Top.setDatas(vCenter, eTop_Center, eTop_Left, fTopLeft, null, null); + //line 1111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Center.setDatas(vLeft, eCenter_Left, eCenter_Top, fTopLeft, null, null); + //line 1112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Left.setDatas(vCenter, eLeft_Center, eLeft_Right, fBot, null, null); + //line 1113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Center.setDatas(vRight, eCenter_Right, eCenter_Left, fBot, null, null); + //line 1114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eCenter_Right.setDatas(vCenter, eRight_Center, eRight_Top, fTopRight, null, null); + //line 1117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTopLeft.setDatas(eCenter_Top, null); + //line 1118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fBot.setDatas(eCenter_Left, null); + //line 1119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + fTopRight.setDatas(eCenter_Right, null); + //line 1122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_nextLeftEdge(eLeft_Center); + //line 1123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eTop_Left.set_leftFace(fTopLeft); + //line 1124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Right.set_nextLeftEdge(eRight_Center); + //line 1125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eLeft_Right.set_leftFace(fBot); + //line 1126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_nextLeftEdge(eTop_Center); + //line 1127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + eRight_Top.set_leftFace(fTopRight); + //line 1130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + face.dispose(); + //line 1131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(face, null), 1); + //line 1134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__centerVertex = vCenter; + //line 1135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eTop_Left); + //line 1136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eLeft_Right); + //line 1137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(eRight_Top); + //line 1139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return vCenter; + } + + + public void restoreAsDelaunay() + { + //line 1144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edge = null; + //line 1145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( this.__edgesToCheck.length > 0 )) + { + //line 1147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = ((hxDaedalus.data.Edge) (this.__edgesToCheck.shift()) ); + //line 1148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( edge.get_isReal() && ! (edge.get_isConstrained()) ) && ! (hxDaedalus.data.math.Geom2D.isDelaunay(edge)) )) + { + //line 1150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( edge.get_nextLeftEdge().get_destinationVertex() == this.__centerVertex )) + { + //line 1152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(edge.get_nextRightEdge()); + //line 1153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(edge.get_prevRightEdge()); + } + else + { + //line 1157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(edge.get_nextLeftEdge()); + //line 1158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck.push(edge.get_prevLeftEdge()); + } + + //line 1160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.flipEdge(edge); + } + + } + + } + + + public boolean deleteVertex(hxDaedalus.data.Vertex vertex) + { + //line 1172 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 1173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean freeOfConstraint = false; + //line 1174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.iterators.FromVertexToOutgoingEdges iterEdges = new hxDaedalus.iterators.FromVertexToOutgoingEdges(); + //line 1175 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterEdges.set_fromVertex(vertex); + //line 1176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterEdges.realEdgesOnly = false; + //line 1177 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edge = null; + //line 1178 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array outgoingEdges = new haxe.root.Array(); + //line 1180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + freeOfConstraint = ( vertex.get_fromConstraintSegments().length == 0 ); + //line 1184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array bound = new haxe.root.Array(); + //line 1187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean realA = false; + //line 1188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean realB = false; + //line 1189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array boundA = new haxe.root.Array(new hxDaedalus.data.Edge[]{}); + //line 1190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array boundB = new haxe.root.Array(new hxDaedalus.data.Edge[]{}); + //line 1192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (freeOfConstraint) + { + //line 1194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 1194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = iterEdges.next(); + //line 1194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( edge != null ))) ) + { + //line 1194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 1196 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + outgoingEdges.push(edge); + //line 1197 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.push(edge.get_nextLeftEdge()); + } + + } + else + { + //line 1203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array edges = null; + //line 1204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 1204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = vertex.get_fromConstraintSegments().length; + //line 1204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 1204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i1 = _g1++; + //line 1205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges = vertex.get_fromConstraintSegments().__get(i1).get_edges(); + //line 1206 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ( edges.__get(0).get_originVertex() == vertex ) || ( edges.__get(( edges.length - 1 )).get_destinationVertex() == vertex ) )) + { + //line 1209 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return false; + } + + } + + } + + //line 1215 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int count = 0; + //line 1216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 1216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = iterEdges.next(); + //line 1216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( edge != null ))) ) + { + //line 1216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 1218 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + outgoingEdges.push(edge); + //line 1220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (edge.get_isConstrained()) + { + //line 1222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ++ count; + //line 1223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( count > 2 )) + { + //line 1226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return false; + } + + } + + } + + //line 1235 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA = new haxe.root.Array(); + //line 1236 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB = new haxe.root.Array(); + //line 1237 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge constrainedEdgeA = null; + //line 1238 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge constrainedEdgeB = null; + //line 1239 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeA = new hxDaedalus.data.Edge(); + //line 1240 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeB = new hxDaedalus.data.Edge(); + //line 1244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeA); + //line 1245 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeB); + //line 1246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g11 = 0; + //line 1246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g2 = outgoingEdges.length; + //line 1246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g11 < _g2 )) + { + //line 1246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i2 = _g11++; + //line 1247 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = outgoingEdges.__get(i2); + //line 1248 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (edge.get_isConstrained()) + { + //line 1250 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( constrainedEdgeA == null )) + { + //line 1252 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeB.setDatas(edge.get_destinationVertex(), edgeA, null, null, true, true); + //line 1253 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA.push(edgeA); + //line 1254 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA.push(edge.get_nextLeftEdge()); + //line 1255 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB.push(edgeB); + //line 1256 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + constrainedEdgeA = edge; + } + else + { + //line 1258 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( constrainedEdgeB == null )) + { + //line 1260 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeA.setDatas(edge.get_destinationVertex(), edgeB, null, null, true, true); + //line 1261 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB.push(edge.get_nextLeftEdge()); + //line 1262 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + constrainedEdgeB = edge; + } + + } + + } + else + { + //line 1267 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( constrainedEdgeA == null )) + { + //line 1268 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB.push(edge.get_nextLeftEdge()); + } + else + { + //line 1269 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( constrainedEdgeB == null )) + { + //line 1270 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA.push(edge.get_nextLeftEdge()); + } + else + { + //line 1272 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB.push(edge.get_nextLeftEdge()); + } + + } + + } + + } + + } + + //line 1278 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + realA = constrainedEdgeA.get_leftFace().get_isReal(); + //line 1279 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + realB = constrainedEdgeB.get_leftFace().get_isReal(); + //line 1282 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeA.fromConstraintSegments = constrainedEdgeA.fromConstraintSegments.slice(0, null); + //line 1283 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeB.fromConstraintSegments = edgeA.fromConstraintSegments; + //line 1284 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int index = 0; + //line 1285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g12 = 0; + //line 1285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g3 = vertex.get_fromConstraintSegments().length; + //line 1285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g12 < _g3 )) + { + //line 1285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i3 = _g12++; + //line 1286 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges = vertex.get_fromConstraintSegments().__get(i3).get_edges(); + //line 1287 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + index = edges.indexOf(constrainedEdgeA, null); + //line 1288 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index != -1 )) + { + //line 1290 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.splice(( index - 1 ), 2); + //line 1292 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(( index - 1 ), edgeA); + } + else + { + //line 1296 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int index2 = ( edges.indexOf(constrainedEdgeB, null) - 1 ); + //line 1297 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.splice(index2, 2); + //line 1298 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edges.insert(index2, edgeB); + } + + } + + } + + } + + //line 1305 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face faceToDelete = null; + //line 1306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g13 = 0; + //line 1306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g4 = outgoingEdges.length; + //line 1306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g13 < _g4 )) + { + //line 1306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i4 = _g13++; + //line 1307 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge = outgoingEdges.__get(i4); + //line 1309 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + faceToDelete = edge.get_leftFace(); + //line 1310 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(faceToDelete, null), 1); + //line 1311 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + faceToDelete.dispose(); + //line 1313 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.get_destinationVertex().set_edge(edge.get_nextLeftEdge()); + //line 1315 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(edge.get_oppositeEdge(), null), 1); + //line 1316 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.get_oppositeEdge().dispose(); + //line 1317 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(edge, null), 1); + //line 1318 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edge.dispose(); + } + + } + + //line 1321 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._vertices.splice(this._vertices.indexOf(vertex, null), 1); + //line 1322 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex.dispose(); + //line 1325 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (freeOfConstraint) + { + //line 1328 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(bound, true); + } + else + { + //line 1333 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(boundA, realA); + //line 1334 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(boundB, realB); + } + + //line 1339 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return true; + } + + + public void untriangulate(haxe.root.Array edgesList) + { + //line 1351 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 1352 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.ds.ObjectMap verticesCleaned = new haxe.ds.ObjectMap(); + //line 1353 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge currEdge = null; + //line 1354 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge outEdge = null; + //line 1355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 1355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = edgesList.length; + //line 1355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 1355 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i1 = _g1++; + //line 1356 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = edgesList.__get(i1); + //line 1358 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (haxe.lang.Runtime.eq(verticesCleaned.get(currEdge.get_originVertex()), null)) + { + //line 1360 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_originVertex().set_edge(currEdge.get_prevLeftEdge().get_oppositeEdge()); + //line 1361 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + verticesCleaned.set(currEdge.get_originVertex(), true); + } + + //line 1363 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (haxe.lang.Runtime.eq(verticesCleaned.get(currEdge.get_destinationVertex()), null)) + { + //line 1365 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_destinationVertex().set_edge(currEdge.get_nextLeftEdge()); + //line 1366 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + verticesCleaned.set(currEdge.get_destinationVertex(), true); + } + + //line 1369 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(currEdge.get_leftFace(), null), 1); + //line 1370 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_leftFace().dispose(); + //line 1371 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( i1 == ( edgesList.length - 1 ) )) + { + //line 1373 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.splice(this._faces.indexOf(currEdge.get_rightFace(), null), 1); + //line 1374 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_rightFace().dispose(); + } + + } + + } + + //line 1380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g11 = 0; + //line 1380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g2 = edgesList.length; + //line 1380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g11 < _g2 )) + { + //line 1380 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i2 = _g11++; + //line 1381 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge = edgesList.__get(i2); + //line 1382 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(currEdge.get_oppositeEdge(), null), 1); + //line 1383 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.splice(this._edges.indexOf(currEdge, null), 1); + //line 1384 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.get_oppositeEdge().dispose(); + //line 1385 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + currEdge.dispose(); + } + + } + + } + + + public void triangulate(haxe.root.Array bound, boolean isReal) + { + //line 1393 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( bound.length < 2 )) + { + //line 1396 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ; + } + else + { + //line 1399 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( bound.length == 2 )) + { + //line 1403 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value = ( ( ( " - edge0: " + bound.__get(0).get_originVertex().get_id() ) + " -> " ) + bound.__get(0).get_destinationVertex().get_id() ); + //line 1404 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value1 = ( ( ( " - edge1: " + bound.__get(1).get_originVertex().get_id() ) + " -> " ) + bound.__get(1).get_destinationVertex().get_id() ); + //line 1405 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ; + } + else + { + //line 1408 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( bound.length == 3 )) + { + //line 1414 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face f = new hxDaedalus.data.Face(); + //line 1415 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + f.setDatas(bound.__get(0), isReal); + //line 1416 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces.push(f); + //line 1417 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(0).set_leftFace(f); + //line 1418 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(1).set_leftFace(f); + //line 1419 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(2).set_leftFace(f); + //line 1420 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(0).set_nextLeftEdge(bound.__get(1)); + //line 1421 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(1).set_nextLeftEdge(bound.__get(2)); + //line 1422 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + bound.__get(2).set_nextLeftEdge(bound.__get(0)); + } + else + { + //line 1433 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge baseEdge = bound.__get(0); + //line 1434 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexA = baseEdge.get_originVertex(); + //line 1435 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexB = baseEdge.get_destinationVertex(); + //line 1436 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexC = null; + //line 1437 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertexCheck = null; + //line 1438 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Point2D circumcenter = new hxDaedalus.data.math.Point2D(null, null); + //line 1439 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double radiusSquared = 0.0; + //line 1440 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + double distanceSquared = 0.0; + //line 1441 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean isDelaunay = false; + //line 1442 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int index = 0; + //line 1443 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 1444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 2; + //line 1444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = bound.length; + //line 1444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 1444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i1 = _g1++; + //line 1445 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexC = bound.__get(i1).get_originVertex(); + //line 1446 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( hxDaedalus.data.math.Geom2D.getRelativePosition2(vertexC.get_pos().x, vertexC.get_pos().y, baseEdge) == 1 )) + { + //line 1448 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + index = i1; + //line 1449 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + isDelaunay = true; + //line 1450 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.math.Geom2D.getCircumcenter(vertexA.get_pos().x, vertexA.get_pos().y, vertexB.get_pos().x, vertexB.get_pos().y, vertexC.get_pos().x, vertexC.get_pos().y, circumcenter); + //line 1451 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + radiusSquared = ( ( (( vertexA.get_pos().x - circumcenter.x )) * (( vertexA.get_pos().x - circumcenter.x )) ) + ( (( vertexA.get_pos().y - circumcenter.y )) * (( vertexA.get_pos().y - circumcenter.y )) ) ); + //line 1453 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + radiusSquared -= 0.0001; + //line 1454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g3 = 2; + //line 1454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g2 = bound.length; + //line 1454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g3 < _g2 )) + { + //line 1454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int j = _g3++; + //line 1455 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( j != i1 )) + { + //line 1457 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertexCheck = bound.__get(j).get_originVertex(); + //line 1458 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + distanceSquared = ( ( (( vertexCheck.get_pos().x - circumcenter.x )) * (( vertexCheck.get_pos().x - circumcenter.x )) ) + ( (( vertexCheck.get_pos().y - circumcenter.y )) * (( vertexCheck.get_pos().y - circumcenter.y )) ) ); + //line 1459 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( distanceSquared < radiusSquared )) + { + //line 1461 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + isDelaunay = false; + //line 1462 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + } + + } + + } + + //line 1467 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (isDelaunay) + { + //line 1468 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + } + + } + + } + + //line 1472 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (isDelaunay) ) + { + //line 1476 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.String s = ""; + //line 1477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g11 = 0; + //line 1477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g4 = bound.length; + //line 1477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g11 < _g4 )) + { + //line 1477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i2 = _g11++; + //line 1478 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + s += ( haxe.lang.Runtime.toString(bound.__get(i2).get_originVertex().get_pos().x) + " , " ); + //line 1479 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + s += ( haxe.lang.Runtime.toString(bound.__get(i2).get_originVertex().get_pos().y) + " , " ); + //line 1480 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + s += ( haxe.lang.Runtime.toString(bound.__get(i2).get_destinationVertex().get_pos().x) + " , " ); + //line 1481 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + s += ( haxe.lang.Runtime.toString(bound.__get(i2).get_destinationVertex().get_pos().y) + " , " ); + } + + } + + //line 1485 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + index = 2; + } + + //line 1489 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeA = null; + //line 1490 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeAopp = null; + //line 1491 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeB = null; + //line 1492 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge edgeBopp = null; + //line 1493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array boundA = null; + //line 1494 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array boundM = null; + //line 1497 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.root.Array boundB = null; + //line 1499 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index < ( bound.length - 1 ) )) + { + //line 1501 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeA = new hxDaedalus.data.Edge(); + //line 1502 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeAopp = new hxDaedalus.data.Edge(); + //line 1503 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeA); + //line 1504 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeAopp); + //line 1505 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeA.setDatas(vertexA, edgeAopp, null, null, isReal, false); + //line 1506 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeAopp.setDatas(bound.__get(index).get_originVertex(), edgeA, null, null, isReal, false); + //line 1507 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA = bound.slice(index, null); + //line 1508 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundA.push(edgeA); + //line 1509 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(boundA, isReal); + } + + //line 1512 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index > 2 )) + { + //line 1514 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeB = new hxDaedalus.data.Edge(); + //line 1515 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeBopp = new hxDaedalus.data.Edge(); + //line 1516 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeB); + //line 1517 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges.push(edgeBopp); + //line 1518 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeB.setDatas(bound.__get(1).get_originVertex(), edgeBopp, null, null, isReal, false); + //line 1519 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + edgeBopp.setDatas(bound.__get(index).get_originVertex(), edgeB, null, null, isReal, false); + //line 1520 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB = bound.slice(1, index); + //line 1521 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundB.push(edgeBopp); + //line 1522 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(boundB, isReal); + } + + //line 1525 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index == 2 )) + { + //line 1526 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundM = new haxe.root.Array(new hxDaedalus.data.Edge[]{baseEdge, bound.__get(1), edgeAopp}); + } + else + { + //line 1527 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( index == ( bound.length - 1 ) )) + { + //line 1528 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundM = new haxe.root.Array(new hxDaedalus.data.Edge[]{baseEdge, edgeB, bound.__get(index)}); + } + else + { + //line 1530 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boundM = new haxe.root.Array(new hxDaedalus.data.Edge[]{baseEdge, edgeB, edgeAopp}); + } + + } + + //line 1533 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(boundM, isReal); + } + + } + + } + + } + + + public int findPositionFromBounds(double x, double y) + { + //line 1548 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( x <= 0 )) + { + //line 1549 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y <= 0 )) + { + //line 1549 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 1; + } + else + { + //line 1550 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y >= this._height )) + { + //line 1550 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 7; + } + else + { + //line 1551 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 8; + } + + } + + } + else + { + //line 1552 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( x >= this._width )) + { + //line 1553 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y <= 0 )) + { + //line 1553 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 3; + } + else + { + //line 1554 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y >= this._height )) + { + //line 1554 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 5; + } + else + { + //line 1555 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 4; + } + + } + + } + else + { + //line 1557 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y <= 0 )) + { + //line 1557 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 2; + } + else + { + //line 1558 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( y >= this._height )) + { + //line 1558 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 6; + } + else + { + //line 1559 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return 0; + } + + } + + } + + } + + } + + + public void debug() + { + //line 1565 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i = 0; + //line 1566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g1 = 0; + //line 1566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g = this._vertices.length; + //line 1566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g1 < _g )) + { + //line 1566 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i1 = _g1++; + //line 1567 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value = ( "-- vertex " + this._vertices.__get(i1).get_id() ); + //line 1568 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value1 = ( ( ( " edge " + this._vertices.__get(i1).get_edge().get_id() ) + " - " ) + haxe.root.Std.string(this._vertices.__get(i1).get_edge()) ); + //line 1569 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value2 = ( " edge isReal: " + haxe.root.Std.string(this._vertices.__get(i1).get_edge().get_isReal()) ); + } + + } + + //line 1571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 1571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g11 = 0; + //line 1571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int _g2 = this._edges.length; + //line 1571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (( _g11 < _g2 )) + { + //line 1571 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + int i2 = _g11++; + //line 1572 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value3 = ( "-- edge " + haxe.root.Std.string(this._edges.__get(i2)) ); + //line 1573 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value4 = ( ( ( " isReal " + this._edges.__get(i2).get_id() ) + " - " ) + haxe.root.Std.string(this._edges.__get(i2).get_isReal()) ); + //line 1574 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value5 = ( " nextLeftEdge " + haxe.root.Std.string(this._edges.__get(i2).get_nextLeftEdge()) ); + //line 1575 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object value6 = ( " oppositeEdge " + haxe.root.Std.string(this._edges.__get(i2).get_oppositeEdge()) ); + } + + } + + } + + + public java.lang.Object getVerticesAndEdges() + { + //line 1581 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + java.lang.Object res = new haxe.lang.DynamicObject(new java.lang.String[]{"edges", "vertices"}, new java.lang.Object[]{new haxe.root.Array(new hxDaedalus.data.Edge[]{}), new haxe.root.Array(new hxDaedalus.data.Vertex[]{})}, new java.lang.String[]{}, new double[]{}); + //line 1582 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Vertex vertex = null; + //line 1583 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Edge incomingEdge = null; + //line 1584 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.data.Face holdingFace = null; + //line 1586 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.iterators.FromMeshToVertices iterVertices = new hxDaedalus.iterators.FromMeshToVertices(); + //line 1588 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterVertices.set_fromMesh(this); + //line 1590 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + hxDaedalus.iterators.FromVertexToIncomingEdges iterEdges = new hxDaedalus.iterators.FromVertexToIncomingEdges(); + //line 1592 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + haxe.ds.ObjectMap dictVerticesDone = new haxe.ds.ObjectMap(); + //line 1594 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 1594 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + vertex = iterVertices.next(); + //line 1594 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( vertex != null ))) ) + { + //line 1594 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 1596 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + dictVerticesDone.set(vertex, true); + //line 1597 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! (( ! ((( ( ( ( vertex.get_pos().x < 0 ) || ( vertex.get_pos().x > this.get_width() ) ) || ( vertex.get_pos().y < 0 ) ) || ( vertex.get_pos().y > this.get_height() ) ))) )) ) + { + //line 1598 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + continue; + } + + //line 1600 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((haxe.root.Array) (haxe.lang.Runtime.getField(res, "vertices", true)) ).push(vertex); + //line 1602 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + iterEdges.set_fromVertex(vertex); + //line 1603 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + while (true) + { + //line 1603 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + incomingEdge = iterEdges.next(); + //line 1603 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if ( ! ((( incomingEdge != null ))) ) + { + //line 1603 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + //line 1605 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (( ! (haxe.lang.Runtime.toBool(dictVerticesDone.get(incomingEdge.get_originVertex()))) )) + { + //line 1607 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + ((haxe.root.Array) (haxe.lang.Runtime.getField(res, "edges", true)) ).push(incomingEdge); + } + + } + + } + + //line 1611 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return res; + } + + + public final boolean vertexIsInsideAABB(hxDaedalus.data.Vertex vertex, hxDaedalus.data.Mesh mesh) + { + //line 1616 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ! ((( ( ( ( vertex.get_pos().x < 0 ) || ( vertex.get_pos().x > mesh.get_width() ) ) || ( vertex.get_pos().y < 0 ) ) || ( vertex.get_pos().y > mesh.get_height() ) ))) ; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (field.hashCode()) + { + case 1487441478: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._height = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94650: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._id = ((int) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1462071097: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._width = ((double) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (field.hashCode()) + { + case -542726801: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__objectsUpdateInProgress")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__objectsUpdateInProgress = haxe.lang.Runtime.toBool(value); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 918617282: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.set_clipping(haxe.lang.Runtime.toBool(value)); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 367204343: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__edgesToCheck")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__edgesToCheck = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94650: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1431196217: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__centerVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.__centerVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1462071097: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._width = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 698575829: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_objects")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._objects = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1487441478: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._height = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1416138866: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_constraintShapes")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._constraintShapes = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1009135137: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._clipping = haxe.lang.Runtime.toBool(value); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1478010697: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_faces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._faces = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1893623464: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_vertices")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._vertices = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1478841001: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_edges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this._edges = ((haxe.root.Array) (value) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return value; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (field.hashCode()) + { + case 37005034: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("vertexIsInsideAABB")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "vertexIsInsideAABB")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1221029593: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_height(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1049073998: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("getVerticesAndEdges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getVerticesAndEdges")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 113126854: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_width(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 95458899: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("debug")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "debug")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 918617282: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_clipping(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1886126431: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("findPositionFromBounds")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findPositionFromBounds")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 3355: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_id(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -569584212: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("triangulate")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "triangulate")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1648731889: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__constraintShapes")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get___constraintShapes(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 776199539: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("untriangulate")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "untriangulate")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94650: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._id; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -687999185: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteVertex")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1462071097: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._width; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 206143175: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("restoreAsDelaunay")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "restoreAsDelaunay")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1487441478: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._height; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 403916951: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("splitFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "splitFace")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1009135137: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._clipping; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 403890167: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("splitEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "splitEdge")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1893623464: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_vertices")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._vertices; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1850794954: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("flipEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "flipEdge")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1478841001: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_edges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._edges; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 826126781: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertVertex")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1478010697: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_faces")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._faces; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94627080: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("check")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "check")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1416138866: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_constraintShapes")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._constraintShapes; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 997368875: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteConstraintSegment")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteConstraintSegment")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 698575829: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_objects")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._objects; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1763944460: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertNewConstrainedEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertNewConstrainedEdge")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1431196217: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__centerVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.__centerVertex; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1434164003: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertConstraintSegment")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertConstraintSegment")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 367204343: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__edgesToCheck")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.__edgesToCheck; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 528495257: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteConstraintShape")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteConstraintShape")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 859648560: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_height")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1190234165: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertConstraintShape")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertConstraintShape")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1150076829: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_width")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1139367947: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("updateObjects")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateObjects")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1004437621: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_clipping")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -542726801: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("__objectsUpdateInProgress")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.__objectsUpdateInProgress; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 544555007: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("set_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_clipping")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -891426614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteObject")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteObject")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1249338716: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 622699352: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertObject")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertObject")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1671767583: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("dispose")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -784041559: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("buildFromRecord")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "buildFromRecord")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -42945384: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get___constraintShapes")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get___constraintShapes")) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (field.hashCode()) + { + case 1487441478: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._height; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1221029593: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_height(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1462071097: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this._width; + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 113126854: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_width(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94650: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((double) (this._id) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 3355: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return ((double) (this.get_id()) ); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + boolean __temp_executeDef1 = true; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + switch (field.hashCode()) + { + case 37005034: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("vertexIsInsideAABB")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.vertexIsInsideAABB(((hxDaedalus.data.Vertex) (dynargs.__get(0)) ), ((hxDaedalus.data.Mesh) (dynargs.__get(1)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 859648560: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_height")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_height(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1049073998: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("getVerticesAndEdges")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.getVerticesAndEdges(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1150076829: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_width")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_width(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 95458899: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("debug")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.debug(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1004437621: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_clipping(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1886126431: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("findPositionFromBounds")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.findPositionFromBounds(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 544555007: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("set_clipping")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.set_clipping(haxe.lang.Runtime.toBool(dynargs.__get(0))); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -569584212: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("triangulate")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.triangulate(((haxe.root.Array) (dynargs.__get(0)) ), haxe.lang.Runtime.toBool(dynargs.__get(1))); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1249338716: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get_id")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get_id(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 776199539: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("untriangulate")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.untriangulate(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1671767583: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("dispose")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.dispose(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -687999185: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.deleteVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -42945384: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("get___constraintShapes")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.get___constraintShapes(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 206143175: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("restoreAsDelaunay")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.restoreAsDelaunay(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -784041559: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("buildFromRecord")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.buildFromRecord(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 403916951: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("splitFace")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.splitFace(((hxDaedalus.data.Face) (dynargs.__get(0)) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 622699352: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertObject")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertObject(((hxDaedalus.data.Obstacle) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 403890167: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("splitEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.splitEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -891426614: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteObject")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteObject(((hxDaedalus.data.Obstacle) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1850794954: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("flipEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.flipEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1139367947: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("updateObjects")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.updateObjects(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 826126781: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertVertex")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.insertVertex(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1190234165: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertConstraintShape")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.insertConstraintShape(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 94627080: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("check")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.check(); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 528495257: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteConstraintShape")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteConstraintShape(((hxDaedalus.data.ConstraintShape) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 997368875: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("deleteConstraintSegment")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.deleteConstraintSegment(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case -1434164003: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertConstraintSegment")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return this.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + case 1763944460: + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (field.equals("insertNewConstrainedEdge")) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + __temp_executeDef1 = false; + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + this.insertNewConstrainedEdge(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) ), ((hxDaedalus.data.Edge) (dynargs.__get(1)) ), ((haxe.root.Array) (dynargs.__get(2)) ), ((haxe.root.Array) (dynargs.__get(3)) ), ((haxe.root.Array) (dynargs.__get(4)) )); + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + break; + } + + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + if (__temp_executeDef1) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("__objectsUpdateInProgress"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("__edgesToCheck"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("__centerVertex"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_objects"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_constraintShapes"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_faces"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_edges"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_vertices"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_clipping"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_height"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_width"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("_id"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("__constraintShapes"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("id"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("clipping"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("width"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + baseArr.push("height"); + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Mesh.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Obstacle.java b/src/main/java/hxDaedalus/data/Obstacle.java new file mode 100644 index 0000000..01b95e4 --- /dev/null +++ b/src/main/java/hxDaedalus/data/Obstacle.java @@ -0,0 +1,2810 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Obstacle extends haxe.lang.HxObject +{ + static + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + hxDaedalus.data.Obstacle.INC = 0; + } + + public Obstacle(haxe.lang.EmptyObject empty) + { + } + + + public Obstacle() + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + hxDaedalus.data.Obstacle.__hx_ctor_hxDaedalus_data_Object(this); + } + + + public static void __hx_ctor_hxDaedalus_data_Object(hxDaedalus.data.Obstacle __hx_this) + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._id = hxDaedalus.data.Obstacle.INC; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + hxDaedalus.data.Obstacle.INC++; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._pivotX = ((double) (0) ); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._pivotY = ((double) (0) ); + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._matrix = new hxDaedalus.data.math.Matrix2D(null, null, null, null, null, null); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._scaleX = ((double) (1) ); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._scaleY = ((double) (1) ); + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._rotation = ((double) (0) ); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._x = ((double) (0) ); + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._y = ((double) (0) ); + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._coordinates = new haxe.root.Array(); + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __hx_this._hasChanged = false; + } + + + public static int INC; + + + + + + + + + + + + + + + + + + + + + + + + + + + + public int _id; + + public hxDaedalus.data.math.Matrix2D _matrix; + + public haxe.root.Array _coordinates; + + public hxDaedalus.data.ConstraintShape _constraintShape; + + public double _pivotX; + + public double _pivotY; + + public double _scaleX; + + public double _scaleY; + + public double _rotation; + + public double _x; + + public double _y; + + public boolean _hasChanged; + + public int get_id() + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._id; + } + + + public void dispose() + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix = null; + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._coordinates = null; + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._constraintShape = null; + } + + + public void updateValuesFromMatrix() + { + } + + + public void updateMatrixFromValues() + { + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix.identity(); + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix.translate( - (this._pivotX) , - (this._pivotY) ); + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix.scale(this._scaleX, this._scaleY); + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix.rotate(this._rotation); + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix.translate(this._x, this._y); + } + + + public double get_pivotX() + { + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotX; + } + + + public double set_pivotX(double value) + { + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotX = value; + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_pivotY() + { + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotY; + } + + + public double set_pivotY(double value) + { + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotY = value; + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_scaleX() + { + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleX; + } + + + public double set_scaleX(double value) + { + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (( this._scaleX != value )) + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleX = value; + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + } + + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_scaleY() + { + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleY; + } + + + public double set_scaleY(double value) + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (( this._scaleY != value )) + { + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleY = value; + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + } + + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_rotation() + { + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._rotation; + } + + + public double set_rotation(double value) + { + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (( this._rotation != value )) + { + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._rotation = value; + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + } + + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_x() + { + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._x; + } + + + public double set_x(double value) + { + //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (( this._x != value )) + { + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._x = value; + //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + } + + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public double get_y() + { + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._y; + } + + + public double set_y(double value) + { + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (( this._y != value )) + { + //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._y = value; + //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + } + + //line 160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public hxDaedalus.data.math.Matrix2D get_matrix() + { + //line 164 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._matrix; + } + + + public hxDaedalus.data.math.Matrix2D set_matrix(hxDaedalus.data.math.Matrix2D value) + { + //line 168 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix = value; + //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public haxe.root.Array get_coordinates() + { + //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._coordinates; + } + + + public haxe.root.Array set_coordinates(haxe.root.Array value) + { + //line 178 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._coordinates = value; + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + //line 180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public hxDaedalus.data.ConstraintShape get_constraintShape() + { + //line 185 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._constraintShape; + } + + + public hxDaedalus.data.ConstraintShape set_constraintShape(hxDaedalus.data.ConstraintShape value) + { + //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._constraintShape = value; + //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = true; + //line 191 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public boolean get_hasChanged() + { + //line 195 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._hasChanged; + } + + + public boolean set_hasChanged(boolean value) + { + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = value; + //line 200 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + + public haxe.root.Array get_edges() + { + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + haxe.root.Array res = new haxe.root.Array(); + //line 206 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + haxe.root.Array seg = this._constraintShape.segments; + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int _g1 = 0; + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int _g = seg.length; + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + while (( _g1 < _g )) + { + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int i = _g1++; + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int _g3 = 0; + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int _g2 = seg.__get(i).get_edges().length; + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + while (( _g3 < _g2 )) + { + //line 208 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + int j = _g3++; + //line 209 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + res.push(seg.__get(i).get_edges().__get(j)); + } + + } + + } + + } + + //line 213 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return res; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + switch (field.hashCode()) + { + case 3066: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._y = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_pivotX(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3065: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._x = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906985: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_pivotY(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 50217181: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._rotation = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_scaleX(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281454: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleY = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189617: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_scaleY(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281453: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleX = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -40300674: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_rotation(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564086: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotY = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_x(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564085: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotX = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_y(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._id = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + switch (field.hashCode()) + { + case -435323815: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._hasChanged = haxe.lang.Runtime.toBool(value); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_pivotX(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3066: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._y = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906985: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_pivotY(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3065: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._x = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_scaleX(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 50217181: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._rotation = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189617: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_scaleY(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281454: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleY = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -40300674: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_rotation(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281453: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._scaleX = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_x(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564086: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotY = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_y(((double) (haxe.lang.Runtime.toDouble(value)) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564085: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._pivotX = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1081239615: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_matrix(((hxDaedalus.data.math.Matrix2D) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -461323899: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._constraintShape = ((hxDaedalus.data.ConstraintShape) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1871919611: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_coordinates(((haxe.root.Array) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1249876028: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._coordinates = ((haxe.root.Array) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 794782660: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_constraintShape(((hxDaedalus.data.ConstraintShape) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1627231456: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._matrix = ((hxDaedalus.data.math.Matrix2D) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1523636550: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.set_hasChanged(haxe.lang.Runtime.toBool(value)); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + switch (field.hashCode()) + { + case 1133306925: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_edges")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -220229961: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_hasChanged")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1551506243: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasChanged")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906985: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1653701095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_constraintShape")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1097538341: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_constraintShape")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189617: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -672149090: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_coordinates")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -40300674: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_rotation(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1582901614: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_coordinates")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1358723522: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_matrix")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 999438538: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_matrix")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1081239615: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_matrix(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 109328348: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_y")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1871919611: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_coordinates(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 98246096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_y")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 794782660: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_constraintShape(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 109328347: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_x")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1523636550: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_hasChanged(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 98246095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_x")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 96356950: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_edges(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -414362949: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_rotation")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._id; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1963355577: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rotation")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1627231456: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._matrix; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1185673524: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_scaleY")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1249876028: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._coordinates; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1172488536: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_scaleY")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -461323899: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._constraintShape; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1185673525: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_scaleX")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564085: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1172488535: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_scaleX")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564086: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1265390892: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_pivotY")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281453: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1092771168: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_pivotY")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281454: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1265390893: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_pivotX")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 50217181: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._rotation; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1092771167: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_pivotX")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3065: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1369572618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("updateMatrixFromValues")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateMatrixFromValues")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3066: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1115911606: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("updateValuesFromMatrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateValuesFromMatrix")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -435323815: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._hasChanged; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + switch (field.hashCode()) + { + case 3066: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._y; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((double) (this.get_id()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 3065: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._x; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906986: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 50217181: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._rotation; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -987906985: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281454: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1800281453: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._scaleX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -908189617: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564086: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotY; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -40300674: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_rotation(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1720564085: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this._pivotX; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 120: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return ((double) (this._id) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 121: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + switch (field.hashCode()) + { + case 1133306925: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_edges")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_edges(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -220229961: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_hasChanged(haxe.lang.Runtime.toBool(dynargs.__get(0))); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.dispose(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1551506243: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_hasChanged")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_hasChanged(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1115911606: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("updateValuesFromMatrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.updateValuesFromMatrix(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1653701095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_constraintShape(((hxDaedalus.data.ConstraintShape) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1369572618: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("updateMatrixFromValues")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + this.updateMatrixFromValues(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1097538341: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_constraintShape")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_constraintShape(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1092771167: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -672149090: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_coordinates(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1265390893: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_pivotX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_pivotX(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1582901614: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_coordinates")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_coordinates(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1092771168: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_pivotY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1358723522: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_matrix(((hxDaedalus.data.math.Matrix2D) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1265390892: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_pivotY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_pivotY(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 999438538: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_matrix")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_matrix(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1172488535: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleX(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 109328348: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_y(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1185673525: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_scaleX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_scaleX(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 98246096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_y")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_y(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 1172488536: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_scaleY(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 109328347: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_x(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1185673524: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_scaleY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_scaleY(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case 98246095: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_x")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_x(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -1963355577: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("get_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.get_rotation(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + case -414362949: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (field.equals("set_rotation")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return this.set_rotation(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_hasChanged"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_y"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_x"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_rotation"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_scaleY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_scaleX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_pivotY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_pivotX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_constraintShape"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_coordinates"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_matrix"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("_id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("edges"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("hasChanged"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("constraintShape"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("coordinates"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("matrix"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("y"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("x"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("rotation"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("scaleY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("scaleX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("pivotY"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("pivotX"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + baseArr.push("id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Object.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/Vertex.java b/src/main/java/hxDaedalus/data/Vertex.java new file mode 100644 index 0000000..ade86a0 --- /dev/null +++ b/src/main/java/hxDaedalus/data/Vertex.java @@ -0,0 +1,1126 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Vertex extends haxe.lang.HxObject +{ + static + { + //line 14 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + hxDaedalus.data.Vertex.INC = 0; + } + + public Vertex(haxe.lang.EmptyObject empty) + { + } + + + public Vertex() + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + hxDaedalus.data.Vertex.__hx_ctor_hxDaedalus_data_Vertex(this); + } + + + public static void __hx_ctor_hxDaedalus_data_Vertex(hxDaedalus.data.Vertex __hx_this) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __hx_this.colorDebug = -1; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __hx_this._id = hxDaedalus.data.Vertex.INC; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + hxDaedalus.data.Vertex.INC++; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __hx_this._pos = new hxDaedalus.data.math.Point2D(null, null); + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __hx_this._fromConstraintSegments = new haxe.root.Array(); + } + + + public static int INC; + + + + + + + + + + + + public int _id; + + public hxDaedalus.data.math.Point2D _pos; + + public boolean _isReal; + + public hxDaedalus.data.Edge _edge; + + public haxe.root.Array _fromConstraintSegments; + + public int colorDebug; + + public int get_id() + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._id; + } + + + public boolean get_isReal() + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._isReal; + } + + + public hxDaedalus.data.math.Point2D get_pos() + { + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._pos; + } + + + public haxe.root.Array get_fromConstraintSegments() + { + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._fromConstraintSegments; + } + + + public haxe.root.Array set_fromConstraintSegments(haxe.root.Array value) + { + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._fromConstraintSegments = value; + } + + + public void setDatas(hxDaedalus.data.Edge edge, java.lang.Object isReal) + { + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_isReal6 = ( (haxe.lang.Runtime.eq(isReal, null)) ? (true) : (haxe.lang.Runtime.toBool(isReal)) ); + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._isReal = __temp_isReal6; + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._edge = edge; + } + + + public void addFromConstraintSegment(hxDaedalus.data.ConstraintSegment segment) + { + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (( this._fromConstraintSegments.indexOf(segment, null) == -1 )) + { + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._fromConstraintSegments.push(segment); + } + + } + + + public void removeFromConstraintSegment(hxDaedalus.data.ConstraintSegment segment) + { + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + int index = this._fromConstraintSegments.indexOf(segment, null); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (( index != -1 )) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._fromConstraintSegments.splice(index, 1); + } + + } + + + public void dispose() + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._pos = null; + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._edge = null; + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._fromConstraintSegments = null; + } + + + public hxDaedalus.data.Edge get_edge() + { + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._edge; + } + + + public hxDaedalus.data.Edge set_edge(hxDaedalus.data.Edge value) + { + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._edge = value; + } + + + @Override public java.lang.String toString() + { + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ( "ver_id " + this._id ); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.colorDebug = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._id = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.colorDebug = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -528444953: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.set_fromConstraintSegments(((haxe.root.Array) (value) )); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1760063750: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._fromConstraintSegments = ((haxe.root.Array) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 3108285: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.set_edge(((hxDaedalus.data.Edge) (value) )); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 90842780: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._edge = ((hxDaedalus.data.Edge) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1528312583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._isReal = haxe.lang.Runtime.toBool(value); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 2941333: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_pos")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this._pos = ((hxDaedalus.data.math.Point2D) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("toString")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1415108474: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("set_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_edge")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -1180158488: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_isReal(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1976220934: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_edge")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 111188: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("pos")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_pos(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -528444953: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_fromConstraintSegments(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1170407912: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("removeFromConstraintSegment")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeFromConstraintSegment")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 3108285: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_edge(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 910337515: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("addFromConstraintSegment")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addFromConstraintSegment")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._id; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1390069447: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("setDatas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDatas")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 2941333: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_pos")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._pos; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -1790187932: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("set_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromConstraintSegments")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1528312583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._isReal; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 2132541680: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_fromConstraintSegments")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 90842780: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._edge; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -74787349: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_pos")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_pos")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1760063750: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this._fromConstraintSegments; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 900519665: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_isReal")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.colorDebug; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + switch (field.hashCode()) + { + case 1264295088: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("colorDebug")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((double) (this.colorDebug) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 3355: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((double) (this.get_id()) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 94650: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return ((double) (this._id) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("toString")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.toString(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -1249338716: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_id")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_id(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1415108474: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("set_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.set_edge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 900519665: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_isReal")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_isReal(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1976220934: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_edge")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_edge(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -74787349: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_pos")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_pos(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1671767583: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("dispose")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.dispose(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 2132541680: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("get_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.get_fromConstraintSegments(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1170407912: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("removeFromConstraintSegment")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.removeFromConstraintSegment(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case -1790187932: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("set_fromConstraintSegments")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return this.set_fromConstraintSegments(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 910337515: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("addFromConstraintSegment")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.addFromConstraintSegment(((hxDaedalus.data.ConstraintSegment) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + case 1390069447: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (field.equals("setDatas")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + this.setDatas(((hxDaedalus.data.Edge) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("colorDebug"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("_fromConstraintSegments"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("_edge"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("_isReal"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("_pos"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("_id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("edge"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("fromConstraintSegments"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("pos"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("isReal"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + baseArr.push("id"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Vertex.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/graph/Graph.java b/src/main/java/hxDaedalus/data/graph/Graph.java new file mode 100644 index 0000000..7f56673 --- /dev/null +++ b/src/main/java/hxDaedalus/data/graph/Graph.java @@ -0,0 +1,933 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.graph; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Graph extends haxe.lang.HxObject +{ + static + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.Graph.INC = 0; + } + + public Graph(haxe.lang.EmptyObject empty) + { + } + + + public Graph() + { + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.Graph.__hx_ctor_hxDaedalus_data_graph_Graph(this); + } + + + public static void __hx_ctor_hxDaedalus_data_graph_Graph(hxDaedalus.data.graph.Graph __hx_this) + { + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __hx_this._id = hxDaedalus.data.graph.Graph.INC; + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.Graph.INC++; + } + + + public static int INC; + + + + public int get_id() + { + //line 10 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._id; + } + + + + + public hxDaedalus.data.graph.GraphEdge get_edge() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._edge; + } + + + + + public hxDaedalus.data.graph.GraphNode get_node() + { + //line 14 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._node; + } + + + public int _id; + + public hxDaedalus.data.graph.GraphNode _node; + + public hxDaedalus.data.graph.GraphEdge _edge; + + public void dispose() + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + while (( this._node != null )) + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteNode(this._node); + } + + } + + + public hxDaedalus.data.graph.GraphNode insertNode() + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.GraphNode node = new hxDaedalus.data.graph.GraphNode(); + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( this._node != null )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.set_next(this._node); + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._node.set_prev(node); + } + + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._node = node; + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return node; + } + + + public void deleteNode(hxDaedalus.data.graph.GraphNode node) + { + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + while (( node.get_outgoingEdge() != null )) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( node.get_outgoingEdge().get_oppositeEdge() != null )) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteEdge(node.get_outgoingEdge().get_oppositeEdge()); + } + + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteEdge(node.get_outgoingEdge()); + } + + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.GraphNode otherNode = this._node; + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.GraphEdge incomingEdge = null; + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + while (( otherNode != null )) + { + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + incomingEdge = ((hxDaedalus.data.graph.GraphEdge) (((haxe.ds.ObjectMap) (((haxe.IMap) (otherNode.get_successorNodes()) )) ).get(node)) ); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( incomingEdge != null )) + { + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteEdge(incomingEdge); + } + + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + otherNode = otherNode.get_next(); + } + + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( this._node == node )) + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( node.get_next() != null )) + { + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.get_next().set_prev(null); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._node = node.get_next(); + } + else + { + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._node = null; + } + + } + else + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( node.get_next() != null )) + { + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.get_prev().set_next(node.get_next()); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.get_next().set_prev(node.get_prev()); + } + else + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.get_prev().set_next(null); + } + + } + + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + node.dispose(); + } + + + public hxDaedalus.data.graph.GraphEdge insertEdge(hxDaedalus.data.graph.GraphNode fromNode, hxDaedalus.data.graph.GraphNode toNode) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( ((hxDaedalus.data.graph.GraphEdge) (((haxe.ds.ObjectMap) (((haxe.IMap) (fromNode.get_successorNodes()) )) ).get(toNode)) ) != null )) + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return null; + } + + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.GraphEdge edge = new hxDaedalus.data.graph.GraphEdge(); + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( this._edge != null )) + { + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._edge.set_prev(edge); + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.set_next(this._edge); + } + + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._edge = edge; + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.set_sourceNode(fromNode); + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.set_destinationNode(toNode); + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + ((haxe.ds.ObjectMap) (((haxe.IMap) (fromNode.get_successorNodes()) )) ).set(toNode, edge); + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( fromNode.get_outgoingEdge() != null )) + { + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + fromNode.get_outgoingEdge().set_rotPrevEdge(edge); + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.set_rotNextEdge(fromNode.get_outgoingEdge()); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + fromNode.set_outgoingEdge(edge); + } + else + { + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + fromNode.set_outgoingEdge(edge); + } + + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + hxDaedalus.data.graph.GraphEdge oppositeEdge = ((hxDaedalus.data.graph.GraphEdge) (((haxe.ds.ObjectMap) (((haxe.IMap) (toNode.get_successorNodes()) )) ).get(fromNode)) ); + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( oppositeEdge != null )) + { + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.set_oppositeEdge(oppositeEdge); + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + oppositeEdge.set_oppositeEdge(edge); + } + + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return edge; + } + + + public void deleteEdge(hxDaedalus.data.graph.GraphEdge edge) + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( this._edge == edge )) + { + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( edge.get_next() != null )) + { + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_next().set_prev(null); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._edge = edge.get_next(); + } + else + { + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._edge = null; + } + + } + else + { + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( edge.get_next() != null )) + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_prev().set_next(edge.get_next()); + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_next().set_prev(edge.get_prev()); + } + else + { + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_prev().set_next(null); + } + + } + + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( edge.get_sourceNode().get_outgoingEdge() == edge )) + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( edge.get_rotNextEdge() != null )) + { + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_rotNextEdge().set_rotPrevEdge(null); + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_sourceNode().set_outgoingEdge(edge.get_rotNextEdge()); + } + else + { + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_sourceNode().set_outgoingEdge(null); + } + + } + else + { + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (( edge.get_rotNextEdge() != null )) + { + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_rotPrevEdge().set_rotNextEdge(edge.get_rotNextEdge()); + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_rotNextEdge().set_rotPrevEdge(edge.get_rotPrevEdge()); + } + else + { + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.get_rotPrevEdge().set_rotNextEdge(null); + } + + } + + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + edge.dispose(); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._id = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + switch (field.hashCode()) + { + case 90842780: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_edge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._edge = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 91121377: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_node")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this._node = ((hxDaedalus.data.graph.GraphNode) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + switch (field.hashCode()) + { + case 1764137480: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("deleteEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 965713942: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("insertEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1764416077: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("deleteNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deleteNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 3108285: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("edge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_edge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 965992539: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("insertNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insertNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1976220934: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_edge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_edge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 3386882: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("node")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_node(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 90842780: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_edge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._edge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1976499531: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_node")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_node")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 91121377: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_node")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._node; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this._id; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((double) (this._id) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return ((double) (this.get_id()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + switch (field.hashCode()) + { + case 1764137480: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("deleteEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteEdge(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 965713942: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("insertEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.insertEdge(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) ), ((hxDaedalus.data.graph.GraphNode) (dynargs.__get(1)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1976220934: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_edge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_edge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1764416077: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("deleteNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.deleteNode(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1976499531: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("get_node")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.get_node(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 965992539: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("insertNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return this.insertNode(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + this.dispose(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("_edge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("_node"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("_id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("node"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("edge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + baseArr.push("id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/Graph.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/graph/GraphEdge.java b/src/main/java/hxDaedalus/data/graph/GraphEdge.java new file mode 100644 index 0000000..2112804 --- /dev/null +++ b/src/main/java/hxDaedalus/data/graph/GraphEdge.java @@ -0,0 +1,1616 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.graph; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class GraphEdge extends haxe.lang.HxObject +{ + static + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + hxDaedalus.data.graph.GraphEdge.INC = 0; + } + + public GraphEdge(haxe.lang.EmptyObject empty) + { + } + + + public GraphEdge() + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + hxDaedalus.data.graph.GraphEdge.__hx_ctor_hxDaedalus_data_graph_GraphEdge(this); + } + + + public static void __hx_ctor_hxDaedalus_data_graph_GraphEdge(hxDaedalus.data.graph.GraphEdge __hx_this) + { + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __hx_this._id = hxDaedalus.data.graph.GraphEdge.INC; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + hxDaedalus.data.graph.GraphEdge.INC++; + } + + + public static int INC; + + + + public int get_id() + { + //line 10 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._id; + } + + + + + + + + + + + + + + + + + + + public int _id; + + public hxDaedalus.data.graph.GraphEdge _prev; + + public hxDaedalus.data.graph.GraphEdge _next; + + public hxDaedalus.data.graph.GraphEdge _rotPrevEdge; + + public hxDaedalus.data.graph.GraphEdge _rotNextEdge; + + public hxDaedalus.data.graph.GraphEdge _oppositeEdge; + + public hxDaedalus.data.graph.GraphNode _sourceNode; + + public hxDaedalus.data.graph.GraphNode _destinationNode; + + public hxDaedalus.data.math.EdgeData _data; + + public void dispose() + { + } + + + public hxDaedalus.data.graph.GraphEdge get_prev() + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._prev; + } + + + public hxDaedalus.data.graph.GraphEdge set_prev(hxDaedalus.data.graph.GraphEdge value) + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._prev = value; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphEdge get_next() + { + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._next; + } + + + public hxDaedalus.data.graph.GraphEdge set_next(hxDaedalus.data.graph.GraphEdge value) + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._next = value; + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphEdge get_rotPrevEdge() + { + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._rotPrevEdge; + } + + + public hxDaedalus.data.graph.GraphEdge set_rotPrevEdge(hxDaedalus.data.graph.GraphEdge value) + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._rotPrevEdge = value; + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphEdge get_rotNextEdge() + { + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._rotNextEdge; + } + + + public hxDaedalus.data.graph.GraphEdge set_rotNextEdge(hxDaedalus.data.graph.GraphEdge value) + { + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._rotNextEdge = value; + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphEdge get_oppositeEdge() + { + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._oppositeEdge; + } + + + public hxDaedalus.data.graph.GraphEdge set_oppositeEdge(hxDaedalus.data.graph.GraphEdge value) + { + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._oppositeEdge = value; + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphNode get_sourceNode() + { + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._sourceNode; + } + + + public hxDaedalus.data.graph.GraphNode set_sourceNode(hxDaedalus.data.graph.GraphNode value) + { + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._sourceNode = value; + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphNode get_destinationNode() + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._destinationNode; + } + + + public hxDaedalus.data.graph.GraphNode set_destinationNode(hxDaedalus.data.graph.GraphNode value) + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._destinationNode = value; + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + public hxDaedalus.data.math.EdgeData get_data() + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._data; + } + + + public hxDaedalus.data.math.EdgeData set_data(hxDaedalus.data.math.EdgeData value) + { + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._data = value; + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._id = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + switch (field.hashCode()) + { + case 90810505: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._data = ((hxDaedalus.data.math.EdgeData) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_prev(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1276118257: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._destinationNode = ((hxDaedalus.data.graph.GraphNode) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_next(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -23307684: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._sourceNode = ((hxDaedalus.data.graph.GraphNode) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 546277767: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_rotPrevEdge(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1320793891: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._oppositeEdge = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1049882041: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_rotNextEdge(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1671925624: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._rotNextEdge = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -870691516: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_oppositeEdge(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -75765816: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._rotPrevEdge = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1111620419: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_sourceNode(((hxDaedalus.data.graph.GraphNode) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 91112402: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._next = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1762742480: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_destinationNode(((hxDaedalus.data.graph.GraphNode) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 91183890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._prev = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3076010: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.set_data(((hxDaedalus.data.math.EdgeData) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + switch (field.hashCode()) + { + case 1415076199: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_data")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976188659: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_data")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -903824045: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_destinationNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_prev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 639903815: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_destinationNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 191786170: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_sourceNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 546277767: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_rotPrevEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1963522374: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_sourceNode")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1049882041: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_rotNextEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1867557377: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_oppositeEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -870691516: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_oppositeEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -595967091: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_oppositeEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1111620419: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_sourceNode(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 701016554: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_rotNextEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1762742480: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_destinationNode(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -209735970: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rotNextEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3076010: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_data(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1997790934: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_rotPrevEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._id; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1386423838: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_rotPrevEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 91183890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._prev; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1415378096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 91112402: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._next; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976490556: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -75765816: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._rotPrevEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1415449584: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_prev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1671925624: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._rotNextEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976562044: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_prev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1320793891: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._oppositeEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -23307684: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._sourceNode; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 90810505: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._data; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1276118257: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this._destinationNode; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((double) (this._id) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return ((double) (this.get_id()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + switch (field.hashCode()) + { + case 1415076199: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_data(((hxDaedalus.data.math.EdgeData) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976188659: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_data(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + this.dispose(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -903824045: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_destinationNode(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976562044: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_prev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 639903815: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_destinationNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_destinationNode(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1415449584: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_prev(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 191786170: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_sourceNode(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1976490556: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1963522374: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_sourceNode")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_sourceNode(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1415378096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_next(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1867557377: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_oppositeEdge(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 1386423838: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_rotPrevEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -595967091: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_oppositeEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_oppositeEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -1997790934: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_rotPrevEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_rotPrevEdge(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case 701016554: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("set_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.set_rotNextEdge(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + case -209735970: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (field.equals("get_rotNextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return this.get_rotNextEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_data"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_destinationNode"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_sourceNode"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_oppositeEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_rotNextEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_rotPrevEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_next"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_prev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("_id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("data"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("destinationNode"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("sourceNode"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("oppositeEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("rotNextEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("rotPrevEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("next"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("prev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + baseArr.push("id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphEdge.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/graph/GraphNode.java b/src/main/java/hxDaedalus/data/graph/GraphNode.java new file mode 100644 index 0000000..3c00a34 --- /dev/null +++ b/src/main/java/hxDaedalus/data/graph/GraphNode.java @@ -0,0 +1,1160 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.graph; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class GraphNode extends haxe.lang.HxObject +{ + static + { + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + hxDaedalus.data.graph.GraphNode.INC = 0; + } + + public GraphNode(haxe.lang.EmptyObject empty) + { + } + + + public GraphNode() + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + hxDaedalus.data.graph.GraphNode.__hx_ctor_hxDaedalus_data_graph_GraphNode(this); + } + + + public static void __hx_ctor_hxDaedalus_data_graph_GraphNode(hxDaedalus.data.graph.GraphNode __hx_this) + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __hx_this._id = hxDaedalus.data.graph.GraphNode.INC; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + hxDaedalus.data.graph.GraphNode.INC++; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __hx_this._successorNodes = new haxe.ds.ObjectMap(); + } + + + public static int INC; + + + + + + + + + + + + + + public int _id; + + public hxDaedalus.data.graph.GraphNode _prev; + + public hxDaedalus.data.graph.GraphNode _next; + + public hxDaedalus.data.graph.GraphEdge _outgoingEdge; + + public haxe.ds.ObjectMap _successorNodes; + + public hxDaedalus.data.math.NodeData _data; + + public int get_id() + { + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._id; + } + + + public void dispose() + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._prev = null; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._next = null; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._outgoingEdge = null; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._successorNodes = null; + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._data = null; + } + + + public hxDaedalus.data.graph.GraphNode get_prev() + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._prev; + } + + + public hxDaedalus.data.graph.GraphNode set_prev(hxDaedalus.data.graph.GraphNode value) + { + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._prev = value; + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphNode get_next() + { + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._next; + } + + + public hxDaedalus.data.graph.GraphNode set_next(hxDaedalus.data.graph.GraphNode value) + { + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._next = value; + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + + public hxDaedalus.data.graph.GraphEdge get_outgoingEdge() + { + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._outgoingEdge; + } + + + public hxDaedalus.data.graph.GraphEdge set_outgoingEdge(hxDaedalus.data.graph.GraphEdge value) + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._outgoingEdge = value; + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + + public haxe.ds.ObjectMap get_successorNodes() + { + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._successorNodes; + } + + + public haxe.ds.ObjectMap set_successorNodes(haxe.ds.ObjectMap value) + { + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._successorNodes = value; + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + + public hxDaedalus.data.math.NodeData get_data() + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._data; + } + + + public hxDaedalus.data.math.NodeData set_data(hxDaedalus.data.math.NodeData value) + { + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._data = value; + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._id = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + switch (field.hashCode()) + { + case 90810505: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._data = ((hxDaedalus.data.math.NodeData) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.set_prev(((hxDaedalus.data.graph.GraphNode) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1144127670: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._successorNodes = ((haxe.ds.ObjectMap) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.set_next(((hxDaedalus.data.graph.GraphNode) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1131550424: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._outgoingEdge = ((hxDaedalus.data.graph.GraphEdge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 971931465: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.set_outgoingEdge(((hxDaedalus.data.graph.GraphEdge) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 91112402: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._next = ((hxDaedalus.data.graph.GraphNode) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1667338539: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.set_successorNodes(((haxe.ds.ObjectMap) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 91183890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._prev = ((hxDaedalus.data.graph.GraphNode) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3076010: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.set_data(((hxDaedalus.data.math.NodeData) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this._id = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + switch (field.hashCode()) + { + case 1415076199: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_data")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976188659: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_data")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3449395: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_prev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 309572264: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_successorNodes")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -610461388: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_successorNodes")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 971931465: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_outgoingEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -584786938: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_outgoingEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1667338539: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_successorNodes(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1246655890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_outgoingEdge")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3076010: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_data(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1415378096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._id; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976490556: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 91183890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._prev; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1415449584: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_prev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 91112402: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._next; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976562044: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_prev")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1131550424: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._outgoingEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1144127670: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._successorNodes; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_id")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 90810505: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this._data; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + switch (field.hashCode()) + { + case 94650: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((double) (this._id) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 3355: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return ((double) (this.get_id()) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + switch (field.hashCode()) + { + case 1415076199: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.set_data(((hxDaedalus.data.math.NodeData) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -1249338716: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_id")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_id(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976188659: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_data")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_data(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1671767583: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("dispose")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + this.dispose(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 309572264: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.set_successorNodes(((haxe.ds.ObjectMap) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976562044: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_prev(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -610461388: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_successorNodes")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_successorNodes(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1415449584: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_prev")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.set_prev(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case -584786938: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.set_outgoingEdge(((hxDaedalus.data.graph.GraphEdge) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1976490556: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1246655890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("get_outgoingEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.get_outgoingEdge(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + case 1415378096: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (field.equals("set_next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return this.set_next(((hxDaedalus.data.graph.GraphNode) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_data"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_successorNodes"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_outgoingEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_next"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_prev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("_id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("data"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("successorNodes"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("outgoingEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("next"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("prev"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + baseArr.push("id"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/graph/GraphNode.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/EdgeData.java b/src/main/java/hxDaedalus/data/math/EdgeData.java new file mode 100644 index 0000000..93edf0e --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/EdgeData.java @@ -0,0 +1,363 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class EdgeData extends haxe.lang.HxObject +{ + public EdgeData(haxe.lang.EmptyObject empty) + { + } + + + public EdgeData() + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + hxDaedalus.data.math.EdgeData.__hx_ctor_hxDaedalus_data_math_EdgeData(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_EdgeData(hxDaedalus.data.math.EdgeData __hx_this) + { + } + + + public double sumDistancesSquared; + + public double length; + + public int nodesCount; + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + switch (field.hashCode()) + { + case 2082952414: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("nodesCount")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.nodesCount = ((int) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case 1451318868: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("sumDistancesSquared")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.sumDistancesSquared = ((double) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.length = ((double) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + switch (field.hashCode()) + { + case 2082952414: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("nodesCount")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.nodesCount = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case 1451318868: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("sumDistancesSquared")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.sumDistancesSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + this.length = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + switch (field.hashCode()) + { + case 2082952414: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("nodesCount")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return this.nodesCount; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case 1451318868: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("sumDistancesSquared")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return this.sumDistancesSquared; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return this.length; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + switch (field.hashCode()) + { + case 2082952414: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("nodesCount")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return ((double) (this.nodesCount) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case 1451318868: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("sumDistancesSquared")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return this.sumDistancesSquared; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return this.length; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + baseArr.push("nodesCount"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + baseArr.push("length"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + baseArr.push("sumDistancesSquared"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/EdgeData.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Geom2D.java b/src/main/java/hxDaedalus/data/math/Geom2D.java new file mode 100644 index 0000000..41b6ea7 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Geom2D.java @@ -0,0 +1,1620 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Geom2D extends haxe.lang.HxObject +{ + static + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.__samples = new haxe.root.Array(); + //line 544 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.__circumcenter = new hxDaedalus.data.math.Point2D(null, null); + } + + public Geom2D(haxe.lang.EmptyObject empty) + { + } + + + public Geom2D() + { + //line 1021 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.__hx_ctor_hxDaedalus_data_math_Geom2D(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_Geom2D(hxDaedalus.data.math.Geom2D __hx_this) + { + } + + + public static hxDaedalus.data.math.RandGenerator _randGen; + + public static haxe.root.Array __samples; + + public static hxDaedalus.data.math.Intersection locatePosition(double x, double y, hxDaedalus.data.Mesh mesh) + { + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( hxDaedalus.data.math.Geom2D._randGen == null )) + { + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D._randGen = new hxDaedalus.data.math.RandGenerator(null, null, null); + } + + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D._randGen.set_seed(((int) (( ( x * 10 ) + ( 4 * y ) )) )); + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int i = 0; + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.__samples.splice(0, hxDaedalus.data.math.Geom2D.__samples.length); + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int numSamples = ((int) (java.lang.Math.pow(((double) (mesh._vertices.length) ), 0.333333333333333315)) ); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D._randGen.rangeMin = 0; + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D._randGen.rangeMax = ( mesh._vertices.length - 1 ); + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g1 = 0; + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = numSamples; + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g1 < _g )) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int i1 = _g1++; + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _rnd = hxDaedalus.data.math.Geom2D._randGen.next(); + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean cond = ( ( _rnd < 0 ) || ( _rnd > ( mesh._vertices.length - 1 ) ) ); + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean cond1 = ( mesh._vertices == null ); + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + java.lang.String message = ( "vertices: " + mesh._vertices.length ); + } + + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.__samples.push(mesh._vertices.__get(_rnd)); + } + + } + + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex currVertex = null; + //line 74 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Point2D currVertexPos = null; + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distSquared = 0.0; + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double minDistSquared = java.lang.Double.POSITIVE_INFINITY; + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex closedVertex = null; + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g11 = 0; + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g2 = numSamples; + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g11 < _g2 )) + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int i2 = _g11++; + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + currVertex = hxDaedalus.data.math.Geom2D.__samples.__get(i2); + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + currVertexPos = currVertex.get_pos(); + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + distSquared = ( ( (( currVertexPos.x - x )) * (( currVertexPos.x - x )) ) + ( (( currVertexPos.y - y )) * (( currVertexPos.y - y )) ) ); + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( distSquared < minDistSquared )) + { + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + minDistSquared = distSquared; + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + closedVertex = currVertex; + } + + } + + } + + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Face currFace = null; + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.iterators.FromVertexToHoldingFaces iterFace = new hxDaedalus.iterators.FromVertexToHoldingFaces(); + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + iterFace.set_fromVertex(closedVertex); + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + currFace = iterFace.next(); + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.ds.ObjectMap faceVisited = new haxe.ds.ObjectMap(); + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge currEdge = null; + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.iterators.FromFaceToInnerEdges iterEdge = new hxDaedalus.iterators.FromFaceToInnerEdges(); + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Intersection objectContainer = hxDaedalus.data.math.Intersection.ENull; + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int relativPos = 0; + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int numIter = 0; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (true) + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean tmp = false; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (faceVisited.get(currFace)) ))) )) + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + objectContainer = hxDaedalus.data.math.Geom2D.isInFace(x, y, currFace); + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Intersection _g3 = objectContainer; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + switch (_g3.index) + { + case 3: + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + tmp = true; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + + default: + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + tmp = false; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + } + + } + else + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + tmp = true; + } + + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if ( ! (tmp) ) + { + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + faceVisited.get(currFace); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ numIter; + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean tmp1 = ( numIter == 50 ); + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + iterEdge.set_fromFace(currFace); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (true) + { + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + currEdge = iterEdge.next(); + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( currEdge == null )) + { + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Intersection.ENull; + } + + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + relativPos = hxDaedalus.data.math.Geom2D.getRelativePosition(x, y, currEdge); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if ( ! ((( ( relativPos == 1 ) || ( relativPos == 0 ) ))) ) + { + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + } + + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + currFace = currEdge.get_rightFace(); + } + + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return objectContainer; + } + + + public static boolean isCircleIntersectingAnyConstraint(double x, double y, double radius, hxDaedalus.data.Mesh mesh) + { + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( x <= 0 ) || ( x >= mesh.get_width() ) ) || ( y <= 0 ) ) || ( y >= mesh.get_height() ) )) + { + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Intersection loc = hxDaedalus.data.math.Geom2D.locatePosition(x, y, mesh); + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Face face = null; + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + switch (loc.index) + { + case 0: + { + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vertex = ((hxDaedalus.data.Vertex) (loc.params[0]) ); + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + face = vertex.get_edge().get_leftFace(); + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + + case 1: + { + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge edge = ((hxDaedalus.data.Edge) (loc.params[0]) ); + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + face = edge.get_leftFace(); + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + + case 2: + { + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Face face_ = ((hxDaedalus.data.Face) (loc.params[0]) ); + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + face = face_; + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + + case 3: + { + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + face = null; + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + break; + } + + + } + + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double radiusSquared = ( radius * radius ); + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Point2D pos = null; + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distSquared = 0.0; + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pos = face.get_edge().get_originVertex().get_pos(); + //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + distSquared = ( ( (( pos.x - x )) * (( pos.x - x )) ) + ( (( pos.y - y )) * (( pos.y - y )) ) ); + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( distSquared <= radiusSquared )) + { + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pos = face.get_edge().get_nextLeftEdge().get_originVertex().get_pos(); + //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + distSquared = ( ( (( pos.x - x )) * (( pos.x - x )) ) + ( (( pos.y - y )) * (( pos.y - y )) ) ); + //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( distSquared <= radiusSquared )) + { + //line 160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 162 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pos = face.get_edge().get_nextLeftEdge().get_nextLeftEdge().get_originVertex().get_pos(); + //line 163 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + distSquared = ( ( (( pos.x - x )) * (( pos.x - x )) ) + ( (( pos.y - y )) * (( pos.y - y )) ) ); + //line 164 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( distSquared <= radiusSquared )) + { + //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 171 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array edgesToCheck = new haxe.root.Array(); + //line 172 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edgesToCheck.push(face.get_edge()); + //line 173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edgesToCheck.push(face.get_edge().get_nextLeftEdge()); + //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edgesToCheck.push(face.get_edge().get_nextLeftEdge().get_nextLeftEdge()); + //line 176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge edge1 = null; + //line 177 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Point2D pos1 = null; + //line 178 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Point2D pos2 = null; + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.ds.ObjectMap checkedEdges = new haxe.ds.ObjectMap(); + //line 180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean intersecting = false; + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( edgesToCheck.length > 0 )) + { + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edge1 = ((hxDaedalus.data.Edge) (edgesToCheck.pop()) ); + //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + checkedEdges.set(edge1, true); + //line 185 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pos1 = edge1.get_originVertex().get_pos(); + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pos2 = edge1.get_destinationVertex().get_pos(); + //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + intersecting = hxDaedalus.data.math.Geom2D.intersectionsSegmentCircle(pos1.x, pos1.y, pos2.x, pos2.y, x, y, radius, null); + //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (intersecting) + { + //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (edge1.get_isConstrained()) + { + //line 191 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + else + { + //line 193 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edge1 = edge1.get_oppositeEdge().get_nextLeftEdge(); + //line 194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (checkedEdges.get(edge1)) ))) ) && ( ! (haxe.lang.Runtime.toBool(checkedEdges.get(edge1.get_oppositeEdge()))) ) ) && ( edgesToCheck.indexOf(edge1, null) == -1 ) ) && ( edgesToCheck.indexOf(edge1.get_oppositeEdge(), null) == -1 ) )) + { + //line 196 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edgesToCheck.push(edge1); + } + + //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edge1 = edge1.get_nextLeftEdge(); + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (checkedEdges.get(edge1)) ))) ) && ( ! (haxe.lang.Runtime.toBool(checkedEdges.get(edge1.get_oppositeEdge()))) ) ) && ( edgesToCheck.indexOf(edge1, null) == -1 ) ) && ( edgesToCheck.indexOf(edge1.get_oppositeEdge(), null) == -1 ) )) + { + //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + edgesToCheck.push(edge1); + } + + } + + } + + } + + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + + public static int getDirection(double x1, double y1, double x2, double y2, double x3, double y3) + { + //line 219 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dot = ( ( (( x3 - x1 )) * (( y2 - y1 )) ) + ( (( y3 - y1 )) * (( - (x2) + x1 )) ) ); + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dot == 0 )) + { + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 0; + } + else + { + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dot > 0 )) + { + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 1; + } + else + { + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return -1; + } + + } + + } + + + public static int getDirection2(double x1, double y1, double x2, double y2, double x3, double y3) + { + //line 234 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dot = ( ( (( x3 - x1 )) * (( y2 - y1 )) ) + ( (( y3 - y1 )) * (( - (x2) + x1 )) ) ); + //line 237 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dot == 0 )) + { + //line 239 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 0; + } + else + { + //line 241 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dot > 0 )) + { + //line 243 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( hxDaedalus.data.math.Geom2D.distanceSquaredPointToLine(x3, y3, x1, y1, x2, y2) <= 0.0001 )) + { + //line 244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 0; + } + else + { + //line 246 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 1; + } + + } + else + { + //line 251 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( hxDaedalus.data.math.Geom2D.distanceSquaredPointToLine(x3, y3, x1, y1, x2, y2) <= 0.0001 )) + { + //line 252 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return 0; + } + else + { + //line 254 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return -1; + } + + } + + } + + } + + + public static int getRelativePosition(double x, double y, hxDaedalus.data.Edge eUp) + { + //line 267 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Geom2D.getDirection(eUp.get_originVertex().get_pos().x, eUp.get_originVertex().get_pos().y, eUp.get_destinationVertex().get_pos().x, eUp.get_destinationVertex().get_pos().y, x, y); + } + + + public static int getRelativePosition2(double x, double y, hxDaedalus.data.Edge eUp) + { + //line 272 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Geom2D.getDirection2(eUp.get_originVertex().get_pos().x, eUp.get_originVertex().get_pos().y, eUp.get_destinationVertex().get_pos().x, eUp.get_destinationVertex().get_pos().y, x, y); + } + + + public static hxDaedalus.data.math.Intersection isInFace(double x, double y, hxDaedalus.data.Face polygon) + { + //line 285 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Intersection result = hxDaedalus.data.math.Intersection.ENull; + //line 287 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge e1_2 = polygon.get_edge(); + //line 288 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge e2_3 = e1_2.get_nextLeftEdge(); + //line 289 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge e3_1 = e2_3.get_nextLeftEdge(); + //line 290 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( hxDaedalus.data.math.Geom2D.getRelativePosition(x, y, e1_2) >= 0 ) && ( hxDaedalus.data.math.Geom2D.getRelativePosition(x, y, e2_3) >= 0 ) ) && ( hxDaedalus.data.math.Geom2D.getRelativePosition(x, y, e3_1) >= 0 ) )) + { + //line 292 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex v1 = e1_2.get_originVertex(); + //line 293 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex v2 = e2_3.get_originVertex(); + //line 294 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex v3 = e3_1.get_originVertex(); + //line 296 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double x1 = v1.get_pos().x; + //line 297 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double y1 = v1.get_pos().y; + //line 298 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double x2 = v2.get_pos().x; + //line 299 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double y2 = v2.get_pos().y; + //line 300 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double x3 = v3.get_pos().x; + //line 301 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double y3 = v3.get_pos().y; + //line 303 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_v1squaredLength = ( ( (( x1 - x )) * (( x1 - x )) ) + ( (( y1 - y )) * (( y1 - y )) ) ); + //line 304 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_v2squaredLength = ( ( (( x2 - x )) * (( x2 - x )) ) + ( (( y2 - y )) * (( y2 - y )) ) ); + //line 305 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_v3squaredLength = ( ( (( x3 - x )) * (( x3 - x )) ) + ( (( y3 - y )) * (( y3 - y )) ) ); + //line 306 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v1_v2squaredLength = ( ( (( x2 - x1 )) * (( x2 - x1 )) ) + ( (( y2 - y1 )) * (( y2 - y1 )) ) ); + //line 307 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v2_v3squaredLength = ( ( (( x3 - x2 )) * (( x3 - x2 )) ) + ( (( y3 - y2 )) * (( y3 - y2 )) ) ); + //line 308 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v3_v1squaredLength = ( ( (( x1 - x3 )) * (( x1 - x3 )) ) + ( (( y1 - y3 )) * (( y1 - y3 )) ) ); + //line 310 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dot_v_v1v2 = ( ( (( x - x1 )) * (( x2 - x1 )) ) + ( (( y - y1 )) * (( y2 - y1 )) ) ); + //line 311 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dot_v_v2v3 = ( ( (( x - x2 )) * (( x3 - x2 )) ) + ( (( y - y2 )) * (( y3 - y2 )) ) ); + //line 312 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dot_v_v3v1 = ( ( (( x - x3 )) * (( x1 - x3 )) ) + ( (( y - y3 )) * (( y1 - y3 )) ) ); + //line 314 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_e1_2squaredLength = ( v_v1squaredLength - ( ( dot_v_v1v2 * dot_v_v1v2 ) / v1_v2squaredLength ) ); + //line 315 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_e2_3squaredLength = ( v_v2squaredLength - ( ( dot_v_v2v3 * dot_v_v2v3 ) / v2_v3squaredLength ) ); + //line 316 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double v_e3_1squaredLength = ( v_v3squaredLength - ( ( dot_v_v3v1 * dot_v_v3v1 ) / v3_v1squaredLength ) ); + //line 318 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean closeTo_e1_2 = ( v_e1_2squaredLength <= 0.0001 ); + //line 319 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean closeTo_e2_3 = ( v_e2_3squaredLength <= 0.0001 ); + //line 320 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean closeTo_e3_1 = ( v_e3_1squaredLength <= 0.0001 ); + //line 322 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e1_2) + { + //line 323 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e3_1) + { + //line 324 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EVertex(v1); + } + else + { + //line 325 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e2_3) + { + //line 326 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EVertex(v2); + } + else + { + //line 328 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EEdge(e1_2); + } + + } + + } + else + { + //line 330 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e2_3) + { + //line 331 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e3_1) + { + //line 332 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EVertex(v3); + } + else + { + //line 334 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EEdge(e2_3); + } + + } + else + { + //line 336 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (closeTo_e3_1) + { + //line 337 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EEdge(e3_1); + } + else + { + //line 339 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = hxDaedalus.data.math.Intersection.EFace(polygon); + } + + } + + } + + } + + //line 343 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return result; + } + + + public static boolean clipSegmentByTriangle(double s1x, double s1y, double s2x, double s2y, double t1x, double t1y, double t2x, double t2y, double t3x, double t3y, hxDaedalus.data.math.Point2D pResult1, hxDaedalus.data.math.Point2D pResult2) + { + //line 357 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side1_1 = 0; + //line 358 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side1_2 = 0; + //line 359 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1_1 = hxDaedalus.data.math.Geom2D.getDirection(t1x, t1y, t2x, t2y, s1x, s1y); + //line 360 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1_2 = hxDaedalus.data.math.Geom2D.getDirection(t1x, t1y, t2x, t2y, s2x, s2y); + //line 362 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side1_1 <= 0 ) && ( side1_2 <= 0 ) )) + { + //line 363 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 365 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side2_1 = 0; + //line 366 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side2_2 = 0; + //line 367 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2_1 = hxDaedalus.data.math.Geom2D.getDirection(t2x, t2y, t3x, t3y, s1x, s1y); + //line 368 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2_2 = hxDaedalus.data.math.Geom2D.getDirection(t2x, t2y, t3x, t3y, s2x, s2y); + //line 370 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side2_1 <= 0 ) && ( side2_2 <= 0 ) )) + { + //line 371 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 373 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side3_1 = 0; + //line 374 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side3_2 = 0; + //line 375 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side3_1 = hxDaedalus.data.math.Geom2D.getDirection(t3x, t3y, t1x, t1y, s1x, s1y); + //line 376 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side3_2 = hxDaedalus.data.math.Geom2D.getDirection(t3x, t3y, t1x, t1y, s2x, s2y); + //line 378 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side3_1 <= 0 ) && ( side3_2 <= 0 ) )) + { + //line 379 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 383 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( side1_1 >= 0 ) && ( side2_1 >= 0 ) ) && ( side3_1 >= 0 ) ) && (( ( ( side1_2 >= 0 ) && ( side2_2 >= 0 ) ) && ( side3_2 >= 0 ) )) )) + { + //line 385 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult1.x = s1x; + //line 386 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult1.y = s1y; + //line 387 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.x = s2x; + //line 388 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.y = s2y; + //line 389 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 392 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int n = 0; + //line 394 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(s1x, s1y, s2x, s2y, t1x, t1y, t2x, t2y, pResult1, null, null)) + { + //line 396 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ n; + } + + //line 401 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( n == 0 )) + { + //line 404 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(s1x, s1y, s2x, s2y, t2x, t2y, t3x, t3y, pResult1, null, null)) + { + //line 406 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ n; + } + + } + else + { + //line 411 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(s1x, s1y, s2x, s2y, t2x, t2y, t3x, t3y, pResult2, null, null)) + { + //line 414 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( -0.01 > ( pResult1.x - pResult2.x ) ) || ( ( pResult1.x - pResult2.x ) > 0.01 ) ) || ( -0.01 > ( pResult1.y - pResult2.y ) ) ) || ( ( pResult1.y - pResult2.y ) > 0.01 ) )) + { + //line 416 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ n; + } + + } + + } + + //line 423 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( n == 0 )) + { + //line 425 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(s1x, s1y, s2x, s2y, t3x, t3y, t1x, t1y, pResult1, null, null)) + { + //line 427 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ n; + } + + } + else + { + //line 431 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( n == 1 )) + { + //line 433 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2segments(s1x, s1y, s2x, s2y, t3x, t3y, t1x, t1y, pResult2, null, null)) + { + //line 435 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( ( -0.01 > ( pResult1.x - pResult2.x ) ) || ( ( pResult1.x - pResult2.x ) > 0.01 ) ) || ( -0.01 > ( pResult1.y - pResult2.y ) ) ) || ( ( pResult1.y - pResult2.y ) > 0.01 ) )) + { + //line 437 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ n; + } + + } + + } + + } + + //line 444 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( n == 1 )) + { + //line 446 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1_1 >= 0 ) && ( side2_1 >= 0 ) ) && ( side3_1 >= 0 ) )) + { + //line 448 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.x = s1x; + //line 449 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.y = s1y; + } + else + { + //line 451 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1_2 >= 0 ) && ( side2_2 >= 0 ) ) && ( side3_2 >= 0 ) )) + { + //line 453 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.x = s2x; + //line 454 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + pResult2.y = s2y; + } + else + { + //line 459 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + n = 0; + } + + } + + } + + //line 463 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( n > 0 )) + { + //line 464 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + else + { + //line 466 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + } + + + public static boolean isSegmentIntersectingTriangle(double s1x, double s1y, double s2x, double s2y, double t1x, double t1y, double t2x, double t2y, double t3x, double t3y) + { + //line 474 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side1_1 = 0; + //line 475 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side1_2 = 0; + //line 476 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1_1 = hxDaedalus.data.math.Geom2D.getDirection(t1x, t1y, t2x, t2y, s1x, s1y); + //line 477 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1_2 = hxDaedalus.data.math.Geom2D.getDirection(t1x, t1y, t2x, t2y, s2x, s2y); + //line 479 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side1_1 <= 0 ) && ( side1_2 <= 0 ) )) + { + //line 480 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 482 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side2_1 = 0; + //line 483 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side2_2 = 0; + //line 484 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2_1 = hxDaedalus.data.math.Geom2D.getDirection(t2x, t2y, t3x, t3y, s1x, s1y); + //line 485 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2_2 = hxDaedalus.data.math.Geom2D.getDirection(t2x, t2y, t3x, t3y, s2x, s2y); + //line 487 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side2_1 <= 0 ) && ( side2_2 <= 0 ) )) + { + //line 488 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 490 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side3_1 = 0; + //line 491 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side3_2 = 0; + //line 492 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side3_1 = hxDaedalus.data.math.Geom2D.getDirection(t3x, t3y, t1x, t1y, s1x, s1y); + //line 493 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side3_2 = hxDaedalus.data.math.Geom2D.getDirection(t3x, t3y, t1x, t1y, s2x, s2y); + //line 495 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( side3_1 <= 0 ) && ( side3_2 <= 0 ) )) + { + //line 496 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 500 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1_1 == 1 ) && ( side2_1 == 1 ) ) && ( side3_1 == 1 ) )) + { + //line 501 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 505 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1_1 == 1 ) && ( side2_1 == 1 ) ) && ( side3_1 == 1 ) )) + { + //line 506 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + //line 508 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side1 = 0; + //line 509 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int side2 = 0; + //line 511 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1_1 == 1 ) && ( side1_2 <= 0 ) ) || ( ( side1_1 <= 0 ) && ( side1_2 == 1 ) ) )) + { + //line 513 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t1x, t1y); + //line 514 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t2x, t2y); + //line 515 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1 == 1 ) && ( side2 <= 0 ) ) || ( ( side1 <= 0 ) && ( side2 == 1 ) ) )) + { + //line 517 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + } + + //line 521 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side2_1 == 1 ) && ( side2_2 <= 0 ) ) || ( ( side2_1 <= 0 ) && ( side2_2 == 1 ) ) )) + { + //line 523 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t2x, t2y); + //line 524 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t3x, t3y); + //line 525 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1 == 1 ) && ( side2 <= 0 ) ) || ( ( side1 <= 0 ) && ( side2 == 1 ) ) )) + { + //line 527 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + } + + //line 531 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side3_1 == 1 ) && ( side3_2 <= 0 ) ) || ( ( side3_1 <= 0 ) && ( side3_2 == 1 ) ) )) + { + //line 533 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side1 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t3x, t3y); + //line 534 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + side2 = hxDaedalus.data.math.Geom2D.getDirection(s1x, s1y, s2x, s2y, t1x, t1y); + //line 535 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ( side1 == 1 ) && ( side2 <= 0 ) ) || ( ( side1 <= 0 ) && ( side2 == 1 ) ) )) + { + //line 537 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + } + + //line 541 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + + public static hxDaedalus.data.math.Point2D __circumcenter; + + public static boolean isDelaunay(hxDaedalus.data.Edge edge) + { + //line 547 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vLeft = edge.get_originVertex(); + //line 548 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vRight = edge.get_destinationVertex(); + //line 549 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vCorner = edge.get_nextLeftEdge().get_destinationVertex(); + //line 550 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vOpposite = edge.get_nextRightEdge().get_destinationVertex(); + //line 601 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.math.Geom2D.getCircumcenter(vCorner.get_pos().x, vCorner.get_pos().y, vLeft.get_pos().x, vLeft.get_pos().y, vRight.get_pos().x, vRight.get_pos().y, hxDaedalus.data.math.Geom2D.__circumcenter); + //line 604 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double squaredRadius = ( ( (( vCorner.get_pos().x - hxDaedalus.data.math.Geom2D.__circumcenter.x )) * (( vCorner.get_pos().x - hxDaedalus.data.math.Geom2D.__circumcenter.x )) ) + ( (( vCorner.get_pos().y - hxDaedalus.data.math.Geom2D.__circumcenter.y )) * (( vCorner.get_pos().y - hxDaedalus.data.math.Geom2D.__circumcenter.y )) ) ); + //line 605 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double squaredDistance = ( ( (( vOpposite.get_pos().x - hxDaedalus.data.math.Geom2D.__circumcenter.x )) * (( vOpposite.get_pos().x - hxDaedalus.data.math.Geom2D.__circumcenter.x )) ) + ( (( vOpposite.get_pos().y - hxDaedalus.data.math.Geom2D.__circumcenter.y )) * (( vOpposite.get_pos().y - hxDaedalus.data.math.Geom2D.__circumcenter.y )) ) ); + //line 607 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return ( squaredDistance >= squaredRadius ); + } + + + public static hxDaedalus.data.math.Point2D getCircumcenter(double x1, double y1, double x2, double y2, double x3, double y3, hxDaedalus.data.math.Point2D result) + { + //line 612 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( result == null )) + { + //line 614 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = new hxDaedalus.data.math.Point2D(null, null); + } + + //line 619 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double m1 = ( (( x1 + x2 )) / 2 ); + //line 620 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double m2 = ( (( y1 + y2 )) / 2 ); + //line 621 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double m3 = ( (( x1 + x3 )) / 2 ); + //line 622 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double m4 = ( (( y1 + y3 )) / 2 ); + //line 642 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1 = ( (( ( ( m1 * (( x1 - x3 )) ) + ( (( m2 - m4 )) * (( y1 - y3 )) ) ) + ( m3 * (( x3 - x1 )) ) )) / (( ( ( x1 * (( y3 - y2 )) ) + ( x2 * (( y1 - y3 )) ) ) + ( x3 * (( y2 - y1 )) ) )) ); + //line 644 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.x = ( m1 + ( t1 * (( y2 - y1 )) ) ); + //line 645 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.y = ( m2 - ( t1 * (( x2 - x1 )) ) ); + //line 647 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return result; + } + + + public static boolean intersections2segments(double s1p1x, double s1p1y, double s1p2x, double s1p2y, double s2p1x, double s2p1y, double s2p2x, double s2p2y, hxDaedalus.data.math.Point2D posIntersection, haxe.root.Array paramIntersection, java.lang.Object infiniteLineMode) + { + //line 651 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean __temp_infiniteLineMode9 = ( (haxe.lang.Runtime.eq(infiniteLineMode, null)) ? (false) : (haxe.lang.Runtime.toBool(infiniteLineMode)) ); + //line 652 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1 = ((double) (0) ); + //line 653 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t2 = ((double) (0) ); + //line 655 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean result = false; + //line 656 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double divisor = ( ( (( s1p1x - s1p2x )) * (( s2p1y - s2p2y )) ) + ( (( s1p2y - s1p1y )) * (( s2p1x - s2p2x )) ) ); + //line 657 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( divisor == 0 )) + { + //line 659 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = false; + } + else + { + //line 663 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = true; + //line 665 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( ! (__temp_infiniteLineMode9) || ( posIntersection != null ) ) || ( paramIntersection != null ) )) + { + //line 668 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t1 = ( (( ( ( ( s1p1x * (( s2p1y - s2p2y )) ) + ( s1p1y * (( s2p2x - s2p1x )) ) ) + ( s2p1x * s2p2y ) ) - ( s2p1y * s2p2x ) )) / divisor ); + //line 669 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t2 = ( (( ( ( ( s1p1x * (( s2p1y - s1p2y )) ) + ( s1p1y * (( s1p2x - s2p1x )) ) ) - ( s1p2x * s2p1y ) ) + ( s1p2y * s2p1x ) )) / divisor ); + //line 670 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ! (__temp_infiniteLineMode9) && ! ((( ( ( ( 0 <= t1 ) && ( t1 <= 1 ) ) && ( 0 <= t2 ) ) && ( t2 <= 1 ) ))) )) + { + //line 671 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = false; + } + + } + + } + + //line 675 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (result) + { + //line 677 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( posIntersection != null )) + { + //line 679 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + posIntersection.x = ( s1p1x + ( t1 * (( s1p2x - s1p1x )) ) ); + //line 680 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + posIntersection.y = ( s1p1y + ( t1 * (( s1p2y - s1p1y )) ) ); + } + + //line 682 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( paramIntersection != null )) + { + //line 684 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + paramIntersection.push(t1); + //line 685 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + paramIntersection.push(t2); + } + + } + + //line 689 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return result; + } + + + public static boolean intersections2edges(hxDaedalus.data.Edge edge1, hxDaedalus.data.Edge edge2, hxDaedalus.data.math.Point2D posIntersection, haxe.root.Array paramIntersection, java.lang.Object infiniteLineMode) + { + //line 694 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean __temp_infiniteLineMode10 = ( (haxe.lang.Runtime.eq(infiniteLineMode, null)) ? (false) : (haxe.lang.Runtime.toBool(infiniteLineMode)) ); + //line 694 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Geom2D.intersections2segments(edge1.get_originVertex().get_pos().x, edge1.get_originVertex().get_pos().y, edge1.get_destinationVertex().get_pos().x, edge1.get_destinationVertex().get_pos().y, edge2.get_originVertex().get_pos().x, edge2.get_originVertex().get_pos().y, edge2.get_destinationVertex().get_pos().x, edge2.get_destinationVertex().get_pos().y, posIntersection, paramIntersection, __temp_infiniteLineMode10); + } + + + public static boolean isConvex(hxDaedalus.data.Edge edge) + { + //line 700 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean result = true; + //line 702 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Edge eLeft = null; + //line 703 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + hxDaedalus.data.Vertex vRight = null; + //line 705 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + eLeft = edge.get_nextLeftEdge().get_oppositeEdge(); + //line 706 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + vRight = edge.get_nextRightEdge().get_destinationVertex(); + //line 707 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( hxDaedalus.data.math.Geom2D.getRelativePosition(vRight.get_pos().x, vRight.get_pos().y, eLeft) != -1 )) + { + //line 709 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = false; + } + else + { + //line 713 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + eLeft = edge.get_prevRightEdge(); + //line 714 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + vRight = edge.get_prevLeftEdge().get_originVertex(); + //line 715 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( hxDaedalus.data.math.Geom2D.getRelativePosition(vRight.get_pos().x, vRight.get_pos().y, eLeft) != -1 )) + { + //line 717 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result = false; + } + + } + + //line 721 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return result; + } + + + public static void projectOrthogonaly(hxDaedalus.data.math.Point2D vertexPos, hxDaedalus.data.Edge edge) + { + //line 739 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double a = edge.get_originVertex().get_pos().x; + //line 740 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double b = edge.get_originVertex().get_pos().y; + //line 741 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double c = edge.get_destinationVertex().get_pos().x; + //line 742 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double d = edge.get_destinationVertex().get_pos().y; + //line 743 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double e = vertexPos.x; + //line 744 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = vertexPos.y; + //line 751 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1 = ( (( ( ( ( ( ( ( ( a * a ) - ( a * c ) ) - ( a * e ) ) + ( b * b ) ) - ( b * d ) ) - ( b * f ) ) + ( c * e ) ) + ( d * f ) )) / (( ( ( ( ( ( a * a ) - ( ( 2 * a ) * c ) ) + ( b * b ) ) - ( ( 2 * b ) * d ) ) + ( c * c ) ) + ( d * d ) )) ); + //line 754 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + vertexPos.x = ( a + ( t1 * (( c - a )) ) ); + //line 755 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + vertexPos.y = ( b + ( t1 * (( d - b )) ) ); + } + + + public static boolean intersections2Circles(double cx1, double cy1, double r1, double cx2, double cy2, double r2, haxe.root.Array result) + { + //line 763 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distRadiusSQRD = ( ( (( cx2 - cx1 )) * (( cx2 - cx1 )) ) + ( (( cy2 - cy1 )) * (( cy2 - cy1 )) ) ); + //line 765 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( (( ( cx1 != cx2 ) || ( cy1 != cy2 ) )) && ( distRadiusSQRD <= ( (( r1 + r2 )) * (( r1 + r2 )) ) ) ) && ( distRadiusSQRD >= ( (( r1 - r2 )) * (( r1 - r2 )) ) ) )) + { + //line 769 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double transcendPart = java.lang.Math.sqrt(( (( ( (( r1 + r2 )) * (( r1 + r2 )) ) - distRadiusSQRD )) * (( distRadiusSQRD - ( (( r2 - r1 )) * (( r2 - r1 )) ) )) )); + //line 771 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double xFirstPart = ( ( (( cx1 + cx2 )) / 2 ) + ( ( (( cx2 - cx1 )) * (( ( r1 * r1 ) - ( r2 * r2 ) )) ) / (( 2 * distRadiusSQRD )) ) ); + //line 772 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double yFirstPart = ( ( (( cy1 + cy2 )) / 2 ) + ( ( (( cy2 - cy1 )) * (( ( r1 * r1 ) - ( r2 * r2 ) )) ) / (( 2 * distRadiusSQRD )) ) ); + //line 773 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double xFactor = ( (( cy2 - cy1 )) / (( 2 * distRadiusSQRD )) ); + //line 774 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double yFactor = ( (( cx2 - cx1 )) / (( 2 * distRadiusSQRD )) ); + //line 776 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( result != null )) + { + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = 0; + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g1 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( xFirstPart + ( xFactor * transcendPart ) )) ), ((java.lang.Object) (( yFirstPart - ( yFactor * transcendPart ) )) ), ((java.lang.Object) (( xFirstPart - ( xFactor * transcendPart ) )) ), ((java.lang.Object) (( yFirstPart + ( yFactor * transcendPart ) )) )}); + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g < _g1.length )) + { + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = ((double) (haxe.lang.Runtime.toDouble(_g1.__get(_g))) ); + //line 778 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g; + //line 779 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f); + } + + } + + //line 782 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + else + { + //line 785 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + } + + + public static boolean intersectionsSegmentCircle(double p0x, double p0y, double p1x, double p1y, double cx, double cy, double r, haxe.root.Array result) + { + //line 791 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p0xSQD = ( p0x * p0x ); + //line 792 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p0ySQD = ( p0y * p0y ); + //line 793 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double a = ( ( ( ( ( ( p1y * p1y ) - ( ( 2 * p1y ) * p0y ) ) + p0ySQD ) + ( p1x * p1x ) ) - ( ( 2 * p1x ) * p0x ) ) + p0xSQD ); + //line 794 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double b = ( ( ( ( ( ( ( ( ( 2 * p0y ) * cy ) - ( 2 * p0xSQD ) ) + ( ( 2 * p1y ) * p0y ) ) - ( 2 * p0ySQD ) ) + ( ( 2 * p1x ) * p0x ) ) - ( ( 2 * p1x ) * cx ) ) + ( ( 2 * p0x ) * cx ) ) - ( ( 2 * p1y ) * cy ) ); + //line 795 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double c = ( ( ( ( ( ( p0ySQD + ( cy * cy ) ) + ( cx * cx ) ) - ( ( 2 * p0y ) * cy ) ) - ( ( 2 * p0x ) * cx ) ) + p0xSQD ) - ( r * r ) ); + //line 796 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double delta = ( ( b * b ) - ( ( 4 * a ) * c ) ); + //line 797 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double deltaSQRT = 0.0; + //line 799 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t0 = 0.0; + //line 800 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1 = 0.0; + //line 801 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( delta < 0 )) + { + //line 804 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + else + { + //line 806 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( delta == 0 )) + { + //line 809 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t0 = ( - (b) / (( 2 * a )) ); + //line 810 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( t0 < 0 ) || ( t0 > 1 ) )) + { + //line 811 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + //line 815 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( result != null )) + { + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = 0; + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g1 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( p0x + ( t0 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t0 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t0) )}); + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g < _g1.length )) + { + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = ((double) (haxe.lang.Runtime.toDouble(_g1.__get(_g))) ); + //line 816 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g; + //line 817 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f); + } + + } + + //line 819 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + else + { + //line 824 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + deltaSQRT = java.lang.Math.sqrt(delta); + //line 825 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t0 = ( (( - (b) + deltaSQRT )) / (( 2 * a )) ); + //line 826 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t1 = ( (( - (b) - deltaSQRT )) / (( 2 * a )) ); + //line 830 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + boolean intersecting = false; + //line 831 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( 0 <= t0 ) && ( t0 <= 1 ) )) + { + //line 833 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( result != null )) + { + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g2 = 0; + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g11 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( p0x + ( t0 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t0 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t0) )}); + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g2 < _g11.length )) + { + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f1 = ((double) (haxe.lang.Runtime.toDouble(_g11.__get(_g2))) ); + //line 834 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g2; + //line 835 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f1); + } + + } + + //line 836 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + intersecting = true; + } + + //line 838 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( ( 0 <= t1 ) && ( t1 <= 1 ) )) + { + //line 840 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( result != null )) + { + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g3 = 0; + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g12 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( p0x + ( t1 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t1 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t1) )}); + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g3 < _g12.length )) + { + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f2 = ((double) (haxe.lang.Runtime.toDouble(_g12.__get(_g3))) ); + //line 841 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g3; + //line 842 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f2); + } + + } + + //line 843 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + intersecting = true; + } + + //line 846 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return intersecting; + } + + } + + } + + + public static boolean intersectionsLineCircle(double p0x, double p0y, double p1x, double p1y, double cx, double cy, double r, haxe.root.Array result) + { + //line 852 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p0xSQD = ( p0x * p0x ); + //line 853 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p0ySQD = ( p0y * p0y ); + //line 854 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double a = ( ( ( ( ( ( p1y * p1y ) - ( ( 2 * p1y ) * p0y ) ) + p0ySQD ) + ( p1x * p1x ) ) - ( ( 2 * p1x ) * p0x ) ) + p0xSQD ); + //line 855 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double b = ( ( ( ( ( ( ( ( ( 2 * p0y ) * cy ) - ( 2 * p0xSQD ) ) + ( ( 2 * p1y ) * p0y ) ) - ( 2 * p0ySQD ) ) + ( ( 2 * p1x ) * p0x ) ) - ( ( 2 * p1x ) * cx ) ) + ( ( 2 * p0x ) * cx ) ) - ( ( 2 * p1y ) * cy ) ); + //line 856 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double c = ( ( ( ( ( ( p0ySQD + ( cy * cy ) ) + ( cx * cx ) ) - ( ( 2 * p0y ) * cy ) ) - ( ( 2 * p0x ) * cx ) ) + p0xSQD ) - ( r * r ) ); + //line 857 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double delta = ( ( b * b ) - ( ( 4 * a ) * c ) ); + //line 858 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double deltaSQRT = 0.0; + //line 860 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t0 = 0.0; + //line 861 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1 = 0.0; + //line 862 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( delta < 0 )) + { + //line 865 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + else + { + //line 867 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( delta == 0 )) + { + //line 870 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t0 = ( - (b) / (( 2 * a )) ); + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = 0; + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g1 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( p0x + ( t0 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t0 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t0) )}); + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g < _g1.length )) + { + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = ((double) (haxe.lang.Runtime.toDouble(_g1.__get(_g))) ); + //line 873 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g; + //line 874 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f); + } + + } + + } + else + { + //line 876 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( delta > 0 )) + { + //line 878 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + deltaSQRT = java.lang.Math.sqrt(delta); + //line 879 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t0 = ( (( - (b) + deltaSQRT )) / (( 2 * a )) ); + //line 880 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + t1 = ( (( - (b) - deltaSQRT )) / (( 2 * a )) ); + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g2 = 0; + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g11 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (( p0x + ( t0 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t0 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t0) ), ((java.lang.Object) (( p0x + ( t1 * (( p1x - p0x )) ) )) ), ((java.lang.Object) (( p0y + ( t1 * (( p1y - p0y )) ) )) ), ((java.lang.Object) (t1) )}); + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g2 < _g11.length )) + { + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f1 = ((double) (haxe.lang.Runtime.toDouble(_g11.__get(_g2))) ); + //line 884 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g2; + //line 885 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f1); + } + + } + + } + + } + + } + + //line 888 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + + + public static boolean tangentsPointToCircle(double px, double py, double cx, double cy, double r, haxe.root.Array result) + { + //line 897 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double c2x = ( (( px + cx )) / 2 ); + //line 898 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double c2y = ( (( py + cy )) / 2 ); + //line 899 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double r2 = ( 0.5 * java.lang.Math.sqrt(( ( (( px - cx )) * (( px - cx )) ) + ( (( py - cy )) * (( py - cy )) ) )) ); + //line 901 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Geom2D.intersections2Circles(c2x, c2y, r2, cx, cy, r, result); + } + + + public static boolean tangentsCrossCircleToCircle(double r, double c1x, double c1y, double c2x, double c2y, haxe.root.Array result) + { + //line 907 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distance = java.lang.Math.sqrt(( ( (( c1x - c2x )) * (( c1x - c2x )) ) + ( (( c1y - c2y )) * (( c1y - c2y )) ) )); + //line 910 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double radius = ( distance / 4 ); + //line 911 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double centerX = ( c1x + ( (( c2x - c1x )) / 4 ) ); + //line 912 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double centerY = ( c1y + ( (( c2y - c1y )) / 4 ) ); + //line 914 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (hxDaedalus.data.math.Geom2D.intersections2Circles(c1x, c1y, r, centerX, centerY, radius, result)) + { + //line 916 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1x = ((double) (haxe.lang.Runtime.toDouble(result.__get(0))) ); + //line 917 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1y = ((double) (haxe.lang.Runtime.toDouble(result.__get(1))) ); + //line 918 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t2x = ((double) (haxe.lang.Runtime.toDouble(result.__get(2))) ); + //line 919 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t2y = ((double) (haxe.lang.Runtime.toDouble(result.__get(3))) ); + //line 921 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double midX = ( (( c1x + c2x )) / 2 ); + //line 922 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double midY = ( (( c1y + c2y )) / 2 ); + //line 923 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dotProd = ( ( (( t1x - midX )) * (( c2y - c1y )) ) + ( (( t1y - midY )) * (( - (c2x) + c1x )) ) ); + //line 924 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double tproj = ( dotProd / (( distance * distance )) ); + //line 925 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double projx = ( midX + ( tproj * (( c2y - c1y )) ) ); + //line 926 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double projy = ( midY - ( tproj * (( c2x - c1x )) ) ); + //line 929 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t4x = ( ( 2 * projx ) - t1x ); + //line 930 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t4y = ( ( 2 * projy ) - t1y ); + //line 932 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t3x = ( ( t4x + t2x ) - t1x ); + //line 933 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t3y = ( ( t2y + t4y ) - t1y ); + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = 0; + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g1 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (t3x) ), ((java.lang.Object) (t3y) ), ((java.lang.Object) (t4x) ), ((java.lang.Object) (t4y) )}); + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g < _g1.length )) + { + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = ((double) (haxe.lang.Runtime.toDouble(_g1.__get(_g))) ); + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g; + //line 935 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f); + } + + } + + //line 937 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return true; + } + else + { + //line 942 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return false; + } + + } + + + public static void tangentsParalCircleToCircle(double r, double c1x, double c1y, double c2x, double c2y, haxe.root.Array result) + { + //line 949 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distance = java.lang.Math.sqrt(( ( (( c1x - c2x )) * (( c1x - c2x )) ) + ( (( c1y - c2y )) * (( c1y - c2y )) ) )); + //line 950 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1x = ( c1x + ( ( r * (( c2y - c1y )) ) / distance ) ); + //line 951 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t1y = ( c1y + ( ( r * (( - (c2x) + c1x )) ) / distance ) ); + //line 952 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t2x = ( ( 2 * c1x ) - t1x ); + //line 953 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t2y = ( ( 2 * c1y ) - t1y ); + //line 954 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t3x = ( ( t2x + c2x ) - c1x ); + //line 955 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t3y = ( ( t2y + c2y ) - c1y ); + //line 956 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t4x = ( ( t1x + c2x ) - c1x ); + //line 957 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double t4y = ( ( t1y + c2y ) - c1y ); + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + { + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int _g = 0; + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + haxe.root.Array _g1 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (t1x) ), ((java.lang.Object) (t1y) ), ((java.lang.Object) (t2x) ), ((java.lang.Object) (t2y) ), ((java.lang.Object) (t3x) ), ((java.lang.Object) (t3y) ), ((java.lang.Object) (t4x) ), ((java.lang.Object) (t4y) )}); + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( _g < _g1.length )) + { + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double f = ((double) (haxe.lang.Runtime.toDouble(_g1.__get(_g))) ); + //line 958 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + ++ _g; + //line 959 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + result.push(f); + } + + } + + } + + + public static double distanceSquaredPointToLine(double px, double py, double ax, double ay, double bx, double by) + { + //line 965 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double a_b_squaredLength = ( ( (( bx - ax )) * (( bx - ax )) ) + ( (( by - ay )) * (( by - ay )) ) ); + //line 966 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dotProduct = ( ( (( px - ax )) * (( bx - ax )) ) + ( (( py - ay )) * (( by - ay )) ) ); + //line 967 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p_a_squaredLength = ( ( (( ax - px )) * (( ax - px )) ) + ( (( ay - py )) * (( ay - py )) ) ); + //line 968 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return ( p_a_squaredLength - ( ( dotProduct * dotProduct ) / a_b_squaredLength ) ); + } + + + public static double distanceSquaredPointToSegment(double px, double py, double ax, double ay, double bx, double by) + { + //line 974 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double a_b_squaredLength = ( ( (( bx - ax )) * (( bx - ax )) ) + ( (( by - ay )) * (( by - ay )) ) ); + //line 975 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double dotProduct = ( (( ( (( px - ax )) * (( bx - ax )) ) + ( (( py - ay )) * (( by - ay )) ) )) / a_b_squaredLength ); + //line 976 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dotProduct < 0 )) + { + //line 978 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return ( ( (( px - ax )) * (( px - ax )) ) + ( (( py - ay )) * (( py - ay )) ) ); + } + else + { + //line 980 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + if (( dotProduct <= 1 )) + { + //line 982 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double p_a_squaredLength = ( ( (( ax - px )) * (( ax - px )) ) + ( (( ay - py )) * (( ay - py )) ) ); + //line 983 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return ( p_a_squaredLength - ( ( dotProduct * dotProduct ) * a_b_squaredLength ) ); + } + else + { + //line 987 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return ( ( (( px - bx )) * (( px - bx )) ) + ( (( py - by )) * (( py - by )) ) ); + } + + } + + } + + + public static double distanceSquaredVertexToEdge(hxDaedalus.data.Vertex vertex, hxDaedalus.data.Edge edge) + { + //line 993 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Geom2D.distanceSquaredPointToSegment(vertex.get_pos().x, vertex.get_pos().y, edge.get_originVertex().get_pos().x, edge.get_originVertex().get_pos().y, edge.get_destinationVertex().get_pos().x, edge.get_destinationVertex().get_pos().y); + } + + + public static double pathLength(haxe.root.Array path) + { + //line 997 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double sumDistance = 0.; + //line 998 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double fromX = ((double) (haxe.lang.Runtime.toDouble(path.__get(0))) ); + //line 999 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double fromY = ((double) (haxe.lang.Runtime.toDouble(path.__get(1))) ); + //line 1000 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double nextX = 0.0; + //line 1001 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double nextY = 0.0; + //line 1002 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double x = 0.0; + //line 1003 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double y = 0.0; + //line 1004 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + double distance = 0.0; + //line 1005 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + int i = 2; + //line 1006 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + while (( i < path.length )) + { + //line 1007 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + nextX = ((double) (haxe.lang.Runtime.toDouble(path.__get(i))) ); + //line 1008 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + nextY = ((double) (haxe.lang.Runtime.toDouble(path.__get(( i + 1 )))) ); + //line 1009 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + x = ( nextX - fromX ); + //line 1010 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + y = ( nextY - fromY ); + //line 1011 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + distance = java.lang.Math.sqrt(( ( x * x ) + ( y * y ) )); + //line 1012 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + sumDistance += distance; + //line 1013 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + fromX = nextX; + //line 1014 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + fromY = nextY; + //line 1015 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + i += 2; + } + + //line 1018 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return sumDistance; + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Intersection.java b/src/main/java/hxDaedalus/data/math/Intersection.java new file mode 100644 index 0000000..2d8f0a4 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Intersection.java @@ -0,0 +1,50 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Intersection extends haxe.lang.ParamEnum +{ + public Intersection(int index, java.lang.Object[] params) + { + //line 99 "/Users/tao/.hvm/versions/haxe/3.4.2/std/java/internal/HxObject.hx" + super(index, params); + } + + + public static final java.lang.String[] __hx_constructs = new java.lang.String[]{"EVertex", "EEdge", "EFace", "ENull"}; + + public static hxDaedalus.data.math.Intersection EVertex(hxDaedalus.data.Vertex vertex) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return new hxDaedalus.data.math.Intersection(0, new java.lang.Object[]{vertex}); + } + + + public static hxDaedalus.data.math.Intersection EEdge(hxDaedalus.data.Edge edge) + { + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return new hxDaedalus.data.math.Intersection(1, new java.lang.Object[]{edge}); + } + + + public static hxDaedalus.data.math.Intersection EFace(hxDaedalus.data.Face face) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return new hxDaedalus.data.math.Intersection(2, new java.lang.Object[]{face}); + } + + + public static final hxDaedalus.data.math.Intersection ENull = new hxDaedalus.data.math.Intersection(3, null); + + @Override public java.lang.String getTag() + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Geom2D.hx" + return hxDaedalus.data.math.Intersection.__hx_constructs[this.index]; + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Matrix2D.java b/src/main/java/hxDaedalus/data/math/Matrix2D.java new file mode 100644 index 0000000..cfa2525 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Matrix2D.java @@ -0,0 +1,1055 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Matrix2D extends haxe.lang.HxObject +{ + public Matrix2D(haxe.lang.EmptyObject empty) + { + } + + + public Matrix2D(java.lang.Object a_, java.lang.Object b_, java.lang.Object c_, java.lang.Object d_, java.lang.Object e_, java.lang.Object f_) + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + hxDaedalus.data.math.Matrix2D.__hx_ctor_hxDaedalus_data_math_Matrix2D(this, a_, b_, c_, d_, e_, f_); + } + + + public static void __hx_ctor_hxDaedalus_data_math_Matrix2D(hxDaedalus.data.math.Matrix2D __hx_this, java.lang.Object a_, java.lang.Object b_, java.lang.Object c_, java.lang.Object d_, java.lang.Object e_, java.lang.Object f_) + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_f_16 = ( (haxe.lang.Runtime.eq(f_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(f_)) )) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_e_15 = ( (haxe.lang.Runtime.eq(e_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(e_)) )) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_d_14 = ( (haxe.lang.Runtime.eq(d_, null)) ? (((double) (1) )) : (((double) (haxe.lang.Runtime.toDouble(d_)) )) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_c_13 = ( (haxe.lang.Runtime.eq(c_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(c_)) )) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_b_12 = ( (haxe.lang.Runtime.eq(b_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(b_)) )) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double __temp_a_11 = ( (haxe.lang.Runtime.eq(a_, null)) ? (((double) (1) )) : (((double) (haxe.lang.Runtime.toDouble(a_)) )) ); + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.a = __temp_a_11; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.b = __temp_b_12; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.c = __temp_c_13; + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.d = __temp_d_14; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.e = __temp_e_15; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __hx_this.f = __temp_f_16; + } + + + public double a; + + public double b; + + public double c; + + public double d; + + public double e; + + public double f; + + public void identity() + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a = ((double) (1) ); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b = ((double) (0) ); + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c = ((double) (0) ); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d = ((double) (1) ); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e = ((double) (0) ); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f = ((double) (0) ); + } + + + public void translate(double tx, double ty) + { + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e += tx; + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f += ty; + } + + + public void scale(double sx, double sy) + { + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a *= sx; + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b *= sy; + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c *= sx; + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d *= sy; + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e *= sx; + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f *= sy; + } + + + public void rotate(double rad) + { + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double cos = java.lang.Math.cos(rad); + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double sin = java.lang.Math.sin(rad); + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double a_ = ( ( this.a * cos ) + ( this.b * - (sin) ) ); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double b_ = ( ( this.a * sin ) + ( this.b * cos ) ); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double c_ = ( ( this.c * cos ) + ( this.d * - (sin) ) ); + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double d_ = ( ( this.c * sin ) + ( this.d * cos ) ); + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double e_ = ( ( this.e * cos ) + ( this.f * - (sin) ) ); + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double f_ = ( ( this.e * sin ) + ( this.f * cos ) ); + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a = a_; + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b = b_; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c = c_; + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d = d_; + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e = e_; + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f = f_; + } + + + public hxDaedalus.data.math.Matrix2D clone() + { + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return new hxDaedalus.data.math.Matrix2D(this.a, this.b, this.c, this.d, this.e, this.f); + } + + + public void tranform(hxDaedalus.data.math.Point2D point) + { + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double x = ( ( ( this.a * point.x ) + ( this.c * point.y ) ) + this.e ); + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double y = ( ( ( this.b * point.x ) + ( this.d * point.y ) ) + this.f ); + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + point.x = x; + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + point.y = y; + } + + + public double transformX(double x, double y) + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ( ( ( this.a * x ) + ( this.c * y ) ) + this.e ); + } + + + public double transformY(double x, double y) + { + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ( ( ( this.b * x ) + ( this.d * y ) ) + this.f ); + } + + + public void concat(hxDaedalus.data.math.Matrix2D matrix) + { + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double a_ = ( ( this.a * matrix.a ) + ( this.b * matrix.c ) ); + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double b_ = ( ( this.a * matrix.b ) + ( this.b * matrix.d ) ); + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double c_ = ( ( this.c * matrix.a ) + ( this.d * matrix.c ) ); + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double d_ = ( ( this.c * matrix.b ) + ( this.d * matrix.d ) ); + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double e_ = ( ( ( this.e * matrix.a ) + ( this.f * matrix.c ) ) + matrix.e ); + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + double f_ = ( ( ( this.e * matrix.b ) + ( this.f * matrix.d ) ) + matrix.f ); + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a = a_; + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b = b_; + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c = c_; + //line 136 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d = d_; + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e = e_; + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f = f_; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + switch (field.hashCode()) + { + case 102: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("f")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 97: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("a")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 101: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("e")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 98: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("b")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 100: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("d")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 99: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("c")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c = ((double) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + switch (field.hashCode()) + { + case 102: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("f")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.f = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 97: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("a")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.a = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 101: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("e")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.e = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 98: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("b")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.b = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 100: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("d")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.d = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 99: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("c")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.c = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + switch (field.hashCode()) + { + case -1354795244: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("concat")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "concat")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 97: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("a")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.a; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -1727069587: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("transformY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transformY")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 98: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("b")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.b; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -1727069588: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("transformX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transformX")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 99: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("c")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.c; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 1280504431: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("tranform")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "tranform")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 100: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("d")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.d; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 94756189: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("clone")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "clone")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 101: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("e")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.e; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -925180581: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("rotate")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "rotate")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 102: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("f")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.f; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 109250890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("scale")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "scale")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -135761730: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("identity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "identity")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 1052832078: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("translate")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "translate")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + switch (field.hashCode()) + { + case 102: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("f")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.f; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 97: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("a")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.a; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 101: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("e")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.e; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 98: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("b")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.b; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 100: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("d")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.d; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 99: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("c")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.c; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + switch (field.hashCode()) + { + case -1354795244: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("concat")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.concat(((hxDaedalus.data.math.Matrix2D) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -135761730: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("identity")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.identity(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -1727069587: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("transformY")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.transformY(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 1052832078: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("translate")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.translate(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -1727069588: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("transformX")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.transformX(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 109250890: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("scale")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.scale(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 1280504431: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("tranform")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.tranform(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case -925180581: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("rotate")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + this.rotate(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + case 94756189: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (field.equals("clone")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return this.clone(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("f"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("e"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("d"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("c"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("b"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + baseArr.push("a"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Matrix2D.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/NodeData.java b/src/main/java/hxDaedalus/data/math/NodeData.java new file mode 100644 index 0000000..91c9ac6 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/NodeData.java @@ -0,0 +1,257 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class NodeData extends haxe.lang.HxObject +{ + public NodeData(haxe.lang.EmptyObject empty) + { + } + + + public NodeData() + { + //line 9 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + hxDaedalus.data.math.NodeData.__hx_ctor_hxDaedalus_data_math_NodeData(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_NodeData(hxDaedalus.data.math.NodeData __hx_this) + { + } + + + public int index; + + public hxDaedalus.data.math.Point2D point; + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + switch (field.hashCode()) + { + case 100346066: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("index")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + this.index = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + switch (field.hashCode()) + { + case 106845584: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("point")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + this.point = ((hxDaedalus.data.math.Point2D) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + case 100346066: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("index")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + this.index = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + switch (field.hashCode()) + { + case 106845584: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("point")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return this.point; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + case 100346066: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("index")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return this.index; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + switch (field.hashCode()) + { + case 100346066: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (field.equals("index")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return ((double) (this.index) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + baseArr.push("point"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + baseArr.push("index"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/NodeData.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Point2D.java b/src/main/java/hxDaedalus/data/math/Point2D.java new file mode 100644 index 0000000..4f48c66 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Point2D.java @@ -0,0 +1,686 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Point2D extends haxe.lang.HxObject +{ + public Point2D(haxe.lang.EmptyObject empty) + { + } + + + public Point2D(java.lang.Object x_, java.lang.Object y_) + { + //line 10 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + hxDaedalus.data.math.Point2D.__hx_ctor_hxDaedalus_data_math_Point2D(this, x_, y_); + } + + + public static void __hx_ctor_hxDaedalus_data_math_Point2D(hxDaedalus.data.math.Point2D __hx_this, java.lang.Object x_, java.lang.Object y_) + { + //line 10 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + double __temp_y_8 = ( (haxe.lang.Runtime.eq(y_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(y_)) )) ); + //line 10 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + double __temp_x_7 = ( (haxe.lang.Runtime.eq(x_, null)) ? (((double) (0) )) : (((double) (haxe.lang.Runtime.toDouble(x_)) )) ); + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __hx_this.x = __temp_x_7; + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __hx_this.y = __temp_y_8; + } + + + + + public double x; + + public double y; + + public void transform(hxDaedalus.data.math.Matrix2D matrix) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + matrix.tranform(this); + } + + + public void setXY(double x_, double y_) + { + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x = x_; + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y = y_; + } + + + public hxDaedalus.data.math.Point2D clone() + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return new hxDaedalus.data.math.Point2D(this.x, this.y); + } + + + public void substract(hxDaedalus.data.math.Point2D p) + { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x -= p.x; + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y -= p.y; + } + + + public double get_length() + { + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return java.lang.Math.sqrt(( ( this.x * this.x ) + ( this.y * this.y ) )); + } + + + public void normalize() + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + double norm = this.get_length(); + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x /= norm; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y /= norm; + } + + + public void scale(double s) + { + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x *= s; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y *= s; + } + + + public double distanceTo(hxDaedalus.data.math.Point2D p) + { + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + double diffX = ( this.x - p.x ); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + double diffY = ( this.y - p.y ); + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return java.lang.Math.sqrt(( ( diffX * diffX ) + ( diffY * diffY ) )); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + switch (field.hashCode()) + { + case 121: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("y")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y = ((double) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 120: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("x")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x = ((double) (value) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + switch (field.hashCode()) + { + case 121: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("y")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.y = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 120: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("x")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.x = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return value; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + switch (field.hashCode()) + { + case -1963037360: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("distanceTo")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "distanceTo")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.get_length(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 109250890: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("scale")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "scale")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 120: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("x")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.x; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 236609293: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("normalize")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "normalize")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 121: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("y")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.y; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 974314479: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("get_length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_length")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 1052666732: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("transform")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transform")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 530534145: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("substract")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "substract")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 109328099: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("setXY")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setXY")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 94756189: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("clone")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "clone")) ); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + switch (field.hashCode()) + { + case 121: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("y")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.y; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case -1106363674: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.get_length(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 120: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("x")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.x; + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + boolean __temp_executeDef1 = true; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + switch (field.hashCode()) + { + case -1963037360: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("distanceTo")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.distanceTo(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 1052666732: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("transform")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.transform(((hxDaedalus.data.math.Matrix2D) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 109250890: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("scale")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.scale(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 109328099: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("setXY")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.setXY(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 236609293: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("normalize")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.normalize(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 94756189: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("clone")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.clone(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 974314479: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("get_length")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return this.get_length(); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + case 530534145: + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (field.equals("substract")) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + __temp_executeDef1 = false; + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + this.substract(((hxDaedalus.data.math.Point2D) (dynargs.__get(0)) )); + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + break; + } + + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + if (__temp_executeDef1) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + baseArr.push("y"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + baseArr.push("x"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + baseArr.push("length"); + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Point2D.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Potrace.java b/src/main/java/hxDaedalus/data/math/Potrace.java new file mode 100644 index 0000000..f761311 --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Potrace.java @@ -0,0 +1,484 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Potrace extends haxe.lang.HxObject +{ + static + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.Potrace.MAX_INT = 2147483647; + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.Potrace.maxDistance = ((double) (((int) (1.0) )) ); + } + + public Potrace(haxe.lang.EmptyObject empty) + { + } + + + public Potrace() + { + //line 253 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.Potrace.__hx_ctor_hxDaedalus_data_math_Potrace(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_Potrace(hxDaedalus.data.math.Potrace __hx_this) + { + } + + + public static int MAX_INT; + + public static double maxDistance; + + public static haxe.root.Array> buildShapes(hxPixels._Pixels.PixelsData bmpData, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.root.Array> shapes = new haxe.root.Array>(); + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.ds.StringMap dictPixelsDone = new haxe.ds.StringMap(); + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int _g1 = 1; + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int _g = ( bmpData.height - 1 ); + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( _g1 < _g )) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int row = _g1++; + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int _g3 = 0; + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int _g2 = ( bmpData.width - 1 ); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( _g3 < _g2 )) + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int col = _g3++; + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( ((boolean) (( hxPixels._Pixels.Pixels_Impl_.getPixel(bmpData, col, row) == 16777215 )) ) && ((boolean) (( hxPixels._Pixels.Pixels_Impl_.getPixel(bmpData, ( col + 1 ), row) < 16777215 )) ) )) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( ! (haxe.lang.Runtime.toBool(((java.lang.Object) (dictPixelsDone.get(( ( ( col + 1 ) + "_" ) + row ))) ))) )) + { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + shapes.push(hxDaedalus.data.math.Potrace.buildShape(bmpData, row, ( col + 1 ), dictPixelsDone, debugBmp, debugShape)); + } + + } + + } + + } + + } + + } + + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + return shapes; + } + + + public static haxe.root.Array buildShape(hxPixels._Pixels.PixelsData bmpData, int fromPixelRow, int fromPixelCol, haxe.ds.StringMap dictPixelsDone, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) + { + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double newX = ((double) (fromPixelCol) ); + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double newY = ((double) (fromPixelRow) ); + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.root.Array path = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (newX) ), ((java.lang.Object) (newY) )}); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + dictPixelsDone.set(( ( haxe.lang.Runtime.toString(newX) + "_" ) + haxe.lang.Runtime.toString(newY) ), true); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.Point2D curDir = new hxDaedalus.data.math.Point2D(0, 1); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.Point2D newDir = new hxDaedalus.data.math.Point2D(null, null); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int newPixelRow = 0; + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int newPixelCol = 0; + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int count = -1; + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (true) + { + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( debugBmp != null )) + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxPixels._Pixels.Pixels_Impl_.setPixel32(debugBmp, fromPixelCol, fromPixelRow, -65536); + } + + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelRow = ((int) (( ( fromPixelRow + curDir.x ) + curDir.y )) ); + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelCol = ((int) (( ( fromPixelCol + curDir.x ) - curDir.y )) ); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (((boolean) (( hxPixels._Pixels.Pixels_Impl_.getPixel(bmpData, newPixelCol, newPixelRow) < 16777215 )) )) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.x = - (curDir.y) ; + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.y = curDir.x; + } + else + { + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelRow = ((int) (( fromPixelRow + curDir.y )) ); + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelCol = ((int) (( fromPixelCol + curDir.x )) ); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (((boolean) (( hxPixels._Pixels.Pixels_Impl_.getPixel(bmpData, newPixelCol, newPixelRow) < 16777215 )) )) + { + //line 74 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.x = curDir.x; + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.y = curDir.y; + } + else + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelRow = fromPixelRow; + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newPixelCol = fromPixelCol; + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.x = curDir.y; + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newDir.y = - (curDir.x) ; + } + + } + + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newX += curDir.x; + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + newY += curDir.y; + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( ( newX == ((double) (haxe.lang.Runtime.toDouble(path.__get(0))) ) ) && ( newY == ((double) (haxe.lang.Runtime.toDouble(path.__get(1))) ) ) )) + { + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + break; + } + else + { + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + path.push(newX); + //line 92 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + path.push(newY); + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + dictPixelsDone.set(( ( haxe.lang.Runtime.toString(newX) + "_" ) + haxe.lang.Runtime.toString(newY) ), true); + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + fromPixelRow = newPixelRow; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + fromPixelCol = newPixelCol; + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + curDir.x = newDir.x; + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + curDir.y = newDir.y; + } + + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + -- count; + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( count == 0 )) + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + break; + } + + } + + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( debugShape != null )) + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + debugShape.lineStyle(0.5, 65280, null); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + debugShape.moveTo(((double) (haxe.lang.Runtime.toDouble(path.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(1))) )); + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int i = 2; + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( i < path.length )) + { + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + debugShape.lineTo(((double) (haxe.lang.Runtime.toDouble(path.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(( i + 1 )))) )); + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + i += 2; + } + + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + debugShape.lineTo(((double) (haxe.lang.Runtime.toDouble(path.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(1))) )); + } + + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + return path; + } + + + public static hxDaedalus.data.graph.Graph buildGraph(haxe.root.Array shape) + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int i = 0; + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.Graph graph = new hxDaedalus.data.graph.Graph(); + //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphNode node = null; + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + i = 0; + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( i < shape.length )) + { + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node = graph.insertNode(); + //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node.set_data(new hxDaedalus.data.math.NodeData()); + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node.get_data().index = i; + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double shape1 = ((double) (haxe.lang.Runtime.toDouble(shape.__get(i))) ); + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double shape2 = ((double) (haxe.lang.Runtime.toDouble(shape.__get(( i + 1 )))) ); + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node.get_data().point = new hxDaedalus.data.math.Point2D(shape1, shape2); + //line 134 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + i += 2; + } + + //line 137 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphNode node1 = null; + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphNode node2 = null; + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphNode subNode = null; + //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double distSqrd = 0.0; + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double sumDistSqrd = 0.0; + //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int count = 0; + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + boolean isValid = false; + //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphEdge edge = null; + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.math.EdgeData edgeData = null; + //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node1 = graph.get_node(); + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( node1 != null )) + { + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( node1.get_next() != null )) + { + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node2 = node1.get_next(); + } + else + { + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node2 = graph.get_node(); + } + + //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( node2 != node1 )) + { + //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + isValid = true; + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( node1.get_next() != null )) + { + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + subNode = node1.get_next(); + } + else + { + //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + subNode = graph.get_node(); + } + + //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + count = 2; + //line 155 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + sumDistSqrd = ((double) (0) ); + //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( subNode != node2 )) + { + //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + distSqrd = hxDaedalus.data.math.Geom2D.distanceSquaredPointToSegment(subNode.get_data().point.x, subNode.get_data().point.y, node1.get_data().point.x, node1.get_data().point.y, node2.get_data().point.x, node2.get_data().point.y); + //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( distSqrd < 0 )) + { + //line 160 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + distSqrd = ((double) (0) ); + } + + //line 161 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( distSqrd >= hxDaedalus.data.math.Potrace.maxDistance )) + { + //line 164 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + isValid = false; + //line 165 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + break; + } + + //line 168 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + ++ count; + //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + sumDistSqrd += distSqrd; + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( subNode.get_next() != null )) + { + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + subNode = subNode.get_next(); + } + else + { + //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + subNode = graph.get_node(); + } + + } + + //line 173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if ( ! (isValid) ) + { + //line 176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + break; + } + + //line 179 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edge = graph.insertEdge(node1, node2); + //line 180 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edgeData = new hxDaedalus.data.math.EdgeData(); + //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edgeData.sumDistancesSquared = sumDistSqrd; + //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edgeData.length = node1.get_data().point.distanceTo(node2.get_data().point); + //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edgeData.nodesCount = count; + //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edge.set_data(edgeData); + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( node2.get_next() != null )) + { + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node2 = node2.get_next(); + } + else + { + //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node2 = graph.get_node(); + } + + } + + //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + node1 = node1.get_next(); + } + + //line 192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + return graph; + } + + + public static haxe.root.Array buildPolygon(hxDaedalus.data.graph.Graph graph, java.lang.Object debugShape) + { + //line 197 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.root.Array polygon = new haxe.root.Array(); + //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphNode currNode = null; + //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int minNodeIndex = 2147483647; + //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphEdge edge = null; + //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double score = 0.0; + //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + double higherScore = 0.0; + //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + hxDaedalus.data.graph.GraphEdge lowerScoreEdge = null; + //line 206 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + currNode = graph.get_node(); + //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( currNode.get_data().index < minNodeIndex )) + { + //line 209 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + minNodeIndex = currNode.get_data().index; + //line 211 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + polygon.push(currNode.get_data().point.x); + //line 212 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + polygon.push(currNode.get_data().point.y); + //line 214 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + higherScore = ((double) (0) ); + //line 216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edge = currNode.get_outgoingEdge(); + //line 217 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( edge != null )) + { + //line 219 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + score = ( edge.get_data().nodesCount - ( edge.get_data().length * java.lang.Math.sqrt(( edge.get_data().sumDistancesSquared / edge.get_data().nodesCount )) ) ); + //line 220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( score > higherScore )) + { + //line 222 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + higherScore = score; + //line 223 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + lowerScoreEdge = edge; + } + + //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + edge = edge.get_rotNextEdge(); + } + + //line 229 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + currNode = lowerScoreEdge.get_destinationNode(); + } + + //line 232 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( hxDaedalus.data.math.Geom2D.getDirection(((double) (haxe.lang.Runtime.toDouble(polygon.__get(( polygon.length - 2 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(( polygon.length - 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(3))) )) == 0 )) + { + //line 234 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + polygon.shift(); + //line 235 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + polygon.shift(); + } + + //line 238 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + if (( ! (( debugShape == null )) )) + { + //line 240 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.lang.Runtime.callField(haxe.lang.Runtime.getField(debugShape, "graphics", true), "lineStyle", new haxe.root.Array(new java.lang.Object[]{0.5, 255})); + //line 241 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.lang.Runtime.callField(haxe.lang.Runtime.getField(debugShape, "graphics", true), "moveTo", new haxe.root.Array(new java.lang.Object[]{((double) (haxe.lang.Runtime.toDouble(polygon.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(1))) )})); + //line 242 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + int i = 2; + //line 243 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + while (( i < polygon.length )) + { + //line 244 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.lang.Runtime.callField(haxe.lang.Runtime.getField(debugShape, "graphics", true), "lineTo", new haxe.root.Array(new java.lang.Object[]{((double) (haxe.lang.Runtime.toDouble(polygon.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(( i + 1 )))) )})); + //line 245 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + i += 2; + } + + //line 247 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + haxe.lang.Runtime.callField(haxe.lang.Runtime.getField(debugShape, "graphics", true), "lineTo", new haxe.root.Array(new java.lang.Object[]{((double) (haxe.lang.Runtime.toDouble(polygon.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygon.__get(1))) )})); + } + + //line 250 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Potrace.hx" + return polygon; + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/RandGenerator.java b/src/main/java/hxDaedalus/data/math/RandGenerator.java new file mode 100644 index 0000000..4a7511c --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/RandGenerator.java @@ -0,0 +1,1090 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class RandGenerator extends haxe.lang.HxObject +{ + public RandGenerator(haxe.lang.EmptyObject empty) + { + } + + + public RandGenerator(java.lang.Object seed, java.lang.Object rangeMin_, java.lang.Object rangeMax_) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + hxDaedalus.data.math.RandGenerator.__hx_ctor_hxDaedalus_data_math_RandGenerator(this, seed, rangeMin_, rangeMax_); + } + + + public static void __hx_ctor_hxDaedalus_data_math_RandGenerator(hxDaedalus.data.math.RandGenerator __hx_this, java.lang.Object seed, java.lang.Object rangeMin_, java.lang.Object rangeMax_) + { + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int __temp_rangeMax_19 = ( (haxe.lang.Runtime.eq(rangeMax_, null)) ? (1) : (((int) (haxe.lang.Runtime.toInt(rangeMax_)) )) ); + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int __temp_rangeMin_18 = ( (haxe.lang.Runtime.eq(rangeMin_, null)) ? (0) : (((int) (haxe.lang.Runtime.toInt(rangeMin_)) )) ); + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int __temp_seed17 = ( (haxe.lang.Runtime.eq(seed, null)) ? (1234) : (((int) (haxe.lang.Runtime.toInt(seed)) )) ); + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __hx_this._originalSeed = __hx_this._currSeed = __temp_seed17; + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __hx_this.rangeMin = __temp_rangeMin_18; + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __hx_this.rangeMax = __temp_rangeMax_19; + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __hx_this._numIter = 0; + } + + + + + public int rangeMin; + + public int rangeMax; + + public int _originalSeed; + + public int _currSeed; + + public int _rangeMin; + + public int _rangeMax; + + public int _numIter; + + public java.lang.String _tempString; + + public int set_seed(int value) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._originalSeed = this._currSeed = value; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + + public int get_seed() + { + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._originalSeed; + } + + + public void reset() + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._currSeed = this._originalSeed; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._numIter = 0; + } + + + public int next() + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + double _floatSeed = ( this._currSeed * 1.0 ); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._tempString = haxe.root.Std.string(( _floatSeed * _floatSeed )); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + while (( this._tempString.length() < 8 )) + { + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._tempString = ( "0" + this._tempString ); + } + + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._currSeed = ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(haxe.lang.StringExt.substr(this._tempString, 1, 5)))) ); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int res = ((int) (java.lang.Math.round(( this.rangeMin + ( ( ((double) (this._currSeed) ) / 99999 ) * (( this.rangeMax - this.rangeMin )) ) ))) ); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (( this._currSeed == 0 )) + { + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._currSeed = ( this._originalSeed + this._numIter ); + } + + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._numIter++; + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (( this._numIter == 200 )) + { + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.reset(); + } + + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return res; + } + + + public int nextInRange(int rangeMin, int rangeMax) + { + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMin = rangeMin; + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMax = rangeMax; + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.next(); + } + + + public void shuffle(haxe.root.Array array) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int currIdx = array.length; + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + while (( currIdx > 0 )) + { + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + int rndIdx = this.nextInRange(0, ( currIdx - 1 )); + //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + -- currIdx; + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + T tmp = array.__get(currIdx); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + array.__set(currIdx, array.__get(rndIdx)); + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + array.__set(rndIdx, tmp); + } + + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + switch (field.hashCode()) + { + case 356978303: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_numIter")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._numIter = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3526257: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.set_seed(((int) (value) )); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359558: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._rangeMax = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841941: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMin = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359796: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._rangeMin = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841703: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMax = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 665375010: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_currSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._currSeed = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 34465217: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_originalSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._originalSeed = ((int) (value) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + switch (field.hashCode()) + { + case 1694086820: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_tempString")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._tempString = haxe.lang.Runtime.toString(value); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3526257: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.set_seed(((int) (haxe.lang.Runtime.toInt(value)) )); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 356978303: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_numIter")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._numIter = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841941: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMin = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359558: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._rangeMax = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841703: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.rangeMax = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359796: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._rangeMin = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 34465217: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_originalSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._originalSeed = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 665375010: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_currSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this._currSeed = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return value; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + switch (field.hashCode()) + { + case 2072332025: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("shuffle")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "shuffle")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3526257: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.get_seed(); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case -1016590171: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("nextInRange")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "nextInRange")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841941: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.rangeMin; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3377907: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("next")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841703: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.rangeMax; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 108404047: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("reset")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reset")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 34465217: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_originalSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._originalSeed; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 1976638906: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("get_seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_seed")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 665375010: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_currSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._currSeed; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 1415526446: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("set_seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_seed")) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359796: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._rangeMin; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 1694086820: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_tempString")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._tempString; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359558: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._rangeMax; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 356978303: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_numIter")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this._numIter; + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + switch (field.hashCode()) + { + case 356978303: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_numIter")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this._numIter) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3526257: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this.get_seed()) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359558: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this._rangeMax) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841941: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this.rangeMin) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 343359796: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_rangeMin")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this._rangeMin) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 252841703: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("rangeMax")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this.rangeMax) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 665375010: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_currSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this._currSeed) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 34465217: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("_originalSeed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((double) (this._originalSeed) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + boolean __temp_executeDef1 = true; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + switch (field.hashCode()) + { + case 2072332025: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("shuffle")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.shuffle(((haxe.root.Array) (dynargs.__get(0)) )); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return ((java.lang.Object) (null) ); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 1415526446: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("set_seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.set_seed(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case -1016590171: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("nextInRange")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.nextInRange(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(1))) )); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 1976638906: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("get_seed")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.get_seed(); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 3377907: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("next")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return this.next(); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + case 108404047: + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (field.equals("reset")) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + __temp_executeDef1 = false; + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + this.reset(); + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + break; + } + + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + if (__temp_executeDef1) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_tempString"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_numIter"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_rangeMax"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_rangeMin"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_currSeed"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("_originalSeed"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("rangeMax"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("rangeMin"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + baseArr.push("seed"); + //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/RandGenerator.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/ShapeSimplifier.java b/src/main/java/hxDaedalus/data/math/ShapeSimplifier.java new file mode 100644 index 0000000..5532eef --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/ShapeSimplifier.java @@ -0,0 +1,104 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class ShapeSimplifier extends haxe.lang.HxObject +{ + public ShapeSimplifier(haxe.lang.EmptyObject empty) + { + } + + + public ShapeSimplifier() + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + hxDaedalus.data.math.ShapeSimplifier.__hx_ctor_hxDaedalus_data_math_ShapeSimplifier(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_ShapeSimplifier(hxDaedalus.data.math.ShapeSimplifier __hx_this) + { + } + + + public static haxe.root.Array simplify(haxe.root.Array coords, java.lang.Object epsilon) + { + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double __temp_epsilon20 = ( (haxe.lang.Runtime.eq(epsilon, null)) ? (((double) (1) )) : (((double) (haxe.lang.Runtime.toDouble(epsilon)) )) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + int len = coords.length; + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + if (( ( len <= 4 ) || ( __temp_epsilon20 < 1 ) )) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + return ((haxe.root.Array) (((haxe.root.Array) (new haxe.root.Array(new java.lang.Object[]{}).concat(((haxe.root.Array) (((haxe.root.Array) (coords) )) ))) )) ); + } + + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double firstPointX = ((double) (haxe.lang.Runtime.toDouble(coords.__get(0))) ); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double firstPointY = ((double) (haxe.lang.Runtime.toDouble(coords.__get(1))) ); + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double lastPointX = ((double) (haxe.lang.Runtime.toDouble(coords.__get(( len - 2 )))) ); + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double lastPointY = ((double) (haxe.lang.Runtime.toDouble(coords.__get(( len - 1 )))) ); + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + int index = -1; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double dist = 0.; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + int _g1 = 1; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + int _g = ( len >> 1 ); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + while (( _g1 < _g )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + int i = _g1++; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + double currDist = hxDaedalus.data.math.Geom2D.distanceSquaredPointToSegment(((double) (haxe.lang.Runtime.toDouble(coords.__get(( i << 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(coords.__get(( (( i << 1 )) + 1 )))) ), firstPointX, firstPointY, lastPointX, lastPointY); + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + if (( currDist > dist )) + { + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + dist = currDist; + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + index = i; + } + + } + + } + + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + if (( dist > ( __temp_epsilon20 * __temp_epsilon20 ) )) + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + haxe.root.Array l1 = ((haxe.root.Array) (((haxe.root.Array) (coords.slice(0, ( (( index << 1 )) + 2 ))) )) ); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + haxe.root.Array l2 = ((haxe.root.Array) (((haxe.root.Array) (coords.slice(( index << 1 ), null)) )) ); + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + haxe.root.Array r1 = hxDaedalus.data.math.ShapeSimplifier.simplify(l1, __temp_epsilon20); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + haxe.root.Array r2 = hxDaedalus.data.math.ShapeSimplifier.simplify(l2, __temp_epsilon20); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + haxe.root.Array rs = ((haxe.root.Array) (((haxe.root.Array) (((haxe.root.Array) (((haxe.root.Array) (r1.slice(0, ( r1.length - 2 ))) )) ).concat(((haxe.root.Array) (((haxe.root.Array) (r2) )) ))) )) ); + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + return rs; + } + else + { + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/ShapeSimplifier.hx" + return new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (firstPointX) ), ((java.lang.Object) (firstPointY) ), ((java.lang.Object) (lastPointX) ), ((java.lang.Object) (lastPointY) )}); + } + + } + + +} + + diff --git a/src/main/java/hxDaedalus/data/math/Tools.java b/src/main/java/hxDaedalus/data/math/Tools.java new file mode 100644 index 0000000..192849f --- /dev/null +++ b/src/main/java/hxDaedalus/data/math/Tools.java @@ -0,0 +1,261 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.data.math; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Tools extends haxe.lang.HxObject +{ + public Tools(haxe.lang.EmptyObject empty) + { + } + + + public Tools() + { + //line 14 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.math.Tools.__hx_ctor_hxDaedalus_data_math_Tools(this); + } + + + public static void __hx_ctor_hxDaedalus_data_math_Tools(hxDaedalus.data.math.Tools __hx_this) + { + } + + + public static hxDaedalus.data.Mesh extractMeshFromBitmap(hxPixels._Pixels.PixelsData pixels, haxe.root.Array vertices, haxe.root.Array triangles) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.root.Array> shapes = hxDaedalus.data.math.Potrace.buildShapes(pixels, null, null); + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + return hxDaedalus.data.math.Tools.extractMeshFromShapes(shapes, pixels.width, pixels.height, vertices, triangles, null); + } + + + public static hxDaedalus.data.Mesh extractMeshFromShapes(haxe.root.Array> shapes, int width, int height, haxe.root.Array vertices, haxe.root.Array triangles, java.lang.Object invertWinding) + { + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + boolean __temp_invertWinding21 = ( (haxe.lang.Runtime.eq(invertWinding, null)) ? (false) : (haxe.lang.Runtime.toBool(invertWinding)) ); + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.root.Array graphs = new haxe.root.Array(); + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g1 = 0; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g = shapes.length; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( _g1 < _g )) + { + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int i = _g1++; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + graphs.push(hxDaedalus.data.math.Potrace.buildGraph(shapes.__get(i))); + } + + } + + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.root.Array> polygons = new haxe.root.Array>(); + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g11 = 0; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g2 = graphs.length; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( _g11 < _g2 )) + { + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int i1 = _g11++; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + polygons.push(hxDaedalus.data.math.Potrace.buildPolygon(graphs.__get(i1), null)); + } + + } + + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.Mesh mesh = hxDaedalus.factories.RectMesh.buildRectangle(((double) (width) ), ((double) (height) )); + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.root.Array edges = new haxe.root.Array(); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.ConstraintSegment segment = null; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g12 = 0; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g3 = polygons.length; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( _g12 < _g3 )) + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int i2 = _g12++; + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int j = 0; + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( j < ( polygons.__get(i2).length - 2 ) )) + { + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + segment = mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(( j + 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(( j + 2 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(( j + 3 )))) )); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if (( j == 0 )) + { + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if (( ( segment.get_edges().__get(0).get_originVertex().get_pos().x == ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(j))) ) ) && ( segment.get_edges().__get(0).get_originVertex().get_pos().y == ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(( j + 1 )))) ) ) )) + { + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if ( ! (__temp_invertWinding21) ) + { + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + edges.push(segment.get_edges().__get(0)); + } + else + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + edges.push(segment.get_edges().__get(0).get_oppositeEdge()); + } + + } + else + { + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if ( ! (__temp_invertWinding21) ) + { + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + edges.push(segment.get_edges().__get(0).get_oppositeEdge()); + } + else + { + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + edges.push(segment.get_edges().__get(0)); + } + + } + + } + + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + j += 2; + } + + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i2).__get(( j + 1 )))) )); + } + + } + + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.ds.ObjectMap indicesDict = new haxe.ds.ObjectMap(); + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.Vertex vertex = null; + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.math.Point2D point = null; + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g13 = 0; + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g4 = mesh._vertices.length; + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( _g13 < _g4 )) + { + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int i3 = _g13++; + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + vertex = mesh._vertices.__get(i3); + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if (( ( ( ( vertex.get_isReal() && ( vertex.get_pos().x > 0 ) ) && ( vertex.get_pos().x < width ) ) && ( vertex.get_pos().y > 0 ) ) && ( vertex.get_pos().y < height ) )) + { + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + point = new hxDaedalus.data.math.Point2D(vertex.get_pos().x, vertex.get_pos().y); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + vertices.push(point); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int v = ( vertices.length - 1 ); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + indicesDict.set(vertex, v); + } + + } + + } + + } + + //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.ds.ObjectMap facesDone = new haxe.ds.ObjectMap(); + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + haxe.root.Array openFacesList = new haxe.root.Array(); + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + { + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g14 = 0; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int _g5 = edges.length; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( _g14 < _g5 )) + { + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + int i4 = _g14++; + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + openFacesList.push(edges.__get(i4).get_rightFace()); + } + + } + + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + hxDaedalus.data.Face currFace = null; + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + while (( openFacesList.length > 0 )) + { + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + currFace = ((hxDaedalus.data.Face) (openFacesList.pop()) ); + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if (haxe.lang.Runtime.toBool((((java.lang.Object) (facesDone.get(currFace)) )))) + { + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + continue; + } + + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + triangles.push(indicesDict.get(currFace.get_edge().get_originVertex())); + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + triangles.push(indicesDict.get(currFace.get_edge().get_nextLeftEdge().get_originVertex())); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + triangles.push(indicesDict.get(currFace.get_edge().get_nextLeftEdge().get_destinationVertex())); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if ( ! (currFace.get_edge().get_isConstrained()) ) + { + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + openFacesList.push(currFace.get_edge().get_rightFace()); + } + + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if ( ! (currFace.get_edge().get_nextLeftEdge().get_isConstrained()) ) + { + //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + openFacesList.push(currFace.get_edge().get_nextLeftEdge().get_rightFace()); + } + + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + if ( ! (currFace.get_edge().get_prevLeftEdge().get_isConstrained()) ) + { + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + openFacesList.push(currFace.get_edge().get_prevLeftEdge().get_rightFace()); + } + + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + facesDone.set(currFace, true); + } + + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/math/Tools.hx" + return mesh; + } + + +} + + diff --git a/src/main/java/hxDaedalus/debug/Debug.java b/src/main/java/hxDaedalus/debug/Debug.java new file mode 100644 index 0000000..916c23e --- /dev/null +++ b/src/main/java/hxDaedalus/debug/Debug.java @@ -0,0 +1,56 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.debug; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Debug extends haxe.lang.HxObject +{ + public Debug(haxe.lang.EmptyObject empty) + { + } + + + public Debug() + { + //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" + hxDaedalus.debug.Debug.__hx_ctor_hxDaedalus_debug_Debug(this); + } + + + public static void __hx_ctor_hxDaedalus_debug_Debug(hxDaedalus.debug.Debug __hx_this) + { + } + + + public static void assertTrue(boolean cond, java.lang.String message, java.lang.Object pos) + { + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" + return ; + } + + + public static void assertFalse(boolean cond, java.lang.String message, java.lang.Object pos) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" + return ; + } + + + public static void assertEquals(T expected, T actual, java.lang.String message, java.lang.Object pos) + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" + return ; + } + + + public static void trace(java.lang.Object value, java.lang.Object pos) + { + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" + return ; + } + + +} + + diff --git a/src/main/java/hxDaedalus/factories/BitmapMesh.java b/src/main/java/hxDaedalus/factories/BitmapMesh.java new file mode 100644 index 0000000..3c08cc1 --- /dev/null +++ b/src/main/java/hxDaedalus/factories/BitmapMesh.java @@ -0,0 +1,109 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.factories; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class BitmapMesh extends haxe.lang.HxObject +{ + public BitmapMesh(haxe.lang.EmptyObject empty) + { + } + + + public BitmapMesh() + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + hxDaedalus.factories.BitmapMesh.__hx_ctor_hxDaedalus_factories_BitmapMesh(this); + } + + + public static void __hx_ctor_hxDaedalus_factories_BitmapMesh(hxDaedalus.factories.BitmapMesh __hx_this) + { + } + + + public static hxDaedalus.data.Mesh buildFromBmpData(hxPixels._Pixels.PixelsData bmpData, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int i = 0; + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int j = 0; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + haxe.root.Array> shapes = hxDaedalus.data.math.Potrace.buildShapes(bmpData, debugBmp, debugShape); + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + haxe.root.Array graphs = new haxe.root.Array(); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g1 = 0; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g = shapes.length; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + while (( _g1 < _g )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int i1 = _g1++; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + graphs.push(hxDaedalus.data.math.Potrace.buildGraph(shapes.__get(i1))); + } + + } + + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + haxe.root.Array> polygons = new haxe.root.Array>(); + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g11 = 0; + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g2 = graphs.length; + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + while (( _g11 < _g2 )) + { + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int i2 = _g11++; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + polygons.push(hxDaedalus.data.math.Potrace.buildPolygon(graphs.__get(i2), debugShape)); + } + + } + + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + hxDaedalus.data.Mesh mesh = hxDaedalus.factories.RectMesh.buildRectangle(((double) (bmpData.width) ), ((double) (bmpData.height) )); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g12 = 0; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int _g3 = polygons.length; + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + while (( _g12 < _g3 )) + { + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + int i3 = _g12++; + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + j = 0; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + while (( j < ( polygons.__get(i3).length - 2 ) )) + { + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 2 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 3 )))) )); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + j += 2; + } + + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 1 )))) )); + } + + } + + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" + return mesh; + } + + +} + + diff --git a/src/main/java/hxDaedalus/factories/BitmapObject.java b/src/main/java/hxDaedalus/factories/BitmapObject.java new file mode 100644 index 0000000..00dc5dc --- /dev/null +++ b/src/main/java/hxDaedalus/factories/BitmapObject.java @@ -0,0 +1,149 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.factories; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class BitmapObject extends haxe.lang.HxObject +{ + public BitmapObject(haxe.lang.EmptyObject empty) + { + } + + + public BitmapObject() + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + hxDaedalus.factories.BitmapObject.__hx_ctor_hxDaedalus_factories_BitmapObject(this); + } + + + public static void __hx_ctor_hxDaedalus_factories_BitmapObject(hxDaedalus.factories.BitmapObject __hx_this) + { + } + + + public static hxDaedalus.data.Obstacle buildFromBmpData(hxPixels._Pixels.PixelsData bmpData, java.lang.Object simplificationEpsilon, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) + { + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + double __temp_simplificationEpsilon22 = ( (haxe.lang.Runtime.eq(simplificationEpsilon, null)) ? (((double) (1) )) : (((double) (haxe.lang.Runtime.toDouble(simplificationEpsilon)) )) ); + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int i = 0; + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int j = 0; + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + boolean cond = ( ( bmpData.width > 0 ) && ( bmpData.height > 0 ) ); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + java.lang.String message = ( ( ( ( "Invalid `bmpData` size (" + bmpData.width ) + ", " ) + bmpData.height ) + ")" ); + } + + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + haxe.root.Array> shapes = hxDaedalus.data.math.Potrace.buildShapes(bmpData, debugBmp, debugShape); + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + if (( __temp_simplificationEpsilon22 >= 1 )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g1 = 0; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g = shapes.length; + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + while (( _g1 < _g )) + { + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int i1 = _g1++; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + shapes.__set(i1, hxDaedalus.data.math.ShapeSimplifier.simplify(shapes.__get(i1), __temp_simplificationEpsilon22)); + } + + } + + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + haxe.root.Array graphs = new haxe.root.Array(); + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g11 = 0; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g2 = shapes.length; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + while (( _g11 < _g2 )) + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int i2 = _g11++; + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + graphs.push(hxDaedalus.data.math.Potrace.buildGraph(shapes.__get(i2))); + } + + } + + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + haxe.root.Array> polygons = new haxe.root.Array>(); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g12 = 0; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g3 = graphs.length; + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + while (( _g12 < _g3 )) + { + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int i3 = _g12++; + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + polygons.push(hxDaedalus.data.math.Potrace.buildPolygon(graphs.__get(i3), debugShape)); + } + + } + + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + hxDaedalus.data.Obstacle obj = new hxDaedalus.data.Obstacle(); + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g13 = 0; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int _g4 = polygons.length; + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + while (( _g13 < _g4 )) + { + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + int i4 = _g13++; + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + j = 0; + //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + while (( j < ( polygons.__get(i4).length - 2 ) )) + { + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(j))) )); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 1 )))) )); + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 2 )))) )); + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 3 )))) )); + //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + j += 2; + } + + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(0))) )); + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(1))) )); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(j))) )); + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 1 )))) )); + } + + } + + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" + return obj; + } + + +} + + diff --git a/src/main/java/hxDaedalus/factories/RectMesh.java b/src/main/java/hxDaedalus/factories/RectMesh.java new file mode 100644 index 0000000..52e9c6f --- /dev/null +++ b/src/main/java/hxDaedalus/factories/RectMesh.java @@ -0,0 +1,339 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.factories; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class RectMesh extends haxe.lang.HxObject +{ + public RectMesh(haxe.lang.EmptyObject empty) + { + } + + + public RectMesh() + { + //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.factories.RectMesh.__hx_ctor_hxDaedalus_factories_RectMesh(this); + } + + + public static void __hx_ctor_hxDaedalus_factories_RectMesh(hxDaedalus.factories.RectMesh __hx_this) + { + } + + + public static hxDaedalus.data.Mesh buildRectangle(double width, double height) + { + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Vertex vTL = new hxDaedalus.data.Vertex(); + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Vertex vTR = new hxDaedalus.data.Vertex(); + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Vertex vBR = new hxDaedalus.data.Vertex(); + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Vertex vBL = new hxDaedalus.data.Vertex(); + //line 36 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTL_TR = new hxDaedalus.data.Edge(); + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTR_TL = new hxDaedalus.data.Edge(); + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTR_BR = new hxDaedalus.data.Edge(); + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBR_TR = new hxDaedalus.data.Edge(); + //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBR_BL = new hxDaedalus.data.Edge(); + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBL_BR = new hxDaedalus.data.Edge(); + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBL_TL = new hxDaedalus.data.Edge(); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTL_BL = new hxDaedalus.data.Edge(); + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTR_BL = new hxDaedalus.data.Edge(); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBL_TR = new hxDaedalus.data.Edge(); + //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eTL_BR = new hxDaedalus.data.Edge(); + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge eBR_TL = new hxDaedalus.data.Edge(); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Face fTL_BL_TR = new hxDaedalus.data.Face(); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Face fTR_BL_BR = new hxDaedalus.data.Face(); + //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Face fTL_BR_BL = new hxDaedalus.data.Face(); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Face fTL_TR_BR = new hxDaedalus.data.Face(); + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintShape boundShape = new hxDaedalus.data.ConstraintShape(); + //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintSegment segTop = new hxDaedalus.data.ConstraintSegment(); + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintSegment segRight = new hxDaedalus.data.ConstraintSegment(); + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintSegment segBot = new hxDaedalus.data.ConstraintSegment(); + //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintSegment segLeft = new hxDaedalus.data.ConstraintSegment(); + //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Mesh mesh = new hxDaedalus.data.Mesh(width, height); + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + double offset = 10.; + //line 65 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTL.get_pos().setXY(( 0 - offset ), ( 0 - offset )); + //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTR.get_pos().setXY(( width + offset ), ( 0 - offset )); + //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBR.get_pos().setXY(( width + offset ), ( height + offset )); + //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBL.get_pos().setXY(( 0 - offset ), ( height + offset )); + //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTL.setDatas(eTL_TR, null); + //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTR.setDatas(eTR_BR, null); + //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBR.setDatas(eBR_BL, null); + //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBL.setDatas(eBL_TL, null); + //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTL_TR.setDatas(vTL, eTR_TL, eTR_BR, fTL_TR_BR, true, true); + //line 76 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTR_TL.setDatas(vTR, eTL_TR, eTL_BL, fTL_BL_TR, true, true); + //line 77 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTR_BR.setDatas(vTR, eBR_TR, eBR_TL, fTL_TR_BR, true, true); + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBR_TR.setDatas(vBR, eTR_BR, eTR_BL, fTR_BL_BR, true, true); + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBR_BL.setDatas(vBR, eBL_BR, eBL_TL, fTL_BR_BL, true, true); + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBL_BR.setDatas(vBL, eBR_BL, eBR_TR, fTR_BL_BR, true, true); + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBL_TL.setDatas(vBL, eTL_BL, eTL_BR, fTL_BR_BL, true, true); + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTL_BL.setDatas(vTL, eBL_TL, eBL_TR, fTL_BL_TR, true, true); + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTR_BL.setDatas(vTR, eBL_TR, eBL_BR, fTR_BL_BR, true, false); + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBL_TR.setDatas(vBL, eTR_BL, eTR_TL, fTL_BL_TR, true, false); + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTL_BR.setDatas(vTL, eBR_TL, eBR_BL, fTL_BR_BL, false, false); + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBR_TL.setDatas(vBR, eTL_BR, eTL_TR, fTL_TR_BR, false, false); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + fTL_BL_TR.setDatas(eBL_TR, null); + //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + fTR_BL_BR.setDatas(eTR_BL, null); + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + fTL_BR_BL.setDatas(eBR_BL, false); + //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + fTL_TR_BR.setDatas(eTR_BR, false); + //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTL.set_fromConstraintSegments(new haxe.root.Array(new hxDaedalus.data.ConstraintSegment[]{segTop, segLeft})); + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vTR.set_fromConstraintSegments(new haxe.root.Array(new hxDaedalus.data.ConstraintSegment[]{segTop, segRight})); + //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBR.set_fromConstraintSegments(new haxe.root.Array(new hxDaedalus.data.ConstraintSegment[]{segRight, segBot})); + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + vBL.set_fromConstraintSegments(new haxe.root.Array(new hxDaedalus.data.ConstraintSegment[]{segBot, segLeft})); + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTL_TR.fromConstraintSegments.push(segTop); + //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTR_TL.fromConstraintSegments.push(segTop); + //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTR_BR.fromConstraintSegments.push(segRight); + //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBR_TR.fromConstraintSegments.push(segRight); + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBR_BL.fromConstraintSegments.push(segBot); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBL_BR.fromConstraintSegments.push(segBot); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eBL_TL.fromConstraintSegments.push(segLeft); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + eTL_BL.fromConstraintSegments.push(segLeft); + //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segTop.get_edges().push(eTL_TR); + //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segRight.get_edges().push(eTR_BR); + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segBot.get_edges().push(eBR_BL); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segLeft.get_edges().push(eBL_TL); + //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segTop.fromShape = boundShape; + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segRight.fromShape = boundShape; + //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segBot.fromShape = boundShape; + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + segLeft.fromShape = boundShape; + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g = 0; + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g1 = new haxe.root.Array(new hxDaedalus.data.ConstraintSegment[]{segTop, segRight, segBot, segLeft}); + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g < _g1.length )) + { + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.ConstraintSegment f = _g1.__get(_g); + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g; + //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + boundShape.segments.push(f); + } + + } + + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g2 = 0; + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g11 = new haxe.root.Array(new hxDaedalus.data.Vertex[]{vTL, vTR, vBR, vBL}); + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g2 < _g11.length )) + { + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Vertex f1 = _g11.__get(_g2); + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g2; + //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh._vertices.push(f1); + } + + } + + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g3 = 0; + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g12 = new haxe.root.Array(new hxDaedalus.data.Edge[]{eTL_TR, eTR_TL, eTR_BR, eBR_TR, eBR_BL, eBL_BR, eBL_TL, eTL_BL, eTR_BL, eBL_TR, eTL_BR, eBR_TL}); + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g3 < _g12.length )) + { + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Edge f2 = _g12.__get(_g3); + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g3; + //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh._edges.push(f2); + } + + } + + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g4 = 0; + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g13 = new haxe.root.Array(new hxDaedalus.data.Face[]{fTL_BL_TR, fTR_BL_BR, fTL_BR_BL, fTL_TR_BR}); + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g4 < _g13.length )) + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + hxDaedalus.data.Face f3 = _g13.__get(_g4); + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g4; + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh._faces.push(f3); + } + + } + + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh.get___constraintShapes().push(boundShape); + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array securityRect = new haxe.root.Array(); + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g5 = 0; + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g14 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (0) ), ((java.lang.Object) (0) ), ((java.lang.Object) (width) ), ((java.lang.Object) (0) )}); + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g5 < _g14.length )) + { + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + double f4 = ((double) (haxe.lang.Runtime.toDouble(_g14.__get(_g5))) ); + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g5; + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + securityRect.push(f4); + } + + } + + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g6 = 0; + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g15 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (width) ), ((java.lang.Object) (0) ), ((java.lang.Object) (width) ), ((java.lang.Object) (height) )}); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g6 < _g15.length )) + { + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + double f5 = ((double) (haxe.lang.Runtime.toDouble(_g15.__get(_g6))) ); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g6; + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + securityRect.push(f5); + } + + } + + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g7 = 0; + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g16 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (width) ), ((java.lang.Object) (height) ), ((java.lang.Object) (0) ), ((java.lang.Object) (height) )}); + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g7 < _g16.length )) + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + double f6 = ((double) (haxe.lang.Runtime.toDouble(_g16.__get(_g7))) ); + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g7; + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + securityRect.push(f6); + } + + } + + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + { + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + int _g8 = 0; + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + haxe.root.Array _g17 = new haxe.root.Array(new java.lang.Object[]{((java.lang.Object) (0) ), ((java.lang.Object) (height) ), ((java.lang.Object) (0) ), ((java.lang.Object) (0) )}); + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + while (( _g8 < _g17.length )) + { + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + double f7 = ((double) (haxe.lang.Runtime.toDouble(_g17.__get(_g8))) ); + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + ++ _g8; + //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + securityRect.push(f7); + } + + } + + //line 128 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh.set_clipping(false); + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh.insertConstraintShape(securityRect); + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + mesh.set_clipping(true); + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/RectMesh.hx" + return mesh; + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java b/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java new file mode 100644 index 0000000..6f6dbb8 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java @@ -0,0 +1,28 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromEdgeToRotatedEdges extends haxe.lang.HxObject +{ + public FromEdgeToRotatedEdges(haxe.lang.EmptyObject empty) + { + } + + + public FromEdgeToRotatedEdges() + { + //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromEdgeToRotatedEdges.hx" + hxDaedalus.iterators.FromEdgeToRotatedEdges.__hx_ctor_hxDaedalus_iterators_FromEdgeToRotatedEdges(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromEdgeToRotatedEdges(hxDaedalus.iterators.FromEdgeToRotatedEdges __hx_this) + { + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromFaceToInnerEdges.java b/src/main/java/hxDaedalus/iterators/FromFaceToInnerEdges.java new file mode 100644 index 0000000..649c9f2 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromFaceToInnerEdges.java @@ -0,0 +1,358 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromFaceToInnerEdges extends haxe.lang.HxObject +{ + public FromFaceToInnerEdges(haxe.lang.EmptyObject empty) + { + } + + + public FromFaceToInnerEdges() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + hxDaedalus.iterators.FromFaceToInnerEdges.__hx_ctor_hxDaedalus_iterators_FromFaceToInnerEdges(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromFaceToInnerEdges(hxDaedalus.iterators.FromFaceToInnerEdges __hx_this) + { + } + + + + + public hxDaedalus.data.Face _fromFace; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Edge _resultEdge; + + public hxDaedalus.data.Face set_fromFace(hxDaedalus.data.Face value) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._fromFace = value; + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._nextEdge = this._fromFace.get_edge(); + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return value; + } + + + public hxDaedalus.data.Edge next() + { + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (( this._nextEdge != null )) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._resultEdge = this._nextEdge; + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._nextEdge = this._nextEdge.get_nextLeftEdge(); + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (( this._nextEdge == this._fromFace.get_edge() )) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._nextEdge = null; + } + + } + else + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._resultEdge = null; + } + + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this._resultEdge; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + switch (field.hashCode()) + { + case 516008217: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_resultEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._resultEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case -1245086425: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this.set_fromFace(((hxDaedalus.data.Face) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case -1154568570: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + this._fromFace = ((hxDaedalus.data.Face) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case -1154568570: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this._fromFace; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case -1619148700: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("set_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromFace")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this._nextEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case 516008217: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("_resultEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this._resultEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this.next(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + case -1619148700: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (field.equals("set_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return this.set_fromFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + baseArr.push("_resultEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + baseArr.push("_nextEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + baseArr.push("_fromFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + baseArr.push("fromFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerEdges.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java b/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java new file mode 100644 index 0000000..943e95d --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java @@ -0,0 +1,358 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromFaceToInnerVertices extends haxe.lang.HxObject +{ + public FromFaceToInnerVertices(haxe.lang.EmptyObject empty) + { + } + + + public FromFaceToInnerVertices() + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + hxDaedalus.iterators.FromFaceToInnerVertices.__hx_ctor_hxDaedalus_iterators_FromFaceToInnerVertices(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromFaceToInnerVertices(hxDaedalus.iterators.FromFaceToInnerVertices __hx_this) + { + } + + + + + public hxDaedalus.data.Face _fromFace; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Vertex _resultVertex; + + public hxDaedalus.data.Face set_fromFace(hxDaedalus.data.Face value) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._fromFace = value; + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._nextEdge = this._fromFace.get_edge(); + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return value; + } + + + public hxDaedalus.data.Vertex next() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (( this._nextEdge != null )) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._resultVertex = this._nextEdge.get_originVertex(); + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._nextEdge = this._nextEdge.get_nextLeftEdge(); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (( this._nextEdge == this._fromFace.get_edge() )) + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._nextEdge = null; + } + + } + else + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._resultVertex = null; + } + + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this._resultVertex; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + switch (field.hashCode()) + { + case -1844345344: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_resultVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._resultVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1245086425: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("fromFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this.set_fromFace(((hxDaedalus.data.Face) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case 1514466479: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_nextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1154568570: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_fromFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + this._fromFace = ((hxDaedalus.data.Face) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1154568570: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_fromFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this._fromFace; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1619148700: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("set_fromFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromFace")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case 1514466479: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_nextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this._nextEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1844345344: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("_resultVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this._resultVertex; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this.next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + case -1619148700: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (field.equals("set_fromFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return this.set_fromFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + baseArr.push("_resultVertex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + baseArr.push("_nextEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + baseArr.push("_fromFace"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + baseArr.push("fromFace"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java b/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java new file mode 100644 index 0000000..f329c72 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java @@ -0,0 +1,379 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromFaceToNeighbourFaces extends haxe.lang.HxObject +{ + public FromFaceToNeighbourFaces(haxe.lang.EmptyObject empty) + { + } + + + public FromFaceToNeighbourFaces() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + hxDaedalus.iterators.FromFaceToNeighbourFaces.__hx_ctor_hxDaedalus_iterators_FromFaceToNeighbourFaces(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromFaceToNeighbourFaces(hxDaedalus.iterators.FromFaceToNeighbourFaces __hx_this) + { + } + + + + + public hxDaedalus.data.Face _fromFace; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Face _resultFace; + + public hxDaedalus.data.Face set_fromFace(hxDaedalus.data.Face value) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._fromFace = value; + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._nextEdge = this._fromFace.get_edge(); + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return value; + } + + + public hxDaedalus.data.Face next() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (( this._nextEdge != null )) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + while (true) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._resultFace = this._nextEdge.get_rightFace(); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._nextEdge = this._nextEdge.get_nextLeftEdge(); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (( this._nextEdge == this._fromFace.get_edge() )) + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._nextEdge = null; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if ( ! (this._resultFace.get_isReal()) ) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._resultFace = null; + } + + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if ( ! (( ! (this._resultFace.get_isReal()) )) ) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + } + + } + else + { + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._resultFace = null; + } + + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this._resultFace; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + switch (field.hashCode()) + { + case 516035001: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_resultFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._resultFace = ((hxDaedalus.data.Face) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case -1245086425: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this.set_fromFace(((hxDaedalus.data.Face) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case -1154568570: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + this._fromFace = ((hxDaedalus.data.Face) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case -1154568570: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this._fromFace; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case -1619148700: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("set_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromFace")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this._nextEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case 516035001: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("_resultFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this._resultFace; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this.next(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + case -1619148700: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (field.equals("set_fromFace")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return this.set_fromFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + baseArr.push("_resultFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + baseArr.push("_nextEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + baseArr.push("_fromFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + baseArr.push("fromFace"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java b/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java new file mode 100644 index 0000000..2af0e79 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java @@ -0,0 +1,455 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromMeshToFaces extends haxe.lang.HxObject +{ + public FromMeshToFaces(haxe.lang.EmptyObject empty) + { + } + + + public FromMeshToFaces() + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + hxDaedalus.iterators.FromMeshToFaces.__hx_ctor_hxDaedalus_iterators_FromMeshToFaces(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromMeshToFaces(hxDaedalus.iterators.FromMeshToFaces __hx_this) + { + } + + + + + public hxDaedalus.data.Mesh _fromMesh; + + public int _currIndex; + + public hxDaedalus.data.Face _resultFace; + + public hxDaedalus.data.Mesh set_fromMesh(hxDaedalus.data.Mesh value) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._fromMesh = value; + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._currIndex = 0; + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + + public hxDaedalus.data.Face next() + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + while (true) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (( this._currIndex < this._fromMesh._faces.length )) + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._resultFace = this._fromMesh._faces.__get(this._currIndex); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._currIndex++; + } + else + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._resultFace = null; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if ( ! (( ! (this._resultFace.get_isReal()) )) ) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + } + + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this._resultFace; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + switch (field.hashCode()) + { + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._currIndex = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + switch (field.hashCode()) + { + case 516035001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_resultFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._resultFace = ((hxDaedalus.data.Face) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -1244873545: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this.set_fromMesh(((hxDaedalus.data.Mesh) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._currIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -1154355690: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + this._fromMesh = ((hxDaedalus.data.Mesh) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -1154355690: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this._fromMesh; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -1618935820: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("set_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromMesh")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this._currIndex; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case 516035001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_resultFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this._resultFace; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + switch (field.hashCode()) + { + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return ((double) (this._currIndex) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this.next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + case -1618935820: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (field.equals("set_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return this.set_fromMesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + baseArr.push("_resultFace"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + baseArr.push("_currIndex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + baseArr.push("_fromMesh"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + baseArr.push("fromMesh"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromMeshToVertices.java b/src/main/java/hxDaedalus/iterators/FromMeshToVertices.java new file mode 100644 index 0000000..2e1bee9 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromMeshToVertices.java @@ -0,0 +1,455 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromMeshToVertices extends haxe.lang.HxObject +{ + public FromMeshToVertices(haxe.lang.EmptyObject empty) + { + } + + + public FromMeshToVertices() + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + hxDaedalus.iterators.FromMeshToVertices.__hx_ctor_hxDaedalus_iterators_FromMeshToVertices(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromMeshToVertices(hxDaedalus.iterators.FromMeshToVertices __hx_this) + { + } + + + + + public hxDaedalus.data.Mesh _fromMesh; + + public int _currIndex; + + public hxDaedalus.data.Vertex _resultVertex; + + public hxDaedalus.data.Mesh set_fromMesh(hxDaedalus.data.Mesh value) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._fromMesh = value; + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._currIndex = 0; + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + + public hxDaedalus.data.Vertex next() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + while (true) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (( this._currIndex < this._fromMesh._vertices.length )) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._resultVertex = this._fromMesh._vertices.__get(this._currIndex); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._currIndex++; + } + else + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._resultVertex = null; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if ( ! (( ! (this._resultVertex.get_isReal()) )) ) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + } + + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this._resultVertex; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + switch (field.hashCode()) + { + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._currIndex = ((int) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + switch (field.hashCode()) + { + case -1844345344: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_resultVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._resultVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1244873545: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this.set_fromMesh(((hxDaedalus.data.Mesh) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._currIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1154355690: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + this._fromMesh = ((hxDaedalus.data.Mesh) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1154355690: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this._fromMesh; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1618935820: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("set_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromMesh")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this._currIndex; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1844345344: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_resultVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this._resultVertex; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + switch (field.hashCode()) + { + case -857179071: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("_currIndex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return ((double) (this._currIndex) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this.next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + case -1618935820: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (field.equals("set_fromMesh")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return this.set_fromMesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + baseArr.push("_resultVertex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + baseArr.push("_currIndex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + baseArr.push("_fromMesh"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + baseArr.push("fromMesh"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToVertices.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromVertexToHoldingFaces.java b/src/main/java/hxDaedalus/iterators/FromVertexToHoldingFaces.java new file mode 100644 index 0000000..1eae1fa --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromVertexToHoldingFaces.java @@ -0,0 +1,379 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromVertexToHoldingFaces extends haxe.lang.HxObject +{ + public FromVertexToHoldingFaces(haxe.lang.EmptyObject empty) + { + } + + + public FromVertexToHoldingFaces() + { + //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + hxDaedalus.iterators.FromVertexToHoldingFaces.__hx_ctor_hxDaedalus_iterators_FromVertexToHoldingFaces(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromVertexToHoldingFaces(hxDaedalus.iterators.FromVertexToHoldingFaces __hx_this) + { + } + + + + + public hxDaedalus.data.Vertex _fromVertex; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Face _resultFace; + + public hxDaedalus.data.Vertex set_fromVertex(hxDaedalus.data.Vertex value) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._fromVertex = value; + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._nextEdge = this._fromVertex.get_edge(); + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return value; + } + + + public hxDaedalus.data.Face next() + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (( this._nextEdge != null )) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + while (true) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._resultFace = this._nextEdge.get_leftFace(); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (( this._nextEdge == this._fromVertex.get_edge() )) + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._nextEdge = null; + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if ( ! (this._resultFace.get_isReal()) ) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._resultFace = null; + } + + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if ( ! (( ! (this._resultFace.get_isReal()) )) ) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + } + + } + else + { + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._resultFace = null; + } + + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this._resultFace; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + switch (field.hashCode()) + { + case 516035001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_resultFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._resultFace = ((hxDaedalus.data.Face) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case -2064921106: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("fromVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this.set_fromVertex(((hxDaedalus.data.Vertex) (value) )); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case 1514466479: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_nextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case -976608371: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_fromVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + this._fromVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return value; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case -976608371: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_fromVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this._fromVertex; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case -761514517: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("set_fromVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromVertex")) ); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case 1514466479: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_nextEdge")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this._nextEdge; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case 516035001: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("_resultFace")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this._resultFace; + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + boolean __temp_executeDef1 = true; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("next")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this.next(); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + case -761514517: + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (field.equals("set_fromVertex")) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + __temp_executeDef1 = false; + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return this.set_fromVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + break; + } + + + } + + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + if (__temp_executeDef1) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + baseArr.push("_resultFace"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + baseArr.push("_nextEdge"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + baseArr.push("_fromVertex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + baseArr.push("fromVertex"); + //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToHoldingFaces.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromVertexToIncomingEdges.java b/src/main/java/hxDaedalus/iterators/FromVertexToIncomingEdges.java new file mode 100644 index 0000000..170ccea --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromVertexToIncomingEdges.java @@ -0,0 +1,379 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromVertexToIncomingEdges extends haxe.lang.HxObject +{ + public FromVertexToIncomingEdges(haxe.lang.EmptyObject empty) + { + } + + + public FromVertexToIncomingEdges() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + hxDaedalus.iterators.FromVertexToIncomingEdges.__hx_ctor_hxDaedalus_iterators_FromVertexToIncomingEdges(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromVertexToIncomingEdges(hxDaedalus.iterators.FromVertexToIncomingEdges __hx_this) + { + } + + + + + public hxDaedalus.data.Vertex _fromVertex; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Edge _resultEdge; + + public hxDaedalus.data.Vertex set_fromVertex(hxDaedalus.data.Vertex value) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._fromVertex = value; + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._nextEdge = this._fromVertex.get_edge(); + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + while ( ! (this._nextEdge.get_isReal()) ) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + } + + //line 20 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return value; + } + + + public hxDaedalus.data.Edge next() + { + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (( this._nextEdge != null )) + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._resultEdge = this._nextEdge.get_oppositeEdge(); + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + while (true) + { + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (( this._nextEdge == this._fromVertex.get_edge() )) + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._nextEdge = null; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if ( ! (( ! (this._nextEdge.get_isReal()) )) ) + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + } + + } + else + { + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._resultEdge = null; + } + + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this._resultEdge; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + switch (field.hashCode()) + { + case 516008217: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_resultEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._resultEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case -2064921106: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this.set_fromVertex(((hxDaedalus.data.Vertex) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case -976608371: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + this._fromVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case -976608371: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this._fromVertex; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case -761514517: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("set_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromVertex")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this._nextEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case 516008217: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("_resultEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this._resultEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this.next(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + case -761514517: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (field.equals("set_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return this.set_fromVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + baseArr.push("_resultEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + baseArr.push("_nextEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + baseArr.push("_fromVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + baseArr.push("fromVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToIncomingEdges.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java b/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java new file mode 100644 index 0000000..acdd0b0 --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java @@ -0,0 +1,370 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromVertexToNeighbourVertices extends haxe.lang.HxObject +{ + public FromVertexToNeighbourVertices(haxe.lang.EmptyObject empty) + { + } + + + public FromVertexToNeighbourVertices() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + hxDaedalus.iterators.FromVertexToNeighbourVertices.__hx_ctor_hxDaedalus_iterators_FromVertexToNeighbourVertices(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromVertexToNeighbourVertices(hxDaedalus.iterators.FromVertexToNeighbourVertices __hx_this) + { + } + + + + + public hxDaedalus.data.Vertex _fromVertex; + + public hxDaedalus.data.Edge _nextEdge; + + public hxDaedalus.data.Vertex _resultVertex; + + public hxDaedalus.data.Vertex set_fromVertex(hxDaedalus.data.Vertex value) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._fromVertex = value; + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._nextEdge = this._fromVertex.get_edge(); + //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return value; + } + + + public hxDaedalus.data.Vertex next() + { + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (( this._nextEdge != null )) + { + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._resultVertex = this._nextEdge.get_oppositeEdge().get_originVertex(); + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + while (true) + { + //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if ( ! (( ! (this._nextEdge.get_isReal()) )) ) + { + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + } + + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (( this._nextEdge == this._fromVertex.get_edge() )) + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._nextEdge = null; + } + + } + else + { + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._resultVertex = null; + } + + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this._resultVertex; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + switch (field.hashCode()) + { + case -1844345344: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_resultVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._resultVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -2064921106: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this.set_fromVertex(((hxDaedalus.data.Vertex) (value) )); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -976608371: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + this._fromVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return value; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -976608371: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this._fromVertex; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -761514517: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("set_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromVertex")) ); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case 1514466479: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_nextEdge")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this._nextEdge; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -1844345344: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("_resultVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this._resultVertex; + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + boolean __temp_executeDef1 = true; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("next")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this.next(); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + case -761514517: + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (field.equals("set_fromVertex")) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + __temp_executeDef1 = false; + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return this.set_fromVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + break; + } + + + } + + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + if (__temp_executeDef1) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + baseArr.push("_resultVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + baseArr.push("_nextEdge"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + baseArr.push("_fromVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + baseArr.push("fromVertex"); + //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/iterators/FromVertexToOutgoingEdges.java b/src/main/java/hxDaedalus/iterators/FromVertexToOutgoingEdges.java new file mode 100644 index 0000000..b3bccac --- /dev/null +++ b/src/main/java/hxDaedalus/iterators/FromVertexToOutgoingEdges.java @@ -0,0 +1,419 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.iterators; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class FromVertexToOutgoingEdges extends haxe.lang.HxObject +{ + public FromVertexToOutgoingEdges(haxe.lang.EmptyObject empty) + { + } + + + public FromVertexToOutgoingEdges() + { + //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + hxDaedalus.iterators.FromVertexToOutgoingEdges.__hx_ctor_hxDaedalus_iterators_FromVertexToOutgoingEdges(this); + } + + + public static void __hx_ctor_hxDaedalus_iterators_FromVertexToOutgoingEdges(hxDaedalus.iterators.FromVertexToOutgoingEdges __hx_this) + { + //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __hx_this.realEdgesOnly = true; + } + + + + + public hxDaedalus.data.Vertex _fromVertex; + + public hxDaedalus.data.Edge _nextEdge; + + public boolean realEdgesOnly; + + public hxDaedalus.data.Vertex set_fromVertex(hxDaedalus.data.Vertex value) + { + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._fromVertex = value; + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._nextEdge = this._fromVertex.get_edge(); + //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + while (( this.realEdgesOnly && ! (this._nextEdge.get_isReal()) )) + { + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + } + + //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + + public hxDaedalus.data.Edge _resultEdge; + + public hxDaedalus.data.Edge next() + { + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (( this._nextEdge != null )) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._resultEdge = this._nextEdge; + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + while (true) + { + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._nextEdge = this._nextEdge.get_rotLeftEdge(); + //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (( this._nextEdge == this._fromVertex.get_edge() )) + { + //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._nextEdge = null; + //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if ( ! ((( this.realEdgesOnly && ! (this._nextEdge.get_isReal()) ))) ) + { + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + } + + } + else + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._resultEdge = null; + } + + //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this._resultEdge; + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + switch (field.hashCode()) + { + case 516008217: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_resultEdge")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._resultEdge = ((hxDaedalus.data.Edge) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case -2064921106: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("fromVertex")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this.set_fromVertex(((hxDaedalus.data.Vertex) (value) )); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case 1055882020: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("realEdgesOnly")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this.realEdgesOnly = haxe.lang.Runtime.toBool(value); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case -976608371: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_fromVertex")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._fromVertex = ((hxDaedalus.data.Vertex) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case 1514466479: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_nextEdge")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + this._nextEdge = ((hxDaedalus.data.Edge) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("next")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case -976608371: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_fromVertex")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this._fromVertex; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case 516008217: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_resultEdge")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this._resultEdge; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case 1514466479: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("_nextEdge")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this._nextEdge; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case -761514517: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("set_fromVertex")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromVertex")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case 1055882020: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("realEdgesOnly")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this.realEdgesOnly; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + switch (field.hashCode()) + { + case 3377907: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("next")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this.next(); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + case -761514517: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (field.equals("set_fromVertex")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return this.set_fromVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + baseArr.push("_resultEdge"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + baseArr.push("realEdgesOnly"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + baseArr.push("_nextEdge"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + baseArr.push("_fromVertex"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + baseArr.push("fromVertex"); + //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToOutgoingEdges.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxDaedalus/view/SimpleView.java b/src/main/java/hxDaedalus/view/SimpleView.java new file mode 100644 index 0000000..8c61e39 --- /dev/null +++ b/src/main/java/hxDaedalus/view/SimpleView.java @@ -0,0 +1,2072 @@ +// Generated by Haxe 3.4.2 +package hxDaedalus.view; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class SimpleView extends haxe.lang.HxObject +{ + public SimpleView(haxe.lang.EmptyObject empty) + { + } + + + public SimpleView(wings.javaSwing.BasicSwing targetCanvas) + { + //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + hxDaedalus.view.SimpleView.__hx_ctor_hxDaedalus_view_SimpleView(this, targetCanvas); + } + + + public static void __hx_ctor_hxDaedalus_view_SimpleView(hxDaedalus.view.SimpleView __hx_this, wings.javaSwing.BasicSwing targetCanvas) + { + //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.faceToEdgeIter = new hxDaedalus.iterators.FromFaceToInnerEdges(); + //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.faceAlpha = .5; + //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.faceWidth = ((double) (((int) (1.0) )) ); + //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.faceColor = 16711935; + //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.entitiesAlpha = .75; + //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.entitiesWidth = ((double) (((int) (1.0) )) ); + //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.entitiesColor = 65280; + //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.pathsAlpha = .75; + //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.pathsWidth = 1.5; + //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.pathsColor = 16760848; + //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.verticesAlpha = .25; + //line 30 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.verticesRadius = .5; + //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.verticesColor = 255; + //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.constraintsAlpha = 1.0; + //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.constraintsWidth = ((double) (((int) (2.0) )) ); + //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.constraintsColor = 16711680; + //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.edgesAlpha = .25; + //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.edgesWidth = ((double) (((int) (1.0) )) ); + //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.edgesColor = 10066329; + //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __hx_this.graphics = new wings.javaSwing.SimpleDrawingContext(((wings.javaSwing.BasicSwing) (targetCanvas) )); + } + + + public int edgesColor; + + public double edgesWidth; + + public double edgesAlpha; + + public int constraintsColor; + + public double constraintsWidth; + + public double constraintsAlpha; + + public int verticesColor; + + public double verticesRadius; + + public double verticesAlpha; + + public int pathsColor; + + public double pathsWidth; + + public double pathsAlpha; + + public int entitiesColor; + + public double entitiesWidth; + + public double entitiesAlpha; + + public int faceColor; + + public double faceWidth; + + public double faceAlpha; + + public hxDaedalus.iterators.FromFaceToInnerEdges faceToEdgeIter; + + public wings.javaSwing.SimpleDrawingContext graphics; + + public void refreshGraphics2D(java.awt.Graphics2D g) + { + //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.graphics = g; + } + + + public void drawVertex(hxDaedalus.data.Vertex vertex) + { + //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.verticesRadius, this.verticesColor, this.verticesAlpha); + //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.beginFill(this.verticesColor, this.verticesAlpha); + //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.drawCircle(vertex.get_pos().x, vertex.get_pos().y, this.verticesRadius); + //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.endFill(); + } + + + public void drawFace(hxDaedalus.data.Face face) + { + //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceToEdgeIter.set_fromFace(face); + //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.beginFill(this.faceColor, this.faceAlpha); + //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.faceWidth, this.faceColor, this.faceAlpha); + //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int count = 0; + //line 82 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + hxDaedalus.data.Edge edge = null; + //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + while (true) + { + //line 84 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + edge = this.faceToEdgeIter.next(); + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (( edge == null )) + { + //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (( count == 0 )) + { + //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.moveTo(edge.get_originVertex().get_pos().x, edge.get_originVertex().get_pos().y); + } + + //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineTo(edge.get_destinationVertex().get_pos().x, edge.get_destinationVertex().get_pos().y); + //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + ++ count; + } + + //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.endFill(); + } + + + public void drawEdge(hxDaedalus.data.Edge edge) + { + //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (edge.get_isConstrained()) + { + //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.constraintsWidth, this.constraintsColor, this.constraintsAlpha); + //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.moveTo(edge.get_originVertex().get_pos().x, edge.get_originVertex().get_pos().y); + //line 99 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineTo(edge.get_destinationVertex().get_pos().x, edge.get_destinationVertex().get_pos().y); + } + else + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.edgesWidth, this.edgesColor, this.edgesAlpha); + //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.moveTo(edge.get_originVertex().get_pos().x, edge.get_originVertex().get_pos().y); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineTo(edge.get_destinationVertex().get_pos().x, edge.get_destinationVertex().get_pos().y); + } + + } + + + public void drawMesh(hxDaedalus.data.Mesh mesh, java.lang.Object cleanBefore) + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_cleanBefore23 = ( (haxe.lang.Runtime.eq(cleanBefore, null)) ? (false) : (haxe.lang.Runtime.toBool(cleanBefore)) ); + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_cleanBefore23) + { + //line 111 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.clear(); + } + + //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + java.lang.Object all = mesh.getVerticesAndEdges(); + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int _g = 0; + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + haxe.root.Array _g1 = ((haxe.root.Array) (haxe.lang.Runtime.getField(all, "vertices", true)) ); + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + while (( _g < _g1.length )) + { + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + hxDaedalus.data.Vertex v = _g1.__get(_g); + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + ++ _g; + //line 115 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawVertex(v); + } + + } + + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int _g2 = 0; + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + haxe.root.Array _g11 = ((haxe.root.Array) (haxe.lang.Runtime.getField(all, "edges", true)) ); + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + while (( _g2 < _g11.length )) + { + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + hxDaedalus.data.Edge e = _g11.__get(_g2); + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + ++ _g2; + //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawEdge(e); + } + + } + + } + + + public void drawEntity(hxDaedalus.ai.EntityAI entity, java.lang.Object cleanBefore) + { + //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_cleanBefore24 = ( (haxe.lang.Runtime.eq(cleanBefore, null)) ? (false) : (haxe.lang.Runtime.toBool(cleanBefore)) ); + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_cleanBefore24) + { + //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.clear(); + } + + //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.entitiesWidth, this.entitiesColor, this.entitiesAlpha); + //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.beginFill(this.entitiesColor, this.entitiesAlpha); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.drawCircle(entity.x, entity.y, entity.get_radius()); + //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.endFill(); + } + + + public void drawEntities(haxe.root.Array vEntities, java.lang.Object cleanBefore) + { + //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_cleanBefore25 = ( (haxe.lang.Runtime.eq(cleanBefore, null)) ? (false) : (haxe.lang.Runtime.toBool(cleanBefore)) ); + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_cleanBefore25) + { + //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.clear(); + } + + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int _g1 = 0; + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int _g = vEntities.length; + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + while (( _g1 < _g )) + { + //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int i = _g1++; + //line 133 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawEntity(vEntities.__get(i), false); + } + + } + + } + + + public void drawPath(haxe.root.Array path, java.lang.Object cleanBefore) + { + //line 138 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_cleanBefore26 = ( (haxe.lang.Runtime.eq(cleanBefore, null)) ? (false) : (haxe.lang.Runtime.toBool(cleanBefore)) ); + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_cleanBefore26) + { + //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.clear(); + } + + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (( path.length == 0 )) + { + //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ; + } + + //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineStyle(this.pathsWidth, this.pathsColor, this.pathsAlpha); + //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.moveTo(((double) (haxe.lang.Runtime.toDouble(path.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(1))) )); + //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + int i = 2; + //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + while (( i < path.length )) + { + //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.lineTo(((double) (haxe.lang.Runtime.toDouble(path.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(( i + 1 )))) )); + //line 148 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics.moveTo(((double) (haxe.lang.Runtime.toDouble(path.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(path.__get(( i + 1 )))) )); + //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + i += 2; + } + + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_executeDef1 = true; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + switch (field.hashCode()) + { + case -1799398143: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1102775635: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1779181207: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceWidth = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1084491504: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesWidth = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1797465338: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1104708440: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2097272291: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -249165107: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2077055355: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesWidth = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -230880976: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsWidth = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2095339486: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -251097912: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1705248016: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1682511126: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1725464952: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsWidth = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -201973269: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesRadius")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesRadius = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1707180821: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsColor = ((int) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1684443931: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesAlpha = ((double) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_executeDef1) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_executeDef1 = true; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + switch (field.hashCode()) + { + case 100706955: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("graphics")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.graphics = ((wings.javaSwing.SimpleDrawingContext) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1102775635: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -422830003: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceToEdgeIter")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceToEdgeIter = ((hxDaedalus.iterators.FromFaceToInnerEdges) (value) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1084491504: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesWidth = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1799398143: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1104708440: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.edgesAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1779181207: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceWidth = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -249165107: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1797465338: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.faceColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -230880976: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsWidth = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2097272291: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -251097912: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.constraintsAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2077055355: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesWidth = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1682511126: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2095339486: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.entitiesColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -201973269: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesRadius")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesRadius = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1705248016: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1684443931: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.verticesAlpha = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1725464952: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsWidth = ((double) (haxe.lang.Runtime.toDouble(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1707180821: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.pathsColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return value; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_executeDef1) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_executeDef1 = true; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + switch (field.hashCode()) + { + case -827014263: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawPath")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawPath")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1102775635: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.edgesColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1366185253: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEntities")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawEntities")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1084491504: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.edgesWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -494667193: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEntity")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawEntity")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1104708440: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.edgesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827099823: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawMesh")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawMesh")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -249165107: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.constraintsColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827339487: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEdge")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawEdge")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -230880976: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.constraintsWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827312703: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawFace")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawFace")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -251097912: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.constraintsAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -16332792: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawVertex")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawVertex")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1682511126: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.verticesColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1461392216: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("refreshGraphics2D")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "refreshGraphics2D")) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -201973269: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesRadius")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.verticesRadius; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 100706955: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("graphics")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.graphics; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1684443931: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.verticesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -422830003: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceToEdgeIter")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceToEdgeIter; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1707180821: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.pathsColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1799398143: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1725464952: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.pathsWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1779181207: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1705248016: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.pathsAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1797465338: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2095339486: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.entitiesColor; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2097272291: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.entitiesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2077055355: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.entitiesWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_executeDef1) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_executeDef1 = true; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + switch (field.hashCode()) + { + case -1799398143: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1102775635: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.edgesColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1779181207: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.faceWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1084491504: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.edgesWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1797465338: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("faceColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.faceColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1104708440: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("edgesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.edgesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2097272291: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.entitiesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -249165107: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.constraintsColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2077055355: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.entitiesWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -230880976: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.constraintsWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -2095339486: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("entitiesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.entitiesColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -251097912: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("constraintsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.constraintsAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1705248016: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.pathsAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1682511126: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.verticesColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1725464952: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsWidth")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.pathsWidth; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -201973269: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesRadius")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.verticesRadius; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1707180821: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("pathsColor")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return ((double) (this.pathsColor) ); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -1684443931: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("verticesAlpha")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return this.verticesAlpha; + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_executeDef1) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + boolean __temp_executeDef1 = true; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + switch (field.hashCode()) + { + case -827014263: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawPath")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawPath(((haxe.root.Array) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1461392216: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("refreshGraphics2D")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.refreshGraphics2D(((java.awt.Graphics2D) (dynargs.__get(0)) )); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case 1366185253: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEntities")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawEntities(((haxe.root.Array) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -16332792: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawVertex")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -494667193: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEntity")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawEntity(((hxDaedalus.ai.EntityAI) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827312703: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawFace")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827099823: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawMesh")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawMesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) ), dynargs.__get(1)); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + case -827339487: + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (field.equals("drawEdge")) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + __temp_executeDef1 = false; + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + this.drawEdge(((hxDaedalus.data.Edge) (dynargs.__get(0)) )); + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + break; + } + + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + if (__temp_executeDef1) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("graphics"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("faceToEdgeIter"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("faceAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("faceWidth"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("faceColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("entitiesAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("entitiesWidth"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("entitiesColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("pathsAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("pathsWidth"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("pathsColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("verticesAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("verticesRadius"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("verticesColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("constraintsAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("constraintsWidth"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("constraintsColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("edgesAlpha"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("edgesWidth"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + baseArr.push("edgesColor"); + //line 19 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/view/SimpleView.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxPixels/PixelFormat.java b/src/main/java/hxPixels/PixelFormat.java new file mode 100644 index 0000000..6842ed2 --- /dev/null +++ b/src/main/java/hxPixels/PixelFormat.java @@ -0,0 +1,1141 @@ +// Generated by Haxe 3.4.2 +package hxPixels; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class PixelFormat extends haxe.lang.HxObject +{ + static + { + //line 482 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 483 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels.PixelFormat.ARGB = new hxPixels.PixelFormat(((int) (0) ), ((int) (1) ), ((int) (2) ), ((int) (3) ), "ARGB"); + //line 484 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels.PixelFormat.RGBA = new hxPixels.PixelFormat(((int) (3) ), ((int) (0) ), ((int) (1) ), ((int) (2) ), "RGBA"); + //line 485 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels.PixelFormat.BGRA = new hxPixels.PixelFormat(((int) (3) ), ((int) (2) ), ((int) (1) ), ((int) (0) ), "BGRA"); + } + + } + + public PixelFormat(haxe.lang.EmptyObject empty) + { + } + + + public PixelFormat(int a, int r, int g, int b, java.lang.String name) + { + //line 488 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels.PixelFormat.__hx_ctor_hxPixels_PixelFormat(this, a, r, g, b, name); + } + + + public static void __hx_ctor_hxPixels_PixelFormat(hxPixels.PixelFormat __hx_this, int a, int r, int g, int b, java.lang.String name) + { + //line 488 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (( name == null )) + { + //line 488 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + name = "PixelFormat"; + } + + //line 489 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.channelMap = new haxe.root.Array(new java.lang.Object[]{a, r, g, b}); + //line 490 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.ch0 = a; + //line 491 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.ch1 = r; + //line 492 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.ch2 = g; + //line 493 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.ch3 = b; + //line 494 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.name = name; + } + + + public static hxPixels.PixelFormat ARGB; + + public static hxPixels.PixelFormat RGBA; + + public static hxPixels.PixelFormat BGRA; + + public haxe.root.Array channelMap; + + public int ch0; + + public int ch1; + + public int ch2; + + public int ch3; + + public java.lang.String name; + + public int A; + + public final int get_A() + { + //line 499 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch0; + } + + + public int R; + + public final int get_R() + { + //line 504 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch1; + } + + + public int G; + + public final int get_G() + { + //line 509 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch2; + } + + + public int B; + + public final int get_B() + { + //line 514 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch3; + } + + + @Override public java.lang.String toString() + { + //line 518 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.name; + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case 66: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.B = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98411: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch0")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch0 = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 71: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.G = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98412: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch1")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch1 = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 82: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.R = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98413: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch2")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch2 = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 65: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.A = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98414: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch3")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch3 = ((int) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case 66: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.B = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case -1930826407: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("channelMap")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.channelMap = ((haxe.root.Array) (value) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 71: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.G = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98411: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch0")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch0 = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 82: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.R = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98412: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch1")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch1 = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 65: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.A = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98413: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch2")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch2 = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 3373707: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("name")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.name = haxe.lang.Runtime.toString(value); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98414: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch3")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.ch3 = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("toString")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case -1930826407: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("channelMap")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.channelMap; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246041: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_B")) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98411: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch0")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch0; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 66: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_B(); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.B; + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98412: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch1")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch1; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246046: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_G")) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98413: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch2")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch2; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 71: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_G(); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.G; + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98414: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch3")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.ch3; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246057: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_R")) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 3373707: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("name")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.name; + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 82: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_R(); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.R; + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 65: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_A(); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.A; + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246040: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_A")) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case 66: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.get_B()) ); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.B) ); + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98411: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch0")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.ch0) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 71: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.get_G()) ); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.G) ); + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98412: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch1")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.ch1) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 82: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.get_R()) ); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.R) ); + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98413: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch2")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.ch2) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 65: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (handleProperties) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.get_A()) ); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.A) ); + } + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98414: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("ch3")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.ch3) ); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1776922004: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("toString")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.toString(); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246040: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_A")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_A(); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246041: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_B")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_B(); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246057: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_R")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_R(); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 98246046: + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("get_G")) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.get_G(); + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("B"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("G"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("R"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("A"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("name"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("ch3"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("ch2"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("ch1"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("ch0"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("channelMap"); + //line 467 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java b/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java new file mode 100644 index 0000000..9d51894 --- /dev/null +++ b/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java @@ -0,0 +1,91 @@ +// Generated by Haxe 3.4.2 +package hxPixels._Pixels; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public final class Pixel_Impl_ +{ + + + public static int get_A(int this1) + { + //line 555 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ( ( this1 >> 24 ) & 255 ); + } + + + public static int set_A(int this1, int a) + { + //line 558 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + a &= 255; + //line 559 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1 = ( ( this1 & 16777215 ) | ( a << 24 ) ); + //line 560 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return a; + } + + + + + public static int get_R(int this1) + { + //line 565 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ( ( this1 >> 16 ) & 255 ); + } + + + public static int set_R(int this1, int r) + { + //line 568 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + r &= 255; + //line 569 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1 = ( ( this1 & -16711681 ) | ( r << 16 ) ); + //line 570 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return r; + } + + + + + public static int get_G(int this1) + { + //line 575 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ( ( this1 >> 8 ) & 255 ); + } + + + public static int set_G(int this1, int g) + { + //line 578 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + g &= 255; + //line 579 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1 = ( ( this1 & -65281 ) | ( g << 8 ) ); + //line 580 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return g; + } + + + + + public static int get_B(int this1) + { + //line 585 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ( this1 & 255 ); + } + + + public static int set_B(int this1, int b) + { + //line 588 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + b &= 255; + //line 589 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1 = ( ( this1 & -256 ) | b ); + //line 590 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return b; + } + + +} + + diff --git a/src/main/java/hxPixels/_Pixels/PixelsData.java b/src/main/java/hxPixels/_Pixels/PixelsData.java new file mode 100644 index 0000000..44ab360 --- /dev/null +++ b/src/main/java/hxPixels/_Pixels/PixelsData.java @@ -0,0 +1,464 @@ +// Generated by Haxe 3.4.2 +package hxPixels._Pixels; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class PixelsData extends haxe.lang.HxObject +{ + static + { + //line 430 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData.BYTES_PER_PIXEL = 4; + } + + public PixelsData(haxe.lang.EmptyObject empty) + { + } + + + public PixelsData(int width, int height, java.lang.Object alloc, hxPixels.PixelFormat format) + { + //line 453 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData.__hx_ctor_hxPixels__Pixels_PixelsData(this, width, height, alloc, format); + } + + + public static void __hx_ctor_hxPixels__Pixels_PixelsData(hxPixels._Pixels.PixelsData __hx_this, int width, int height, java.lang.Object alloc, hxPixels.PixelFormat format) + { + //line 454 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_alloc29 = ( (haxe.lang.Runtime.eq(alloc, null)) ? (true) : (haxe.lang.Runtime.toBool(alloc)) ); + //line 455 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.count = ( width * height ); + //line 457 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_alloc29) + { + //line 457 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.bytes = haxe.io.Bytes.alloc(( __hx_this.count << 2 )); + } + + //line 459 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.width = width; + //line 460 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.height = height; + //line 461 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __hx_this.format = ( (( format != null )) ? (format) : (hxPixels.PixelFormat.ARGB) ); + } + + + public static int BYTES_PER_PIXEL; + + public int count; + + public haxe.io.Bytes bytes; + + public int width; + + public int height; + + public hxPixels.PixelFormat format; + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1221029593: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("height")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.height = ((int) (value) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94851343: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("count")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.count = ((int) (value) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 113126854: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("width")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.width = ((int) (value) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1268779017: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("format")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.format = ((hxPixels.PixelFormat) (value) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94851343: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("count")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.count = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case -1221029593: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("height")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.height = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94224491: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("bytes")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.bytes = ((haxe.io.Bytes) (value) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 113126854: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("width")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this.width = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return value; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1268779017: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("format")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.format; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94851343: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("count")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.count; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case -1221029593: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("height")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.height; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94224491: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("bytes")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.bytes; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 113126854: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("width")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return this.width; + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_executeDef1 = true; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + switch (field.hashCode()) + { + case -1221029593: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("height")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.height) ); + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 94851343: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("count")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.count) ); + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + case 113126854: + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (field.equals("width")) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + __temp_executeDef1 = false; + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((double) (this.width) ); + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + break; + } + + + } + + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (__temp_executeDef1) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("format"); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("height"); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("width"); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("bytes"); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + baseArr.push("count"); + //line 428 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/hxPixels/_Pixels/Pixels_Impl_.java b/src/main/java/hxPixels/_Pixels/Pixels_Impl_.java new file mode 100644 index 0000000..9ba9d27 --- /dev/null +++ b/src/main/java/hxPixels/_Pixels/Pixels_Impl_.java @@ -0,0 +1,355 @@ +// Generated by Haxe 3.4.2 +package hxPixels._Pixels; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public final class Pixels_Impl_ +{ + static + { + //line 27 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.Pixels_Impl_.CHANNEL_MASK = 3; + } + + public static int CHANNEL_MASK; + + public static hxPixels._Pixels.PixelsData _new(int width, int height, java.lang.Object alloc) + { + //line 33 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_alloc27 = ( (haxe.lang.Runtime.eq(alloc, null)) ? (true) : (haxe.lang.Runtime.toBool(alloc)) ); + //line 33 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData this1 = new hxPixels._Pixels.PixelsData(width, height, __temp_alloc27, null); + //line 33 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((hxPixels._Pixels.PixelsData) (this1) ); + } + + + public static int getByte(hxPixels._Pixels.PixelsData this1, int i) + { + //line 41 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ( this1.bytes.b[((int) (( (( i & -4 )) + ((int) (haxe.lang.Runtime.toInt(this1.format.channelMap.__get(( i & 3 )))) ) )) )] & 255 ); + } + + + public static int getPixel(hxPixels._Pixels.PixelsData this1, int x, int y) + { + //line 46 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = ( ( ( y * this1.width ) + x ) << 2 ); + //line 48 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r = ( (( this1.bytes.b[( pos + this1.format.ch1 )] & 255 )) << 16 ); + //line 49 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int g = ( (( this1.bytes.b[( pos + this1.format.ch2 )] & 255 )) << 8 ); + //line 50 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b = ( this1.bytes.b[( pos + this1.format.ch3 )] & 255 ); + //line 52 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((int) (( ( r | g ) | b )) ); + } + + + public static int getPixel32(hxPixels._Pixels.PixelsData this1, int x, int y) + { + //line 57 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = ( ( ( y * this1.width ) + x ) << 2 ); + //line 59 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int a = ( (( this1.bytes.b[( pos + this1.format.ch0 )] & 255 )) << 24 ); + //line 60 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r = ( (( this1.bytes.b[( pos + this1.format.ch1 )] & 255 )) << 16 ); + //line 61 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int g = ( (( this1.bytes.b[( pos + this1.format.ch2 )] & 255 )) << 8 ); + //line 62 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b = ( this1.bytes.b[( pos + this1.format.ch3 )] & 255 ); + //line 64 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return ((int) (( ( ( a | r ) | g ) | b )) ); + } + + + public static void setByte(hxPixels._Pixels.PixelsData this1, int i, int value) + { + //line 70 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[((int) (( (( i & -4 )) + ((int) (haxe.lang.Runtime.toInt(this1.format.channelMap.__get(( i & 3 )))) ) )) )] = ((byte) (value) ); + } + + + public static void setPixel(hxPixels._Pixels.PixelsData this1, int x, int y, int value) + { + //line 75 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = ( ( ( y * this1.width ) + x ) << 2 ); + //line 77 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r = ( ( value >> 16 ) & 255 ); + //line 78 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int g = ( ( value >> 8 ) & 255 ); + //line 79 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b = ( value & 255 ); + //line 81 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch1 )] = ((byte) (r) ); + //line 82 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch2 )] = ((byte) (g) ); + //line 83 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch3 )] = ((byte) (b) ); + } + + + public static void setPixel32(hxPixels._Pixels.PixelsData this1, int x, int y, int value) + { + //line 88 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = ( ( ( y * this1.width ) + x ) << 2 ); + //line 90 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int a = ( ( value >> 24 ) & 255 ); + //line 91 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r = ( ( value >> 16 ) & 255 ); + //line 92 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int g = ( ( value >> 8 ) & 255 ); + //line 93 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b = ( value & 255 ); + //line 95 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch0 )] = ((byte) (a) ); + //line 96 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch1 )] = ((byte) (r) ); + //line 97 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch2 )] = ((byte) (g) ); + //line 98 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.b[( pos + this1.format.ch3 )] = ((byte) (b) ); + } + + + public static void fillRect(hxPixels._Pixels.PixelsData this1, int x, int y, int width, int height, int value) + { + //line 103 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = ( ( ( y * this1.width ) + x ) << 2 ); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData this2 = new hxPixels._Pixels.PixelsData(width, 1, true, null); + //line 105 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData stridePixels = ((hxPixels._Pixels.PixelsData) (this2) ); + //line 106 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + stridePixels.format = this1.format; + //line 107 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int stride = ( width << 2 ); + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g1 = 0; + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g = width; + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( _g1 < _g )) + { + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int x1 = _g1++; + //line 109 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.Pixels_Impl_.setPixel32(stridePixels, x1, 0, value); + } + + } + + //line 110 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g11 = 0; + //line 110 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g2 = height; + //line 110 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( _g11 < _g2 )) + { + //line 110 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int y1 = _g11++; + //line 111 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + this1.bytes.blit(pos, stridePixels.bytes, 0, stride); + //line 112 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pos += ( this1.width << 2 ); + } + + } + + } + + + public static hxPixels._Pixels.PixelsData clone(hxPixels._Pixels.PixelsData this1) + { + //line 117 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData this2 = new hxPixels._Pixels.PixelsData(this1.width, this1.height, true, null); + //line 117 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData clone = ((hxPixels._Pixels.PixelsData) (this2) ); + //line 118 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + clone.bytes.blit(0, this1.bytes, 0, this1.bytes.length); + //line 119 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + clone.format = this1.format; + //line 120 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return clone; + } + + + public static hxPixels._Pixels.PixelsData fromBytes(haxe.io.Bytes bytes, int width, int height, hxPixels.PixelFormat format) + { + //line 124 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData this1 = new hxPixels._Pixels.PixelsData(width, height, false, null); + //line 124 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData pixels = ((hxPixels._Pixels.PixelsData) (this1) ); + //line 125 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (( format == null )) + { + //line 125 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + format = hxPixels.PixelFormat.ARGB; + } + + //line 126 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pixels.bytes = bytes; + //line 127 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return pixels; + } + + + public static hxPixels._Pixels.PixelsData convertTo(hxPixels._Pixels.PixelsData this1, hxPixels.PixelFormat format) + { + //line 131 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return hxPixels._Pixels.Pixels_Impl_.convert(((hxPixels._Pixels.PixelsData) (this1) ), format, true); + } + + + public static hxPixels._Pixels.PixelsData convert(hxPixels._Pixels.PixelsData pixels, hxPixels.PixelFormat toFormat, java.lang.Object inPlace) + { + //line 134 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + boolean __temp_inPlace28 = ( (haxe.lang.Runtime.eq(inPlace, null)) ? (false) : (haxe.lang.Runtime.toBool(inPlace)) ); + //line 135 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData res = ( (__temp_inPlace28) ? (pixels) : (hxPixels._Pixels.Pixels_Impl_.clone(pixels)) ); + //line 137 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (( toFormat == pixels.format )) + { + //line 137 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return res; + } + + //line 139 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i = 0; + //line 140 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int pos = 0; + //line 143 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + if (( ( ( pixels.format == hxPixels.PixelFormat.BGRA ) && ( toFormat == hxPixels.PixelFormat.RGBA ) ) || ( ( pixels.format == hxPixels.PixelFormat.RGBA ) && ( toFormat == hxPixels.PixelFormat.BGRA ) ) )) + { + //line 146 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( i < pixels.count )) + { + //line 148 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i1 = ( pos + 1 ); + //line 148 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( i1 & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( i1 & 3 )))) ) )) )] & 255 ); + //line 149 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i2 = ( pos + 3 ); + //line 149 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( i2 & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( i2 & 3 )))) ) )) )] & 255 ); + //line 151 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch1 )] = ((byte) (r) ); + //line 152 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch3 )] = ((byte) (b) ); + //line 154 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + ++ i; + //line 155 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pos += 4; + } + + } + else + { + //line 158 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( i < pixels.count )) + { + //line 160 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int a = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( pos & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( pos & 3 )))) ) )) )] & 255 ); + //line 161 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i3 = ( pos + 1 ); + //line 161 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int r1 = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( i3 & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( i3 & 3 )))) ) )) )] & 255 ); + //line 162 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i4 = ( pos + 2 ); + //line 162 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int g = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( i4 & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( i4 & 3 )))) ) )) )] & 255 ); + //line 163 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i5 = ( pos + 3 ); + //line 163 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int b1 = ( ((hxPixels._Pixels.PixelsData) (pixels) ).bytes.b[((int) (( (( i5 & -4 )) + ((int) (haxe.lang.Runtime.toInt(((hxPixels._Pixels.PixelsData) (pixels) ).format.channelMap.__get(( i5 & 3 )))) ) )) )] & 255 ); + //line 165 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch0 )] = ((byte) (a) ); + //line 166 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch1 )] = ((byte) (r1) ); + //line 167 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch2 )] = ((byte) (g) ); + //line 168 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.bytes.b[( pos + toFormat.ch3 )] = ((byte) (b1) ); + //line 170 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + ++ i; + //line 171 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pos += 4; + } + + } + + //line 175 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + res.format = toFormat; + //line 176 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return res; + } + + + public static hxPixels._Pixels.PixelsData fromBufferedImage(java.awt.image.BufferedImage image) + { + //line 388 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData this1 = new hxPixels._Pixels.PixelsData(image.getWidth(), image.getHeight(), true, null); + //line 388 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + hxPixels._Pixels.PixelsData pixels = ((hxPixels._Pixels.PixelsData) (this1) ); + //line 389 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pixels.format = hxPixels.PixelFormat.RGBA; + //line 391 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int[] buffer = new int[pixels.bytes.length]; + //line 392 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + buffer = image.getRaster().getPixels(((int) (0) ), ((int) (0) ), ((int) (pixels.width) ), ((int) (pixels.height) ), ((int[]) (buffer) )); + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g1 = 0; + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g = buffer.length; + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( _g1 < _g )) + { + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i = _g1++; + //line 394 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + pixels.bytes.b[i] = ((byte) (buffer[i]) ); + } + + } + + //line 396 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + return pixels; + } + + + public static void applyToBufferedImage(hxPixels._Pixels.PixelsData this1, java.awt.image.BufferedImage image) + { + //line 400 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int[] buffer = new int[this1.bytes.length]; + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + { + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g1 = 0; + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int _g = buffer.length; + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + while (( _g1 < _g )) + { + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + int i = _g1++; + //line 401 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + buffer[i] = ( this1.bytes.b[i] & 255 ); + } + + } + + //line 403 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" + image.getRaster().setPixels(((int) (0) ), ((int) (0) ), ((int) (this1.width) ), ((int) (this1.height) ), ((int[]) (buffer) )); + } + + +} + + diff --git a/src/main/java/wings/core/ISimpleDrawingContext.java b/src/main/java/wings/core/ISimpleDrawingContext.java new file mode 100644 index 0000000..697da4a --- /dev/null +++ b/src/main/java/wings/core/ISimpleDrawingContext.java @@ -0,0 +1,33 @@ +// Generated by Haxe 3.4.2 +package wings.core; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public interface ISimpleDrawingContext extends haxe.lang.IHxObject +{ + void clear(); + + void lineStyle(double thickness, int color, java.lang.Object alpha); + + void beginFill(int color, java.lang.Object alpha); + + void endFill(); + + void moveTo(double x, double y); + + void lineTo(double x, double y); + + void quadTo(double cx, double cy, double ax, double ay); + + void drawCircle(double cx, double cy, double radius); + + void drawRect(double x, double y, double width, double height); + + void drawEquilaterialTri(double x, double y, double radius, double direction); + + void drawTri(haxe.root.Array points); + +} + + diff --git a/src/main/java/wings/data/MathPoints.java b/src/main/java/wings/data/MathPoints.java new file mode 100644 index 0000000..62696b0 --- /dev/null +++ b/src/main/java/wings/data/MathPoints.java @@ -0,0 +1,222 @@ +// Generated by Haxe 3.4.2 +package wings.data; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class MathPoints extends haxe.lang.HxObject +{ + public MathPoints(haxe.lang.EmptyObject empty) + { + } + + + public MathPoints() + { + //line 4 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + wings.data.MathPoints.__hx_ctor_wings_data_MathPoints(this); + } + + + public static void __hx_ctor_wings_data_MathPoints(wings.data.MathPoints __hx_this) + { + } + + + public static double arcTan(java.lang.Object p0, java.lang.Object p1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + return java.lang.Math.atan2(( ((double) (haxe.lang.Runtime.getField_f(p1, "y", true)) ) - ((double) (haxe.lang.Runtime.getField_f(p0, "y", true)) ) ), ( ((double) (haxe.lang.Runtime.getField_f(p1, "x", true)) ) - ((double) (haxe.lang.Runtime.getField_f(p0, "x", true)) ) )); + } + + + public static double distance(java.lang.Object p0, java.lang.Object p1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double x = ( ((double) (haxe.lang.Runtime.getField_f(p0, "x", true)) ) - ((double) (haxe.lang.Runtime.getField_f(p1, "x", true)) ) ); + //line 14 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double y = ( ((double) (haxe.lang.Runtime.getField_f(p0, "y", true)) ) - ((double) (haxe.lang.Runtime.getField_f(p1, "y", true)) ) ); + //line 15 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + return java.lang.Math.sqrt(( ( x * x ) + ( y * y ) )); + } + + + public static java.lang.Object quadraticBezier(double t, haxe.root.Array arr) + { + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double startPoint = haxe.lang.Runtime.getField_f(arr.__get(0), "x", true); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double controlPoint = haxe.lang.Runtime.getField_f(arr.__get(1), "x", true); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double endPoint = haxe.lang.Runtime.getField_f(arr.__get(2), "x", true); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double u = ( 1 - t ); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double tmp = ( ( ( java.lang.Math.pow(u, ((double) (2) )) * startPoint ) + ( ( ( 2 * u ) * t ) * controlPoint ) ) + ( java.lang.Math.pow(t, ((double) (2) )) * endPoint ) ); + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double startPoint1 = haxe.lang.Runtime.getField_f(arr.__get(0), "y", true); + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double controlPoint1 = haxe.lang.Runtime.getField_f(arr.__get(1), "y", true); + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double endPoint1 = haxe.lang.Runtime.getField_f(arr.__get(2), "y", true); + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double u1 = ( 1 - t ); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl1 = ( ( ( java.lang.Math.pow(u1, ((double) (2) )) * startPoint1 ) + ( ( ( 2 * u1 ) * t ) * controlPoint1 ) ) + ( java.lang.Math.pow(t, ((double) (2) )) * endPoint1 ) ); + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + return new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (tmp) ), ((double) (__temp_odecl1) )}); + } + + } + + + public static double _quadraticBezier(double t, double startPoint, double controlPoint, double endPoint) + { + //line 30 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double u = ( 1 - t ); + //line 31 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + return ( ( ( java.lang.Math.pow(u, ((double) (2) )) * startPoint ) + ( ( ( 2 * u ) * t ) * controlPoint ) ) + ( java.lang.Math.pow(t, ((double) (2) )) * endPoint ) ); + } + + + public static haxe.root.Array generateMidPoints(haxe.root.Array arr) + { + //line 36 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + haxe.root.Array out = new haxe.root.Array(new java.lang.Object[]{}); + //line 37 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object a = null; + //line 38 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object b = null; + //line 39 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + int len = ( arr.length - 2 ); + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + int _g1 = 0; + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + int _g = len; + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + while (( _g1 < _g )) + { + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + int i = _g1++; + //line 41 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + a = arr.__get(i); + //line 42 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + b = arr.__get(( i + 1 )); + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt15 = null; + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl1 = ( (( haxe.lang.Runtime.getField_f(b, "x", true) + haxe.lang.Runtime.getField_f(a, "x", true) )) / 2 ); + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl2 = ( (( haxe.lang.Runtime.getField_f(b, "y", true) + haxe.lang.Runtime.getField_f(a, "y", true) )) / 2 ); + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt15 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl1) ), ((double) (__temp_odecl2) )}); + } + + //line 43 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.push(__temp_stmt15); + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt16 = null; + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl3 = haxe.lang.Runtime.getField_f(b, "x", true); + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl4 = haxe.lang.Runtime.getField_f(b, "y", true); + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt16 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl3) ), ((double) (__temp_odecl4) )}); + } + + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.push(__temp_stmt16); + } + + } + + //line 46 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + a = arr.__get(0); + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt17 = null; + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl5 = haxe.lang.Runtime.getField_f(a, "x", true); + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl6 = haxe.lang.Runtime.getField_f(a, "y", true); + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt17 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl5) ), ((double) (__temp_odecl6) )}); + } + + //line 47 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.unshift(__temp_stmt17); + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt18 = null; + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl7 = haxe.lang.Runtime.getField_f(a, "x", true); + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl8 = haxe.lang.Runtime.getField_f(a, "y", true); + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt18 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl7) ), ((double) (__temp_odecl8) )}); + } + + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.unshift(__temp_stmt18); + //line 49 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + b = arr.__get(( arr.length - 1 )); + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt19 = null; + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl9 = haxe.lang.Runtime.getField_f(b, "x", true); + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl10 = haxe.lang.Runtime.getField_f(b, "y", true); + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt19 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl9) ), ((double) (__temp_odecl10) )}); + } + + //line 50 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.push(__temp_stmt19); + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt20 = null; + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl11 = haxe.lang.Runtime.getField_f(b, "x", true); + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl12 = haxe.lang.Runtime.getField_f(b, "y", true); + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt20 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl11) ), ((double) (__temp_odecl12) )}); + } + + //line 51 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.push(__temp_stmt20); + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + java.lang.Object __temp_stmt21 = null; + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + { + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl13 = haxe.lang.Runtime.getField_f(b, "x", true); + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + double __temp_odecl14 = haxe.lang.Runtime.getField_f(b, "y", true); + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + __temp_stmt21 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (__temp_odecl13) ), ((double) (__temp_odecl14) )}); + } + + //line 52 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + out.push(__temp_stmt21); + //line 53 "/Users/tao/projects/hxDaedalus/src/wings/data/MathPoints.hx" + return out; + } + + +} + + diff --git a/src/main/java/wings/javaSwing/BasicSwing.java b/src/main/java/wings/javaSwing/BasicSwing.java new file mode 100644 index 0000000..31ad36d --- /dev/null +++ b/src/main/java/wings/javaSwing/BasicSwing.java @@ -0,0 +1,5837 @@ +// Generated by Haxe 3.4.2 +package wings.javaSwing; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class BasicSwing extends javax.swing.JFrame implements haxe.lang.IHxObject, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.KeyListener +{ + public BasicSwing(haxe.lang.EmptyObject empty) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + super(); + } + + + public BasicSwing() + { + //line 27 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + super(haxe.lang.Runtime.toString("")); + //line 28 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.setTitle(haxe.lang.Runtime.toString(null)); + //line 29 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + java.lang.System.setProperty(haxe.lang.Runtime.toString("sun.java2d.opengl"), haxe.lang.Runtime.toString("True")); + //line 30 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + wings.javaSwing.SwingHeader header = new wings.javaSwing.SwingHeader(); + //line 31 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.setSize(((int) (header.width) ), ((int) (header.height) )); + //line 32 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.setDefaultCloseOperation(((int) (javax.swing.JFrame.EXIT_ON_CLOSE) )); + //line 33 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.setBackground(((java.awt.Color) (new java.awt.Color(header.bgColor)) )); + //line 34 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface = new wings.javaSwing.Surface(); + //line 35 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.getContentPane().setPreferredSize(((java.awt.Dimension) (new java.awt.Dimension(header.width, header.height)) )); + //line 36 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.getContentPane().add(((java.awt.Component) (this.surface) )); + //line 37 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface.addKeyListener(((java.awt.event.KeyListener) (this) )); + //line 38 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface.setFocusable(((boolean) (true) )); + //line 39 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface.requestFocusInWindow(); + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface.addMouseListener(((java.awt.event.MouseListener) (this) )); + //line 41 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface.addMouseMotionListener(((java.awt.event.MouseMotionListener) (this) )); + //line 42 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.pack(); + //line 44 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.setVisible(((boolean) (true) )); + } + + + public wings.javaSwing.Surface surface; + + public void mousePressed(java.awt.event.MouseEvent e) + { + } + + + public void mouseDragged(java.awt.event.MouseEvent e) + { + } + + + public void mouseExited(java.awt.event.MouseEvent e) + { + } + + + public void mouseMoved(java.awt.event.MouseEvent e) + { + } + + + public void mouseEntered(java.awt.event.MouseEvent e) + { + } + + + public void mouseClicked(java.awt.event.MouseEvent e) + { + } + + + public void mouseReleased(java.awt.event.MouseEvent e) + { + } + + + public void keyTyped(java.awt.event.KeyEvent e) + { + } + + + public void keyReleased(java.awt.event.KeyEvent e) + { + } + + + public void keyPressed(java.awt.event.KeyEvent e) + { + } + + + public boolean __hx_deleteField(java.lang.String field) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return false; + } + + + public java.lang.Object __hx_lookupField(java.lang.String field, boolean throwErrors, boolean isCheck) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (isCheck) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return haxe.lang.Runtime.undefined; + } + else + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (throwErrors) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw haxe.lang.HaxeException.wrap("Field not found."); + } + else + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return null; + } + + } + + } + + + public double __hx_lookupField_f(java.lang.String field, boolean throwErrors) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (throwErrors) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw haxe.lang.HaxeException.wrap("Field not found or incompatible field type."); + } + else + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return 0.0; + } + + } + + + public java.lang.Object __hx_lookupSetField(java.lang.String field, java.lang.Object value) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing."); + } + + + public double __hx_lookupSetField_f(java.lang.String field, double value) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing or incompatible type."); + } + + + public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.__hx_lookupSetField_f(field, value); + } + + } + + } + + + public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + boolean __temp_executeDef1 = true; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + switch (field.hashCode()) + { + case -61228775: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("accessibleContext")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.accessibleContext = ((javax.accessibility.AccessibleContext) (value) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return value; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1853231955: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("surface")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.surface = ((wings.javaSwing.Surface) (value) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return value; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2108891965: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("rootPaneCheckingEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.rootPaneCheckingEnabled = haxe.lang.Runtime.toBool(value); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return value; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -166979734: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("rootPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.rootPane = ((javax.swing.JRootPane) (value) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return value; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (__temp_executeDef1) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.__hx_lookupSetField(field, value); + } + else + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw null; + } + + } + + } + + + public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + boolean __temp_executeDef1 = true; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + switch (field.hashCode()) + { + case -75308287: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getName")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getName")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1853231955: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("surface")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.surface; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1984801293: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setName")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setName")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1647473597: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mousePressed")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mousePressed")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 700591008: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getParent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getParent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -416699091: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseDragged")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseDragged")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -75245096: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getPeer")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPeer")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 436621122: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseExited")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseExited")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1406034786: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setDropTarget")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDropTarget")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 991047950: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseMoved")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseMoved")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 631903574: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getDropTarget")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getDropTarget")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 373785874: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseEntered")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseEntered")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1406043765: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getGraphicsConfiguration")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getGraphicsConfiguration")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1468704830: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseClicked")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseClicked")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -831132833: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getTreeLock")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTreeLock")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 257033474: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseReleased")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseReleased")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2073378034: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isValid")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isValid")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 491121995: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyTyped")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyTyped")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 304683410: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isDisplayable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isDisplayable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1813574468: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyReleased")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyReleased")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -113035288: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isVisible")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isVisible")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 56659139: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyPressed")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyPressed")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2105594551: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1334722659: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getAccessibleContext")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAccessibleContext")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1364071551: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 820971262: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("paramString")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paramString")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1298848381: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("enable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1094177291: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("repaint")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "repaint")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1671308008: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("disable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "disable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2116360191: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getGraphics")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getGraphics")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 116955034: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isDoubleBuffered")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isDoubleBuffered")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1405291838: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setGlassPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setGlassPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -174300757: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("enableInputMethods")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enableInputMethods")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1340682830: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getGlassPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getGlassPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1686708537: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getForeground")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getForeground")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 557910902: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLayeredPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLayeredPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1834127547: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setForeground")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setForeground")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1965320190: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getLayeredPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLayeredPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 902956821: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isForegroundSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isForegroundSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1493688767: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setContentPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setContentPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 274796362: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isBackgroundSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isBackgroundSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1029542325: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getContentPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getContentPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -75533115: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFont")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFont")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 128422432: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setIconImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setIconImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1260721911: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFontSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFontSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1822340588: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setRootPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setRootPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 383935836: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLocale")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocale")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1910920416: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getRootPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getRootPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 975157628: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getColorModel")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getColorModel")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 371675692: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLayout")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLayout")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 204504438: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getLocationOnScreen")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocationOnScreen")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -934610812: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("remove")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "remove")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1901043637: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("location")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "location")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1148905887: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addImpl")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addImpl")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3357649: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("move")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "move")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1675849851: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setRootPaneCheckingEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setRootPaneCheckingEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3530753: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("size")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "size")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1543323981: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isRootPaneCheckingEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isRootPaneCheckingEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -934437708: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("resize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "resize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 452224992: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getJMenuBar")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getJMenuBar")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1383205195: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("bounds")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "bounds")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 363645164: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setJMenuBar")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setJMenuBar")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3169218: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getX")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getX")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -838846263: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("update")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "update")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3169219: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getY")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getY")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1683315369: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getTransferHandler")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTransferHandler")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1968952336: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getWidth")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWidth")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1691618275: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setTransferHandler")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setTransferHandler")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 474985501: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getHeight")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHeight")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1230815942: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getDefaultCloseOperation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getDefaultCloseOperation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 312809899: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getBounds")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBounds")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2034896978: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setDefaultCloseOperation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDefaultCloseOperation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -75151241: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 64494235: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processWindowEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processWindowEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -316023509: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getLocation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 755589254: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("createRootPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createRootPane")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1387686788: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isLightweight")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isLightweight")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 544801821: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("frameInit")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "frameInit")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 737172192: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setPreferredSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setPreferredSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -166979734: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("rootPane")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.rootPane; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1787544022: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isPreferredSizeSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isPreferredSizeSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2108891965: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("rootPaneCheckingEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.rootPaneCheckingEnabled; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -400630659: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isMinimumSizeSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isMinimumSizeSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -61228775: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("accessibleContext")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.accessibleContext; + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -726354817: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setMaximumSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMaximumSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -210160730: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getCursorType")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getCursorType")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1057546709: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isMaximumSizeSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isMaximumSizeSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 132278872: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setCursor")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setCursor")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 357114811: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getBaseline")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBaseline")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1001125651: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeNotify")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeNotify")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2053764159: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getBaselineResizeBehavior")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBaselineResizeBehavior")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -855811280: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setBackground")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setBackground")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -218282935: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("revalidate")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "revalidate")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1404112991: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setShape")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setShape")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2087644222: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFontMetrics")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFontMetrics")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1706459465: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setOpacity")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setOpacity")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 346895948: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getCursor")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getCursor")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -813555468: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isUndecorated")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isUndecorated")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1873980194: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isCursorSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isCursorSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1815527748: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setUndecorated")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setUndecorated")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 925942883: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("paintAll")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintAll")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 234125751: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMaximizedBounds")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMaximizedBounds")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1166363724: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("printAll")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printAll")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1154159403: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setMaximizedBounds")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMaximizedBounds")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2066473468: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("imageUpdate")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "imageUpdate")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 579895074: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getExtendedState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getExtendedState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -514107969: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("createImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1965583067: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -746920573: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("createVolatileImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createVolatileImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1251547754: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setExtendedState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setExtendedState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2048673644: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("prepareImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prepareImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1404470607: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -538855117: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("checkImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "checkImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -611347351: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setResizable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setResizable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -917848425: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setIgnoreRepaint")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setIgnoreRepaint")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -972315487: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isResizable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isResizable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 913594403: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getIgnoreRepaint")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getIgnoreRepaint")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -370964622: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setMenuBar")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMenuBar")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1183789060: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("inside")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "inside")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1987197438: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMenuBar")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMenuBar")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -567445985: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("contains")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "contains")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1420570196: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getIconImage")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getIconImage")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2140931520: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("dispatchEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispatchEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1405084438: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setTitle")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setTitle")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -737348048: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addComponentListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addComponentListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1966196898: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getTitle")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTitle")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 862771373: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeComponentListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeComponentListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -146849974: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addNotify")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addNotify")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1150319688: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponentListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 106428510: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("paint")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paint")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2091996533: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addFocusListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addFocusListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -336661013: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isOpaque")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isOpaque")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2007673976: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeFocusListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeFocusListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1629942492: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getBackground")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBackground")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1237998909: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1965225451: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getShape")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getShape")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 675525480: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addHierarchyListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addHierarchyListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -230345771: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getOpacity")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getOpacity")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2019322395: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeHierarchyListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeHierarchyListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 98192823: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setBounds")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setBounds")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -300913280: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getHierarchyListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHierarchyListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 13976137: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isLocationByPlatform")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isLocationByPlatform")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 875541053: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addHierarchyBoundsListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addHierarchyBoundsListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -659647615: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLocationByPlatform")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocationByPlatform")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1695089402: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeHierarchyBoundsListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeHierarchyBoundsListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1591400247: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getBufferStrategy")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBufferStrategy")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -292872821: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getHierarchyBoundsListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHierarchyBoundsListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1742626799: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("createBufferStrategy")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createBufferStrategy")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 705046738: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addKeyListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addKeyListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1098808322: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLocationRelativeTo")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocationRelativeTo")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2108484879: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeKeyListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeKeyListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -75106384: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getType")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getType")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -68050666: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getKeyListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getKeyListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1985003196: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setType")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setType")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2091349336: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addMouseListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2128401726: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("applyResourceBundle")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "applyResourceBundle")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2119295403: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeMouseListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1487521595: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isShowing")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isShowing")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2072701968: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMouseListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1979010522: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("postEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "postEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -83462098: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addMouseMotionListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseMotionListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 319849826: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isValidateRoot")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isValidateRoot")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 33009515: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeMouseMotionListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseMotionListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1117363270: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addPropertyChangeListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addPropertyChangeListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1929852986: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMouseMotionListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseMotionListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1289458722: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isAutoRequestFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isAutoRequestFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1910206219: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addMouseWheelListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseWheelListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -288894118: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setAutoRequestFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setAutoRequestFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -25699282: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeMouseWheelListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseWheelListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -698920847: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusableWindowState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusableWindowState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2003512819: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMouseWheelListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseWheelListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1543774565: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusableWindowState")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusableWindowState")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1026988866: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addInputMethodListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addInputMethodListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 759171640: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusableWindow")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusableWindow")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -910517253: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeInputMethodListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeInputMethodListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 564387289: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusCycleRootAncestor")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusCycleRootAncestor")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1549673046: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getInputMethodListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputMethodListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -311299910: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusCycleRoot")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusCycleRoot")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 150256377: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getInputMethodRequests")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputMethodRequests")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -44786190: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusCycleRoot")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusCycleRoot")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2086501252: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("enableEvents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enableEvents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 123688912: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusTraversalKeys")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalKeys")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1240522207: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("disableEvents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "disableEvents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1270820115: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocused")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocused")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 23978912: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("coalesceEvents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "coalesceEvents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -748916528: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isActive")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isActive")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1944745964: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processComponentEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processComponentEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2041116559: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMostRecentFocusOwner")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMostRecentFocusOwner")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1262981007: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processFocusEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processFocusEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1353995087: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusOwner")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusOwner")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2139532042: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processKeyEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processKeyEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 928351901: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isAlwaysOnTop")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isAlwaysOnTop")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 786391236: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processMouseEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -254833007: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isAlwaysOnTopSupported")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isAlwaysOnTopSupported")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2065058606: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processMouseMotionEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseMotionEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -73620379: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setAlwaysOnTop")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setAlwaysOnTop")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1880947691: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processMouseWheelEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseWheelEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -982638296: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processWindowStateEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processWindowStateEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 2117937310: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processInputMethodEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processInputMethodEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1796627135: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processWindowFocusEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processWindowFocusEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 584549812: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processHierarchyEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processHierarchyEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1969426795: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2051715969: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processHierarchyBoundsEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processHierarchyBoundsEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1228323959: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1469558098: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("handleEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "handleEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2127593164: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getWindowStateListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWindowStateListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 585890535: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseDown")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseDown")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1621709005: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getWindowFocusListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWindowFocusListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 585892729: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseDrag")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseDrag")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 388257273: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getWindowListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWindowListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1243066912: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseUp")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseUp")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1547090040: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeWindowFocusListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeWindowFocusListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 586158614: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseMove")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseMove")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1703239473: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeWindowStateListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeWindowStateListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 983628083: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseEnter")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseEnter")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1671257496: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeWindowListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeWindowListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 585928547: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseExit")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseExit")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1430618427: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addWindowFocusListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addWindowFocusListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -815927391: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyDown")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyDown")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1586767860: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addWindowStateListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addWindowStateListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 101944666: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyUp")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyUp")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 9710533: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addWindowListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addWindowListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1422950858: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("action")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "action")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1655750031: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getModalExclusionType")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getModalExclusionType")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2056434772: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("gotFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "gotFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 880460925: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setModalExclusionType")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setModalExclusionType")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 619607060: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("lostFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lostFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1418426732: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getOwnedWindows")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getOwnedWindows")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1426705793: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusTraversable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1961990397: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getOwner")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getOwner")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1487536088: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -730558213: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getInputContext")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputContext")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1126567952: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusable")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusable")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 598552912: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getLocale")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocale")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -100025915: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusTraversalKeysEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalKeysEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 464294679: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getWarningString")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWarningString")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1338154671: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusTraversalKeysEnabled")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalKeysEnabled")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -103224824: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getToolkit")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getToolkit")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1280029577: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("requestFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "requestFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -869412350: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("toBack")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toBack")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -132373474: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("requestFocusInWindow")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "requestFocusInWindow")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1177766802: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("toFront")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toFront")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2037192787: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("transferFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1671767583: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("dispose")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1193982373: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("nextFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "nextFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3202370: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("hide")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hide")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1229986480: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("transferFocusBackward")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusBackward")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3529469: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("show")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "show")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 122660510: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("transferFocusUpCycle")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusUpCycle")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -854558288: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setVisible")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setVisible")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 117596766: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("hasFocus")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hasFocus")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1097148750: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("reshape")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reshape")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1115025797: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusOwner")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusOwner")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -404603337: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setLocation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1776922004: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("toString")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1984958339: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1645115555: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removePropertyChangeListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removePropertyChangeListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1403787411: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setMinimumSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMinimumSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1053245860: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getPropertyChangeListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPropertyChangeListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3432985: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("pack")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "pack")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -2036853317: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("firePropertyChange")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "firePropertyChange")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -313871789: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setIconImages")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setIconImages")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1920162837: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setComponentOrientation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setComponentOrientation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1088003001: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getIconImages")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getIconImages")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -132109047: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponentOrientation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentOrientation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -679533279: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("applyComponentOrientation")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "applyComponentOrientation")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1052288776: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponentCount")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentCount")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -606755785: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("transferFocusDownCycle")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusDownCycle")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -754783867: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("countComponents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "countComponents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1708753933: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusTraversalPolicyProvider")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversalPolicyProvider")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1409511865: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 626370347: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusTraversalPolicyProvider")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalPolicyProvider")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -745194740: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 602541344: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isFocusTraversalPolicySet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversalPolicySet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 512222700: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getInsets")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInsets")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1242052594: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getFocusTraversalPolicy")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalPolicy")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1183792394: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("insets")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insets")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 810219290: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusTraversalPolicy")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalPolicy")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -189934193: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setComponentZOrder")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setComponentZOrder")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -355296716: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("areFocusTraversalKeysSet")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "areFocusTraversalKeysSet")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1109967845: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponentZOrder")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentZOrder")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1635067428: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFocusTraversalKeys")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalKeys")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 96417: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("add")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "add")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 3322014: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("list")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "list")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1282345597: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeAll")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeAll")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1671141420: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("isAncestorOf")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isAncestorOf")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 586292768: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getLayout")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLayout")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 398126743: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("findComponentAt")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findComponentAt")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 185147285: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("doLayout")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "doLayout")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 438337848: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMousePosition")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMousePosition")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1109722326: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("layout")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "layout")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1626201894: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getComponentAt")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentAt")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1831849669: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("invalidate")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "invalidate")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1097461934: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("locate")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "locate")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1421272810: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("validate")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "validate")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 634939509: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("deliverEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deliverEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1081247188: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("validateTree")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "validateTree")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1430084328: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("processContainerEvent")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processContainerEvent")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1984576465: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("setFont")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFont")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 576751796: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getContainerListeners")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getContainerListeners")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1726352276: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getPreferredSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPreferredSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1611220017: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("removeContainerListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeContainerListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -608552926: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("preferredSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "preferredSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 11100596: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("addContainerListener")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addContainerListener")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 367948793: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMinimumSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMinimumSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -627286621: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("printComponents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printComponents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1008217391: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("minimumSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "minimumSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -622724588: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("paintComponents")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintComponents")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1045381387: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getMaximumSize")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMaximumSize")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 106934957: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("print")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "print")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1328196917: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getAlignmentX")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAlignmentX")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1328196916: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("getAlignmentY")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAlignmentY")) ); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (__temp_executeDef1) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.__hx_lookupField(field, throwErrors, isCheck); + } + else + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + throw null; + } + + } + + } + + + public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return this.__hx_lookupField_f(field, throwErrors); + } + + } + + } + + + public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + int __temp_hash2 = field.hashCode(); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + boolean __temp_executeDef1 = true; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + switch (__temp_hash2) + { + case -75308287: + case 1984801293: + case 700591008: + case -75245096: + case 1406034786: + case 631903574: + case 1406043765: + case -831132833: + case 2073378034: + case 304683410: + case -113035288: + case 2105594551: + case 1364071551: + case -1298848381: + case 1671308008: + case 116955034: + case -174300757: + case 1686708537: + case -1834127547: + case 902956821: + case 274796362: + case -75533115: + case -1260721911: + case 383935836: + case 975157628: + case 204504438: + case 1901043637: + case 3357649: + case 3530753: + case -934437708: + case -1383205195: + case 3169218: + case 3169219: + case 1968952336: + case 474985501: + case 312809899: + case -75151241: + case -316023509: + case 1387686788: + case 737172192: + case -1787544022: + case -400630659: + case -726354817: + case -1057546709: + case 357114811: + case -2053764159: + case -218282935: + case 2087644222: + case 346895948: + case 1873980194: + case 925942883: + case -1166363724: + case -2066473468: + case -514107969: + case -746920573: + case -2048673644: + case -538855117: + case -917848425: + case 913594403: + case -1183789060: + case -567445985: + case -2140931520: + case -737348048: + case 862771373: + case -1150319688: + case -2091996533: + case -2007673976: + case 1237998909: + case 675525480: + case -2019322395: + case -300913280: + case 875541053: + case 1695089402: + case -292872821: + case 705046738: + case 2108484879: + case -68050666: + case 2091349336: + case -2119295403: + case 2072701968: + case -83462098: + case 33009515: + case 1929852986: + case 1910206219: + case -25699282: + case 2003512819: + case -1026988866: + case -910517253: + case -1549673046: + case 150256377: + case -2086501252: + case -1240522207: + case 23978912: + case 1944745964: + case -1262981007: + case 2139532042: + case 786391236: + case 2065058606: + case -1880947691: + case 2117937310: + case 584549812: + case -2051715969: + case 1469558098: + case 585890535: + case 585892729: + case 1243066912: + case 586158614: + case 983628083: + case 585928547: + case -815927391: + case 101944666: + case -1422950858: + case -2056434772: + case 619607060: + case -1426705793: + case -1487536088: + case -1126567952: + case -100025915: + case -1338154671: + case 1280029577: + case -132373474: + case -2037192787: + case 1193982373: + case 1229986480: + case 122660510: + case 117596766: + case 1115025797: + case -1776922004: + case -1645115555: + case 1053245860: + case -2036853317: + case 1920162837: + case -132109047: + case 1052288776: + case -754783867: + case -1409511865: + case -745194740: + case 512222700: + case -1183792394: + case -189934193: + case -1109967845: + case 96417: + case 1282345597: + case 586292768: + case 185147285: + case -1109722326: + case -1831849669: + case -1421272810: + case 1081247188: + case 1984576465: + case -1726352276: + case -608552926: + case 367948793: + case 1008217391: + case 1045381387: + case -1328196917: + case -1328196916: + case 106934957: + case -622724588: + case -627286621: + case 11100596: + case 1611220017: + case 576751796: + case 1430084328: + case 634939509: + case -1097461934: + case -1626201894: + case 438337848: + case 398126743: + case -1671141420: + case 3322014: + case -1635067428: + case -355296716: + case 810219290: + case -1242052594: + case 602541344: + case 626370347: + case -1708753933: + case -606755785: + case -679533279: + case -1088003001: + case -313871789: + case 3432985: + case -1403787411: + case 1984958339: + case -404603337: + case 1097148750: + case -854558288: + case 3529469: + case 3202370: + case 1671767583: + case -1177766802: + case -869412350: + case -103224824: + case 464294679: + case 598552912: + case -730558213: + case 1961990397: + case -1418426732: + case 880460925: + case -1655750031: + case 9710533: + case 1586767860: + case 1430618427: + case -1671257496: + case 1703239473: + case 1547090040: + case 388257273: + case 1621709005: + case -2127593164: + case -1228323959: + case 1969426795: + case -1796627135: + case -982638296: + case -73620379: + case -254833007: + case 928351901: + case -1353995087: + case 2041116559: + case -748916528: + case -1270820115: + case 123688912: + case -44786190: + case -311299910: + case 564387289: + case 759171640: + case 1543774565: + case -698920847: + case -288894118: + case 1289458722: + case -1117363270: + case 319849826: + case 1979010522: + case 1487521595: + case 2128401726: + case 1985003196: + case -75106384: + case -1098808322: + case 1742626799: + case -1591400247: + case -659647615: + case 13976137: + case 98192823: + case -230345771: + case 1965225451: + case -1629942492: + case -336661013: + case 106428510: + case -146849974: + case 1966196898: + case 1405084438: + case -1420570196: + case 1987197438: + case -370964622: + case -972315487: + case -611347351: + case 1404470607: + case -1251547754: + case 1965583067: + case 579895074: + case 1154159403: + case 234125751: + case -1815527748: + case -813555468: + case 1706459465: + case 1404112991: + case -855811280: + case -1001125651: + case 132278872: + case -210160730: + case 544801821: + case 755589254: + case 64494235: + case -2034896978: + case -1230815942: + case -1691618275: + case 1683315369: + case -838846263: + case 363645164: + case 452224992: + case -1543323981: + case 1675849851: + case -1148905887: + case -934610812: + case 371675692: + case 1910920416: + case 1822340588: + case 128422432: + case -1029542325: + case 1493688767: + case -1965320190: + case 557910902: + case 1340682830: + case -1405291838: + case -2116360191: + case 1094177291: + case 820971262: + case 1334722659: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (( (( ( __temp_hash2 == -75308287 ) && field.equals("getName") )) || ( (( ( __temp_hash2 == 1984801293 ) && field.equals("setName") )) || ( (( ( __temp_hash2 == 700591008 ) && field.equals("getParent") )) || ( (( ( __temp_hash2 == -75245096 ) && field.equals("getPeer") )) || ( (( ( __temp_hash2 == 1406034786 ) && field.equals("setDropTarget") )) || ( (( ( __temp_hash2 == 631903574 ) && field.equals("getDropTarget") )) || ( (( ( __temp_hash2 == 1406043765 ) && field.equals("getGraphicsConfiguration") )) || ( (( ( __temp_hash2 == -831132833 ) && field.equals("getTreeLock") )) || ( (( ( __temp_hash2 == 2073378034 ) && field.equals("isValid") )) || ( (( ( __temp_hash2 == 304683410 ) && field.equals("isDisplayable") )) || ( (( ( __temp_hash2 == -113035288 ) && field.equals("isVisible") )) || ( (( ( __temp_hash2 == 2105594551 ) && field.equals("isEnabled") )) || ( (( ( __temp_hash2 == 1364071551 ) && field.equals("setEnabled") )) || ( (( ( __temp_hash2 == -1298848381 ) && field.equals("enable") )) || ( (( ( __temp_hash2 == 1671308008 ) && field.equals("disable") )) || ( (( ( __temp_hash2 == 116955034 ) && field.equals("isDoubleBuffered") )) || ( (( ( __temp_hash2 == -174300757 ) && field.equals("enableInputMethods") )) || ( (( ( __temp_hash2 == 1686708537 ) && field.equals("getForeground") )) || ( (( ( __temp_hash2 == -1834127547 ) && field.equals("setForeground") )) || ( (( ( __temp_hash2 == 902956821 ) && field.equals("isForegroundSet") )) || ( (( ( __temp_hash2 == 274796362 ) && field.equals("isBackgroundSet") )) || ( (( ( __temp_hash2 == -75533115 ) && field.equals("getFont") )) || ( (( ( __temp_hash2 == -1260721911 ) && field.equals("isFontSet") )) || ( (( ( __temp_hash2 == 383935836 ) && field.equals("setLocale") )) || ( (( ( __temp_hash2 == 975157628 ) && field.equals("getColorModel") )) || ( (( ( __temp_hash2 == 204504438 ) && field.equals("getLocationOnScreen") )) || ( (( ( __temp_hash2 == 1901043637 ) && field.equals("location") )) || ( (( ( __temp_hash2 == 3357649 ) && field.equals("move") )) || ( (( ( __temp_hash2 == 3530753 ) && field.equals("size") )) || ( (( ( __temp_hash2 == -934437708 ) && field.equals("resize") )) || ( (( ( __temp_hash2 == -1383205195 ) && field.equals("bounds") )) || ( (( ( __temp_hash2 == 3169218 ) && field.equals("getX") )) || ( (( ( __temp_hash2 == 3169219 ) && field.equals("getY") )) || ( (( ( __temp_hash2 == 1968952336 ) && field.equals("getWidth") )) || ( (( ( __temp_hash2 == 474985501 ) && field.equals("getHeight") )) || ( (( ( __temp_hash2 == 312809899 ) && field.equals("getBounds") )) || ( (( ( __temp_hash2 == -75151241 ) && field.equals("getSize") )) || ( (( ( __temp_hash2 == -316023509 ) && field.equals("getLocation") )) || ( (( ( __temp_hash2 == 1387686788 ) && field.equals("isLightweight") )) || ( (( ( __temp_hash2 == 737172192 ) && field.equals("setPreferredSize") )) || ( (( ( __temp_hash2 == -1787544022 ) && field.equals("isPreferredSizeSet") )) || ( (( ( __temp_hash2 == -400630659 ) && field.equals("isMinimumSizeSet") )) || ( (( ( __temp_hash2 == -726354817 ) && field.equals("setMaximumSize") )) || ( (( ( __temp_hash2 == -1057546709 ) && field.equals("isMaximumSizeSet") )) || ( (( ( __temp_hash2 == 357114811 ) && field.equals("getBaseline") )) || ( (( ( __temp_hash2 == -2053764159 ) && field.equals("getBaselineResizeBehavior") )) || ( (( ( __temp_hash2 == -218282935 ) && field.equals("revalidate") )) || ( (( ( __temp_hash2 == 2087644222 ) && field.equals("getFontMetrics") )) || ( (( ( __temp_hash2 == 346895948 ) && field.equals("getCursor") )) || ( (( ( __temp_hash2 == 1873980194 ) && field.equals("isCursorSet") )) || ( (( ( __temp_hash2 == 925942883 ) && field.equals("paintAll") )) || ( (( ( __temp_hash2 == -1166363724 ) && field.equals("printAll") )) || ( (( ( __temp_hash2 == -2066473468 ) && field.equals("imageUpdate") )) || ( (( ( __temp_hash2 == -514107969 ) && field.equals("createImage") )) || ( (( ( __temp_hash2 == -746920573 ) && field.equals("createVolatileImage") )) || ( (( ( __temp_hash2 == -2048673644 ) && field.equals("prepareImage") )) || ( (( ( __temp_hash2 == -538855117 ) && field.equals("checkImage") )) || ( (( ( __temp_hash2 == -917848425 ) && field.equals("setIgnoreRepaint") )) || ( (( ( __temp_hash2 == 913594403 ) && field.equals("getIgnoreRepaint") )) || ( (( ( __temp_hash2 == -1183789060 ) && field.equals("inside") )) || ( (( ( __temp_hash2 == -567445985 ) && field.equals("contains") )) || ( (( ( __temp_hash2 == -2140931520 ) && field.equals("dispatchEvent") )) || ( (( ( __temp_hash2 == -737348048 ) && field.equals("addComponentListener") )) || ( (( ( __temp_hash2 == 862771373 ) && field.equals("removeComponentListener") )) || ( (( ( __temp_hash2 == -1150319688 ) && field.equals("getComponentListeners") )) || ( (( ( __temp_hash2 == -2091996533 ) && field.equals("addFocusListener") )) || ( (( ( __temp_hash2 == -2007673976 ) && field.equals("removeFocusListener") )) || ( (( ( __temp_hash2 == 1237998909 ) && field.equals("getFocusListeners") )) || ( (( ( __temp_hash2 == 675525480 ) && field.equals("addHierarchyListener") )) || ( (( ( __temp_hash2 == -2019322395 ) && field.equals("removeHierarchyListener") )) || ( (( ( __temp_hash2 == -300913280 ) && field.equals("getHierarchyListeners") )) || ( (( ( __temp_hash2 == 875541053 ) && field.equals("addHierarchyBoundsListener") )) || ( (( ( __temp_hash2 == 1695089402 ) && field.equals("removeHierarchyBoundsListener") )) || ( (( ( __temp_hash2 == -292872821 ) && field.equals("getHierarchyBoundsListeners") )) || ( (( ( __temp_hash2 == 705046738 ) && field.equals("addKeyListener") )) || ( (( ( __temp_hash2 == 2108484879 ) && field.equals("removeKeyListener") )) || ( (( ( __temp_hash2 == -68050666 ) && field.equals("getKeyListeners") )) || ( (( ( __temp_hash2 == 2091349336 ) && field.equals("addMouseListener") )) || ( (( ( __temp_hash2 == -2119295403 ) && field.equals("removeMouseListener") )) || ( (( ( __temp_hash2 == 2072701968 ) && field.equals("getMouseListeners") )) || ( (( ( __temp_hash2 == -83462098 ) && field.equals("addMouseMotionListener") )) || ( (( ( __temp_hash2 == 33009515 ) && field.equals("removeMouseMotionListener") )) || ( (( ( __temp_hash2 == 1929852986 ) && field.equals("getMouseMotionListeners") )) || ( (( ( __temp_hash2 == 1910206219 ) && field.equals("addMouseWheelListener") )) || ( (( ( __temp_hash2 == -25699282 ) && field.equals("removeMouseWheelListener") )) || ( (( ( __temp_hash2 == 2003512819 ) && field.equals("getMouseWheelListeners") )) || ( (( ( __temp_hash2 == -1026988866 ) && field.equals("addInputMethodListener") )) || ( (( ( __temp_hash2 == -910517253 ) && field.equals("removeInputMethodListener") )) || ( (( ( __temp_hash2 == -1549673046 ) && field.equals("getInputMethodListeners") )) || ( (( ( __temp_hash2 == 150256377 ) && field.equals("getInputMethodRequests") )) || ( (( ( __temp_hash2 == -2086501252 ) && field.equals("enableEvents") )) || ( (( ( __temp_hash2 == -1240522207 ) && field.equals("disableEvents") )) || ( (( ( __temp_hash2 == 23978912 ) && field.equals("coalesceEvents") )) || ( (( ( __temp_hash2 == 1944745964 ) && field.equals("processComponentEvent") )) || ( (( ( __temp_hash2 == -1262981007 ) && field.equals("processFocusEvent") )) || ( (( ( __temp_hash2 == 2139532042 ) && field.equals("processKeyEvent") )) || ( (( ( __temp_hash2 == 786391236 ) && field.equals("processMouseEvent") )) || ( (( ( __temp_hash2 == 2065058606 ) && field.equals("processMouseMotionEvent") )) || ( (( ( __temp_hash2 == -1880947691 ) && field.equals("processMouseWheelEvent") )) || ( (( ( __temp_hash2 == 2117937310 ) && field.equals("processInputMethodEvent") )) || ( (( ( __temp_hash2 == 584549812 ) && field.equals("processHierarchyEvent") )) || ( (( ( __temp_hash2 == -2051715969 ) && field.equals("processHierarchyBoundsEvent") )) || ( (( ( __temp_hash2 == 1469558098 ) && field.equals("handleEvent") )) || ( (( ( __temp_hash2 == 585890535 ) && field.equals("mouseDown") )) || ( (( ( __temp_hash2 == 585892729 ) && field.equals("mouseDrag") )) || ( (( ( __temp_hash2 == 1243066912 ) && field.equals("mouseUp") )) || ( (( ( __temp_hash2 == 586158614 ) && field.equals("mouseMove") )) || ( (( ( __temp_hash2 == 983628083 ) && field.equals("mouseEnter") )) || ( (( ( __temp_hash2 == 585928547 ) && field.equals("mouseExit") )) || ( (( ( __temp_hash2 == -815927391 ) && field.equals("keyDown") )) || ( (( ( __temp_hash2 == 101944666 ) && field.equals("keyUp") )) || ( (( ( __temp_hash2 == -1422950858 ) && field.equals("action") )) || ( (( ( __temp_hash2 == -2056434772 ) && field.equals("gotFocus") )) || ( (( ( __temp_hash2 == 619607060 ) && field.equals("lostFocus") )) || ( (( ( __temp_hash2 == -1426705793 ) && field.equals("isFocusTraversable") )) || ( (( ( __temp_hash2 == -1487536088 ) && field.equals("isFocusable") )) || ( (( ( __temp_hash2 == -1126567952 ) && field.equals("setFocusable") )) || ( (( ( __temp_hash2 == -100025915 ) && field.equals("setFocusTraversalKeysEnabled") )) || ( (( ( __temp_hash2 == -1338154671 ) && field.equals("getFocusTraversalKeysEnabled") )) || ( (( ( __temp_hash2 == 1280029577 ) && field.equals("requestFocus") )) || ( (( ( __temp_hash2 == -132373474 ) && field.equals("requestFocusInWindow") )) || ( (( ( __temp_hash2 == -2037192787 ) && field.equals("transferFocus") )) || ( (( ( __temp_hash2 == 1193982373 ) && field.equals("nextFocus") )) || ( (( ( __temp_hash2 == 1229986480 ) && field.equals("transferFocusBackward") )) || ( (( ( __temp_hash2 == 122660510 ) && field.equals("transferFocusUpCycle") )) || ( (( ( __temp_hash2 == 117596766 ) && field.equals("hasFocus") )) || ( (( ( __temp_hash2 == 1115025797 ) && field.equals("isFocusOwner") )) || ( (( ( __temp_hash2 == -1776922004 ) && field.equals("toString") )) || ( (( ( __temp_hash2 == -1645115555 ) && field.equals("removePropertyChangeListener") )) || ( (( ( __temp_hash2 == 1053245860 ) && field.equals("getPropertyChangeListeners") )) || ( (( ( __temp_hash2 == -2036853317 ) && field.equals("firePropertyChange") )) || ( (( ( __temp_hash2 == 1920162837 ) && field.equals("setComponentOrientation") )) || ( (( ( __temp_hash2 == -132109047 ) && field.equals("getComponentOrientation") )) || ( (( ( __temp_hash2 == 1052288776 ) && field.equals("getComponentCount") )) || ( (( ( __temp_hash2 == -754783867 ) && field.equals("countComponents") )) || ( (( ( __temp_hash2 == -1409511865 ) && field.equals("getComponent") )) || ( (( ( __temp_hash2 == -745194740 ) && field.equals("getComponents") )) || ( (( ( __temp_hash2 == 512222700 ) && field.equals("getInsets") )) || ( (( ( __temp_hash2 == -1183792394 ) && field.equals("insets") )) || ( (( ( __temp_hash2 == -189934193 ) && field.equals("setComponentZOrder") )) || ( (( ( __temp_hash2 == -1109967845 ) && field.equals("getComponentZOrder") )) || ( (( ( __temp_hash2 == 96417 ) && field.equals("add") )) || ( (( ( __temp_hash2 == 1282345597 ) && field.equals("removeAll") )) || ( (( ( __temp_hash2 == 586292768 ) && field.equals("getLayout") )) || ( (( ( __temp_hash2 == 185147285 ) && field.equals("doLayout") )) || ( (( ( __temp_hash2 == -1109722326 ) && field.equals("layout") )) || ( (( ( __temp_hash2 == -1831849669 ) && field.equals("invalidate") )) || ( (( ( __temp_hash2 == -1421272810 ) && field.equals("validate") )) || ( (( ( __temp_hash2 == 1081247188 ) && field.equals("validateTree") )) || ( (( ( __temp_hash2 == 1984576465 ) && field.equals("setFont") )) || ( (( ( __temp_hash2 == -1726352276 ) && field.equals("getPreferredSize") )) || ( (( ( __temp_hash2 == -608552926 ) && field.equals("preferredSize") )) || ( (( ( __temp_hash2 == 367948793 ) && field.equals("getMinimumSize") )) || ( (( ( __temp_hash2 == 1008217391 ) && field.equals("minimumSize") )) || ( (( ( __temp_hash2 == 1045381387 ) && field.equals("getMaximumSize") )) || ( (( ( __temp_hash2 == -1328196917 ) && field.equals("getAlignmentX") )) || ( (( ( __temp_hash2 == -1328196916 ) && field.equals("getAlignmentY") )) || ( (( ( __temp_hash2 == 106934957 ) && field.equals("print") )) || ( (( ( __temp_hash2 == -622724588 ) && field.equals("paintComponents") )) || ( (( ( __temp_hash2 == -627286621 ) && field.equals("printComponents") )) || ( (( ( __temp_hash2 == 11100596 ) && field.equals("addContainerListener") )) || ( (( ( __temp_hash2 == 1611220017 ) && field.equals("removeContainerListener") )) || ( (( ( __temp_hash2 == 576751796 ) && field.equals("getContainerListeners") )) || ( (( ( __temp_hash2 == 1430084328 ) && field.equals("processContainerEvent") )) || ( (( ( __temp_hash2 == 634939509 ) && field.equals("deliverEvent") )) || ( (( ( __temp_hash2 == -1097461934 ) && field.equals("locate") )) || ( (( ( __temp_hash2 == -1626201894 ) && field.equals("getComponentAt") )) || ( (( ( __temp_hash2 == 438337848 ) && field.equals("getMousePosition") )) || ( (( ( __temp_hash2 == 398126743 ) && field.equals("findComponentAt") )) || ( (( ( __temp_hash2 == -1671141420 ) && field.equals("isAncestorOf") )) || ( (( ( __temp_hash2 == 3322014 ) && field.equals("list") )) || ( (( ( __temp_hash2 == -1635067428 ) && field.equals("setFocusTraversalKeys") )) || ( (( ( __temp_hash2 == -355296716 ) && field.equals("areFocusTraversalKeysSet") )) || ( (( ( __temp_hash2 == 810219290 ) && field.equals("setFocusTraversalPolicy") )) || ( (( ( __temp_hash2 == -1242052594 ) && field.equals("getFocusTraversalPolicy") )) || ( (( ( __temp_hash2 == 602541344 ) && field.equals("isFocusTraversalPolicySet") )) || ( (( ( __temp_hash2 == 626370347 ) && field.equals("setFocusTraversalPolicyProvider") )) || ( (( ( __temp_hash2 == -1708753933 ) && field.equals("isFocusTraversalPolicyProvider") )) || ( (( ( __temp_hash2 == -606755785 ) && field.equals("transferFocusDownCycle") )) || ( (( ( __temp_hash2 == -679533279 ) && field.equals("applyComponentOrientation") )) || ( (( ( __temp_hash2 == -1088003001 ) && field.equals("getIconImages") )) || ( (( ( __temp_hash2 == -313871789 ) && field.equals("setIconImages") )) || ( (( ( __temp_hash2 == 3432985 ) && field.equals("pack") )) || ( (( ( __temp_hash2 == -1403787411 ) && field.equals("setMinimumSize") )) || ( (( ( __temp_hash2 == 1984958339 ) && field.equals("setSize") )) || ( (( ( __temp_hash2 == -404603337 ) && field.equals("setLocation") )) || ( (( ( __temp_hash2 == 1097148750 ) && field.equals("reshape") )) || ( (( ( __temp_hash2 == -854558288 ) && field.equals("setVisible") )) || ( (( ( __temp_hash2 == 3529469 ) && field.equals("show") )) || ( (( ( __temp_hash2 == 3202370 ) && field.equals("hide") )) || ( (( ( __temp_hash2 == 1671767583 ) && field.equals("dispose") )) || ( (( ( __temp_hash2 == -1177766802 ) && field.equals("toFront") )) || ( (( ( __temp_hash2 == -869412350 ) && field.equals("toBack") )) || ( (( ( __temp_hash2 == -103224824 ) && field.equals("getToolkit") )) || ( (( ( __temp_hash2 == 464294679 ) && field.equals("getWarningString") )) || ( (( ( __temp_hash2 == 598552912 ) && field.equals("getLocale") )) || ( (( ( __temp_hash2 == -730558213 ) && field.equals("getInputContext") )) || ( (( ( __temp_hash2 == 1961990397 ) && field.equals("getOwner") )) || ( (( ( __temp_hash2 == -1418426732 ) && field.equals("getOwnedWindows") )) || ( (( ( __temp_hash2 == 880460925 ) && field.equals("setModalExclusionType") )) || ( (( ( __temp_hash2 == -1655750031 ) && field.equals("getModalExclusionType") )) || ( (( ( __temp_hash2 == 9710533 ) && field.equals("addWindowListener") )) || ( (( ( __temp_hash2 == 1586767860 ) && field.equals("addWindowStateListener") )) || ( (( ( __temp_hash2 == 1430618427 ) && field.equals("addWindowFocusListener") )) || ( (( ( __temp_hash2 == -1671257496 ) && field.equals("removeWindowListener") )) || ( (( ( __temp_hash2 == 1703239473 ) && field.equals("removeWindowStateListener") )) || ( (( ( __temp_hash2 == 1547090040 ) && field.equals("removeWindowFocusListener") )) || ( (( ( __temp_hash2 == 388257273 ) && field.equals("getWindowListeners") )) || ( (( ( __temp_hash2 == 1621709005 ) && field.equals("getWindowFocusListeners") )) || ( (( ( __temp_hash2 == -2127593164 ) && field.equals("getWindowStateListeners") )) || ( (( ( __temp_hash2 == -1228323959 ) && field.equals("getListeners") )) || ( (( ( __temp_hash2 == 1969426795 ) && field.equals("processEvent") )) || ( (( ( __temp_hash2 == -1796627135 ) && field.equals("processWindowFocusEvent") )) || ( (( ( __temp_hash2 == -982638296 ) && field.equals("processWindowStateEvent") )) || ( (( ( __temp_hash2 == -73620379 ) && field.equals("setAlwaysOnTop") )) || ( (( ( __temp_hash2 == -254833007 ) && field.equals("isAlwaysOnTopSupported") )) || ( (( ( __temp_hash2 == 928351901 ) && field.equals("isAlwaysOnTop") )) || ( (( ( __temp_hash2 == -1353995087 ) && field.equals("getFocusOwner") )) || ( (( ( __temp_hash2 == 2041116559 ) && field.equals("getMostRecentFocusOwner") )) || ( (( ( __temp_hash2 == -748916528 ) && field.equals("isActive") )) || ( (( ( __temp_hash2 == -1270820115 ) && field.equals("isFocused") )) || ( (( ( __temp_hash2 == 123688912 ) && field.equals("getFocusTraversalKeys") )) || ( (( ( __temp_hash2 == -44786190 ) && field.equals("setFocusCycleRoot") )) || ( (( ( __temp_hash2 == -311299910 ) && field.equals("isFocusCycleRoot") )) || ( (( ( __temp_hash2 == 564387289 ) && field.equals("getFocusCycleRootAncestor") )) || ( (( ( __temp_hash2 == 759171640 ) && field.equals("isFocusableWindow") )) || ( (( ( __temp_hash2 == 1543774565 ) && field.equals("getFocusableWindowState") )) || ( (( ( __temp_hash2 == -698920847 ) && field.equals("setFocusableWindowState") )) || ( (( ( __temp_hash2 == -288894118 ) && field.equals("setAutoRequestFocus") )) || ( (( ( __temp_hash2 == 1289458722 ) && field.equals("isAutoRequestFocus") )) || ( (( ( __temp_hash2 == -1117363270 ) && field.equals("addPropertyChangeListener") )) || ( (( ( __temp_hash2 == 319849826 ) && field.equals("isValidateRoot") )) || ( (( ( __temp_hash2 == 1979010522 ) && field.equals("postEvent") )) || ( (( ( __temp_hash2 == 1487521595 ) && field.equals("isShowing") )) || ( (( ( __temp_hash2 == 2128401726 ) && field.equals("applyResourceBundle") )) || ( (( ( __temp_hash2 == 1985003196 ) && field.equals("setType") )) || ( (( ( __temp_hash2 == -75106384 ) && field.equals("getType") )) || ( (( ( __temp_hash2 == -1098808322 ) && field.equals("setLocationRelativeTo") )) || ( (( ( __temp_hash2 == 1742626799 ) && field.equals("createBufferStrategy") )) || ( (( ( __temp_hash2 == -1591400247 ) && field.equals("getBufferStrategy") )) || ( (( ( __temp_hash2 == -659647615 ) && field.equals("setLocationByPlatform") )) || ( (( ( __temp_hash2 == 13976137 ) && field.equals("isLocationByPlatform") )) || ( (( ( __temp_hash2 == 98192823 ) && field.equals("setBounds") )) || ( (( ( __temp_hash2 == -230345771 ) && field.equals("getOpacity") )) || ( (( ( __temp_hash2 == 1965225451 ) && field.equals("getShape") )) || ( (( ( __temp_hash2 == -1629942492 ) && field.equals("getBackground") )) || ( (( ( __temp_hash2 == -336661013 ) && field.equals("isOpaque") )) || ( (( ( __temp_hash2 == 106428510 ) && field.equals("paint") )) || ( (( ( __temp_hash2 == -146849974 ) && field.equals("addNotify") )) || ( (( ( __temp_hash2 == 1966196898 ) && field.equals("getTitle") )) || ( (( ( __temp_hash2 == 1405084438 ) && field.equals("setTitle") )) || ( (( ( __temp_hash2 == -1420570196 ) && field.equals("getIconImage") )) || ( (( ( __temp_hash2 == 1987197438 ) && field.equals("getMenuBar") )) || ( (( ( __temp_hash2 == -370964622 ) && field.equals("setMenuBar") )) || ( (( ( __temp_hash2 == -972315487 ) && field.equals("isResizable") )) || ( (( ( __temp_hash2 == -611347351 ) && field.equals("setResizable") )) || ( (( ( __temp_hash2 == 1404470607 ) && field.equals("setState") )) || ( (( ( __temp_hash2 == -1251547754 ) && field.equals("setExtendedState") )) || ( (( ( __temp_hash2 == 1965583067 ) && field.equals("getState") )) || ( (( ( __temp_hash2 == 579895074 ) && field.equals("getExtendedState") )) || ( (( ( __temp_hash2 == 1154159403 ) && field.equals("setMaximizedBounds") )) || ( (( ( __temp_hash2 == 234125751 ) && field.equals("getMaximizedBounds") )) || ( (( ( __temp_hash2 == -1815527748 ) && field.equals("setUndecorated") )) || ( (( ( __temp_hash2 == -813555468 ) && field.equals("isUndecorated") )) || ( (( ( __temp_hash2 == 1706459465 ) && field.equals("setOpacity") )) || ( (( ( __temp_hash2 == 1404112991 ) && field.equals("setShape") )) || ( (( ( __temp_hash2 == -855811280 ) && field.equals("setBackground") )) || ( (( ( __temp_hash2 == -1001125651 ) && field.equals("removeNotify") )) || ( (( ( __temp_hash2 == 132278872 ) && field.equals("setCursor") )) || ( (( ( __temp_hash2 == -210160730 ) && field.equals("getCursorType") )) || ( (( ( __temp_hash2 == 544801821 ) && field.equals("frameInit") )) || ( (( ( __temp_hash2 == 755589254 ) && field.equals("createRootPane") )) || ( (( ( __temp_hash2 == 64494235 ) && field.equals("processWindowEvent") )) || ( (( ( __temp_hash2 == -2034896978 ) && field.equals("setDefaultCloseOperation") )) || ( (( ( __temp_hash2 == -1230815942 ) && field.equals("getDefaultCloseOperation") )) || ( (( ( __temp_hash2 == -1691618275 ) && field.equals("setTransferHandler") )) || ( (( ( __temp_hash2 == 1683315369 ) && field.equals("getTransferHandler") )) || ( (( ( __temp_hash2 == -838846263 ) && field.equals("update") )) || ( (( ( __temp_hash2 == 363645164 ) && field.equals("setJMenuBar") )) || ( (( ( __temp_hash2 == 452224992 ) && field.equals("getJMenuBar") )) || ( (( ( __temp_hash2 == -1543323981 ) && field.equals("isRootPaneCheckingEnabled") )) || ( (( ( __temp_hash2 == 1675849851 ) && field.equals("setRootPaneCheckingEnabled") )) || ( (( ( __temp_hash2 == -1148905887 ) && field.equals("addImpl") )) || ( (( ( __temp_hash2 == -934610812 ) && field.equals("remove") )) || ( (( ( __temp_hash2 == 371675692 ) && field.equals("setLayout") )) || ( (( ( __temp_hash2 == 1910920416 ) && field.equals("getRootPane") )) || ( (( ( __temp_hash2 == 1822340588 ) && field.equals("setRootPane") )) || ( (( ( __temp_hash2 == 128422432 ) && field.equals("setIconImage") )) || ( (( ( __temp_hash2 == -1029542325 ) && field.equals("getContentPane") )) || ( (( ( __temp_hash2 == 1493688767 ) && field.equals("setContentPane") )) || ( (( ( __temp_hash2 == -1965320190 ) && field.equals("getLayeredPane") )) || ( (( ( __temp_hash2 == 557910902 ) && field.equals("setLayeredPane") )) || ( (( ( __temp_hash2 == 1340682830 ) && field.equals("getGlassPane") )) || ( (( ( __temp_hash2 == -1405291838 ) && field.equals("setGlassPane") )) || ( (( ( __temp_hash2 == -2116360191 ) && field.equals("getGraphics") )) || ( (( ( __temp_hash2 == 1094177291 ) && field.equals("repaint") )) || ( (( ( __temp_hash2 == 820971262 ) && field.equals("paramString") )) || field.equals("getAccessibleContext") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return haxe.lang.Runtime.slowCallField(this, field, dynargs); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 1647473597: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mousePressed")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mousePressed(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 56659139: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyPressed")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.keyPressed(((java.awt.event.KeyEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -416699091: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseDragged")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseDragged(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1813574468: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyReleased")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.keyReleased(((java.awt.event.KeyEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 436621122: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseExited")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseExited(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 491121995: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("keyTyped")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.keyTyped(((java.awt.event.KeyEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 991047950: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseMoved")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseMoved(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 257033474: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseReleased")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseReleased(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case 373785874: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseEntered")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseEntered(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + case -1468704830: + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (field.equals("mouseClicked")) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + __temp_executeDef1 = false; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + this.mouseClicked(((java.awt.event.MouseEvent) (dynargs.__get(0)) )); + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + break; + } + + + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + if (__temp_executeDef1) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return ((haxe.lang.Function) (this.__hx_getField(field, true, false, false)) ).__hx_invokeDynamic(dynargs); + } + + } + + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + return null; + } + + + public void __hx_getFields(haxe.root.Array baseArr) + { + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + baseArr.push("accessibleContext"); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + baseArr.push("rootPaneCheckingEnabled"); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + baseArr.push("rootPane"); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/BasicSwing.hx" + baseArr.push("surface"); + } + + +} + + diff --git a/src/main/java/wings/javaSwing/SimpleDrawingContext.java b/src/main/java/wings/javaSwing/SimpleDrawingContext.java new file mode 100644 index 0000000..695305d --- /dev/null +++ b/src/main/java/wings/javaSwing/SimpleDrawingContext.java @@ -0,0 +1,741 @@ +// Generated by Haxe 3.4.2 +package wings.javaSwing; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class SimpleDrawingContext extends haxe.lang.HxObject implements wings.core.ISimpleDrawingContext +{ + public SimpleDrawingContext(haxe.lang.EmptyObject empty) + { + } + + + public SimpleDrawingContext(wings.javaSwing.BasicSwing graphics) + { + //line 20 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + wings.javaSwing.SimpleDrawingContext.__hx_ctor_wings_javaSwing_SimpleDrawingContext(this, graphics); + } + + + public static void __hx_ctor_wings_javaSwing_SimpleDrawingContext(wings.javaSwing.SimpleDrawingContext __hx_this, wings.javaSwing.BasicSwing graphics) + { + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __hx_this.bounds = graphics.surface.getBounds(); + //line 22 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __hx_this.path = new java.awt.geom.GeneralPath(); + } + + + public java.awt.Graphics2D graphics; + + public java.awt.Rectangle bounds; + + public java.awt.geom.GeneralPath path; + + public void clear() + { + //line 26 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.clearRect(((int) (this.bounds.x) ), ((int) (this.bounds.y) ), ((int) (this.bounds.width) ), ((int) (this.bounds.height) )); + } + + + public void lineStyle(double thickness, int color, java.lang.Object alpha) + { + //line 30 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + java.lang.Object __temp_alpha30 = ( (haxe.lang.Runtime.eq(alpha, null)) ? (((java.lang.Object) (1) )) : (alpha) ); + //line 31 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int a = ((int) (( ((double) (haxe.lang.Runtime.toDouble(__temp_alpha30)) ) * ((double) (255) ) )) ); + //line 32 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + java.awt.Color color1 = new java.awt.Color(( color | ( a << 24 ) ), true); + //line 33 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.setColor(((java.awt.Color) (color1) )); + //line 34 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.setStroke(((java.awt.Stroke) (new java.awt.BasicStroke(((float) (thickness) ))) )); + } + + + public void beginFill(int color, java.lang.Object alpha) + { + //line 37 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + java.lang.Object __temp_alpha31 = ( (haxe.lang.Runtime.eq(alpha, null)) ? (((java.lang.Object) (1) )) : (alpha) ); + //line 38 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int a = ((int) (( ((double) (haxe.lang.Runtime.toDouble(__temp_alpha31)) ) * ((double) (255) ) )) ); + //line 39 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + java.awt.Color color1 = new java.awt.Color(( color | ( a << 24 ) ), true); + //line 40 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.setPaint(((java.awt.Paint) (color1) )); + } + + + public void endFill() + { + } + + + public void moveTo(double x, double y) + { + //line 48 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.reset(); + //line 49 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.moveTo(((double) (x) ), ((double) (y) )); + } + + + public void lineTo(double x, double y) + { + //line 53 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.lineTo(((double) (x) ), ((double) (y) )); + //line 54 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.draw(((java.awt.Shape) (this.path) )); + } + + + public void quadTo(double cx, double cy, double ax, double ay) + { + //line 58 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.quadTo(((double) (cx) ), ((double) (cy) ), ((double) (ax) ), ((double) (ay) )); + //line 59 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.draw(((java.awt.Shape) (this.path) )); + } + + + public void drawCircle(double cx, double cy, double radius) + { + //line 63 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int r = ((int) (( radius * 2 )) ); + //line 64 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int x = ((int) (( cx - radius )) ); + //line 65 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int y = ((int) (( cy - radius )) ); + //line 66 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.fillOval(((int) (x) ), ((int) (y) ), ((int) (r) ), ((int) (r) )); + //line 67 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.drawOval(((int) (x) ), ((int) (y) ), ((int) (r) ), ((int) (r) )); + } + + + public void drawRect(double x, double y, double width, double height) + { + //line 71 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.fillRect(((int) (((int) (x) )) ), ((int) (((int) (y) )) ), ((int) (((int) (width) )) ), ((int) (((int) (height) )) )); + //line 72 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.drawRect(((int) (((int) (x) )) ), ((int) (((int) (y) )) ), ((int) (((int) (width) )) ), ((int) (((int) (height) )) )); + } + + + public void drawEquilaterialTri(double x, double y, double radius, double direction) + { + //line 76 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + double third = ( ( java.lang.Math.PI * 2 ) / 3 ); + //line 77 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + haxe.root.Array points = new haxe.root.Array(); + //line 78 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + double x1 = 0.0; + //line 79 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + double y1 = 0.0; + //line 80 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + { + //line 80 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int _g = 0; + //line 80 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + while (( _g < 3 )) + { + //line 80 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int i = _g++; + //line 81 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + x1 = ( x + ( radius * java.lang.Math.cos(( direction + ( i * third ) )) ) ); + //line 82 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + y1 = ( y + ( radius * java.lang.Math.sin(( direction + ( i * third ) )) ) ); + //line 83 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + points.push(x1); + //line 84 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + points.push(y1); + } + + } + + //line 86 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.drawTri(points); + } + + + public void drawTri(haxe.root.Array points) + { + //line 90 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + int i = 0; + //line 91 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + while (( i < points.length )) + { + //line 92 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (( i == 0 )) + { + //line 93 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.moveTo(((double) (haxe.lang.Runtime.toDouble(points.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(points.__get(( i + 1 )))) )); + } + else + { + //line 95 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path.lineTo(((double) (haxe.lang.Runtime.toDouble(points.__get(i))) ), ((double) (haxe.lang.Runtime.toDouble(points.__get(( i + 1 )))) )); + } + + //line 97 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + i += 2; + } + + //line 99 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics.draw(((java.awt.Shape) (this.path) )); + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + switch (field.hashCode()) + { + case 3433509: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("path")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.path = ((java.awt.geom.GeneralPath) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 100706955: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("graphics")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.graphics = ((java.awt.Graphics2D) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1383205195: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("bounds")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.bounds = ((java.awt.Rectangle) (value) ); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return value; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + switch (field.hashCode()) + { + case 1912989127: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawTri")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawTri")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 100706955: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("graphics")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return this.graphics; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 836591135: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawEquilaterialTri")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawEquilaterialTri")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1383205195: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("bounds")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return this.bounds; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -826951352: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawRect")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawRect")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 3433509: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("path")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return this.path; + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -556608716: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "drawCircle")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 94746189: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("clear")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "clear")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -948832734: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("quadTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "quadTo")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1807133155: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("lineStyle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lineStyle")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1102672497: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("lineTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lineTo")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1073257012: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("beginFill")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "beginFill")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1068263892: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("moveTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "moveTo")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1607660290: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("endFill")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "endFill")) ); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + boolean __temp_executeDef1 = true; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + switch (field.hashCode()) + { + case 1912989127: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawTri")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.drawTri(((haxe.root.Array) (dynargs.__get(0)) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 94746189: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("clear")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.clear(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case 836591135: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawEquilaterialTri")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.drawEquilaterialTri(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1807133155: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("lineStyle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.lineStyle(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((int) (haxe.lang.Runtime.toInt(dynargs.__get(1))) ), dynargs.__get(2)); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -826951352: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawRect")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.drawRect(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1073257012: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("beginFill")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.beginFill(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) ), dynargs.__get(1)); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -556608716: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("drawCircle")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.drawCircle(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1607660290: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("endFill")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.endFill(); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -948832734: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("quadTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.quadTo(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(2))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(3))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1068263892: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("moveTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.moveTo(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + case -1102672497: + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (field.equals("lineTo")) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + __temp_executeDef1 = false; + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + this.lineTo(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(dynargs.__get(1))) )); + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + break; + } + + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + if (__temp_executeDef1) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return super.__hx_invokeField(field, dynargs); + } + + } + + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + return null; + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + baseArr.push("path"); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + baseArr.push("bounds"); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + baseArr.push("graphics"); + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SimpleDrawingContext.hx" + super.__hx_getFields(baseArr); + } + + +} + + diff --git a/src/main/java/wings/javaSwing/Surface.java b/src/main/java/wings/javaSwing/Surface.java new file mode 100644 index 0000000..f294340 --- /dev/null +++ b/src/main/java/wings/javaSwing/Surface.java @@ -0,0 +1,5364 @@ +// Generated by Haxe 3.4.2 +package wings.javaSwing; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class Surface extends javax.swing.JPanel implements haxe.lang.IHxObject +{ + public Surface(haxe.lang.EmptyObject empty) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + super(); + } + + + public Surface() + { + //line 12 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + super(((boolean) (true) )); + } + + + public java.awt.Graphics2D g; + + public haxe.lang.Function paintFunction; + + @Override public void paintComponent(java.awt.Graphics g) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + super.paintComponent(((java.awt.Graphics) (g) )); + //line 16 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + java.awt.Graphics2D g2D = ((java.awt.Graphics2D) (g) ); + //line 17 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + java.lang.Class rHint = java.awt.RenderingHints.class; + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + g2D.setRenderingHint(((java.awt.RenderingHints.Key) (java.awt.RenderingHints.KEY_ANTIALIASING) ), ((java.lang.Object) (java.awt.RenderingHints.VALUE_ANTIALIAS_ON) )); + //line 19 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + g2D.setRenderingHint(((java.awt.RenderingHints.Key) (java.awt.RenderingHints.KEY_RENDERING) ), ((java.lang.Object) (java.awt.RenderingHints.VALUE_RENDER_QUALITY) )); + //line 20 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (( this.paintFunction != null )) + { + //line 20 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.paintFunction.__hx_invoke1_o(0.0, g2D); + } + + //line 21 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + g2D.dispose(); + } + + + public boolean __hx_deleteField(java.lang.String field) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return false; + } + + + public java.lang.Object __hx_lookupField(java.lang.String field, boolean throwErrors, boolean isCheck) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (isCheck) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return haxe.lang.Runtime.undefined; + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (throwErrors) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw haxe.lang.HaxeException.wrap("Field not found."); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return null; + } + + } + + } + + + public double __hx_lookupField_f(java.lang.String field, boolean throwErrors) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (throwErrors) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw haxe.lang.HaxeException.wrap("Field not found or incompatible field type."); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return 0.0; + } + + } + + + public java.lang.Object __hx_lookupSetField(java.lang.String field, java.lang.Object value) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing."); + } + + + public double __hx_lookupSetField_f(java.lang.String field, double value) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw haxe.lang.HaxeException.wrap("Cannot access field for writing or incompatible type."); + } + + + public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.__hx_lookupSetField_f(field, value); + } + + } + + } + + + public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + switch (field.hashCode()) + { + case -61228775: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("accessibleContext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.accessibleContext = ((javax.accessibility.AccessibleContext) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 103: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("g")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.g = ((java.awt.Graphics2D) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1505267854: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("listenerList")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.listenerList = ((javax.swing.event.EventListenerList) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -768961962: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintFunction")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.paintFunction = ((haxe.lang.Function) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3732: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("ui")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + this.ui = ((javax.swing.plaf.ComponentUI) (value) ); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return value; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.__hx_lookupSetField(field, value); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw null; + } + + } + + } + + + public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + switch (field.hashCode()) + { + case -75308287: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getName")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getName")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 103: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("g")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.g; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1984801293: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setName")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setName")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -768961962: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintFunction")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.paintFunction; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 700591008: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getParent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getParent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 672648767: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintComponent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintComponent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -75245096: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getPeer")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPeer")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1334722659: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getAccessibleContext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAccessibleContext")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1406034786: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setDropTarget")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDropTarget")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 820971262: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paramString")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paramString")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 631903574: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getDropTarget")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getDropTarget")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -133970743: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getUIClassID")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getUIClassID")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1406043765: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getGraphicsConfiguration")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getGraphicsConfiguration")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 109327990: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setUI")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setUI")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -831132833: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getTreeLock")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTreeLock")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 98245738: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getUI")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getUI")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -103224824: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getToolkit")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getToolkit")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1322595613: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("updateUI")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateUI")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2073378034: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isValid")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isValid")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1910920416: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getRootPane")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getRootPane")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 304683410: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isDisplayable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isDisplayable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 116955034: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isDoubleBuffered")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isDoubleBuffered")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -113035288: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isVisible")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isVisible")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 383468754: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setDoubleBuffered")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDoubleBuffered")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1487521595: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isShowing")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isShowing")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1356268992: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintImmediately")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintImmediately")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2105594551: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -209888556: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isPaintingOrigin")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isPaintingOrigin")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -174300757: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("enableInputMethods")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enableInputMethods")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1444703808: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isOptimizedDrawingEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isOptimizedDrawingEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3529469: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("show")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "show")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 319849826: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isValidateRoot")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isValidateRoot")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3202370: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("hide")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hide")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -218282935: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("revalidate")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "revalidate")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1686708537: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getForeground")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getForeground")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1094177291: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("repaint")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "repaint")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 902956821: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isForegroundSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isForegroundSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1001125651: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeNotify")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeNotify")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1629942492: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getBackground")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBackground")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -146849974: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addNotify")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addNotify")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 274796362: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isBackgroundSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isBackgroundSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1228323959: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -75533115: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFont")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFont")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -727692042: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getAncestorListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAncestorListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1260721911: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFontSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFontSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1567628213: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeAncestorListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeAncestorListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 598552912: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getLocale")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocale")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1065055640: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addAncestorListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addAncestorListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 383935836: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setLocale")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocale")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -701878888: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getTopLevelAncestor")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTopLevelAncestor")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 975157628: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getColorModel")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getColorModel")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -637180459: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getVetoableChangeListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getVetoableChangeListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 204504438: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getLocationOnScreen")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocationOnScreen")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1422550772: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeVetoableChangeListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeVetoableChangeListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1901043637: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("location")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "location")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -894798487: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addVetoableChangeListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addVetoableChangeListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3357649: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("move")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "move")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -800831894: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("fireVetoableChange")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "fireVetoableChange")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -404603337: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setLocation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLocation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2036853317: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("firePropertyChange")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "firePropertyChange")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3530753: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("size")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "size")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -509772736: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getVisibleRect")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getVisibleRect")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1984958339: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 456055999: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("computeVisibleRect")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "computeVisibleRect")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -934437708: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("resize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "resize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 470702883: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setOpaque")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setOpaque")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1383205195: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("bounds")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "bounds")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -336661013: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isOpaque")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isOpaque")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 98192823: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setBounds")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setBounds")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 474985501: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getHeight")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHeight")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1387686788: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isLightweight")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isLightweight")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1968952336: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getWidth")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getWidth")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1787544022: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isPreferredSizeSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isPreferredSizeSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3169219: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getY")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -400630659: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isMinimumSizeSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isMinimumSizeSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3169218: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getX")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1057546709: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isMaximumSizeSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isMaximumSizeSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -316023509: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getLocation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLocation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 132278872: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setCursor")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setCursor")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -75151241: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 346895948: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getCursor")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getCursor")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 312809899: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getBounds")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBounds")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1873980194: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isCursorSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isCursorSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1097148750: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("reshape")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reshape")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 925942883: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintAll")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintAll")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1635067428: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusTraversalKeys")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalKeys")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2066473468: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("imageUpdate")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "imageUpdate")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1425362001: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("putClientProperty")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "putClientProperty")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -514107969: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("createImage")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createImage")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1141635146: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getClientProperty")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getClientProperty")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -746920573: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("createVolatileImage")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createVolatileImage")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1671308008: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("disable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "disable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2048673644: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("prepareImage")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prepareImage")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1298848381: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("enable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -538855117: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("checkImage")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "checkImage")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2065058606: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processMouseMotionEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseMotionEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -917848425: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setIgnoreRepaint")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setIgnoreRepaint")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 786391236: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processMouseEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 913594403: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getIgnoreRepaint")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getIgnoreRepaint")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1683315369: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getTransferHandler")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getTransferHandler")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1183789060: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("inside")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "inside")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1691618275: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setTransferHandler")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setTransferHandler")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2140931520: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("dispatchEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispatchEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1769313919: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getAutoscrolls")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAutoscrolls")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1979010522: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("postEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "postEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 753917173: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setAutoscrolls")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setAutoscrolls")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -737348048: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addComponentListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addComponentListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 954363430: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("scrollRectToVisible")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "scrollRectToVisible")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 862771373: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeComponentListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeComponentListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1106410311: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("createToolTip")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "createToolTip")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1150319688: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1988967221: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getPopupLocation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPopupLocation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2091996533: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addFocusListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addFocusListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1795253630: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getToolTipLocation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getToolTipLocation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2007673976: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeFocusListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeFocusListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1862577786: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getToolTipText")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getToolTipText")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1237998909: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFocusListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 90841582: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setToolTipText")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setToolTipText")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 675525480: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addHierarchyListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addHierarchyListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 69241589: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processKeyBinding")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processKeyBinding")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2019322395: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeHierarchyListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeHierarchyListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2139532042: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processKeyEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processKeyEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -300913280: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getHierarchyListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHierarchyListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1312303337: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processComponentKeyEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processComponentKeyEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 875541053: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addHierarchyBoundsListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addHierarchyBoundsListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1984576465: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFont")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFont")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1695089402: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeHierarchyBoundsListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeHierarchyBoundsListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -855811280: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setBackground")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setBackground")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -292872821: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getHierarchyBoundsListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getHierarchyBoundsListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1834127547: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setForeground")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setForeground")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 705046738: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addKeyListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addKeyListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1364071551: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2108484879: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeKeyListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeKeyListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -854558288: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setVisible")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setVisible")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -68050666: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getKeyListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getKeyListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1253361850: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("requestDefaultFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "requestDefaultFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2091349336: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addMouseListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2053764159: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getBaselineResizeBehavior")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBaselineResizeBehavior")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2119295403: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeMouseListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 357114811: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getBaseline")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBaseline")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2072701968: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMouseListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 188673168: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getActionMap")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getActionMap")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -83462098: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addMouseMotionListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseMotionListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1737665796: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setActionMap")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setActionMap")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 33009515: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeMouseMotionListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseMotionListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1746368856: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInputMap")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputMap")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1929852986: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMouseMotionListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseMotionListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1834948684: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setInputMap")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setInputMap")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1910206219: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addMouseWheelListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addMouseWheelListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1777533497: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("resetKeyboardActions")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "resetKeyboardActions")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -25699282: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeMouseWheelListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeMouseWheelListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1337788934: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getActionForKeyStroke")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getActionForKeyStroke")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2003512819: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMouseWheelListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMouseWheelListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2016664141: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getConditionForKeyStroke")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getConditionForKeyStroke")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1026988866: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addInputMethodListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addInputMethodListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -760205708: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getRegisteredKeyStrokes")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getRegisteredKeyStrokes")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -910517253: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeInputMethodListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeInputMethodListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1167238055: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("unregisterKeyboardAction")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "unregisterKeyboardAction")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1549673046: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInputMethodListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputMethodListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1402521984: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("registerKeyboardAction")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "registerKeyboardAction")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 150256377: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInputMethodRequests")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputMethodRequests")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 852008758: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getDebugGraphicsOptions")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getDebugGraphicsOptions")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -730558213: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInputContext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputContext")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1390686654: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setDebugGraphicsOptions")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setDebugGraphicsOptions")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2086501252: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("enableEvents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "enableEvents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2116360191: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getGraphics")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getGraphics")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1240522207: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("disableEvents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "disableEvents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1695427850: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInputVerifier")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInputVerifier")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 23978912: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("coalesceEvents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "coalesceEvents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -136014978: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setInputVerifier")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setInputVerifier")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1944745964: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processComponentEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processComponentEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -554065705: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setAlignmentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setAlignmentX")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1262981007: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processFocusEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processFocusEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1328196917: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getAlignmentX")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAlignmentX")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1880947691: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processMouseWheelEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processMouseWheelEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -554065704: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setAlignmentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setAlignmentY")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2117937310: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processInputMethodEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processInputMethodEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1328196916: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getAlignmentY")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getAlignmentY")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 584549812: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processHierarchyEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processHierarchyEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 512222700: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInsets")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInsets")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2051715969: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processHierarchyBoundsEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processHierarchyBoundsEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 312710946: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getBorder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getBorder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1469558098: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("handleEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "handleEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 98093870: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setBorder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setBorder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 585890535: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseDown")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseDown")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -567445985: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("contains")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "contains")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 585892729: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseDrag")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseDrag")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 367948793: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMinimumSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMinimumSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1243066912: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseUp")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseUp")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1403787411: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setMinimumSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMinimumSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 586158614: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseMove")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseMove")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1045381387: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMaximumSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMaximumSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 983628083: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseEnter")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseEnter")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -726354817: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setMaximumSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setMaximumSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 585928547: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("mouseExit")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "mouseExit")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1726352276: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getPreferredSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPreferredSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -815927391: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("keyDown")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyDown")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 737172192: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setPreferredSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setPreferredSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 101944666: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("keyUp")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "keyUp")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 2087644222: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFontMetrics")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFontMetrics")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1422950858: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("action")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "action")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1816942124: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getVerifyInputWhenFocusTarget")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getVerifyInputWhenFocusTarget")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2056434772: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("gotFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "gotFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2089656352: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setVerifyInputWhenFocusTarget")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setVerifyInputWhenFocusTarget")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 619607060: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("lostFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "lostFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1605080596: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("grabFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "grabFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1426705793: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusTraversable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -132373474: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("requestFocusInWindow")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "requestFocusInWindow")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1487536088: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1280029577: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("requestFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "requestFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1126567952: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusable")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusable")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -375268882: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isRequestFocusEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isRequestFocusEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -100025915: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusTraversalKeysEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalKeysEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 217231286: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setRequestFocusEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setRequestFocusEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1338154671: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFocusTraversalKeysEnabled")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalKeysEnabled")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 413687348: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getNextFocusableComponent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getNextFocusableComponent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 564387289: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFocusCycleRootAncestor")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusCycleRootAncestor")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1256979008: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setNextFocusableComponent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setNextFocusableComponent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -2037192787: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("transferFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 890536972: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isManagingFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isManagingFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1193982373: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("nextFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "nextFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -770686062: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isPaintingForPrint")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isPaintingForPrint")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1229986480: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("transferFocusBackward")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusBackward")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 142938588: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isPaintingTile")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isPaintingTile")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 122660510: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("transferFocusUpCycle")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusUpCycle")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -824599239: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("printBorder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printBorder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 117596766: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("hasFocus")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hasFocus")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1704032204: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("printChildren")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printChildren")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1115025797: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusOwner")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusOwner")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -20235056: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("printComponent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printComponent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1776922004: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("toString")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toString")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 106934957: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("print")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "print")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1645115555: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removePropertyChangeListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removePropertyChangeListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1166363724: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("printAll")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printAll")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1053245860: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getPropertyChangeListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getPropertyChangeListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 106428510: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paint")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paint")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1920162837: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setComponentOrientation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setComponentOrientation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -838846263: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("update")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "update")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -132109047: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentOrientation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentOrientation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1778836950: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintBorder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintBorder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1052288776: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentCount")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentCount")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -490374019: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintChildren")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintChildren")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -754783867: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("countComponents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "countComponents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 241460722: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentGraphics")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentGraphics")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1409511865: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -547981916: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentPopupMenu")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentPopupMenu")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -745194740: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1988229040: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setComponentPopupMenu")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setComponentPopupMenu")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1183792394: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("insets")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "insets")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -658829443: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getInheritsPopupMenu")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getInheritsPopupMenu")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -189934193: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setComponentZOrder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setComponentZOrder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1269752847: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setInheritsPopupMenu")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setInheritsPopupMenu")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1109967845: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentZOrder")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentZOrder")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3732: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("ui")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.ui; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 96417: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("add")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "add")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1505267854: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("listenerList")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.listenerList; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1148905887: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addImpl")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addImpl")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -61228775: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("accessibleContext")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.accessibleContext; + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -934610812: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("remove")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "remove")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1117363270: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addPropertyChangeListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addPropertyChangeListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1282345597: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeAll")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeAll")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -679533279: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("applyComponentOrientation")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "applyComponentOrientation")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 586292768: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getLayout")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getLayout")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -606755785: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("transferFocusDownCycle")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "transferFocusDownCycle")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 371675692: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setLayout")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setLayout")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1708753933: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusTraversalPolicyProvider")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversalPolicyProvider")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 185147285: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("doLayout")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "doLayout")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 626370347: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusTraversalPolicyProvider")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalPolicyProvider")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1109722326: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("layout")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "layout")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -311299910: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusCycleRoot")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusCycleRoot")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1831849669: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("invalidate")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "invalidate")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -44786190: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusCycleRoot")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusCycleRoot")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1421272810: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("validate")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "validate")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 602541344: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isFocusTraversalPolicySet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isFocusTraversalPolicySet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1081247188: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("validateTree")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "validateTree")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1242052594: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFocusTraversalPolicy")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalPolicy")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -608552926: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("preferredSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "preferredSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 810219290: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("setFocusTraversalPolicy")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "setFocusTraversalPolicy")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1008217391: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("minimumSize")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "minimumSize")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -355296716: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("areFocusTraversalKeysSet")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "areFocusTraversalKeysSet")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -622724588: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("paintComponents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "paintComponents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 123688912: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getFocusTraversalKeys")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getFocusTraversalKeys")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -627286621: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("printComponents")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "printComponents")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 3322014: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("list")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "list")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 11100596: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("addContainerListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "addContainerListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1671141420: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("isAncestorOf")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "isAncestorOf")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1611220017: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("removeContainerListener")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "removeContainerListener")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 398126743: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("findComponentAt")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "findComponentAt")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 576751796: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getContainerListeners")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getContainerListeners")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 438337848: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getMousePosition")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getMousePosition")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1969426795: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1626201894: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("getComponentAt")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "getComponentAt")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 1430084328: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("processContainerEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "processContainerEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case -1097461934: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("locate")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "locate")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + case 634939509: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (field.equals("deliverEvent")) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "deliverEvent")) ); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.__hx_lookupField(field, throwErrors, isCheck); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw null; + } + + } + + } + + + public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return this.__hx_lookupField_f(field, throwErrors); + } + + } + + } + + + public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + int __temp_hash2 = field.hashCode(); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + boolean __temp_executeDef1 = true; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + switch (__temp_hash2) + { + case -75308287: + case 1984801293: + case 700591008: + case -75245096: + case 1406034786: + case 631903574: + case 1406043765: + case -831132833: + case -103224824: + case 2073378034: + case 304683410: + case -113035288: + case 1487521595: + case 2105594551: + case -174300757: + case 3529469: + case 3202370: + case 1686708537: + case 902956821: + case -1629942492: + case 274796362: + case -75533115: + case -1260721911: + case 598552912: + case 383935836: + case 975157628: + case 204504438: + case 1901043637: + case 3357649: + case -404603337: + case 3530753: + case 1984958339: + case -934437708: + case -1383205195: + case 98192823: + case 1387686788: + case -1787544022: + case -400630659: + case -1057546709: + case 132278872: + case 346895948: + case 1873980194: + case 925942883: + case -2066473468: + case -514107969: + case -746920573: + case -2048673644: + case -538855117: + case -917848425: + case 913594403: + case -1183789060: + case -2140931520: + case 1979010522: + case -737348048: + case 862771373: + case -1150319688: + case -2091996533: + case -2007673976: + case 1237998909: + case 675525480: + case -2019322395: + case -300913280: + case 875541053: + case 1695089402: + case -292872821: + case 705046738: + case 2108484879: + case -68050666: + case 2091349336: + case -2119295403: + case 2072701968: + case -83462098: + case 33009515: + case 1929852986: + case 1910206219: + case -25699282: + case 2003512819: + case -1026988866: + case -910517253: + case -1549673046: + case 150256377: + case -730558213: + case -2086501252: + case -1240522207: + case 23978912: + case 1944745964: + case -1262981007: + case -1880947691: + case 2117937310: + case 584549812: + case -2051715969: + case 1469558098: + case 585890535: + case 585892729: + case 1243066912: + case 586158614: + case 983628083: + case 585928547: + case -815927391: + case 101944666: + case -1422950858: + case -2056434772: + case 619607060: + case -1426705793: + case -1487536088: + case -1126567952: + case -100025915: + case -1338154671: + case 564387289: + case -2037192787: + case 1193982373: + case 1229986480: + case 122660510: + case 117596766: + case 1115025797: + case -1776922004: + case -1645115555: + case 1053245860: + case 1920162837: + case -132109047: + case 1052288776: + case -754783867: + case -1409511865: + case -745194740: + case -1183792394: + case -189934193: + case -1109967845: + case 96417: + case -1148905887: + case -934610812: + case 1282345597: + case 586292768: + case 371675692: + case 185147285: + case -1109722326: + case -1831849669: + case -1421272810: + case 1081247188: + case -608552926: + case 1008217391: + case -622724588: + case -627286621: + case 11100596: + case 1611220017: + case 576751796: + case 1969426795: + case 1430084328: + case 634939509: + case -1097461934: + case -1626201894: + case 438337848: + case 398126743: + case -1671141420: + case 3322014: + case 123688912: + case -355296716: + case 810219290: + case -1242052594: + case 602541344: + case -44786190: + case -311299910: + case 626370347: + case -1708753933: + case -606755785: + case -679533279: + case -1117363270: + case -1269752847: + case -658829443: + case 1988229040: + case -547981916: + case 241460722: + case -490374019: + case -1778836950: + case -838846263: + case 106428510: + case -1166363724: + case 106934957: + case -20235056: + case 1704032204: + case -824599239: + case 142938588: + case -770686062: + case 890536972: + case 1256979008: + case 413687348: + case 217231286: + case -375268882: + case 1280029577: + case -132373474: + case -1605080596: + case -2089656352: + case -1816942124: + case 2087644222: + case 737172192: + case -1726352276: + case -726354817: + case 1045381387: + case -1403787411: + case 367948793: + case -567445985: + case 98093870: + case 312710946: + case 512222700: + case -1328196916: + case -554065704: + case -1328196917: + case -554065705: + case -136014978: + case 1695427850: + case -2116360191: + case -1390686654: + case 852008758: + case -1402521984: + case -1167238055: + case -760205708: + case -2016664141: + case -1337788934: + case -1777533497: + case -1834948684: + case -1746368856: + case 1737665796: + case 188673168: + case 357114811: + case -2053764159: + case -1253361850: + case -854558288: + case 1364071551: + case -1834127547: + case -855811280: + case 1984576465: + case 1312303337: + case 2139532042: + case 69241589: + case 90841582: + case 1862577786: + case -1795253630: + case -1988967221: + case 1106410311: + case 954363430: + case 753917173: + case -1769313919: + case -1691618275: + case 1683315369: + case 786391236: + case 2065058606: + case -1298848381: + case 1671308008: + case -1141635146: + case -1425362001: + case -1635067428: + case 1097148750: + case 312809899: + case -75151241: + case -316023509: + case 3169218: + case 3169219: + case 1968952336: + case 474985501: + case -336661013: + case 470702883: + case 456055999: + case -509772736: + case -2036853317: + case -800831894: + case -894798487: + case -1422550772: + case -637180459: + case -701878888: + case -1065055640: + case -1567628213: + case -727692042: + case -1228323959: + case -146849974: + case -1001125651: + case 1094177291: + case -218282935: + case 319849826: + case -1444703808: + case -209888556: + case 1356268992: + case 383468754: + case 116955034: + case 1910920416: + case 1322595613: + case 98245738: + case 109327990: + case -133970743: + case 820971262: + case 1334722659: + case 672648767: + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (( (( ( __temp_hash2 == -75308287 ) && field.equals("getName") )) || ( (( ( __temp_hash2 == 1984801293 ) && field.equals("setName") )) || ( (( ( __temp_hash2 == 700591008 ) && field.equals("getParent") )) || ( (( ( __temp_hash2 == -75245096 ) && field.equals("getPeer") )) || ( (( ( __temp_hash2 == 1406034786 ) && field.equals("setDropTarget") )) || ( (( ( __temp_hash2 == 631903574 ) && field.equals("getDropTarget") )) || ( (( ( __temp_hash2 == 1406043765 ) && field.equals("getGraphicsConfiguration") )) || ( (( ( __temp_hash2 == -831132833 ) && field.equals("getTreeLock") )) || ( (( ( __temp_hash2 == -103224824 ) && field.equals("getToolkit") )) || ( (( ( __temp_hash2 == 2073378034 ) && field.equals("isValid") )) || ( (( ( __temp_hash2 == 304683410 ) && field.equals("isDisplayable") )) || ( (( ( __temp_hash2 == -113035288 ) && field.equals("isVisible") )) || ( (( ( __temp_hash2 == 1487521595 ) && field.equals("isShowing") )) || ( (( ( __temp_hash2 == 2105594551 ) && field.equals("isEnabled") )) || ( (( ( __temp_hash2 == -174300757 ) && field.equals("enableInputMethods") )) || ( (( ( __temp_hash2 == 3529469 ) && field.equals("show") )) || ( (( ( __temp_hash2 == 3202370 ) && field.equals("hide") )) || ( (( ( __temp_hash2 == 1686708537 ) && field.equals("getForeground") )) || ( (( ( __temp_hash2 == 902956821 ) && field.equals("isForegroundSet") )) || ( (( ( __temp_hash2 == -1629942492 ) && field.equals("getBackground") )) || ( (( ( __temp_hash2 == 274796362 ) && field.equals("isBackgroundSet") )) || ( (( ( __temp_hash2 == -75533115 ) && field.equals("getFont") )) || ( (( ( __temp_hash2 == -1260721911 ) && field.equals("isFontSet") )) || ( (( ( __temp_hash2 == 598552912 ) && field.equals("getLocale") )) || ( (( ( __temp_hash2 == 383935836 ) && field.equals("setLocale") )) || ( (( ( __temp_hash2 == 975157628 ) && field.equals("getColorModel") )) || ( (( ( __temp_hash2 == 204504438 ) && field.equals("getLocationOnScreen") )) || ( (( ( __temp_hash2 == 1901043637 ) && field.equals("location") )) || ( (( ( __temp_hash2 == 3357649 ) && field.equals("move") )) || ( (( ( __temp_hash2 == -404603337 ) && field.equals("setLocation") )) || ( (( ( __temp_hash2 == 3530753 ) && field.equals("size") )) || ( (( ( __temp_hash2 == 1984958339 ) && field.equals("setSize") )) || ( (( ( __temp_hash2 == -934437708 ) && field.equals("resize") )) || ( (( ( __temp_hash2 == -1383205195 ) && field.equals("bounds") )) || ( (( ( __temp_hash2 == 98192823 ) && field.equals("setBounds") )) || ( (( ( __temp_hash2 == 1387686788 ) && field.equals("isLightweight") )) || ( (( ( __temp_hash2 == -1787544022 ) && field.equals("isPreferredSizeSet") )) || ( (( ( __temp_hash2 == -400630659 ) && field.equals("isMinimumSizeSet") )) || ( (( ( __temp_hash2 == -1057546709 ) && field.equals("isMaximumSizeSet") )) || ( (( ( __temp_hash2 == 132278872 ) && field.equals("setCursor") )) || ( (( ( __temp_hash2 == 346895948 ) && field.equals("getCursor") )) || ( (( ( __temp_hash2 == 1873980194 ) && field.equals("isCursorSet") )) || ( (( ( __temp_hash2 == 925942883 ) && field.equals("paintAll") )) || ( (( ( __temp_hash2 == -2066473468 ) && field.equals("imageUpdate") )) || ( (( ( __temp_hash2 == -514107969 ) && field.equals("createImage") )) || ( (( ( __temp_hash2 == -746920573 ) && field.equals("createVolatileImage") )) || ( (( ( __temp_hash2 == -2048673644 ) && field.equals("prepareImage") )) || ( (( ( __temp_hash2 == -538855117 ) && field.equals("checkImage") )) || ( (( ( __temp_hash2 == -917848425 ) && field.equals("setIgnoreRepaint") )) || ( (( ( __temp_hash2 == 913594403 ) && field.equals("getIgnoreRepaint") )) || ( (( ( __temp_hash2 == -1183789060 ) && field.equals("inside") )) || ( (( ( __temp_hash2 == -2140931520 ) && field.equals("dispatchEvent") )) || ( (( ( __temp_hash2 == 1979010522 ) && field.equals("postEvent") )) || ( (( ( __temp_hash2 == -737348048 ) && field.equals("addComponentListener") )) || ( (( ( __temp_hash2 == 862771373 ) && field.equals("removeComponentListener") )) || ( (( ( __temp_hash2 == -1150319688 ) && field.equals("getComponentListeners") )) || ( (( ( __temp_hash2 == -2091996533 ) && field.equals("addFocusListener") )) || ( (( ( __temp_hash2 == -2007673976 ) && field.equals("removeFocusListener") )) || ( (( ( __temp_hash2 == 1237998909 ) && field.equals("getFocusListeners") )) || ( (( ( __temp_hash2 == 675525480 ) && field.equals("addHierarchyListener") )) || ( (( ( __temp_hash2 == -2019322395 ) && field.equals("removeHierarchyListener") )) || ( (( ( __temp_hash2 == -300913280 ) && field.equals("getHierarchyListeners") )) || ( (( ( __temp_hash2 == 875541053 ) && field.equals("addHierarchyBoundsListener") )) || ( (( ( __temp_hash2 == 1695089402 ) && field.equals("removeHierarchyBoundsListener") )) || ( (( ( __temp_hash2 == -292872821 ) && field.equals("getHierarchyBoundsListeners") )) || ( (( ( __temp_hash2 == 705046738 ) && field.equals("addKeyListener") )) || ( (( ( __temp_hash2 == 2108484879 ) && field.equals("removeKeyListener") )) || ( (( ( __temp_hash2 == -68050666 ) && field.equals("getKeyListeners") )) || ( (( ( __temp_hash2 == 2091349336 ) && field.equals("addMouseListener") )) || ( (( ( __temp_hash2 == -2119295403 ) && field.equals("removeMouseListener") )) || ( (( ( __temp_hash2 == 2072701968 ) && field.equals("getMouseListeners") )) || ( (( ( __temp_hash2 == -83462098 ) && field.equals("addMouseMotionListener") )) || ( (( ( __temp_hash2 == 33009515 ) && field.equals("removeMouseMotionListener") )) || ( (( ( __temp_hash2 == 1929852986 ) && field.equals("getMouseMotionListeners") )) || ( (( ( __temp_hash2 == 1910206219 ) && field.equals("addMouseWheelListener") )) || ( (( ( __temp_hash2 == -25699282 ) && field.equals("removeMouseWheelListener") )) || ( (( ( __temp_hash2 == 2003512819 ) && field.equals("getMouseWheelListeners") )) || ( (( ( __temp_hash2 == -1026988866 ) && field.equals("addInputMethodListener") )) || ( (( ( __temp_hash2 == -910517253 ) && field.equals("removeInputMethodListener") )) || ( (( ( __temp_hash2 == -1549673046 ) && field.equals("getInputMethodListeners") )) || ( (( ( __temp_hash2 == 150256377 ) && field.equals("getInputMethodRequests") )) || ( (( ( __temp_hash2 == -730558213 ) && field.equals("getInputContext") )) || ( (( ( __temp_hash2 == -2086501252 ) && field.equals("enableEvents") )) || ( (( ( __temp_hash2 == -1240522207 ) && field.equals("disableEvents") )) || ( (( ( __temp_hash2 == 23978912 ) && field.equals("coalesceEvents") )) || ( (( ( __temp_hash2 == 1944745964 ) && field.equals("processComponentEvent") )) || ( (( ( __temp_hash2 == -1262981007 ) && field.equals("processFocusEvent") )) || ( (( ( __temp_hash2 == -1880947691 ) && field.equals("processMouseWheelEvent") )) || ( (( ( __temp_hash2 == 2117937310 ) && field.equals("processInputMethodEvent") )) || ( (( ( __temp_hash2 == 584549812 ) && field.equals("processHierarchyEvent") )) || ( (( ( __temp_hash2 == -2051715969 ) && field.equals("processHierarchyBoundsEvent") )) || ( (( ( __temp_hash2 == 1469558098 ) && field.equals("handleEvent") )) || ( (( ( __temp_hash2 == 585890535 ) && field.equals("mouseDown") )) || ( (( ( __temp_hash2 == 585892729 ) && field.equals("mouseDrag") )) || ( (( ( __temp_hash2 == 1243066912 ) && field.equals("mouseUp") )) || ( (( ( __temp_hash2 == 586158614 ) && field.equals("mouseMove") )) || ( (( ( __temp_hash2 == 983628083 ) && field.equals("mouseEnter") )) || ( (( ( __temp_hash2 == 585928547 ) && field.equals("mouseExit") )) || ( (( ( __temp_hash2 == -815927391 ) && field.equals("keyDown") )) || ( (( ( __temp_hash2 == 101944666 ) && field.equals("keyUp") )) || ( (( ( __temp_hash2 == -1422950858 ) && field.equals("action") )) || ( (( ( __temp_hash2 == -2056434772 ) && field.equals("gotFocus") )) || ( (( ( __temp_hash2 == 619607060 ) && field.equals("lostFocus") )) || ( (( ( __temp_hash2 == -1426705793 ) && field.equals("isFocusTraversable") )) || ( (( ( __temp_hash2 == -1487536088 ) && field.equals("isFocusable") )) || ( (( ( __temp_hash2 == -1126567952 ) && field.equals("setFocusable") )) || ( (( ( __temp_hash2 == -100025915 ) && field.equals("setFocusTraversalKeysEnabled") )) || ( (( ( __temp_hash2 == -1338154671 ) && field.equals("getFocusTraversalKeysEnabled") )) || ( (( ( __temp_hash2 == 564387289 ) && field.equals("getFocusCycleRootAncestor") )) || ( (( ( __temp_hash2 == -2037192787 ) && field.equals("transferFocus") )) || ( (( ( __temp_hash2 == 1193982373 ) && field.equals("nextFocus") )) || ( (( ( __temp_hash2 == 1229986480 ) && field.equals("transferFocusBackward") )) || ( (( ( __temp_hash2 == 122660510 ) && field.equals("transferFocusUpCycle") )) || ( (( ( __temp_hash2 == 117596766 ) && field.equals("hasFocus") )) || ( (( ( __temp_hash2 == 1115025797 ) && field.equals("isFocusOwner") )) || ( (( ( __temp_hash2 == -1776922004 ) && field.equals("toString") )) || ( (( ( __temp_hash2 == -1645115555 ) && field.equals("removePropertyChangeListener") )) || ( (( ( __temp_hash2 == 1053245860 ) && field.equals("getPropertyChangeListeners") )) || ( (( ( __temp_hash2 == 1920162837 ) && field.equals("setComponentOrientation") )) || ( (( ( __temp_hash2 == -132109047 ) && field.equals("getComponentOrientation") )) || ( (( ( __temp_hash2 == 1052288776 ) && field.equals("getComponentCount") )) || ( (( ( __temp_hash2 == -754783867 ) && field.equals("countComponents") )) || ( (( ( __temp_hash2 == -1409511865 ) && field.equals("getComponent") )) || ( (( ( __temp_hash2 == -745194740 ) && field.equals("getComponents") )) || ( (( ( __temp_hash2 == -1183792394 ) && field.equals("insets") )) || ( (( ( __temp_hash2 == -189934193 ) && field.equals("setComponentZOrder") )) || ( (( ( __temp_hash2 == -1109967845 ) && field.equals("getComponentZOrder") )) || ( (( ( __temp_hash2 == 96417 ) && field.equals("add") )) || ( (( ( __temp_hash2 == -1148905887 ) && field.equals("addImpl") )) || ( (( ( __temp_hash2 == -934610812 ) && field.equals("remove") )) || ( (( ( __temp_hash2 == 1282345597 ) && field.equals("removeAll") )) || ( (( ( __temp_hash2 == 586292768 ) && field.equals("getLayout") )) || ( (( ( __temp_hash2 == 371675692 ) && field.equals("setLayout") )) || ( (( ( __temp_hash2 == 185147285 ) && field.equals("doLayout") )) || ( (( ( __temp_hash2 == -1109722326 ) && field.equals("layout") )) || ( (( ( __temp_hash2 == -1831849669 ) && field.equals("invalidate") )) || ( (( ( __temp_hash2 == -1421272810 ) && field.equals("validate") )) || ( (( ( __temp_hash2 == 1081247188 ) && field.equals("validateTree") )) || ( (( ( __temp_hash2 == -608552926 ) && field.equals("preferredSize") )) || ( (( ( __temp_hash2 == 1008217391 ) && field.equals("minimumSize") )) || ( (( ( __temp_hash2 == -622724588 ) && field.equals("paintComponents") )) || ( (( ( __temp_hash2 == -627286621 ) && field.equals("printComponents") )) || ( (( ( __temp_hash2 == 11100596 ) && field.equals("addContainerListener") )) || ( (( ( __temp_hash2 == 1611220017 ) && field.equals("removeContainerListener") )) || ( (( ( __temp_hash2 == 576751796 ) && field.equals("getContainerListeners") )) || ( (( ( __temp_hash2 == 1969426795 ) && field.equals("processEvent") )) || ( (( ( __temp_hash2 == 1430084328 ) && field.equals("processContainerEvent") )) || ( (( ( __temp_hash2 == 634939509 ) && field.equals("deliverEvent") )) || ( (( ( __temp_hash2 == -1097461934 ) && field.equals("locate") )) || ( (( ( __temp_hash2 == -1626201894 ) && field.equals("getComponentAt") )) || ( (( ( __temp_hash2 == 438337848 ) && field.equals("getMousePosition") )) || ( (( ( __temp_hash2 == 398126743 ) && field.equals("findComponentAt") )) || ( (( ( __temp_hash2 == -1671141420 ) && field.equals("isAncestorOf") )) || ( (( ( __temp_hash2 == 3322014 ) && field.equals("list") )) || ( (( ( __temp_hash2 == 123688912 ) && field.equals("getFocusTraversalKeys") )) || ( (( ( __temp_hash2 == -355296716 ) && field.equals("areFocusTraversalKeysSet") )) || ( (( ( __temp_hash2 == 810219290 ) && field.equals("setFocusTraversalPolicy") )) || ( (( ( __temp_hash2 == -1242052594 ) && field.equals("getFocusTraversalPolicy") )) || ( (( ( __temp_hash2 == 602541344 ) && field.equals("isFocusTraversalPolicySet") )) || ( (( ( __temp_hash2 == -44786190 ) && field.equals("setFocusCycleRoot") )) || ( (( ( __temp_hash2 == -311299910 ) && field.equals("isFocusCycleRoot") )) || ( (( ( __temp_hash2 == 626370347 ) && field.equals("setFocusTraversalPolicyProvider") )) || ( (( ( __temp_hash2 == -1708753933 ) && field.equals("isFocusTraversalPolicyProvider") )) || ( (( ( __temp_hash2 == -606755785 ) && field.equals("transferFocusDownCycle") )) || ( (( ( __temp_hash2 == -679533279 ) && field.equals("applyComponentOrientation") )) || ( (( ( __temp_hash2 == -1117363270 ) && field.equals("addPropertyChangeListener") )) || ( (( ( __temp_hash2 == -1269752847 ) && field.equals("setInheritsPopupMenu") )) || ( (( ( __temp_hash2 == -658829443 ) && field.equals("getInheritsPopupMenu") )) || ( (( ( __temp_hash2 == 1988229040 ) && field.equals("setComponentPopupMenu") )) || ( (( ( __temp_hash2 == -547981916 ) && field.equals("getComponentPopupMenu") )) || ( (( ( __temp_hash2 == 241460722 ) && field.equals("getComponentGraphics") )) || ( (( ( __temp_hash2 == -490374019 ) && field.equals("paintChildren") )) || ( (( ( __temp_hash2 == -1778836950 ) && field.equals("paintBorder") )) || ( (( ( __temp_hash2 == -838846263 ) && field.equals("update") )) || ( (( ( __temp_hash2 == 106428510 ) && field.equals("paint") )) || ( (( ( __temp_hash2 == -1166363724 ) && field.equals("printAll") )) || ( (( ( __temp_hash2 == 106934957 ) && field.equals("print") )) || ( (( ( __temp_hash2 == -20235056 ) && field.equals("printComponent") )) || ( (( ( __temp_hash2 == 1704032204 ) && field.equals("printChildren") )) || ( (( ( __temp_hash2 == -824599239 ) && field.equals("printBorder") )) || ( (( ( __temp_hash2 == 142938588 ) && field.equals("isPaintingTile") )) || ( (( ( __temp_hash2 == -770686062 ) && field.equals("isPaintingForPrint") )) || ( (( ( __temp_hash2 == 890536972 ) && field.equals("isManagingFocus") )) || ( (( ( __temp_hash2 == 1256979008 ) && field.equals("setNextFocusableComponent") )) || ( (( ( __temp_hash2 == 413687348 ) && field.equals("getNextFocusableComponent") )) || ( (( ( __temp_hash2 == 217231286 ) && field.equals("setRequestFocusEnabled") )) || ( (( ( __temp_hash2 == -375268882 ) && field.equals("isRequestFocusEnabled") )) || ( (( ( __temp_hash2 == 1280029577 ) && field.equals("requestFocus") )) || ( (( ( __temp_hash2 == -132373474 ) && field.equals("requestFocusInWindow") )) || ( (( ( __temp_hash2 == -1605080596 ) && field.equals("grabFocus") )) || ( (( ( __temp_hash2 == -2089656352 ) && field.equals("setVerifyInputWhenFocusTarget") )) || ( (( ( __temp_hash2 == -1816942124 ) && field.equals("getVerifyInputWhenFocusTarget") )) || ( (( ( __temp_hash2 == 2087644222 ) && field.equals("getFontMetrics") )) || ( (( ( __temp_hash2 == 737172192 ) && field.equals("setPreferredSize") )) || ( (( ( __temp_hash2 == -1726352276 ) && field.equals("getPreferredSize") )) || ( (( ( __temp_hash2 == -726354817 ) && field.equals("setMaximumSize") )) || ( (( ( __temp_hash2 == 1045381387 ) && field.equals("getMaximumSize") )) || ( (( ( __temp_hash2 == -1403787411 ) && field.equals("setMinimumSize") )) || ( (( ( __temp_hash2 == 367948793 ) && field.equals("getMinimumSize") )) || ( (( ( __temp_hash2 == -567445985 ) && field.equals("contains") )) || ( (( ( __temp_hash2 == 98093870 ) && field.equals("setBorder") )) || ( (( ( __temp_hash2 == 312710946 ) && field.equals("getBorder") )) || ( (( ( __temp_hash2 == 512222700 ) && field.equals("getInsets") )) || ( (( ( __temp_hash2 == -1328196916 ) && field.equals("getAlignmentY") )) || ( (( ( __temp_hash2 == -554065704 ) && field.equals("setAlignmentY") )) || ( (( ( __temp_hash2 == -1328196917 ) && field.equals("getAlignmentX") )) || ( (( ( __temp_hash2 == -554065705 ) && field.equals("setAlignmentX") )) || ( (( ( __temp_hash2 == -136014978 ) && field.equals("setInputVerifier") )) || ( (( ( __temp_hash2 == 1695427850 ) && field.equals("getInputVerifier") )) || ( (( ( __temp_hash2 == -2116360191 ) && field.equals("getGraphics") )) || ( (( ( __temp_hash2 == -1390686654 ) && field.equals("setDebugGraphicsOptions") )) || ( (( ( __temp_hash2 == 852008758 ) && field.equals("getDebugGraphicsOptions") )) || ( (( ( __temp_hash2 == -1402521984 ) && field.equals("registerKeyboardAction") )) || ( (( ( __temp_hash2 == -1167238055 ) && field.equals("unregisterKeyboardAction") )) || ( (( ( __temp_hash2 == -760205708 ) && field.equals("getRegisteredKeyStrokes") )) || ( (( ( __temp_hash2 == -2016664141 ) && field.equals("getConditionForKeyStroke") )) || ( (( ( __temp_hash2 == -1337788934 ) && field.equals("getActionForKeyStroke") )) || ( (( ( __temp_hash2 == -1777533497 ) && field.equals("resetKeyboardActions") )) || ( (( ( __temp_hash2 == -1834948684 ) && field.equals("setInputMap") )) || ( (( ( __temp_hash2 == -1746368856 ) && field.equals("getInputMap") )) || ( (( ( __temp_hash2 == 1737665796 ) && field.equals("setActionMap") )) || ( (( ( __temp_hash2 == 188673168 ) && field.equals("getActionMap") )) || ( (( ( __temp_hash2 == 357114811 ) && field.equals("getBaseline") )) || ( (( ( __temp_hash2 == -2053764159 ) && field.equals("getBaselineResizeBehavior") )) || ( (( ( __temp_hash2 == -1253361850 ) && field.equals("requestDefaultFocus") )) || ( (( ( __temp_hash2 == -854558288 ) && field.equals("setVisible") )) || ( (( ( __temp_hash2 == 1364071551 ) && field.equals("setEnabled") )) || ( (( ( __temp_hash2 == -1834127547 ) && field.equals("setForeground") )) || ( (( ( __temp_hash2 == -855811280 ) && field.equals("setBackground") )) || ( (( ( __temp_hash2 == 1984576465 ) && field.equals("setFont") )) || ( (( ( __temp_hash2 == 1312303337 ) && field.equals("processComponentKeyEvent") )) || ( (( ( __temp_hash2 == 2139532042 ) && field.equals("processKeyEvent") )) || ( (( ( __temp_hash2 == 69241589 ) && field.equals("processKeyBinding") )) || ( (( ( __temp_hash2 == 90841582 ) && field.equals("setToolTipText") )) || ( (( ( __temp_hash2 == 1862577786 ) && field.equals("getToolTipText") )) || ( (( ( __temp_hash2 == -1795253630 ) && field.equals("getToolTipLocation") )) || ( (( ( __temp_hash2 == -1988967221 ) && field.equals("getPopupLocation") )) || ( (( ( __temp_hash2 == 1106410311 ) && field.equals("createToolTip") )) || ( (( ( __temp_hash2 == 954363430 ) && field.equals("scrollRectToVisible") )) || ( (( ( __temp_hash2 == 753917173 ) && field.equals("setAutoscrolls") )) || ( (( ( __temp_hash2 == -1769313919 ) && field.equals("getAutoscrolls") )) || ( (( ( __temp_hash2 == -1691618275 ) && field.equals("setTransferHandler") )) || ( (( ( __temp_hash2 == 1683315369 ) && field.equals("getTransferHandler") )) || ( (( ( __temp_hash2 == 786391236 ) && field.equals("processMouseEvent") )) || ( (( ( __temp_hash2 == 2065058606 ) && field.equals("processMouseMotionEvent") )) || ( (( ( __temp_hash2 == -1298848381 ) && field.equals("enable") )) || ( (( ( __temp_hash2 == 1671308008 ) && field.equals("disable") )) || ( (( ( __temp_hash2 == -1141635146 ) && field.equals("getClientProperty") )) || ( (( ( __temp_hash2 == -1425362001 ) && field.equals("putClientProperty") )) || ( (( ( __temp_hash2 == -1635067428 ) && field.equals("setFocusTraversalKeys") )) || ( (( ( __temp_hash2 == 1097148750 ) && field.equals("reshape") )) || ( (( ( __temp_hash2 == 312809899 ) && field.equals("getBounds") )) || ( (( ( __temp_hash2 == -75151241 ) && field.equals("getSize") )) || ( (( ( __temp_hash2 == -316023509 ) && field.equals("getLocation") )) || ( (( ( __temp_hash2 == 3169218 ) && field.equals("getX") )) || ( (( ( __temp_hash2 == 3169219 ) && field.equals("getY") )) || ( (( ( __temp_hash2 == 1968952336 ) && field.equals("getWidth") )) || ( (( ( __temp_hash2 == 474985501 ) && field.equals("getHeight") )) || ( (( ( __temp_hash2 == -336661013 ) && field.equals("isOpaque") )) || ( (( ( __temp_hash2 == 470702883 ) && field.equals("setOpaque") )) || ( (( ( __temp_hash2 == 456055999 ) && field.equals("computeVisibleRect") )) || ( (( ( __temp_hash2 == -509772736 ) && field.equals("getVisibleRect") )) || ( (( ( __temp_hash2 == -2036853317 ) && field.equals("firePropertyChange") )) || ( (( ( __temp_hash2 == -800831894 ) && field.equals("fireVetoableChange") )) || ( (( ( __temp_hash2 == -894798487 ) && field.equals("addVetoableChangeListener") )) || ( (( ( __temp_hash2 == -1422550772 ) && field.equals("removeVetoableChangeListener") )) || ( (( ( __temp_hash2 == -637180459 ) && field.equals("getVetoableChangeListeners") )) || ( (( ( __temp_hash2 == -701878888 ) && field.equals("getTopLevelAncestor") )) || ( (( ( __temp_hash2 == -1065055640 ) && field.equals("addAncestorListener") )) || ( (( ( __temp_hash2 == -1567628213 ) && field.equals("removeAncestorListener") )) || ( (( ( __temp_hash2 == -727692042 ) && field.equals("getAncestorListeners") )) || ( (( ( __temp_hash2 == -1228323959 ) && field.equals("getListeners") )) || ( (( ( __temp_hash2 == -146849974 ) && field.equals("addNotify") )) || ( (( ( __temp_hash2 == -1001125651 ) && field.equals("removeNotify") )) || ( (( ( __temp_hash2 == 1094177291 ) && field.equals("repaint") )) || ( (( ( __temp_hash2 == -218282935 ) && field.equals("revalidate") )) || ( (( ( __temp_hash2 == 319849826 ) && field.equals("isValidateRoot") )) || ( (( ( __temp_hash2 == -1444703808 ) && field.equals("isOptimizedDrawingEnabled") )) || ( (( ( __temp_hash2 == -209888556 ) && field.equals("isPaintingOrigin") )) || ( (( ( __temp_hash2 == 1356268992 ) && field.equals("paintImmediately") )) || ( (( ( __temp_hash2 == 383468754 ) && field.equals("setDoubleBuffered") )) || ( (( ( __temp_hash2 == 116955034 ) && field.equals("isDoubleBuffered") )) || ( (( ( __temp_hash2 == 1910920416 ) && field.equals("getRootPane") )) || ( (( ( __temp_hash2 == 1322595613 ) && field.equals("updateUI") )) || ( (( ( __temp_hash2 == 98245738 ) && field.equals("getUI") )) || ( (( ( __temp_hash2 == 109327990 ) && field.equals("setUI") )) || ( (( ( __temp_hash2 == -133970743 ) && field.equals("getUIClassID") )) || ( (( ( __temp_hash2 == 820971262 ) && field.equals("paramString") )) || ( (( ( __temp_hash2 == 1334722659 ) && field.equals("getAccessibleContext") )) || field.equals("paintComponent") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + __temp_executeDef1 = false; + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return haxe.lang.Runtime.slowCallField(this, field, dynargs); + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + break; + } + + + } + + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + if (__temp_executeDef1) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + return ((haxe.lang.Function) (this.__hx_getField(field, true, false, false)) ).__hx_invokeDynamic(dynargs); + } + else + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + throw null; + } + + } + + } + + + public void __hx_getFields(haxe.root.Array baseArr) + { + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + baseArr.push("accessibleContext"); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + baseArr.push("listenerList"); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + baseArr.push("ui"); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + baseArr.push("paintFunction"); + //line 8 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/Surface.hx" + baseArr.push("g"); + } + + +} + + diff --git a/src/main/java/wings/javaSwing/SwingHeader.java b/src/main/java/wings/javaSwing/SwingHeader.java new file mode 100644 index 0000000..9f89cf2 --- /dev/null +++ b/src/main/java/wings/javaSwing/SwingHeader.java @@ -0,0 +1,575 @@ +// Generated by Haxe 3.4.2 +package wings.javaSwing; + +import haxe.root.*; + +@SuppressWarnings(value={"rawtypes", "unchecked"}) +public class SwingHeader extends haxe.lang.HxObject +{ + static + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + java.lang.Object __temp_odecl3 = null; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + java.lang.Object __temp_odecl1 = new haxe.lang.DynamicObject(new java.lang.String[]{"static"}, new java.lang.Object[]{null}, new java.lang.String[]{}, new double[]{}); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + java.lang.Object __temp_odecl2 = new haxe.lang.DynamicObject(new java.lang.String[]{"static"}, new java.lang.Object[]{null}, new java.lang.String[]{}, new double[]{}); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_odecl3 = new haxe.lang.DynamicObject(new java.lang.String[]{"parseInt", "toHashColor"}, new java.lang.Object[]{__temp_odecl1, __temp_odecl2}, new java.lang.String[]{}, new double[]{}); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + wings.javaSwing.SwingHeader.__meta__ = new haxe.lang.DynamicObject(new java.lang.String[]{"fields"}, new java.lang.Object[]{__temp_odecl3}, new java.lang.String[]{}, new double[]{}); + } + + } + + public SwingHeader(haxe.lang.EmptyObject empty) + { + } + + + public SwingHeader() + { + //line 13 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + wings.javaSwing.SwingHeader.__hx_ctor_wings_javaSwing_SwingHeader(this); + } + + + public static void __hx_ctor_wings_javaSwing_SwingHeader(wings.javaSwing.SwingHeader __hx_this) + { + //line 15 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + haxe.root.Array swingHeader = ((haxe.root.Array) (haxe.lang.Runtime.callField(null, "split", new haxe.root.Array(new java.lang.Object[]{":"}))) ); + //line 17 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __hx_this.width = ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(swingHeader.__get(0)))) ); + //line 18 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __hx_this.height = ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(swingHeader.__get(1)))) ); + //line 19 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __hx_this.frameRate = ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(swingHeader.__get(2)))) ); + //line 20 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __hx_this.bgColor = ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(swingHeader.__get(3)))) ); + } + + + public static java.lang.Object __meta__; + + public int width; + + public int height; + + public int frameRate; + + public int bgColor; + + public final int parseInt(java.lang.String e) + { + //line 10 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((int) (haxe.lang.Runtime.toInt(haxe.root.Std.parseInt(e))) ); + } + + + public final java.lang.String toHashColor(java.lang.String e) + { + //line 11 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ( "#" + e ); + } + + + @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + boolean __temp_executeDef1 = true; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + switch (field.hashCode()) + { + case -204859874: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("bgColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.bgColor = ((int) (value) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 113126854: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("width")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.width = ((int) (value) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 545057773: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("frameRate")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.frameRate = ((int) (value) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case -1221029593: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("height")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.height = ((int) (value) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (__temp_executeDef1) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return super.__hx_setField_f(field, value, handleProperties); + } + else + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + boolean __temp_executeDef1 = true; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + switch (field.hashCode()) + { + case -204859874: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("bgColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.bgColor = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 113126854: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("width")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.width = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 545057773: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("frameRate")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.frameRate = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case -1221029593: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("height")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + this.height = ((int) (haxe.lang.Runtime.toInt(value)) ); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return value; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (__temp_executeDef1) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return super.__hx_setField(field, value, handleProperties); + } + else + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + boolean __temp_executeDef1 = true; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + switch (field.hashCode()) + { + case -338484550: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("toHashColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "toHashColor")) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 113126854: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("width")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.width; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 1187783740: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("parseInt")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((haxe.lang.Function) (new haxe.lang.Closure(this, "parseInt")) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case -1221029593: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("height")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.height; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case -204859874: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("bgColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.bgColor; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 545057773: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("frameRate")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.frameRate; + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (__temp_executeDef1) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return super.__hx_getField(field, throwErrors, isCheck, handleProperties); + } + else + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + throw null; + } + + } + + } + + + @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + boolean __temp_executeDef1 = true; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + switch (field.hashCode()) + { + case -204859874: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("bgColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((double) (this.bgColor) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 113126854: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("width")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((double) (this.width) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 545057773: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("frameRate")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((double) (this.frameRate) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case -1221029593: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("height")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return ((double) (this.height) ); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (__temp_executeDef1) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return super.__hx_getField_f(field, throwErrors, handleProperties); + } + else + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + throw null; + } + + } + + } + + + @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + boolean __temp_executeDef1 = true; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + switch (field.hashCode()) + { + case -338484550: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("toHashColor")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.toHashColor(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + case 1187783740: + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (field.equals("parseInt")) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + __temp_executeDef1 = false; + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return this.parseInt(haxe.lang.Runtime.toString(dynargs.__get(0))); + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + break; + } + + + } + + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + if (__temp_executeDef1) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + return super.__hx_invokeField(field, dynargs); + } + else + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + throw null; + } + + } + + } + + + @Override public void __hx_getFields(haxe.root.Array baseArr) + { + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + baseArr.push("bgColor"); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + baseArr.push("frameRate"); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + baseArr.push("height"); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + baseArr.push("width"); + //line 3 "/Users/tao/projects/hxDaedalus/src/wings/javaSwing/SwingHeader.hx" + super.__hx_getFields(baseArr); + } + + +} + +