From 66d338aec5d632927fa561a68310c8931938e9e0 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sun, 13 Dec 2009 16:06:50 +0000 Subject: Ported to scala 2.8. --- doc/all-classes.html | 143 -- doc/graphyx$content.html | 21 - doc/graphyx$package.html | 14 - doc/graphyx/Graphyx$.html | 204 +++ doc/graphyx/Graphyx$object.html | 221 --- doc/graphyx/actors$content.html | 100 -- doc/graphyx/actors$package.html | 22 - doc/graphyx/actors/Exit$.html | 177 +++ doc/graphyx/actors/Exit$object.html | 205 --- doc/graphyx/actors/FireEvent$.html | 177 +++ doc/graphyx/actors/FireEvent$object.html | 205 --- doc/graphyx/actors/GUIActor.html | 467 ++++-- doc/graphyx/actors/PhysicsActor.html | 521 ++++--- doc/graphyx/actors/SetWorld$object.html | 82 - doc/graphyx/actors/SetWorld.html | 477 +++--- doc/graphyx/actors/Start$.html | 177 +++ doc/graphyx/actors/Start$object.html | 205 --- doc/graphyx/actors/Stop$.html | 177 +++ doc/graphyx/actors/Stop$object.html | 205 --- doc/graphyx/actors/package.html | 113 ++ doc/graphyx/graphics$content.html | 332 ---- doc/graphyx/graphics$package.html | 43 - doc/graphyx/graphics/Drawable.html | 708 ++++----- doc/graphyx/graphics/GraphicalAABB$object.html | 82 - doc/graphyx/graphics/GraphicalAABB.html | 802 +++++----- doc/graphyx/graphics/GraphicalBody$object.html | 82 - doc/graphyx/graphics/GraphicalBody.html | 814 +++++----- doc/graphyx/graphics/GraphicalCircle$object.html | 82 - doc/graphyx/graphics/GraphicalCircle.html | 1115 +++++++++----- .../graphics/GraphicalCollision$object.html | 82 - doc/graphyx/graphics/GraphicalCollision.html | 786 +++++----- .../graphics/GraphicalDistanceJoint$object.html | 82 - doc/graphyx/graphics/GraphicalDistanceJoint.html | 779 +++++----- doc/graphyx/graphics/GraphicalJoint.html | 494 ++++-- doc/graphyx/graphics/GraphicalObject.html | 510 +++++-- doc/graphyx/graphics/GraphicalPair$object.html | 82 - doc/graphyx/graphics/GraphicalPair.html | 786 +++++----- .../graphics/GraphicalRectangle$object.html | 82 - doc/graphyx/graphics/GraphicalRectangle.html | 1188 ++++++++++----- .../graphics/GraphicalRegularPolygon$object.html | 82 - doc/graphyx/graphics/GraphicalRegularPolygon.html | 1176 +++++++++----- .../graphics/GraphicalRevoluteJoint$object.html | 82 - doc/graphyx/graphics/GraphicalRevoluteJoint.html | 751 +++++---- doc/graphyx/graphics/GraphicalShape.html | 867 +++++++++-- .../graphics/GraphicalSpringJoint$object.html | 82 - doc/graphyx/graphics/GraphicalSpringJoint.html | 779 +++++----- doc/graphyx/graphics/GraphicalWorld$object.html | 82 - doc/graphyx/graphics/GraphicalWorld.html | 712 ++++----- doc/graphyx/graphics/MonitorResult.html | 183 +++ doc/graphyx/graphics/Parser$.html | 204 +++ doc/graphyx/graphics/Parser$object.html | 221 --- doc/graphyx/graphics/Scene$object.html | 82 - doc/graphyx/graphics/Scene.html | 704 ++++----- doc/graphyx/graphics/package.html | 201 +++ doc/graphyx/gui$content.html | 188 --- doc/graphyx/gui$package.html | 30 - doc/graphyx/gui/AboutHelpFrame$.html | 156 ++ doc/graphyx/gui/AboutHelpFrame$object.html | 98 -- doc/graphyx/gui/AboutHelpFrame.html | 834 ++++++++-- doc/graphyx/gui/BodyPopup.html | 953 +++++++++--- doc/graphyx/gui/Container.html | 364 ++--- doc/graphyx/gui/ControlPanel.html | 1029 +++++++++---- doc/graphyx/gui/GrabbedBody.html | 310 ++-- doc/graphyx/gui/GravityPanel.html | 1018 +++++++++---- doc/graphyx/gui/InfoPanel.html | 886 ++++++++--- doc/graphyx/gui/MainFrame.html | 869 +++++++++-- doc/graphyx/gui/MainPanel.html | 1099 +++++++++---- doc/graphyx/gui/MenuHelp.html | 1274 +++++++++++++--- doc/graphyx/gui/MenuPanel.html | 859 +++++++++-- doc/graphyx/gui/OptionsPanel.html | 1607 ++++++++++++-------- doc/graphyx/gui/PopupMenu.html | 873 ++++++++--- doc/graphyx/gui/ShapeInfoPanel.html | 1036 ++++++++++--- doc/graphyx/gui/WorldPanel.html | 1592 ++++++++++--------- doc/graphyx/gui/package.html | 185 +++ doc/graphyx/package.html | 94 ++ doc/graphyx/tests$content.html | 232 --- doc/graphyx/tests$package.html | 35 - doc/graphyx/tests/Atom$.html | 212 +++ doc/graphyx/tests/Atom$object.html | 256 ---- doc/graphyx/tests/BallStack$.html | 188 +++ doc/graphyx/tests/BallStack$object.html | 169 -- doc/graphyx/tests/Cannon$.html | 196 +++ doc/graphyx/tests/Carriage$$Car.html | 231 +++ doc/graphyx/tests/Carriage$.html | 199 +++ doc/graphyx/tests/Carriage$object.Car.html | 272 ---- doc/graphyx/tests/Carriage$object.html | 182 --- doc/graphyx/tests/Chain$.html | 188 +++ doc/graphyx/tests/Chain$object.html | 169 -- doc/graphyx/tests/CompositeShape$.html | 188 +++ doc/graphyx/tests/CompositeShape$object.html | 169 -- doc/graphyx/tests/Cup$.html | 188 +++ doc/graphyx/tests/Cup$object.html | 169 -- doc/graphyx/tests/EmptyTest$.html | 188 +++ doc/graphyx/tests/EmptyTest$object.html | 169 -- doc/graphyx/tests/Friction$.html | 212 +++ doc/graphyx/tests/Friction$object.html | 256 ---- doc/graphyx/tests/Friction2$.html | 188 +++ doc/graphyx/tests/Friction2$object.html | 169 -- doc/graphyx/tests/General1$.html | 196 +++ doc/graphyx/tests/General1$object.html | 216 --- doc/graphyx/tests/General2$.html | 188 +++ doc/graphyx/tests/General2$object.html | 169 -- doc/graphyx/tests/Joints1$.html | 188 +++ doc/graphyx/tests/Joints1$object.html | 169 -- doc/graphyx/tests/Joints2$.html | 188 +++ doc/graphyx/tests/Joints2$object.html | 169 -- doc/graphyx/tests/Net$.html | 188 +++ doc/graphyx/tests/Net$object.html | 169 -- doc/graphyx/tests/RagdollTest$.html | 188 +++ doc/graphyx/tests/RagdollTest$object.html | 169 -- doc/graphyx/tests/Restitution$.html | 188 +++ doc/graphyx/tests/Restitution$object.html | 169 -- doc/graphyx/tests/Spring$.html | 188 +++ doc/graphyx/tests/Spring$object.html | 169 -- doc/graphyx/tests/Stacking$.html | 188 +++ doc/graphyx/tests/Stacking$object.html | 169 -- doc/graphyx/tests/Test.html | 358 +++-- doc/graphyx/tests/Wave$.html | 188 +++ doc/graphyx/tests/Wave$object.html | 169 -- doc/graphyx/tests/package.html | 225 +++ doc/index.html | 404 ++++- doc/lib/class.png | Bin 0 -> 519 bytes doc/lib/class_big.png | Bin 0 -> 2995 bytes doc/lib/index.css | 102 ++ doc/lib/index.js | 81 + doc/lib/jquery.js | 19 + doc/lib/object.png | Bin 0 -> 518 bytes doc/lib/object_big.png | Bin 0 -> 3318 bytes doc/lib/package.png | Bin 0 -> 488 bytes doc/lib/package_big.png | Bin 0 -> 3183 bytes doc/lib/template.css | 259 ++++ doc/lib/template.js | 100 ++ doc/lib/trait.png | Bin 0 -> 504 bytes doc/lib/trait_big.png | Bin 0 -> 2863 bytes doc/modules.html | 36 - doc/nav-classes.html | 27 - doc/package.html | 70 + doc/root-content.html | 74 - doc/script.js | 112 -- doc/sims/collision$content.html | 190 --- doc/sims/collision$package.html | 30 - doc/sims/collision/AABB$object.html | 82 - doc/sims/collision/AABB.html | 534 +++---- doc/sims/collision/CircleCollision$object.html | 82 - doc/sims/collision/CircleCollision.html | 706 ++++----- doc/sims/collision/Collision$.html | 162 ++ doc/sims/collision/Collision$object.html | 101 -- doc/sims/collision/Collision.html | 500 +++--- doc/sims/collision/Detector.html | 308 ++-- doc/sims/collision/GridDetector.html | 604 ++++---- doc/sims/collision/Overlap$object.html | 82 - doc/sims/collision/Overlap.html | 493 +++--- doc/sims/collision/Pair$object.html | 82 - doc/sims/collision/Pair.html | 513 ++++--- doc/sims/collision/PolyCircleCollision$object.html | 82 - doc/sims/collision/PolyCircleCollision.html | 706 ++++----- doc/sims/collision/PolyCollision$object.html | 82 - doc/sims/collision/PolyCollision.html | 798 ++++------ doc/sims/collision/package.html | 137 ++ doc/sims/dynamics$content.html | 146 -- doc/sims/dynamics$package.html | 26 - doc/sims/dynamics/Body$.html | 148 ++ doc/sims/dynamics/Body$object.html | 75 - doc/sims/dynamics/Body.html | 1134 ++++++-------- doc/sims/dynamics/Circle$object.html | 82 - doc/sims/dynamics/Circle.html | 960 ++++++------ doc/sims/dynamics/Constraint.html | 296 ++-- doc/sims/dynamics/Rectangle$object.html | 82 - doc/sims/dynamics/Rectangle.html | 1004 +++++++----- doc/sims/dynamics/RegularPolygon$object.html | 82 - doc/sims/dynamics/RegularPolygon.html | 985 +++++++----- doc/sims/dynamics/Shape$.html | 148 ++ doc/sims/dynamics/Shape$object.html | 75 - doc/sims/dynamics/Shape.html | 999 ++++++------ doc/sims/dynamics/World.html | 1222 +++++++-------- doc/sims/dynamics/joints$content.html | 103 -- doc/sims/dynamics/joints$package.html | 22 - doc/sims/dynamics/joints/DistanceJoint$object.html | 82 - doc/sims/dynamics/joints/DistanceJoint.html | 830 +++++----- doc/sims/dynamics/joints/ForceJoint.html | 255 ++-- doc/sims/dynamics/joints/Joint.html | 400 ++--- doc/sims/dynamics/joints/RevoluteJoint$object.html | 82 - doc/sims/dynamics/joints/RevoluteJoint.html | 712 ++++----- doc/sims/dynamics/joints/SpringJoint$object.html | 82 - doc/sims/dynamics/joints/SpringJoint.html | 983 +++++------- doc/sims/dynamics/joints/package.html | 105 ++ doc/sims/dynamics/joints/test$content.html | 45 - doc/sims/dynamics/joints/test$package.html | 17 - .../joints/test/PrismaticJoint$object.html | 82 - doc/sims/dynamics/joints/test/PrismaticJoint.html | 837 +++++----- doc/sims/dynamics/joints/test/UnitCircleJoint.html | 492 +++--- doc/sims/dynamics/joints/test/package.html | 70 + doc/sims/dynamics/package.html | 137 ++ doc/sims/geometry$content.html | 111 -- doc/sims/geometry$package.html | 23 - doc/sims/geometry/ConvexPolygon.html | 412 ++--- doc/sims/geometry/Projection$object.html | 82 - doc/sims/geometry/Projection.html | 569 +++---- doc/sims/geometry/Ray$object.html | 82 - doc/sims/geometry/Ray.html | 565 +++---- doc/sims/geometry/Segment$object.html | 82 - doc/sims/geometry/Segment.html | 743 ++++----- doc/sims/geometry/Vector2D$.html | 190 +++ doc/sims/geometry/Vector2D$object.html | 150 -- doc/sims/geometry/Vector2D.html | 1047 ++++++------- doc/sims/geometry/package.html | 105 ++ doc/sims/math$content.html | 34 - doc/sims/math$package.html | 16 - doc/sims/math/Matrix22$.html | 156 ++ doc/sims/math/Matrix22$object.html | 98 -- doc/sims/math/Matrix22.html | 764 ++++------ doc/sims/math/package.html | 73 + doc/sims/package.html | 102 ++ doc/sims/prefabs$content.html | 54 - doc/sims/prefabs$package.html | 17 - doc/sims/prefabs/Net.html | 439 +++--- doc/sims/prefabs/Prefab.html | 265 ++-- doc/sims/prefabs/Pylon.html | 487 +++--- doc/sims/prefabs/Ragdoll.html | 719 ++++----- doc/sims/prefabs/package.html | 86 ++ doc/sims/util$content.html | 56 - doc/sims/util$package.html | 18 - doc/sims/util/Polar$object.html | 82 - doc/sims/util/Polar.html | 525 +++---- doc/sims/util/Positioning$.html | 196 +++ doc/sims/util/Positioning$object.html | 201 --- doc/sims/util/RelativeVector.html | 525 ++++--- doc/sims/util/package.html | 81 + doc/style.css | 148 -- src/graphyx/Graphyx.scala | 7 +- src/graphyx/actors/GUIActor.scala | 3 +- src/graphyx/actors/PhysicsActor.scala | 7 +- src/graphyx/graphics/Drawable.scala | 2 +- src/graphyx/graphics/GraphicalRectangle.scala | 2 +- src/graphyx/graphics/GraphicalRegularPolygon.scala | 3 +- src/graphyx/graphics/GraphicalWorld.scala | 11 +- src/graphyx/gui/AboutHelpFrame.scala | 6 +- src/graphyx/gui/Container.scala | 8 +- src/graphyx/gui/ControlPanel.scala | 4 + src/graphyx/gui/InfoPanel.scala | 2 +- src/graphyx/gui/MainFrame.scala | 1 + src/graphyx/gui/WorldPanel.scala | 15 +- src/graphyx/tests/Atom.scala | 1 + src/graphyx/tests/Cannon.scala | 59 + src/graphyx/tests/EmptyTest.scala | 1 + src/graphyx/tests/Friction.scala | 1 + src/graphyx/tests/Friction2.scala | 4 +- src/graphyx/tests/General1.scala | 1 + src/graphyx/tests/Spring.scala | 17 +- src/graphyx/tests/Test.scala | 1 + src/graphyx/tests/Wave.scala | 27 +- src/sims/collision/AABB.scala | 2 +- src/sims/collision/CircleCollision.scala | 4 +- src/sims/collision/Collision.scala | 4 +- src/sims/collision/Detector.scala | 2 - src/sims/collision/GridDetector.scala | 3 +- src/sims/collision/PolyCollision.scala | 1 - src/sims/dynamics/World.scala | 15 +- src/sims/dynamics/joints/DistanceJoint.scala | 1 + src/sims/dynamics/joints/SpringJoint.scala | 1 + src/sims/dynamics/joints/test/PrismaticJoint.scala | 2 + .../dynamics/joints/test/UnitCircleJoint.scala | 1 + 262 files changed, 39669 insertions(+), 33250 deletions(-) delete mode 100644 doc/all-classes.html delete mode 100644 doc/graphyx$content.html delete mode 100644 doc/graphyx$package.html create mode 100644 doc/graphyx/Graphyx$.html delete mode 100644 doc/graphyx/Graphyx$object.html delete mode 100644 doc/graphyx/actors$content.html delete mode 100644 doc/graphyx/actors$package.html create mode 100644 doc/graphyx/actors/Exit$.html delete mode 100644 doc/graphyx/actors/Exit$object.html create mode 100644 doc/graphyx/actors/FireEvent$.html delete mode 100644 doc/graphyx/actors/FireEvent$object.html delete mode 100644 doc/graphyx/actors/SetWorld$object.html create mode 100644 doc/graphyx/actors/Start$.html delete mode 100644 doc/graphyx/actors/Start$object.html create mode 100644 doc/graphyx/actors/Stop$.html delete mode 100644 doc/graphyx/actors/Stop$object.html create mode 100644 doc/graphyx/actors/package.html delete mode 100644 doc/graphyx/graphics$content.html delete mode 100644 doc/graphyx/graphics$package.html delete mode 100644 doc/graphyx/graphics/GraphicalAABB$object.html delete mode 100644 doc/graphyx/graphics/GraphicalBody$object.html delete mode 100644 doc/graphyx/graphics/GraphicalCircle$object.html delete mode 100644 doc/graphyx/graphics/GraphicalCollision$object.html delete mode 100644 doc/graphyx/graphics/GraphicalDistanceJoint$object.html delete mode 100644 doc/graphyx/graphics/GraphicalPair$object.html delete mode 100644 doc/graphyx/graphics/GraphicalRectangle$object.html delete mode 100644 doc/graphyx/graphics/GraphicalRegularPolygon$object.html delete mode 100644 doc/graphyx/graphics/GraphicalRevoluteJoint$object.html delete mode 100644 doc/graphyx/graphics/GraphicalSpringJoint$object.html delete mode 100644 doc/graphyx/graphics/GraphicalWorld$object.html create mode 100644 doc/graphyx/graphics/MonitorResult.html create mode 100644 doc/graphyx/graphics/Parser$.html delete mode 100644 doc/graphyx/graphics/Parser$object.html delete mode 100644 doc/graphyx/graphics/Scene$object.html create mode 100644 doc/graphyx/graphics/package.html delete mode 100644 doc/graphyx/gui$content.html delete mode 100644 doc/graphyx/gui$package.html create mode 100644 doc/graphyx/gui/AboutHelpFrame$.html delete mode 100644 doc/graphyx/gui/AboutHelpFrame$object.html create mode 100644 doc/graphyx/gui/package.html create mode 100644 doc/graphyx/package.html delete mode 100644 doc/graphyx/tests$content.html delete mode 100644 doc/graphyx/tests$package.html create mode 100644 doc/graphyx/tests/Atom$.html delete mode 100644 doc/graphyx/tests/Atom$object.html create mode 100644 doc/graphyx/tests/BallStack$.html delete mode 100644 doc/graphyx/tests/BallStack$object.html create mode 100644 doc/graphyx/tests/Cannon$.html create mode 100644 doc/graphyx/tests/Carriage$$Car.html create mode 100644 doc/graphyx/tests/Carriage$.html delete mode 100644 doc/graphyx/tests/Carriage$object.Car.html delete mode 100644 doc/graphyx/tests/Carriage$object.html create mode 100644 doc/graphyx/tests/Chain$.html delete mode 100644 doc/graphyx/tests/Chain$object.html create mode 100644 doc/graphyx/tests/CompositeShape$.html delete mode 100644 doc/graphyx/tests/CompositeShape$object.html create mode 100644 doc/graphyx/tests/Cup$.html delete mode 100644 doc/graphyx/tests/Cup$object.html create mode 100644 doc/graphyx/tests/EmptyTest$.html delete mode 100644 doc/graphyx/tests/EmptyTest$object.html create mode 100644 doc/graphyx/tests/Friction$.html delete mode 100644 doc/graphyx/tests/Friction$object.html create mode 100644 doc/graphyx/tests/Friction2$.html delete mode 100644 doc/graphyx/tests/Friction2$object.html create mode 100644 doc/graphyx/tests/General1$.html delete mode 100644 doc/graphyx/tests/General1$object.html create mode 100644 doc/graphyx/tests/General2$.html delete mode 100644 doc/graphyx/tests/General2$object.html create mode 100644 doc/graphyx/tests/Joints1$.html delete mode 100644 doc/graphyx/tests/Joints1$object.html create mode 100644 doc/graphyx/tests/Joints2$.html delete mode 100644 doc/graphyx/tests/Joints2$object.html create mode 100644 doc/graphyx/tests/Net$.html delete mode 100644 doc/graphyx/tests/Net$object.html create mode 100644 doc/graphyx/tests/RagdollTest$.html delete mode 100644 doc/graphyx/tests/RagdollTest$object.html create mode 100644 doc/graphyx/tests/Restitution$.html delete mode 100644 doc/graphyx/tests/Restitution$object.html create mode 100644 doc/graphyx/tests/Spring$.html delete mode 100644 doc/graphyx/tests/Spring$object.html create mode 100644 doc/graphyx/tests/Stacking$.html delete mode 100644 doc/graphyx/tests/Stacking$object.html create mode 100644 doc/graphyx/tests/Wave$.html delete mode 100644 doc/graphyx/tests/Wave$object.html create mode 100644 doc/graphyx/tests/package.html create mode 100644 doc/lib/class.png create mode 100644 doc/lib/class_big.png create mode 100644 doc/lib/index.css create mode 100644 doc/lib/index.js create mode 100644 doc/lib/jquery.js create mode 100644 doc/lib/object.png create mode 100644 doc/lib/object_big.png create mode 100644 doc/lib/package.png create mode 100644 doc/lib/package_big.png create mode 100644 doc/lib/template.css create mode 100644 doc/lib/template.js create mode 100644 doc/lib/trait.png create mode 100644 doc/lib/trait_big.png delete mode 100644 doc/modules.html delete mode 100644 doc/nav-classes.html create mode 100644 doc/package.html delete mode 100644 doc/root-content.html delete mode 100644 doc/script.js delete mode 100644 doc/sims/collision$content.html delete mode 100644 doc/sims/collision$package.html delete mode 100644 doc/sims/collision/AABB$object.html delete mode 100644 doc/sims/collision/CircleCollision$object.html create mode 100644 doc/sims/collision/Collision$.html delete mode 100644 doc/sims/collision/Collision$object.html delete mode 100644 doc/sims/collision/Overlap$object.html delete mode 100644 doc/sims/collision/Pair$object.html delete mode 100644 doc/sims/collision/PolyCircleCollision$object.html delete mode 100644 doc/sims/collision/PolyCollision$object.html create mode 100644 doc/sims/collision/package.html delete mode 100644 doc/sims/dynamics$content.html delete mode 100644 doc/sims/dynamics$package.html create mode 100644 doc/sims/dynamics/Body$.html delete mode 100644 doc/sims/dynamics/Body$object.html delete mode 100644 doc/sims/dynamics/Circle$object.html delete mode 100644 doc/sims/dynamics/Rectangle$object.html delete mode 100644 doc/sims/dynamics/RegularPolygon$object.html create mode 100644 doc/sims/dynamics/Shape$.html delete mode 100644 doc/sims/dynamics/Shape$object.html delete mode 100644 doc/sims/dynamics/joints$content.html delete mode 100644 doc/sims/dynamics/joints$package.html delete mode 100644 doc/sims/dynamics/joints/DistanceJoint$object.html delete mode 100644 doc/sims/dynamics/joints/RevoluteJoint$object.html delete mode 100644 doc/sims/dynamics/joints/SpringJoint$object.html create mode 100644 doc/sims/dynamics/joints/package.html delete mode 100644 doc/sims/dynamics/joints/test$content.html delete mode 100644 doc/sims/dynamics/joints/test$package.html delete mode 100644 doc/sims/dynamics/joints/test/PrismaticJoint$object.html create mode 100644 doc/sims/dynamics/joints/test/package.html create mode 100644 doc/sims/dynamics/package.html delete mode 100644 doc/sims/geometry$content.html delete mode 100644 doc/sims/geometry$package.html delete mode 100644 doc/sims/geometry/Projection$object.html delete mode 100644 doc/sims/geometry/Ray$object.html delete mode 100644 doc/sims/geometry/Segment$object.html create mode 100644 doc/sims/geometry/Vector2D$.html delete mode 100644 doc/sims/geometry/Vector2D$object.html create mode 100644 doc/sims/geometry/package.html delete mode 100644 doc/sims/math$content.html delete mode 100644 doc/sims/math$package.html create mode 100644 doc/sims/math/Matrix22$.html delete mode 100644 doc/sims/math/Matrix22$object.html create mode 100644 doc/sims/math/package.html create mode 100644 doc/sims/package.html delete mode 100644 doc/sims/prefabs$content.html delete mode 100644 doc/sims/prefabs$package.html create mode 100644 doc/sims/prefabs/package.html delete mode 100644 doc/sims/util$content.html delete mode 100644 doc/sims/util$package.html delete mode 100644 doc/sims/util/Polar$object.html create mode 100644 doc/sims/util/Positioning$.html delete mode 100644 doc/sims/util/Positioning$object.html create mode 100644 doc/sims/util/package.html delete mode 100644 doc/style.css create mode 100644 src/graphyx/tests/Cannon.scala diff --git a/doc/all-classes.html b/doc/all-classes.html deleted file mode 100644 index c31b553..0000000 --- a/doc/all-classes.html +++ /dev/null @@ -1,143 +0,0 @@ - - - List of all classes and objects - - -
Classes
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx$content.html b/doc/graphyx$content.html deleted file mode 100644 index b78a5ec..0000000 --- a/doc/graphyx$content.html +++ /dev/null @@ -1,21 +0,0 @@ - - - All classes and objects in graphyx - - -
Simple Mechanics Simulator (SiMS) API

This document is the API specification for SiMS

- - - - - - -
Object Summary
- object - - Graphyx - extends AnyRef - - -
- \ No newline at end of file diff --git a/doc/graphyx$package.html b/doc/graphyx$package.html deleted file mode 100644 index ce0ccc2..0000000 --- a/doc/graphyx$package.html +++ /dev/null @@ -1,14 +0,0 @@ - - - List of classes and objects in package graphyx - - - - -
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx/Graphyx$.html b/doc/graphyx/Graphyx$.html new file mode 100644 index 0000000..eaf48a5 --- /dev/null +++ b/doc/graphyx/Graphyx$.html @@ -0,0 +1,204 @@ + + + + + Scaladoc for graphyx.Graphyx + + + + + + + + + +

graphyx

+ +
+ +

Graphyx

+
+ +

+ object + + Graphyx extends AnyRef + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  2. +

    + def + + exit(): Unit + +

    + +
  3. +

    + val + + guiActor: GUIActor + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + main(args: Array[String]): Unit + +

    + +
  6. +

    + val + + physicsActor: PhysicsActor + +

    + +
  7. +

    + def + + test: Test + +

    + +
  8. +

    + def + + test_=(t: Test): Unit + +

    + +
  9. +

    + val + + tests: List[Test] + +

    + +
  10. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/Graphyx$object.html b/doc/graphyx/Graphyx$object.html deleted file mode 100644 index 1e705a8..0000000 --- a/doc/graphyx/Graphyx$object.html +++ /dev/null @@ -1,221 +0,0 @@ - - - object Graphyx in graphyx - - - - - - - - - - - -
- graphyx -

- object Graphyx -

-
- [source: graphyx/Graphyx.scala] -

-
-
- - - object - Graphyx -
-
extends AnyRef
-
- - - - - - - - - - - - - - - - -
Value Summary
- val - - guiActor - : GUIActor - - -
- val - - physicsActor - : PhysicsActor - - -
- val - - tests - : scala.List[Test] - - -
- - - - - - - - - - - - - - - - - - -
Method Summary
- def - - exit - : Unit - - -
- def - - main - (args : scala.Array[java.lang.String]) : Unit - - -
- def - - test - : Test - - -
- def - - test_= - (t : Test) : Unit - - -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - tests : scala.List[Test] -
-
-

-
-
- - - val - physicsActor : PhysicsActor -
-
-

-
-
- - - val - guiActor : GUIActor -
-
-

- - -
Method Details
-
- - - def - test : Test -
-
-

-
-
- - - def - test_=(t : Test) : Unit -
-
-

-
-
- - - def - main(args : scala.Array[java.lang.String]) : Unit -
-
-

-
-
- - - def - exit : Unit -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors$content.html b/doc/graphyx/actors$content.html deleted file mode 100644 index 03856e4..0000000 --- a/doc/graphyx/actors$content.html +++ /dev/null @@ -1,100 +0,0 @@ - - - All classes and objects in graphyx.actors - - -
Simple Mechanics Simulator (SiMS) API

This document is the API specification for SiMS

- - - - - - - - - - - - - -
Class Summary
- class - - GUIActor - extends scala.actors.Actor - - -
- class - - PhysicsActor - extends scala.actors.Actor - - -
- case class - - SetWorld - (val world : World) extends scala.Product - - -
- - - - - - - - - - - - - - - - - - - - - - -
Object Summary
- case object - - Exit - extends scala.Product - - -
- case object - - FireEvent - extends scala.Product - - -
- object - - SetWorld - extends (World) => SetWorld - - -
- case object - - Start - extends scala.Product - - -
- case object - - Stop - extends scala.Product - - -
- \ No newline at end of file diff --git a/doc/graphyx/actors$package.html b/doc/graphyx/actors$package.html deleted file mode 100644 index c79a9d8..0000000 --- a/doc/graphyx/actors$package.html +++ /dev/null @@ -1,22 +0,0 @@ - - - List of classes and objects in package graphyx.actors - - - - -
Classes
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx/actors/Exit$.html b/doc/graphyx/actors/Exit$.html new file mode 100644 index 0000000..5d58d93 --- /dev/null +++ b/doc/graphyx/actors/Exit$.html @@ -0,0 +1,177 @@ + + + + + Scaladoc for graphyx.actors.Exit + + + + + + + + + +

graphyx.actors

+ +
+ +

Exit

+
+ +

+ object + + Exit extends Product + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + productArity: Int + +

    + +
  5. +

    + def + + productElement(arg0: Int): Any + +

    + +
  6. +

    + def + + productElements: Iterator[Any] + +

    + +
  7. +

    + def + + productIterator: Iterator[Any] + +

    + +
  8. +

    + def + + productPrefix: String + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/actors/Exit$object.html b/doc/graphyx/actors/Exit$object.html deleted file mode 100644 index ad24c13..0000000 --- a/doc/graphyx/actors/Exit$object.html +++ /dev/null @@ -1,205 +0,0 @@ - - - object Exit in graphyx.actors - - - - - - - - - - - -
- graphyx.actors -

- object Exit -

-
- [source: graphyx/actors/Exit.scala] -

-
-
- - case - object - Exit -
-
extends scala.Product
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- protected def - - readResolve - : AnyRef - - -
- override final def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - -
Method Details
-
- - override final - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
- - override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

-
-
- - protected - def - readResolve : AnyRef -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors/FireEvent$.html b/doc/graphyx/actors/FireEvent$.html new file mode 100644 index 0000000..a882711 --- /dev/null +++ b/doc/graphyx/actors/FireEvent$.html @@ -0,0 +1,177 @@ + + + + + Scaladoc for graphyx.actors.FireEvent + + + + + + + + + +

graphyx.actors

+ +
+ +

FireEvent

+
+ +

+ object + + FireEvent extends Product + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + productArity: Int + +

    + +
  5. +

    + def + + productElement(arg0: Int): Any + +

    + +
  6. +

    + def + + productElements: Iterator[Any] + +

    + +
  7. +

    + def + + productIterator: Iterator[Any] + +

    + +
  8. +

    + def + + productPrefix: String + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/actors/FireEvent$object.html b/doc/graphyx/actors/FireEvent$object.html deleted file mode 100644 index 978fd70..0000000 --- a/doc/graphyx/actors/FireEvent$object.html +++ /dev/null @@ -1,205 +0,0 @@ - - - object FireEvent in graphyx.actors - - - - - - - - - - - -
- graphyx.actors -

- object FireEvent -

-
- [source: graphyx/actors/FireEvent.scala] -

-
-
- - case - object - FireEvent -
-
extends scala.Product
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- protected def - - readResolve - : AnyRef - - -
- override final def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - -
Method Details
-
- - override final - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
- - override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

-
-
- - protected - def - readResolve : AnyRef -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors/GUIActor.html b/doc/graphyx/actors/GUIActor.html index 2dbb266..f6a8d4c 100644 --- a/doc/graphyx/actors/GUIActor.html +++ b/doc/graphyx/actors/GUIActor.html @@ -1,162 +1,327 @@ - + + - class GUIActor in graphyx.actors - + + Scaladoc for graphyx.actors.GUIActor + + + + + + - - - - - - - - - -
- graphyx.actors -

- class GUIActor -

-
- [source: graphyx/actors/GUIActor.scala] -

-
-
- - - class - GUIActor -
-
extends scala.actors.Actor
-
+ +

graphyx.actors

- - - - - - - - - - -
Value Summary
- val - - container - : Container - - -
- var - - continue - : Boolean - +
+ +

GUIActor

+
+ +

+ class + + GUIActor extends Actor + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Actor
  2. ReplyableActor
  3. ReplyReactor
  4. ReplyableReactor
  5. Reactor
  6. AbstractActor
  7. Replyable
  8. OutputChannel
  9. AbstractReactor
  10. AnyRef
  11. Any
+
+
-
- - -
- Values and Variables inherited from scala.actors.Actor -
- scala.actors.Actor.mailbox, scala.actors.Actor.trapExit -
- - - - - - -
Method Summary
- def - - act - : Unit -
- - -
- Methods inherited from scala.actors.Actor -
- scala.actors.Actor.scheduler, scala.actors.Actor.mailboxSize, scala.actors.Actor.send, scala.actors.Actor.receive, scala.actors.Actor.receiveWithin, scala.actors.Actor.react, scala.actors.Actor.reactWithin, scala.actors.Actor.!, scala.actors.Actor.forward, scala.actors.Actor.!?, scala.actors.Actor.!?, scala.actors.Actor.!!, scala.actors.Actor.!!, scala.actors.Actor.reply, scala.actors.Actor.?, scala.actors.Actor.sender, scala.actors.Actor.receiver, scala.actors.Actor.scheduleActor, scala.actors.Actor.start, scala.actors.Actor.link, scala.actors.Actor.link, scala.actors.Actor.unlink, scala.actors.Actor.exit, scala.actors.Actor.exit -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +
+

Value Members

+
  1. +

    + def + + !(msg: Any): Unit + +

    - - - -
    Value Details
    -
    - - - val - container : Container -
    -
    -

    -
    -
    +
  2. +

    + def + + !!(msg: Any): Future[Any] + +

    + +
  3. +

    + def + + !![A](msg: Any, f: PartialFunction[Any, A]): Future[A] + +

    + +
  4. +

    + def + + !?(msec: Long, msg: Any): Option[Any] + +

    + +
  5. +

    + def + + !?(msg: Any): Any + +

    + +
  6. +

    + def + + ?: Any + +

    + +
  7. +

    + def + + act(): Unit + +

    + +
  8. +

    + val + + container: Container + +

    + +
  9. +

    + var + + continue: Boolean + +

    + +
  10. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  11. +

    + def + + forward(msg: Any): Unit + +

    + +
  12. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  13. +

    + def + + link(body: ⇒ Unit): Actor + +

    + +
  14. +

    + def + + link(to: AbstractActor): AbstractActor + +

    + +
  15. +

    + def + + react(f: PartialFunction[Any, Unit]): Nothing + +

    + +
  16. +

    + def + + reactWithin(msec: Long)(f: PartialFunction[Any, Unit]): Nothing + +

    + +
  17. +

    + def + + receive[R](f: PartialFunction[Any, R]): R + +

    + +
  18. +

    + def + + receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R + +

    + +
  19. +

    + def + + receiver: Actor + +

    + +
  20. +

    + def + + send(msg: Any, replyTo: OutputChannel[Any]): Unit + +

    + +
  21. +

    + def + + start(): Actor + +

    + +
  22. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  23. +

    + var + + trapExit: Boolean + +

    + +
  24. +

    + def + + unlink(from: AbstractActor): Unit + +

    + +
+
- - var - continue : Boolean - -
-
- - -
Method Details
-
+
+

Instance constructors

+
  1. +

    + new + + GUIActor() + +

    + +
+
- - def - act : Unit -
-
-
-
- Overrides -
-
- scala.actors.Actor.scala.actors.Actor.act -
-

- - -
- - - - - - - - + + + \ No newline at end of file diff --git a/doc/graphyx/actors/PhysicsActor.html b/doc/graphyx/actors/PhysicsActor.html index 53f230e..44973b0 100644 --- a/doc/graphyx/actors/PhysicsActor.html +++ b/doc/graphyx/actors/PhysicsActor.html @@ -1,202 +1,343 @@ - + + - class PhysicsActor in graphyx.actors - + + Scaladoc for graphyx.actors.PhysicsActor + + + + + + - - - - - - - - - -
- graphyx.actors -

- class PhysicsActor -

-
- [source: graphyx/actors/PhysicsActor.scala] -

-
-
- - - class - PhysicsActor -
-
extends scala.actors.Actor
-
+ +

graphyx.actors

- - - - - - - - - - - - - - -
Value Summary
- var - - continue - : Boolean - - -
- var - - simulate - : Boolean - - -
- var - - world - : World - - -
- - -
- Values and Variables inherited from scala.actors.Actor -
- scala.actors.Actor.mailbox, scala.actors.Actor.trapExit -
- - - - - - - - - - -
Method Summary
- def - - act - : Unit - - -
- def - - fps - : Int - - -
- - -
- Methods inherited from scala.actors.Actor -
- scala.actors.Actor.scheduler, scala.actors.Actor.mailboxSize, scala.actors.Actor.send, scala.actors.Actor.receive, scala.actors.Actor.receiveWithin, scala.actors.Actor.react, scala.actors.Actor.reactWithin, scala.actors.Actor.!, scala.actors.Actor.forward, scala.actors.Actor.!?, scala.actors.Actor.!?, scala.actors.Actor.!!, scala.actors.Actor.!!, scala.actors.Actor.reply, scala.actors.Actor.?, scala.actors.Actor.sender, scala.actors.Actor.receiver, scala.actors.Actor.scheduleActor, scala.actors.Actor.start, scala.actors.Actor.link, scala.actors.Actor.link, scala.actors.Actor.unlink, scala.actors.Actor.exit, scala.actors.Actor.exit -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

PhysicsActor

+
+

+ class + + PhysicsActor extends Actor + +

+
- - - -
Value Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Actor
  2. ReplyableActor
  3. ReplyReactor
  4. ReplyableReactor
  5. Reactor
  6. AbstractActor
  7. Replyable
  8. OutputChannel
  9. AbstractReactor
  10. AnyRef
  11. Any
+
+
- - var - world : World - -
-
-
-
- - var - continue : Boolean -
-
-

-
-
- - var - simulate : Boolean -
-
-

- - -
Method Details
-
+
+

Value Members

+
  1. +

    + def + + !(msg: Any): Unit + +

    + +
  2. +

    + def + + !!(msg: Any): Future[Any] + +

    + +
  3. +

    + def + + !![A](msg: Any, f: PartialFunction[Any, A]): Future[A] + +

    + +
  4. +

    + def + + !?(msec: Long, msg: Any): Option[Any] + +

    + +
  5. +

    + def + + !?(msg: Any): Any + +

    + +
  6. +

    + def + + ?: Any + +

    + +
  7. +

    + def + + act(): Unit + +

    + +
  8. +

    + var + + continue: Boolean + +

    + +
  9. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  10. +

    + def + + forward(msg: Any): Unit + +

    + +
  11. +

    + def + + fps: Int + +

    + +
  12. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  13. +

    + def + + link(body: ⇒ Unit): Actor + +

    + +
  14. +

    + def + + link(to: AbstractActor): AbstractActor + +

    + +
  15. +

    + def + + react(f: PartialFunction[Any, Unit]): Nothing + +

    + +
  16. +

    + def + + reactWithin(msec: Long)(f: PartialFunction[Any, Unit]): Nothing + +

    + +
  17. +

    + def + + receive[R](f: PartialFunction[Any, R]): R + +

    + +
  18. +

    + def + + receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R + +

    + +
  19. +

    + def + + receiver: Actor + +

    + +
  20. +

    + def + + send(msg: Any, replyTo: OutputChannel[Any]): Unit + +

    + +
  21. +

    + var + + simulate: Boolean + +

    + +
  22. +

    + def + + start(): Actor + +

    + +
  23. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  24. +

    + var + + trapExit: Boolean + +

    + +
  25. +

    + def + + unlink(from: AbstractActor): Unit + +

    + +
  26. +

    + var + + world: World + +

    + +
+
- - def - fps : Int -
-
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + PhysicsActor() + +

    + +
+
- - def - act : Unit -
-
-
-
- Overrides -
-
- scala.actors.Actor.scala.actors.Actor.act -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/actors/SetWorld$object.html b/doc/graphyx/actors/SetWorld$object.html deleted file mode 100644 index c1f59bf..0000000 --- a/doc/graphyx/actors/SetWorld$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object SetWorld in graphyx.actors - - - - - - - - - - - -
- graphyx.actors -

- object SetWorld -

-
- [source: graphyx/actors/SetWorld.scala] -

-
-
- - - object - SetWorld -
-
extends (World) => SetWorld
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors/SetWorld.html b/doc/graphyx/actors/SetWorld.html index 2eacdd1..e48e30e 100644 --- a/doc/graphyx/actors/SetWorld.html +++ b/doc/graphyx/actors/SetWorld.html @@ -1,276 +1,217 @@ - + + - class SetWorld in graphyx.actors - + + Scaladoc for graphyx.actors.SetWorld + + + + + + - - - - - - - - - -
- graphyx.actors -

- class SetWorld -

-
- [source: graphyx/actors/SetWorld.scala] -

-
-
- - case - class - SetWorld(val world : World) -
-
extends scala.Product
-
+ +

graphyx.actors

+
+ +

SetWorld

+
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +

+ class + + SetWorld(world: World) extends Product + +

+
- - - - -
Method Details
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
- - override - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  4. +

    + def + + productArity: Int + +

    + +
  5. +

    + def + + productElement(arg0: Int): Any + +

    + +
  6. +

    + def + + productElements: Iterator[Any] + +

    + +
  7. +

    + def + + productIterator: Iterator[Any] + +

    + +
  8. +

    + def + + productPrefix: String + +

    + +
  9. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  10. +

    + val + + world: World + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + SetWorld(world: World) + +

    + +
  2. +

    + new + + SetWorld() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any - -
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/actors/Start$.html b/doc/graphyx/actors/Start$.html new file mode 100644 index 0000000..07e2465 --- /dev/null +++ b/doc/graphyx/actors/Start$.html @@ -0,0 +1,177 @@ + + + + + Scaladoc for graphyx.actors.Start + + + + + + + + + +

graphyx.actors

+ +
+ +

Start

+
+ +

+ object + + Start extends Product + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + productArity: Int + +

    + +
  5. +

    + def + + productElement(arg0: Int): Any + +

    + +
  6. +

    + def + + productElements: Iterator[Any] + +

    + +
  7. +

    + def + + productIterator: Iterator[Any] + +

    + +
  8. +

    + def + + productPrefix: String + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/actors/Start$object.html b/doc/graphyx/actors/Start$object.html deleted file mode 100644 index 3d38727..0000000 --- a/doc/graphyx/actors/Start$object.html +++ /dev/null @@ -1,205 +0,0 @@ - - - object Start in graphyx.actors - - - - - - - - - - - -
- graphyx.actors -

- object Start -

-
- [source: graphyx/actors/Start.scala] -

-
-
- - case - object - Start -
-
extends scala.Product
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- protected def - - readResolve - : AnyRef - - -
- override final def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - -
Method Details
-
- - override final - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
- - override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

-
-
- - protected - def - readResolve : AnyRef -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors/Stop$.html b/doc/graphyx/actors/Stop$.html new file mode 100644 index 0000000..1f24ac2 --- /dev/null +++ b/doc/graphyx/actors/Stop$.html @@ -0,0 +1,177 @@ + + + + + Scaladoc for graphyx.actors.Stop + + + + + + + + + +

graphyx.actors

+ +
+ +

Stop

+
+ +

+ object + + Stop extends Product + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + productArity: Int + +

    + +
  5. +

    + def + + productElement(arg0: Int): Any + +

    + +
  6. +

    + def + + productElements: Iterator[Any] + +

    + +
  7. +

    + def + + productIterator: Iterator[Any] + +

    + +
  8. +

    + def + + productPrefix: String + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/actors/Stop$object.html b/doc/graphyx/actors/Stop$object.html deleted file mode 100644 index c4d3caf..0000000 --- a/doc/graphyx/actors/Stop$object.html +++ /dev/null @@ -1,205 +0,0 @@ - - - object Stop in graphyx.actors - - - - - - - - - - - -
- graphyx.actors -

- object Stop -

-
- [source: graphyx/actors/Stop.scala] -

-
-
- - case - object - Stop -
-
extends scala.Product
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- protected def - - readResolve - : AnyRef - - -
- override final def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - -
Method Details
-
- - override final - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
- - override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

-
-
- - protected - def - readResolve : AnyRef -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/actors/package.html b/doc/graphyx/actors/package.html new file mode 100644 index 0000000..ad16685 --- /dev/null +++ b/doc/graphyx/actors/package.html @@ -0,0 +1,113 @@ + + + + + Scaladoc for graphyx.actors + + + + + + + + + +

graphyx

+ +
+ +

actors

+
+ +

+ package + + actors + +

+
+ + + + + +
+ +
+ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/graphics$content.html b/doc/graphyx/graphics$content.html deleted file mode 100644 index b9d8189..0000000 --- a/doc/graphyx/graphics$content.html +++ /dev/null @@ -1,332 +0,0 @@ - - - All classes and objects in graphyx.graphics - - -
Simple Mechanics Simulator (SiMS) API

This document is the API specification for SiMS

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class Summary
- trait - - Drawable - extends AnyRef - -
Enthaelt Methoden und Felder fuer graphische Darstellungen. - Alle Klassen die dieses Trait implementieren koennen graphisch dargestellt werden.
-
- case class - - GraphicalAABB - (val real : AABB) extends AABB with GraphicalObject - - -
- case class - - GraphicalBody - (val real : Body) extends GraphicalObject with scala.Product - - -
- case class - - GraphicalCircle - (val real : Circle) extends Circle with GraphicalShape - - -
- case class - - GraphicalCollision - (val real : Collision) extends GraphicalObject with scala.Product - - -
- case class - - GraphicalDistanceJoint - (val real : DistanceJoint) extends GraphicalJoint with scala.Product - - -
- trait - - GraphicalJoint - extends GraphicalObject - - -
- trait - - GraphicalObject - extends Drawable - -
Only copies functional info! (e.g. Graphical world does not include shapes, bodies).
-
- case class - - GraphicalPair - (val real : Pair) extends GraphicalObject with scala.Product - - -
- case class - - GraphicalRectangle - (val real : Rectangle) extends Rectangle with GraphicalShape - - -
- case class - - GraphicalRegularPolygon - (val real : RegularPolygon) extends RegularPolygon with GraphicalShape - - -
- case class - - GraphicalRevoluteJoint - (val real : RevoluteJoint) extends GraphicalJoint with scala.Product - - -
- trait - - GraphicalShape - extends Shape with GraphicalObject - - -
- case class - - GraphicalSpringJoint - (val real : SpringJoint) extends GraphicalJoint with scala.Product - - -
- case class - - GraphicalWorld - (val real : World) extends scala.Product - - -
- case class - - Scene - (val real : World) extends scala.Product - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Object Summary
- object - - GraphicalAABB - extends (AABB) => GraphicalAABB - - -
- object - - GraphicalBody - extends (Body) => GraphicalBody - - -
- object - - GraphicalCircle - extends (Circle) => GraphicalCircle - - -
- object - - GraphicalCollision - extends (Collision) => GraphicalCollision - - -
- object - - GraphicalDistanceJoint - extends (DistanceJoint) => GraphicalDistanceJoint - - -
- object - - GraphicalPair - extends (Pair) => GraphicalPair - - -
- object - - GraphicalRectangle - extends (Rectangle) => GraphicalRectangle - - -
- object - - GraphicalRegularPolygon - extends (RegularPolygon) => GraphicalRegularPolygon - - -
- object - - GraphicalRevoluteJoint - extends (RevoluteJoint) => GraphicalRevoluteJoint - - -
- object - - GraphicalSpringJoint - extends (SpringJoint) => GraphicalSpringJoint - - -
- object - - GraphicalWorld - extends (World) => GraphicalWorld - - -
- object - - Parser - extends AnyRef - - -
- object - - Scene - extends (World) => Scene - - -
- \ No newline at end of file diff --git a/doc/graphyx/graphics$package.html b/doc/graphyx/graphics$package.html deleted file mode 100644 index 94f5f77..0000000 --- a/doc/graphyx/graphics$package.html +++ /dev/null @@ -1,43 +0,0 @@ - - - List of classes and objects in package graphyx.graphics - - - - -
Classes
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx/graphics/Drawable.html b/doc/graphyx/graphics/Drawable.html index f5e00fc..58243d7 100644 --- a/doc/graphyx/graphics/Drawable.html +++ b/doc/graphyx/graphics/Drawable.html @@ -1,397 +1,337 @@ - + + - trait Drawable in graphyx.graphics - + + Scaladoc for graphyx.graphics.Drawable + + + + + + - - - - - - - - - -
- graphyx.graphics -

- trait Drawable -

-
- [source: graphyx/graphics/Drawable.scala] -

-
-
- - - trait - Drawable -
-
extends AnyRef
-
-
Enthaelt Methoden und Felder fuer graphische Darstellungen. - Alle Klassen die dieses Trait implementieren koennen graphisch dargestellt werden.
-
-
-
Direct Known Subclasses:
-
GraphicalObject
-

+ +

graphyx.graphics

- - - - - - - - - - - - - - - - - - -
Value Summary
- var - - g - : java.awt.Graphics - -
Java Graphics Objekt zur graphischen Darstellung
-
- var - - ppm - : Double - -
Anzahl von Pixeln pro Meter.
-
- var - - scale - : Double - -
Skala in der die graphischen Objekte gezeichnet werden.
-
- var - - windowHeight - : Int - -
Hoehe des Fensters in Pixeln.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - correctY - (y : Double) : Double - -
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
-
- abstract def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- def - - drawCircle - (center : Vector2D, radius : Double) : Unit - -
Malt einen Kreis auf g.
-
- def - - drawLine - (startPoint : Vector2D, endPoint : Vector2D) : Unit - -
Malt eine Linie auf g.
-
- def - - drawPoint - (point : Vector2D) : Unit - -
Malt einen Punkt auf g.
-
- def - - drawPolygon - (points : scala.Seq[Vector2D]) : Unit - -
Malt ein Polygon auf g.
-
- def - - drawVector - (v : Vector2D, p : Vector2D) : Unit - -
Malt einen Vektor auf g.
-
- def - - fillCircle - (center : Vector2D, radius : Double) : Unit - -
Malt einen massiven Kreis auf g.
-
- def - - fillPolygon - (points : scala.Seq[Vector2D]) : Unit - -
Malt ein massives Polygon auf g.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

Drawable

+
+

+ trait + + Drawable extends AnyRef + +

+
+

Enthaelt Methoden und Felder fuer graphische Darstellungen. +Alle Klassen die dieses Trait implementieren koennen graphisch dargestellt werden.

- - - -
Value Details
-
- - - var - g : java.awt.Graphics -
-
-
-
Java Graphics Objekt zur graphischen Darstellung
-
-
-
-
- - - var - ppm : Double -
-
-
-
Anzahl von Pixeln pro Meter.
-
-
-
-
- - - var - scale : Double -
-
-
-
Skala in der die graphischen Objekte gezeichnet werden.
-
-
-
-
- - - var - windowHeight : Int -
-
-
-
Hoehe des Fensters in Pixeln.
-
-
- - -
Method Details
-
- - - def - correctY(y : Double) : Double -
-
-
-
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
-
- Parameters
y - zu korrigierender Wert
-
-
-
- - - def - drawLine(startPoint : Vector2D, endPoint : Vector2D) : Unit -
-
-
-
Malt eine Linie auf g.
-
- Parameters
startPoint - Startpunkt in Weltkoordinaten
endPoint - Endpunkt in Weltkoordinaten
-
-
-
- - - def - fillPolygon(points : scala.Seq[Vector2D]) : Unit -
-
-
-
Malt ein massives Polygon auf g.
-
- Parameters
points - Eckpunkte des Polygons in Weltkoordinaten
-
-
-
+ + +
+ known subclasses: GraphicalObject +
+
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
- - def - drawPolygon(points : scala.Seq[Vector2D]) : Unit - -
- -
Malt ein Polygon auf g.
-
- Parameters
points - Eckpunkte des Polygons in Weltkoordinaten
-
-
-
- - def - fillCircle(center : Vector2D, radius : Double) : Unit -
-
-
-
Malt einen massiven Kreis auf g.
-
- Parameters
center - Mitte des Kreises in Weltkoordinaten
radius - Radius des Kreises
-
-
-
- - def - drawCircle(center : Vector2D, radius : Double) : Unit -
-
-
-
Malt einen Kreis auf g.
-
- Parameters
center - Mitte des Kreises in Weltkoordinaten
radius - Radius des Kreises
-
-
-
+
+

Value Members

+
  1. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + + + +
    +
  2. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + +
    + attributes: abstract +
    + + +
    +
  3. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + + + +
    +
  4. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + + + +
    +
  5. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + + + +
    +
  6. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + + + +
    +
  7. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + + + +
    +
  8. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  9. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + + + +
    +
  10. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + + + +
    +
  11. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + + + +
    +
  12. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  13. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + + + +
    +
  14. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + + + +
    +
  15. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  16. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + + + +
    +
+
- - def - drawPoint(point : Vector2D) : Unit -
-
-
-
Malt einen Punkt auf g. -

- Der Punkt wird von einem Kreis umgeben.

-
- Parameters
point - Punkt in Weltkoordinaten
-
-
-
- - def - drawVector(v : Vector2D, p : Vector2D) : Unit -
-
-
-
Malt einen Vektor auf g.
-
- Parameters
v - Vektor in Weltkoordinaten
p - Ursprungspunkt in Weltkoordinaten
-
-
-
- abstract - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalAABB$object.html b/doc/graphyx/graphics/GraphicalAABB$object.html deleted file mode 100644 index 02225f7..0000000 --- a/doc/graphyx/graphics/GraphicalAABB$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalAABB in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalAABB -

-
- [source: graphyx/graphics/GraphicalAABB.scala] -

-
-
- - - object - GraphicalAABB -
-
extends (AABB) => GraphicalAABB
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalAABB.html b/doc/graphyx/graphics/GraphicalAABB.html index 6855bd7..1bb096d 100644 --- a/doc/graphyx/graphics/GraphicalAABB.html +++ b/doc/graphyx/graphics/GraphicalAABB.html @@ -1,355 +1,471 @@ - + + - class GraphicalAABB in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalAABB + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalAABB -

-
- [source: graphyx/graphics/GraphicalAABB.scala] -

-
-
- - case - class - GraphicalAABB(val real : AABB) -
-
extends AABB with GraphicalObject
-
+ +

graphyx.graphics

- - - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - -
- Values and Variables inherited from AABB -
- minVertex, maxVertex -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AABB -
- overlaps -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalAABB

+
+

+ class + + GraphicalAABB(real: AABB) extends AABB with GraphicalObject with Product + +

+
- - - - -
Method Details
-
- - override - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
- Overrides -
-
- GraphicalObject.draw -
-

-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
- Overrides -
-
- AABB.hashCode -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalObject
  2. Drawable
  3. AABB
  4. Product
  5. Equals
  6. AnyRef
  7. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
- Overrides -
-
- AABB.toString -
-

-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
- Overrides -
-
- AABB.equals -
-

-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- AABB.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  3. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  4. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  10. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  14. +

    + val + + maxVertex: Vector2D + +

    + +
  15. +

    + val + + minVertex: Vector2D + +

    + +
  16. +

    + def + + overlaps(box: AABB): Boolean + +

    +

    Checks this AABB with box for overlap

    +

    Checks this AABB with box for overlap.

    +
    box

    AABB with which to check for overlap

    + +
    + definition classes: AABB +
    + +
    +
  17. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + def + + productArity: Int + +

    + +
  19. +

    + def + + productElement(arg0: Int): Any + +

    + +
  20. +

    + def + + productElements: Iterator[Any] + +

    + +
  21. +

    + def + + productIterator: Iterator[Any] + +

    + +
  22. +

    + def + + productPrefix: String + +

    + +
  23. +

    + val + + real: AABB + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  24. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  25. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  26. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- AABB.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalAABB(real: AABB) + +

    + +
  2. +

    + new + + GraphicalAABB(minVertex: Vector2D, maxVertex: Vector2D) + +

    + +
  3. +

    + new + + GraphicalAABB() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- AABB.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalBody$object.html b/doc/graphyx/graphics/GraphicalBody$object.html deleted file mode 100644 index cd8f5c8..0000000 --- a/doc/graphyx/graphics/GraphicalBody$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalBody in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalBody -

-
- [source: graphyx/graphics/GraphicalBody.scala] -

-
-
- - - object - GraphicalBody -
-
extends (Body) => GraphicalBody
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalBody.html b/doc/graphyx/graphics/GraphicalBody.html index 8b3c88d..9e1870a 100644 --- a/doc/graphyx/graphics/GraphicalBody.html +++ b/doc/graphyx/graphics/GraphicalBody.html @@ -1,383 +1,455 @@ - + + - class GraphicalBody in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalBody + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalBody -

-
- [source: graphyx/graphics/GraphicalBody.scala] -

-
-
- - case - class - GraphicalBody(val real : Body) -
-
extends GraphicalObject with scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - - - - - -
Value Summary
- val - - fixed - : Boolean - - -
- val - - monitor - : Boolean - - -
- val - - pos - : Vector2D - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalBody

+
+

+ class + + GraphicalBody(real: Body) extends GraphicalObject with Product + +

+
- - - -
Value Details
-
- - - val - pos : Vector2D -
-
-

-
-
- - - val - fixed : Boolean -
-
-

-
-
- - - val - monitor : Boolean -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
- Overrides -
-
- GraphicalObject.draw -
-

-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalObject
  4. Drawable
  5. AnyRef
  6. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  3. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  4. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  10. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + val + + fixed: Boolean + +

    + +
  13. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  15. +

    + val + + monitor: Boolean + +

    + +
  16. +

    + val + + pos: Vector2D + +

    + +
  17. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + def + + productArity: Int + +

    + +
  19. +

    + def + + productElement(arg0: Int): Any + +

    + +
  20. +

    + def + + productElements: Iterator[Any] + +

    + +
  21. +

    + def + + productIterator: Iterator[Any] + +

    + +
  22. +

    + def + + productPrefix: String + +

    + +
  23. +

    + val + + real: Body + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  24. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  25. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  26. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalBody(real: Body) + +

    + +
  2. +

    + new + + GraphicalBody() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalCircle$object.html b/doc/graphyx/graphics/GraphicalCircle$object.html deleted file mode 100644 index bdf676e..0000000 --- a/doc/graphyx/graphics/GraphicalCircle$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalCircle in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalCircle -

-
- [source: graphyx/graphics/GraphicalCircle.scala] -

-
-
- - - object - GraphicalCircle -
-
extends (Circle) => GraphicalCircle
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalCircle.html b/doc/graphyx/graphics/GraphicalCircle.html index 613c136..a9293f4 100644 --- a/doc/graphyx/graphics/GraphicalCircle.html +++ b/doc/graphyx/graphics/GraphicalCircle.html @@ -1,369 +1,770 @@ - + + - class GraphicalCircle in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalCircle + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalCircle -

-
- [source: graphyx/graphics/GraphicalCircle.scala] -

-
-
- - case - class - GraphicalCircle(val real : Circle) -
-
extends Circle with GraphicalShape
-
+ +

graphyx.graphics

- - - -
- Values and Variables inherited from GraphicalShape -
- uid -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - -
- Values and Variables inherited from Circle -
- radius, density, volume, I -
- - -
- Values and Variables inherited from Shape -
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from Circle -
- AABB, project, contains -
- - -
- Methods inherited from Shape -
- mass, body, asBody, ~, ~ -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalCircle

+
+

+ class + + GraphicalCircle(real: Circle) extends Circle with GraphicalShape with Product + +

+
- - - - -
Method Details
-
- - override - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
- Overrides -
-
- Circle.hashCode -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalShape
  2. GraphicalObject
  3. Drawable
  4. Circle
  5. Product
  6. Equals
  7. Shape
  8. AnyRef
  9. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
- Overrides -
-
- Circle.toString -
-

-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
- Overrides -
-
- Circle.equals -
-

-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- Circle.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + AABB: AABB + +

    +

    Returns this shape's axis aligned bounding box

    +

    Returns this shape's axis aligned bounding box.

    + + +
    + definition classes: CircleShape +
    + +
    +
  2. +

    + val + + I: Double + +

    +

    Moment of inertia for a rotation about this shape's COM

    +

    Moment of inertia for a rotation about this shape's COM.

    + + +
    + definition classes: CircleShape +
    + +
    +
  3. +

    + def + + asBody: Body + +

    +

    Creates a new body made out of tis shape

    +

    Creates a new body made out of tis shape.

    + + +
    + definition classes: Shape +
    + +
    +
  4. +

    + def + + body: Body + +

    +

    Returns this shape's containing body

    +

    Returns this shape's containing body.

    + + +
    + definition classes: Shape +
    + +
    +
  5. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  6. +

    + var + + collidable: Boolean + +

    +

    Flag determining this shapes ability to collide with other shapes

    +

    Flag determining this shapes ability to collide with other shapes.

    + + +
    + definition classes: Shape +
    + +
    +
  7. +

    + def + + contains(point: Vector2D): Boolean + +

    +

    Checks if the point point is contained in this shape

    +

    Checks if the point point is contained in this shape.

    + + +
    + definition classes: CircleShape +
    + +
    +
  8. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + val + + density: Double + +

    +

    Density

    +

    Density. (Mass per area)

    + + +
    + definition classes: CircleShape +
    + +
    +
  10. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  11. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  17. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  19. +

    + var + + friction: Double + +

    +

    Part of the coefficient of friction for a collision between this shape and another

    +

    Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  20. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  21. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  22. +

    + def + + mass: Double + +

    +

    Returns the mass of this shape

    +

    Returns the mass of this shape. The mass is given by volume times density.

    + + +
    + definition classes: Shape +
    + +
    +
  23. +

    + var + + pos: Vector2D + +

    +

    Position of this shape's COM (in world coordinates)

    +

    Position of this shape's COM (in world coordinates).

    + + +
    + definition classes: Shape +
    + +
    +
  24. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  25. +

    + def + + productArity: Int + +

    + +
  26. +

    + def + + productElement(arg0: Int): Any + +

    + +
  27. +

    + def + + productElements: Iterator[Any] + +

    + +
  28. +

    + def + + productIterator: Iterator[Any] + +

    + +
  29. +

    + def + + productPrefix: String + +

    + +
  30. +

    + def + + project(axis: Vector2D): Projection + +

    +

    Returns the projection of this shape onto the line given by the directional vector axis

    +

    Returns the projection of this shape onto the line given by the directional vector axis.

    +
    axis

    directional vector of the line

    returns

    projection of this shape

    + +
    + definition classes: CircleShape +
    + +
    +
  31. +

    + val + + radius: Double + +

    + +
  32. +

    + val + + real: Circle + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  33. +

    + var + + refLocalPos: Vector2D + +

    +

    Local position of this shape's body COM to its COM at a body rotation of zero

    +

    Local position of this shape's body COM to its COM at a body rotation of zero.

    + + +
    + definition classes: Shape +
    + +
    +
  34. +

    + var + + restitution: Double + +

    +

    Part of the coefficient of restitution for a collision between this shape and another

    +

    Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  35. +

    + var + + rotation: Double + +

    +

    Rotation of this shape about its COM

    +

    Rotation of this shape about its COM.

    + + +
    + definition classes: Shape +
    + +
    +
  36. +

    + var + + rotation0: Double + +

    +

    Initial rotation

    +

    Initial rotation. Rotation of this shape before it was added to a body.

    + + +
    + definition classes: Shape +
    + +
    +
  37. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  38. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  39. +

    + val + + transientShapes: Set[Shape] + +

    +

    Shapes with which this shape cannot collide

    +

    Shapes with which this shape cannot collide.

    + + +
    + definition classes: Shape +
    + +
    +
  40. +

    + val + + uid: Int + +

    +

    Unique identification number

    +

    Unique identification number.

    + + +
    + definition classes: GraphicalShapeShape +
    + +
    +
  41. +

    + val + + volume: Double + +

    +

    Volume

    +

    Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

    + + +
    + definition classes: CircleShape +
    + +
    +
  42. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
  43. +

    + def + + ~(b: Body): Body + +

    +

    Creates a new body out of this shape and the shapes of body b

    +

    Creates a new body out of this shape and the shapes of body b.

    + + +
    + definition classes: Shape +
    + +
    +
  44. +

    + def + + ~(s: Shape): Body + +

    +

    Creates a new body out of this shape and the shape s

    +

    Creates a new body out of this shape and the shape s.

    + + +
    + definition classes: Shape +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- Circle.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalCircle(real: Circle) + +

    + +
  2. +

    + new + + GraphicalCircle(radius: Double, density: Double) + +

    + +
  3. +

    + new + + GraphicalCircle() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- Circle.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalCollision$object.html b/doc/graphyx/graphics/GraphicalCollision$object.html deleted file mode 100644 index 6c382a1..0000000 --- a/doc/graphyx/graphics/GraphicalCollision$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalCollision in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalCollision -

-
- [source: graphyx/graphics/GraphicalCollision.scala] -

-
-
- - - object - GraphicalCollision -
-
extends (Collision) => GraphicalCollision
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalCollision.html b/doc/graphyx/graphics/GraphicalCollision.html index 4d8c1e9..7269402 100644 --- a/doc/graphyx/graphics/GraphicalCollision.html +++ b/doc/graphyx/graphics/GraphicalCollision.html @@ -1,363 +1,447 @@ - + + - class GraphicalCollision in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalCollision + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalCollision -

-
- [source: graphyx/graphics/GraphicalCollision.scala] -

-
-
- - case - class - GraphicalCollision(val real : Collision) -
-
extends GraphicalObject with scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - -
Value Summary
- val - - normal - : Vector2D - - -
- val - - points - : scala.Iterable[Vector2D] - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalCollision

+
+

+ class + + GraphicalCollision(real: Collision) extends GraphicalObject with Product + +

+
- - - -
Value Details
-
- - - val - points : scala.Iterable[Vector2D] -
-
-

-
-
- - - val - normal : Vector2D -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
- Overrides -
-
- GraphicalObject.draw -
-

-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalObject
  4. Drawable
  5. AnyRef
  6. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  3. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  4. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  10. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  14. +

    + val + + normal: Vector2D + +

    + +
  15. +

    + val + + points: Iterable[Vector2D] + +

    + +
  16. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  17. +

    + def + + productArity: Int + +

    + +
  18. +

    + def + + productElement(arg0: Int): Any + +

    + +
  19. +

    + def + + productElements: Iterator[Any] + +

    + +
  20. +

    + def + + productIterator: Iterator[Any] + +

    + +
  21. +

    + def + + productPrefix: String + +

    + +
  22. +

    + val + + real: Collision + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  23. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  24. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  25. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalCollision(real: Collision) + +

    + +
  2. +

    + new + + GraphicalCollision() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalDistanceJoint$object.html b/doc/graphyx/graphics/GraphicalDistanceJoint$object.html deleted file mode 100644 index 709089b..0000000 --- a/doc/graphyx/graphics/GraphicalDistanceJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalDistanceJoint in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalDistanceJoint -

-
- [source: graphyx/graphics/GraphicalDistanceJoint.scala] -

-
-
- - - object - GraphicalDistanceJoint -
-
extends (DistanceJoint) => GraphicalDistanceJoint
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalDistanceJoint.html b/doc/graphyx/graphics/GraphicalDistanceJoint.html index bb001e3..d91ae56 100644 --- a/doc/graphyx/graphics/GraphicalDistanceJoint.html +++ b/doc/graphyx/graphics/GraphicalDistanceJoint.html @@ -1,356 +1,447 @@ - + + - class GraphicalDistanceJoint in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalDistanceJoint + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalDistanceJoint -

-
- [source: graphyx/graphics/GraphicalDistanceJoint.scala] -

-
-
- - case - class - GraphicalDistanceJoint(val real : DistanceJoint) -
-
extends GraphicalJoint with scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - -
Value Summary
- val - - connection1 - : Vector2D - - -
- val - - connection2 - : Vector2D - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalDistanceJoint

+
+

+ class + + GraphicalDistanceJoint(real: DistanceJoint) extends GraphicalJoint with Product + +

+
- - - -
Value Details
-
- - - val - connection1 : Vector2D -
-
-

-
-
- - - val - connection2 : Vector2D -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalJoint
  4. GraphicalObject
  5. Drawable
  6. AnyRef
  7. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + val + + connection1: Vector2D + +

    + +
  3. +

    + val + + connection2: Vector2D + +

    + +
  4. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  6. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  10. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  12. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  16. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  17. +

    + def + + productArity: Int + +

    + +
  18. +

    + def + + productElement(arg0: Int): Any + +

    + +
  19. +

    + def + + productElements: Iterator[Any] + +

    + +
  20. +

    + def + + productIterator: Iterator[Any] + +

    + +
  21. +

    + def + + productPrefix: String + +

    + +
  22. +

    + val + + real: DistanceJoint + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  23. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  24. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  25. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalDistanceJoint(real: DistanceJoint) + +

    + +
  2. +

    + new + + GraphicalDistanceJoint() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalJoint.html b/doc/graphyx/graphics/GraphicalJoint.html index 69c1c32..58afee3 100644 --- a/doc/graphyx/graphics/GraphicalJoint.html +++ b/doc/graphyx/graphics/GraphicalJoint.html @@ -1,132 +1,378 @@ - + + - trait GraphicalJoint in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalJoint + + + + + + - - - - - - - - - -
- graphyx.graphics -

- trait GraphicalJoint -

-
- [source: graphyx/graphics/GraphicalJoint.scala] -

-
-
- - - trait - GraphicalJoint -
-
extends GraphicalObject
-
-
Direct Known Subclasses:
-
GraphicalDistanceJoint, GraphicalRevoluteJoint, GraphicalSpringJoint
-

+ +

graphyx.graphics

- - - - - - -
Value Summary
- abstract val - - real - : Joint - -
Pointer to real object.
-
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - -
- Methods inherited from GraphicalObject -
- draw (abstract) -
- +
+ +

GraphicalJoint

+
+

+ trait + + GraphicalJoint extends GraphicalObject + +

+
- - - -
Value Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalObject
  2. Drawable
  3. AnyRef
  4. Any
+
+
- abstract - val - real : Joint - -
- -
Pointer to real object.
-
-
-
- Overrides -
-
- GraphicalObject.real -
-

- - - -
- - - - - - - - + + +
+

Value Members

+
  1. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  2. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + +
    + attributes: abstract +
    +
    + definition classes: GraphicalObjectDrawable +
    + +
    +
  3. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  4. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  9. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  10. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  13. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + val + + real: Joint + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + +
    + attributes: abstract +
    + + +
    +
  15. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  17. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
+ + + +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalObject.html b/doc/graphyx/graphics/GraphicalObject.html index 4add644..c99d087 100644 --- a/doc/graphyx/graphics/GraphicalObject.html +++ b/doc/graphyx/graphics/GraphicalObject.html @@ -1,154 +1,376 @@ - + + - trait GraphicalObject in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalObject + + + + + + - - - - - - - - - -
- graphyx.graphics -

- trait GraphicalObject -

-
- [source: graphyx/graphics/GraphicalObject.scala] -

-
-
- - - trait - GraphicalObject -
-
extends Drawable
-
-
Only copies functional info! (e.g. Graphical world does not include shapes, bodies).
-
-
-
Direct Known Subclasses:
-
GraphicalAABB, GraphicalBody, GraphicalCollision, GraphicalJoint, GraphicalPair, GraphicalShape
-

+ +

graphyx.graphics

- - - - - - -
Value Summary
- abstract val - - real - : AnyRef +
+ +

GraphicalObject

+
+ +

+ trait + + GraphicalObject extends Drawable + +

+
+

Only copies functional info! (e.g. Graphical world does not include shapes, bodies).

+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Drawable
  2. AnyRef
  3. Any
+
+
-
Pointer to real object.
-
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - -
Method Summary
- abstract def - - draw - : Unit -
Stellt das graphische Objekt dar.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - + +
+

Value Members

+
  1. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    - - - -
    Value Details
    -
    +
    + definition classes: Drawable +
    + +
    +
  2. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + +
    + attributes: abstract +
    + + +
    +
  3. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  4. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  9. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  10. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  13. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + val + + real: AnyRef + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + +
    + attributes: abstract +
    + + +
    +
  15. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  17. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- abstract - val - real : AnyRef - -
- -
Pointer to real object.
-
-
- - -
Method Details
-
- abstract - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
- Overrides -
-
- Drawable.draw -
-

- - -
- - - - - - - - + + + + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalPair$object.html b/doc/graphyx/graphics/GraphicalPair$object.html deleted file mode 100644 index 7b37b60..0000000 --- a/doc/graphyx/graphics/GraphicalPair$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalPair in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalPair -

-
- [source: graphyx/graphics/GraphicalPair.scala] -

-
-
- - - object - GraphicalPair -
-
extends (Pair) => GraphicalPair
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalPair.html b/doc/graphyx/graphics/GraphicalPair.html index 27ad098..637de0b 100644 --- a/doc/graphyx/graphics/GraphicalPair.html +++ b/doc/graphyx/graphics/GraphicalPair.html @@ -1,363 +1,447 @@ - + + - class GraphicalPair in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalPair + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalPair -

-
- [source: graphyx/graphics/GraphicalPair.scala] -

-
-
- - case - class - GraphicalPair(val real : Pair) -
-
extends GraphicalObject with scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - -
Value Summary
- val - - pos1 - : Vector2D - - -
- val - - pos2 - : Vector2D - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalPair

+
+

+ class + + GraphicalPair(real: Pair) extends GraphicalObject with Product + +

+
- - - -
Value Details
-
- - - val - pos1 : Vector2D -
-
-

-
-
- - - val - pos2 : Vector2D -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
- Overrides -
-
- GraphicalObject.draw -
-

-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalObject
  4. Drawable
  5. AnyRef
  6. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  3. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  4. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  10. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  14. +

    + val + + pos1: Vector2D + +

    + +
  15. +

    + val + + pos2: Vector2D + +

    + +
  16. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  17. +

    + def + + productArity: Int + +

    + +
  18. +

    + def + + productElement(arg0: Int): Any + +

    + +
  19. +

    + def + + productElements: Iterator[Any] + +

    + +
  20. +

    + def + + productIterator: Iterator[Any] + +

    + +
  21. +

    + def + + productPrefix: String + +

    + +
  22. +

    + val + + real: Pair + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  23. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  24. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  25. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalPair(real: Pair) + +

    + +
  2. +

    + new + + GraphicalPair() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRectangle$object.html b/doc/graphyx/graphics/GraphicalRectangle$object.html deleted file mode 100644 index cb18cac..0000000 --- a/doc/graphyx/graphics/GraphicalRectangle$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalRectangle in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalRectangle -

-
- [source: graphyx/graphics/GraphicalRectangle.scala] -

-
-
- - - object - GraphicalRectangle -
-
extends (Rectangle) => GraphicalRectangle
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRectangle.html b/doc/graphyx/graphics/GraphicalRectangle.html index 27d2809..5202e32 100644 --- a/doc/graphyx/graphics/GraphicalRectangle.html +++ b/doc/graphyx/graphics/GraphicalRectangle.html @@ -1,376 +1,836 @@ - + + - class GraphicalRectangle in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalRectangle + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalRectangle -

-
- [source: graphyx/graphics/GraphicalRectangle.scala] -

-
-
- - case - class - GraphicalRectangle(val real : Rectangle) -
-
extends Rectangle with GraphicalShape
-
+ +

graphyx.graphics

- - - -
- Values and Variables inherited from GraphicalShape -
- uid -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - -
- Values and Variables inherited from Rectangle -
- halfWidth, halfHeight, density, volume, I -
- - -
- Values and Variables inherited from Shape -
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from Rectangle -
- halfDiags, vertices -
- - -
- Methods inherited from ConvexPolygon -
- sides, project, AABB, contains -
- - -
- Methods inherited from Shape -
- mass, body, asBody, ~, ~ -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalRectangle

+
+

+ class + + GraphicalRectangle(real: Rectangle) extends Rectangle with GraphicalShape with Product + +

+
- - - - -
Method Details
-
- - override - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
- Overrides -
-
- Rectangle.hashCode -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalShape
  2. GraphicalObject
  3. Drawable
  4. Rectangle
  5. Product
  6. Equals
  7. ConvexPolygon
  8. Shape
  9. AnyRef
  10. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
- Overrides -
-
- Rectangle.toString -
-

-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
- Overrides -
-
- Rectangle.equals -
-

-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- Rectangle.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + AABB: AABB + +

    +

    Returns this polygon's axis aligned bounding box

    +

    Returns this polygon's axis aligned bounding box.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  2. +

    + val + + I: Double + +

    +

    Moment of inertia for a rotation about this shape's COM

    +

    Moment of inertia for a rotation about this shape's COM.

    + + +
    + definition classes: RectangleShape +
    + +
    +
  3. +

    + def + + asBody: Body + +

    +

    Creates a new body made out of tis shape

    +

    Creates a new body made out of tis shape.

    + + +
    + definition classes: Shape +
    + +
    +
  4. +

    + def + + body: Body + +

    +

    Returns this shape's containing body

    +

    Returns this shape's containing body.

    + + +
    + definition classes: Shape +
    + +
    +
  5. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  6. +

    + var + + collidable: Boolean + +

    +

    Flag determining this shapes ability to collide with other shapes

    +

    Flag determining this shapes ability to collide with other shapes.

    + + +
    + definition classes: Shape +
    + +
    +
  7. +

    + def + + contains(point: Vector2D): Boolean + +

    +

    Checks if the point point is contained in this polygon

    +

    Checks if the point point is contained in this polygon. +

    +A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  8. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + val + + density: Double + +

    +

    Density

    +

    Density. (Mass per area)

    + + +
    + definition classes: RectangleShape +
    + +
    +
  10. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  11. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  17. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  19. +

    + var + + friction: Double + +

    +

    Part of the coefficient of friction for a collision between this shape and another

    +

    Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  20. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  21. +

    + def + + halfDiags: Array[Vector2D] + +

    +

    Returns the vectors from the center to the vertices of this rectangle

    +

    Returns the vectors from the center to the vertices of this rectangle. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.

    + + +
    + definition classes: Rectangle +
    + +
    +
  22. +

    + val + + halfHeight: Double + +

    + +
  23. +

    + val + + halfWidth: Double + +

    + +
  24. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  25. +

    + def + + mass: Double + +

    +

    Returns the mass of this shape

    +

    Returns the mass of this shape. The mass is given by volume times density.

    + + +
    + definition classes: Shape +
    + +
    +
  26. +

    + var + + pos: Vector2D + +

    +

    Position of this shape's COM (in world coordinates)

    +

    Position of this shape's COM (in world coordinates).

    + + +
    + definition classes: Shape +
    + +
    +
  27. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  28. +

    + def + + productArity: Int + +

    + +
  29. +

    + def + + productElement(arg0: Int): Any + +

    + +
  30. +

    + def + + productElements: Iterator[Any] + +

    + +
  31. +

    + def + + productIterator: Iterator[Any] + +

    + +
  32. +

    + def + + productPrefix: String + +

    + +
  33. +

    + def + + project(axis: Vector2D): Projection + +

    +

    Returns the projection of this polygon onto the line given by the directional vector axis

    +

    Returns the projection of this polygon onto the line given by the directional vector axis.

    +
    axis

    directional vector of the line

    returns

    projection of this polygon

    + +
    + definition classes: ConvexPolygon +
    + +
    +
  34. +

    + val + + real: Rectangle + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  35. +

    + var + + refLocalPos: Vector2D + +

    +

    Local position of this shape's body COM to its COM at a body rotation of zero

    +

    Local position of this shape's body COM to its COM at a body rotation of zero.

    + + +
    + definition classes: Shape +
    + +
    +
  36. +

    + var + + restitution: Double + +

    +

    Part of the coefficient of restitution for a collision between this shape and another

    +

    Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  37. +

    + var + + rotation: Double + +

    +

    Rotation of this shape about its COM

    +

    Rotation of this shape about its COM.

    + + +
    + definition classes: Shape +
    + +
    +
  38. +

    + var + + rotation0: Double + +

    +

    Initial rotation

    +

    Initial rotation. Rotation of this shape before it was added to a body.

    + + +
    + definition classes: Shape +
    + +
    +
  39. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  40. +

    + def + + sides: Array[Segment] + +

    +

    Returns all sides of this polygon

    +

    Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  41. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  42. +

    + val + + transientShapes: Set[Shape] + +

    +

    Shapes with which this shape cannot collide

    +

    Shapes with which this shape cannot collide.

    + + +
    + definition classes: Shape +
    + +
    +
  43. +

    + val + + uid: Int + +

    +

    Unique identification number

    +

    Unique identification number.

    + + +
    + definition classes: GraphicalShapeShape +
    + +
    +
  44. +

    + def + + vertices: Seq[Vector2D] + +

    +

    Returns the position vectors of this rectangle's vertices

    +

    Returns the position vectors of this rectangle's vertices. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.@return position vectors of the vertices

    + + +
    + definition classes: RectangleConvexPolygon +
    + +
    +
  45. +

    + val + + volume: Double + +

    +

    Volume

    +

    Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

    + + +
    + definition classes: RectangleShape +
    + +
    +
  46. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
  47. +

    + def + + ~(b: Body): Body + +

    +

    Creates a new body out of this shape and the shapes of body b

    +

    Creates a new body out of this shape and the shapes of body b.

    + + +
    + definition classes: Shape +
    + +
    +
  48. +

    + def + + ~(s: Shape): Body + +

    +

    Creates a new body out of this shape and the shape s

    +

    Creates a new body out of this shape and the shape s.

    + + +
    + definition classes: Shape +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- Rectangle.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalRectangle(real: Rectangle) + +

    + +
  2. +

    + new + + GraphicalRectangle(halfWidth: Double, halfHeight: Double, density: Double) + +

    + +
  3. +

    + new + + GraphicalRectangle() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- Rectangle.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRegularPolygon$object.html b/doc/graphyx/graphics/GraphicalRegularPolygon$object.html deleted file mode 100644 index 65d69bc..0000000 --- a/doc/graphyx/graphics/GraphicalRegularPolygon$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalRegularPolygon in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalRegularPolygon -

-
- [source: graphyx/graphics/GraphicalRegularPolygon.scala] -

-
-
- - - object - GraphicalRegularPolygon -
-
extends (RegularPolygon) => GraphicalRegularPolygon
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRegularPolygon.html b/doc/graphyx/graphics/GraphicalRegularPolygon.html index ee4a7aa..dc423c7 100644 --- a/doc/graphyx/graphics/GraphicalRegularPolygon.html +++ b/doc/graphyx/graphics/GraphicalRegularPolygon.html @@ -1,376 +1,824 @@ - + + - class GraphicalRegularPolygon in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalRegularPolygon + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalRegularPolygon -

-
- [source: graphyx/graphics/GraphicalRegularPolygon.scala] -

-
-
- - case - class - GraphicalRegularPolygon(val real : RegularPolygon) -
-
extends RegularPolygon with GraphicalShape
-
+ +

graphyx.graphics

- - - -
- Values and Variables inherited from GraphicalShape -
- uid -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - -
- Values and Variables inherited from RegularPolygon -
- n, radius, density, volume, I -
- - -
- Values and Variables inherited from Shape -
- collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from RegularPolygon -
- halfDiags, vertices -
- - -
- Methods inherited from ConvexPolygon -
- sides, project, AABB, contains -
- - -
- Methods inherited from Shape -
- mass, body, asBody, ~, ~ -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalRegularPolygon

+
+

+ class + + GraphicalRegularPolygon(real: RegularPolygon) extends RegularPolygon with GraphicalShape with Product + +

+
- - - - -
Method Details
-
- - override - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
- Overrides -
-
- RegularPolygon.hashCode -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalShape
  2. GraphicalObject
  3. Drawable
  4. RegularPolygon
  5. Product
  6. Equals
  7. ConvexPolygon
  8. Shape
  9. AnyRef
  10. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
- Overrides -
-
- RegularPolygon.toString -
-

-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
- Overrides -
-
- RegularPolygon.equals -
-

-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- RegularPolygon.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + AABB: AABB + +

    +

    Returns this polygon's axis aligned bounding box

    +

    Returns this polygon's axis aligned bounding box.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  2. +

    + val + + I: Double + +

    +

    Moment of inertia for a rotation about this shape's COM

    +

    Moment of inertia for a rotation about this shape's COM.

    + + +
    + definition classes: RegularPolygonShape +
    + +
    +
  3. +

    + def + + asBody: Body + +

    +

    Creates a new body made out of tis shape

    +

    Creates a new body made out of tis shape.

    + + +
    + definition classes: Shape +
    + +
    +
  4. +

    + def + + body: Body + +

    +

    Returns this shape's containing body

    +

    Returns this shape's containing body.

    + + +
    + definition classes: Shape +
    + +
    +
  5. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  6. +

    + var + + collidable: Boolean + +

    +

    Flag determining this shapes ability to collide with other shapes

    +

    Flag determining this shapes ability to collide with other shapes.

    + + +
    + definition classes: Shape +
    + +
    +
  7. +

    + def + + contains(point: Vector2D): Boolean + +

    +

    Checks if the point point is contained in this polygon

    +

    Checks if the point point is contained in this polygon. +

    +A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  8. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + val + + density: Double + +

    +

    Density

    +

    Density. (Mass per area)

    + + +
    + definition classes: RegularPolygonShape +
    + +
    +
  10. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  11. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  17. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  19. +

    + var + + friction: Double + +

    +

    Part of the coefficient of friction for a collision between this shape and another

    +

    Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  20. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  21. +

    + def + + halfDiags: Array[Vector2D] + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  23. +

    + def + + mass: Double + +

    +

    Returns the mass of this shape

    +

    Returns the mass of this shape. The mass is given by volume times density.

    + + +
    + definition classes: Shape +
    + +
    +
  24. +

    + val + + n: Int + +

    + +
  25. +

    + var + + pos: Vector2D + +

    +

    Position of this shape's COM (in world coordinates)

    +

    Position of this shape's COM (in world coordinates).

    + + +
    + definition classes: Shape +
    + +
    +
  26. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  27. +

    + def + + productArity: Int + +

    + +
  28. +

    + def + + productElement(arg0: Int): Any + +

    + +
  29. +

    + def + + productElements: Iterator[Any] + +

    + +
  30. +

    + def + + productIterator: Iterator[Any] + +

    + +
  31. +

    + def + + productPrefix: String + +

    + +
  32. +

    + def + + project(axis: Vector2D): Projection + +

    +

    Returns the projection of this polygon onto the line given by the directional vector axis

    +

    Returns the projection of this polygon onto the line given by the directional vector axis.

    +
    axis

    directional vector of the line

    returns

    projection of this polygon

    + +
    + definition classes: ConvexPolygon +
    + +
    +
  33. +

    + val + + radius: Double + +

    + +
  34. +

    + val + + real: RegularPolygon + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  35. +

    + var + + refLocalPos: Vector2D + +

    +

    Local position of this shape's body COM to its COM at a body rotation of zero

    +

    Local position of this shape's body COM to its COM at a body rotation of zero.

    + + +
    + definition classes: Shape +
    + +
    +
  36. +

    + var + + restitution: Double + +

    +

    Part of the coefficient of restitution for a collision between this shape and another

    +

    Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  37. +

    + var + + rotation: Double + +

    +

    Rotation of this shape about its COM

    +

    Rotation of this shape about its COM.

    + + +
    + definition classes: Shape +
    + +
    +
  38. +

    + var + + rotation0: Double + +

    +

    Initial rotation

    +

    Initial rotation. Rotation of this shape before it was added to a body.

    + + +
    + definition classes: Shape +
    + +
    +
  39. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  40. +

    + def + + sides: Array[Segment] + +

    +

    Returns all sides of this polygon

    +

    Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.

    + + +
    + definition classes: ConvexPolygon +
    + +
    +
  41. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  42. +

    + val + + transientShapes: Set[Shape] + +

    +

    Shapes with which this shape cannot collide

    +

    Shapes with which this shape cannot collide.

    + + +
    + definition classes: Shape +
    + +
    +
  43. +

    + val + + uid: Int + +

    +

    Unique identification number

    +

    Unique identification number.

    + + +
    + definition classes: GraphicalShapeShape +
    + +
    +
  44. +

    + def + + vertices: Seq[Vector2D] + +

    +

    Returns positions of all vertices of this Polygon

    +

    Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.

    + + +
    + definition classes: RegularPolygonConvexPolygon +
    + +
    +
  45. +

    + val + + volume: Double + +

    +

    Volume

    +

    Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

    + + +
    + definition classes: RegularPolygonShape +
    + +
    +
  46. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
  47. +

    + def + + ~(b: Body): Body + +

    +

    Creates a new body out of this shape and the shapes of body b

    +

    Creates a new body out of this shape and the shapes of body b.

    + + +
    + definition classes: Shape +
    + +
    +
  48. +

    + def + + ~(s: Shape): Body + +

    +

    Creates a new body out of this shape and the shape s

    +

    Creates a new body out of this shape and the shape s.

    + + +
    + definition classes: Shape +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- RegularPolygon.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalRegularPolygon(real: RegularPolygon) + +

    + +
  2. +

    + new + + GraphicalRegularPolygon(n: Int, radius: Double, density: Double) + +

    + +
  3. +

    + new + + GraphicalRegularPolygon() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- RegularPolygon.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRevoluteJoint$object.html b/doc/graphyx/graphics/GraphicalRevoluteJoint$object.html deleted file mode 100644 index ad110a2..0000000 --- a/doc/graphyx/graphics/GraphicalRevoluteJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalRevoluteJoint in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalRevoluteJoint -

-
- [source: graphyx/graphics/GraphicalRevoluteJoint.scala] -

-
-
- - - object - GraphicalRevoluteJoint -
-
extends (RevoluteJoint) => GraphicalRevoluteJoint
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalRevoluteJoint.html b/doc/graphyx/graphics/GraphicalRevoluteJoint.html index 3d0ab61..a553c4d 100644 --- a/doc/graphyx/graphics/GraphicalRevoluteJoint.html +++ b/doc/graphyx/graphics/GraphicalRevoluteJoint.html @@ -1,336 +1,439 @@ - + + - class GraphicalRevoluteJoint in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalRevoluteJoint + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalRevoluteJoint -

-
- [source: graphyx/graphics/GraphicalRevoluteJoint.scala] -

-
-
- - case - class - GraphicalRevoluteJoint(val real : RevoluteJoint) -
-
extends GraphicalJoint with scala.Product
-
+ +

graphyx.graphics

- - - - - - -
Value Summary
- val - - connection1 - : Vector2D - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalRevoluteJoint

+
+

+ class + + GraphicalRevoluteJoint(real: RevoluteJoint) extends GraphicalJoint with Product + +

+
- - - -
Value Details
-
- - - val - connection1 : Vector2D -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalJoint
  4. GraphicalObject
  5. Drawable
  6. AnyRef
  7. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + val + + connection1: Vector2D + +

    + +
  3. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  4. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  5. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  6. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  10. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  11. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  15. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  16. +

    + def + + productArity: Int + +

    + +
  17. +

    + def + + productElement(arg0: Int): Any + +

    + +
  18. +

    + def + + productElements: Iterator[Any] + +

    + +
  19. +

    + def + + productIterator: Iterator[Any] + +

    + +
  20. +

    + def + + productPrefix: String + +

    + +
  21. +

    + val + + real: RevoluteJoint + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  22. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  23. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  24. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalRevoluteJoint(real: RevoluteJoint) + +

    + +
  2. +

    + new + + GraphicalRevoluteJoint() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalShape.html b/doc/graphyx/graphics/GraphicalShape.html index 574ec35..79786d0 100644 --- a/doc/graphyx/graphics/GraphicalShape.html +++ b/doc/graphyx/graphics/GraphicalShape.html @@ -1,176 +1,711 @@ - + + - trait GraphicalShape in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalShape + + + + + + - - - - - - - - - -
- graphyx.graphics -

- trait GraphicalShape -

-
- [source: graphyx/graphics/GraphicalShape.scala] -

-
-
- - - trait - GraphicalShape -
-
extends Shape with GraphicalObject
-
-
Direct Known Subclasses:
-
GraphicalCircle, GraphicalRectangle, GraphicalRegularPolygon
-

+ +

graphyx.graphics

- - - - - - - - - - -
Value Summary
- abstract val - - real - : Shape +
+ +

GraphicalShape

+
+ +

+ trait + + GraphicalShape extends Shape with GraphicalObject + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. GraphicalObject
  2. Drawable
  3. Shape
  4. AnyRef
  5. Any
+
+
-
Pointer to real object.
-
- override val - - uid - : Int -
Unique identification number.
-
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - -
- Values and Variables inherited from Shape -
- density (abstract), volume (abstract), I (abstract), collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
- - - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from Shape -
- AABB (abstract), project (abstract), contains (abstract), mass, body, asBody, ~, ~ -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - -
- Methods inherited from GraphicalObject -
- draw (abstract) -
- - + +
+

Value Members

+
  1. +

    + def + + AABB: AABB + +

    +

    Returns this shape's axis aligned bounding box

    +

    Returns this shape's axis aligned bounding box.

    - - - -
    Value Details
    -
    +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  2. +

    + val + + I: Double + +

    +

    Moment of inertia for a rotation about this shape's COM

    +

    Moment of inertia for a rotation about this shape's COM.

    + +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  3. +

    + def + + asBody: Body + +

    +

    Creates a new body made out of tis shape

    +

    Creates a new body made out of tis shape.

    + + +
    + definition classes: Shape +
    + +
    +
  4. +

    + def + + body: Body + +

    +

    Returns this shape's containing body

    +

    Returns this shape's containing body.

    + + +
    + definition classes: Shape +
    + +
    +
  5. +

    + var + + collidable: Boolean + +

    +

    Flag determining this shapes ability to collide with other shapes

    +

    Flag determining this shapes ability to collide with other shapes.

    + + +
    + definition classes: Shape +
    + +
    +
  6. +

    + def + + contains(point: Vector2D): Boolean + +

    +

    Checks if the point point is contained in this shape

    +

    Checks if the point point is contained in this shape.

    + +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  7. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + val + + density: Double + +

    +

    Density

    +

    Density. (Mass per area)

    + +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  9. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + +
    + attributes: abstract +
    +
    + definition classes: GraphicalObjectDrawable +
    + +
    +
  10. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  12. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  16. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  17. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  18. +

    + var + + friction: Double + +

    +

    Part of the coefficient of friction for a collision between this shape and another

    +

    Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  19. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  20. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  21. +

    + def + + mass: Double + +

    +

    Returns the mass of this shape

    +

    Returns the mass of this shape. The mass is given by volume times density.

    + + +
    + definition classes: Shape +
    + +
    +
  22. +

    + var + + pos: Vector2D + +

    +

    Position of this shape's COM (in world coordinates)

    +

    Position of this shape's COM (in world coordinates).

    + + +
    + definition classes: Shape +
    + +
    +
  23. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  24. +

    + def + + project(axis: Vector2D): Projection + +

    +

    Returns the projection of this shape onto the line given by the directional vector axis

    +

    Returns the projection of this shape onto the line given by the directional vector axis.

    +
    axis

    directional vector of the line

    returns

    projection of this shape

    +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  25. +

    + val + + real: Shape + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + +
    + attributes: abstract +
    + + +
    +
  26. +

    + var + + refLocalPos: Vector2D + +

    +

    Local position of this shape's body COM to its COM at a body rotation of zero

    +

    Local position of this shape's body COM to its COM at a body rotation of zero.

    + + +
    + definition classes: Shape +
    + +
    +
  27. +

    + var + + restitution: Double + +

    +

    Part of the coefficient of restitution for a collision between this shape and another

    +

    Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

    + + +
    + definition classes: Shape +
    + +
    +
  28. +

    + var + + rotation: Double + +

    +

    Rotation of this shape about its COM

    +

    Rotation of this shape about its COM.

    + + +
    + definition classes: Shape +
    + +
    +
  29. +

    + var + + rotation0: Double + +

    +

    Initial rotation

    +

    Initial rotation. Rotation of this shape before it was added to a body.

    + + +
    + definition classes: Shape +
    + +
    +
  30. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  31. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  32. +

    + val + + transientShapes: Set[Shape] + +

    +

    Shapes with which this shape cannot collide

    +

    Shapes with which this shape cannot collide.

    + + +
    + definition classes: Shape +
    + +
    +
  33. +

    + val + + uid: Int + +

    +

    Unique identification number

    +

    Unique identification number.

    + + + + +
    +
  34. +

    + val + + volume: Double + +

    +

    Volume

    +

    Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

    + +
    + attributes: abstract +
    +
    + definition classes: Shape +
    + +
    +
  35. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
  36. +

    + def + + ~(b: Body): Body + +

    +

    Creates a new body out of this shape and the shapes of body b

    +

    Creates a new body out of this shape and the shapes of body b.

    + + +
    + definition classes: Shape +
    + +
    +
  37. +

    + def + + ~(s: Shape): Body + +

    +

    Creates a new body out of this shape and the shape s

    +

    Creates a new body out of this shape and the shape s.

    + + +
    + definition classes: Shape +
    + +
    +
+
- abstract - val - real : Shape - -
- -
Pointer to real object.
-
-
-
- Overrides -
-
- GraphicalObject.real -
-

-
-
- override - val - uid : Int -
-
-
-
Unique identification number.
-
-
-
- Overrides -
-
- Shape.uid -
-

- - - -
- - - - - - - - + + + + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalSpringJoint$object.html b/doc/graphyx/graphics/GraphicalSpringJoint$object.html deleted file mode 100644 index 0c4853f..0000000 --- a/doc/graphyx/graphics/GraphicalSpringJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalSpringJoint in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalSpringJoint -

-
- [source: graphyx/graphics/GraphicalSpringJoint.scala] -

-
-
- - - object - GraphicalSpringJoint -
-
extends (SpringJoint) => GraphicalSpringJoint
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalSpringJoint.html b/doc/graphyx/graphics/GraphicalSpringJoint.html index 5cf80cf..438c01b 100644 --- a/doc/graphyx/graphics/GraphicalSpringJoint.html +++ b/doc/graphyx/graphics/GraphicalSpringJoint.html @@ -1,356 +1,447 @@ - + + - class GraphicalSpringJoint in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalSpringJoint + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalSpringJoint -

-
- [source: graphyx/graphics/GraphicalSpringJoint.scala] -

-
-
- - case - class - GraphicalSpringJoint(val real : SpringJoint) -
-
extends GraphicalJoint with scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - -
Value Summary
- val - - connection1 - : Vector2D - - -
- val - - connection2 - : Vector2D - - -
- - -
- Values and Variables inherited from Drawable -
- g, ppm, scale, windowHeight -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - draw - : Unit - -
Stellt das graphische Objekt dar.
-
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from Drawable -
- correctY, drawLine, fillPolygon, drawPolygon, fillCircle, drawCircle, drawPoint, drawVector -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalSpringJoint

+
+

+ class + + GraphicalSpringJoint(real: SpringJoint) extends GraphicalJoint with Product + +

+
- - - -
Value Details
-
- - - val - connection1 : Vector2D -
-
-

-
-
- - - val - connection2 : Vector2D -
-
-

- - -
Method Details
-
- - - def - draw : Unit -
-
-
-
Stellt das graphische Objekt dar.
-
-
-
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. GraphicalJoint
  4. GraphicalObject
  5. Drawable
  6. AnyRef
  7. Any
+
+
- override - def - toString : java.lang.String - -
- -
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
+
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + val + + connection1: Vector2D + +

    + +
  3. +

    + val + + connection2: Vector2D + +

    + +
  4. +

    + def + + correctY(y: Double): Double + +

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent

    +

    Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.

    +
    y

    zu korrigierender Wert

    + +
    + definition classes: Drawable +
    + +
    +
  5. +

    + def + + draw(): Unit + +

    +

    Stellt das graphische Objekt dar

    +

    Stellt das graphische Objekt dar.

    + + + + +
    +
  6. +

    + def + + drawCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen Kreis auf g

    +

    Malt einen Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  7. +

    + def + + drawLine(startPoint: Vector2D, endPoint: Vector2D): Unit + +

    +

    Malt eine Linie auf g

    +

    Malt eine Linie auf g.

    +
    startPoint

    Startpunkt in Weltkoordinaten

    endPoint

    Endpunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  8. +

    + def + + drawPoint(point: Vector2D): Unit + +

    +

    Malt einen Punkt auf g

    +

    Malt einen Punkt auf g. +

    +Der Punkt wird von einem Kreis umgeben.

    +
    point

    Punkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  9. +

    + def + + drawPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein Polygon auf g

    +

    Malt ein Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  10. +

    + def + + drawVector(v: Vector2D, p: Vector2D): Unit + +

    +

    Malt einen Vektor auf g

    +

    Malt einen Vektor auf g.

    +
    v

    Vektor in Weltkoordinaten

    p

    Ursprungspunkt in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  11. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  12. +

    + def + + fillCircle(center: Vector2D, radius: Double): Unit + +

    +

    Malt einen massiven Kreis auf g

    +

    Malt einen massiven Kreis auf g.

    +
    center

    Mitte des Kreises in Weltkoordinaten

    radius

    Radius des Kreises

    + +
    + definition classes: Drawable +
    + +
    +
  13. +

    + def + + fillPolygon(points: Seq[Vector2D]): Unit + +

    +

    Malt ein massives Polygon auf g

    +

    Malt ein massives Polygon auf g.

    +
    points

    Eckpunkte des Polygons in Weltkoordinaten

    + +
    + definition classes: Drawable +
    + +
    +
  14. +

    + var + + g: Graphics2D + +

    +

    Java Graphics Objekt zur graphischen Darstellung

    +

    Java Graphics Objekt zur graphischen Darstellung

    + + +
    + definition classes: Drawable +
    + +
    +
  15. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  16. +

    + var + + ppm: Double + +

    +

    Anzahl von Pixeln pro Meter

    +

    Anzahl von Pixeln pro Meter.

    + + +
    + definition classes: Drawable +
    + +
    +
  17. +

    + def + + productArity: Int + +

    + +
  18. +

    + def + + productElement(arg0: Int): Any + +

    + +
  19. +

    + def + + productElements: Iterator[Any] + +

    + +
  20. +

    + def + + productIterator: Iterator[Any] + +

    + +
  21. +

    + def + + productPrefix: String + +

    + +
  22. +

    + val + + real: SpringJoint + +

    +

    Pointer to real object

    +

    Pointer to real object.

    + + + + +
    +
  23. +

    + var + + scale: Double + +

    +

    Skala in der die graphischen Objekte gezeichnet werden

    +

    Skala in der die graphischen Objekte gezeichnet werden.

    + + +
    + definition classes: Drawable +
    + +
    +
  24. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  25. +

    + var + + windowHeight: Int + +

    +

    Hoehe des Fensters in Pixeln

    +

    Hoehe des Fensters in Pixeln.

    + + +
    + definition classes: Drawable +
    + +
    +
+
- override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + GraphicalSpringJoint(real: SpringJoint) + +

    + +
  2. +

    + new + + GraphicalSpringJoint() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalWorld$object.html b/doc/graphyx/graphics/GraphicalWorld$object.html deleted file mode 100644 index 2b29226..0000000 --- a/doc/graphyx/graphics/GraphicalWorld$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object GraphicalWorld in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object GraphicalWorld -

-
- [source: graphyx/graphics/GraphicalWorld.scala] -

-
-
- - - object - GraphicalWorld -
-
extends (World) => GraphicalWorld
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/GraphicalWorld.html b/doc/graphyx/graphics/GraphicalWorld.html index d04da4e..715b0ca 100644 --- a/doc/graphyx/graphics/GraphicalWorld.html +++ b/doc/graphyx/graphics/GraphicalWorld.html @@ -1,439 +1,289 @@ - + + - class GraphicalWorld in graphyx.graphics - + + Scaladoc for graphyx.graphics.GraphicalWorld + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class GraphicalWorld -

-
- [source: graphyx/graphics/GraphicalWorld.scala] -

-
-
- - case - class - GraphicalWorld(val real : World) -
-
extends scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - enableCollisionDetection - : Boolean - - -
- val - - enablePositionCorrection - : Boolean - - -
- val - - gravity - : Vector2D - - -
- val - - iterations - : Int - - -
- val - - monitorResults - : scala.Seq[java.lang.String] - - -
- val - - overCWarning - : Boolean - - -
- val - - time - : Double - - -
- val - - timeStep - : Double - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GraphicalWorld

+
+

+ class + + GraphicalWorld(real: World) extends Product + +

+
- - - -
Value Details
-
- - - val - time : Double -
-
-

-
-
- - - val - timeStep : Double -
-
-

-
-
- - - val - iterations : Int -
-
-

-
-
- - - val - overCWarning : Boolean -
-
-

-
-
- - - val - gravity : Vector2D -
-
-

-
-
- - - val - monitorResults : scala.Seq[java.lang.String] -
-
-

-
-
- - - val - enableCollisionDetection : Boolean -
-
-

-
-
- - - val - enablePositionCorrection : Boolean -
-
-

- - -
Method Details
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
- - override - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  2. +

    + val + + enableCollisionDetection: Boolean + +

    + +
  3. +

    + val + + enablePositionCorrection: Boolean + +

    + +
  4. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  5. +

    + val + + gravity: Vector2D + +

    + +
  6. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  7. +

    + val + + iterations: Int + +

    + +
  8. +

    + val + + monitorFlatResults: ArrayBuffer[(Int, String, Any)] + +

    + +
  9. +

    + val + + monitorResults: ArrayBuffer[MonitorResult] + +

    + +
  10. +

    + val + + overCWarning: Boolean + +

    + +
  11. +

    + def + + productArity: Int + +

    + +
  12. +

    + def + + productElement(arg0: Int): Any + +

    + +
  13. +

    + def + + productElements: Iterator[Any] + +

    + +
  14. +

    + def + + productIterator: Iterator[Any] + +

    + +
  15. +

    + def + + productPrefix: String + +

    + +
  16. +

    + val + + real: World + +

    + +
  17. +

    + val + + time: Double + +

    + +
  18. +

    + val + + timeStep: Double + +

    + +
  19. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
+
+ +
+

Instance constructors

+
  1. +

    + new + + GraphicalWorld(real: World) + +

    + +
  2. +

    + new + + GraphicalWorld() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any - -
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/MonitorResult.html b/doc/graphyx/graphics/MonitorResult.html new file mode 100644 index 0000000..53aa680 --- /dev/null +++ b/doc/graphyx/graphics/MonitorResult.html @@ -0,0 +1,183 @@ + + + + + Scaladoc for graphyx.graphics.MonitorResult + + + + + + + + + +

graphyx.graphics

+ +
+ +

MonitorResult

+
+ +

+ class + + MonitorResult extends AnyRef + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  2. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + val + + monitor: (String, (Body) ⇒ Any) + +

    + +
  4. +

    + val + + results: List[(Int, String, Any)] + +

    + +
  5. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
+
+ +
+

Instance constructors

+
  1. +

    + new + + MonitorResult(monitor: (String, (Body) ⇒ Any), results: List[(Int, String, Any)]) + +

    + +
  2. +

    + new + + MonitorResult() + +

    + +
+
+ +
+ + + \ No newline at end of file diff --git a/doc/graphyx/graphics/Parser$.html b/doc/graphyx/graphics/Parser$.html new file mode 100644 index 0000000..2c6cf06 --- /dev/null +++ b/doc/graphyx/graphics/Parser$.html @@ -0,0 +1,204 @@ + + + + + Scaladoc for graphyx.graphics.Parser + + + + + + + + + +

graphyx.graphics

+ +
+ +

Parser

+
+ +

+ object + + Parser extends AnyRef + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  2. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + val + + throwOnUnknown: Boolean + +

    + +
  4. +

    + def + + toGraphical(real: Body): GraphicalBody + +

    + +
  5. +

    + def + + toGraphical(real: AABB): GraphicalAABB + +

    + +
  6. +

    + def + + toGraphical(real: Pair): GraphicalPair + +

    + +
  7. +

    + def + + toGraphical(real: Collision): GraphicalCollision + +

    + +
  8. +

    + def + + toGraphical(real: Joint): GraphicalJoint + +

    + +
  9. +

    + def + + toGraphical(real: Shape): GraphicalShape with Product {...} + +

    + +
  10. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/graphics/Parser$object.html b/doc/graphyx/graphics/Parser$object.html deleted file mode 100644 index b74e777..0000000 --- a/doc/graphyx/graphics/Parser$object.html +++ /dev/null @@ -1,221 +0,0 @@ - - - object Parser in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object Parser -

-
- [source: graphyx/graphics/Parser.scala] -

-
-
- - - object - Parser -
-
extends AnyRef
-
- - - - - - - - -
Value Summary
- val - - throwOnUnknown - : Boolean - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - toGraphical - (real : Shape) : GraphicalShape with scala.Product - - -
- def - - toGraphical - (real : Pair) : GraphicalPair - - -
- def - - toGraphical - (real : AABB) : GraphicalAABB - - -
- def - - toGraphical - (real : Body) : GraphicalBody - - -
- def - - toGraphical - (real : Collision) : GraphicalCollision - - -
- def - - toGraphical - (real : Joint) : GraphicalJoint - - -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - throwOnUnknown : Boolean -
-
-

- - -
Method Details
-
- - - def - toGraphical(real : Shape) : GraphicalShape with scala.Product -
-
-

-
-
- - - def - toGraphical(real : Joint) : GraphicalJoint -
-
-

-
-
- - - def - toGraphical(real : Collision) : GraphicalCollision -
-
-

-
-
- - - def - toGraphical(real : Pair) : GraphicalPair -
-
-

-
-
- - - def - toGraphical(real : AABB) : GraphicalAABB -
-
-

-
-
- - - def - toGraphical(real : Body) : GraphicalBody -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/Scene$object.html b/doc/graphyx/graphics/Scene$object.html deleted file mode 100644 index e884f9f..0000000 --- a/doc/graphyx/graphics/Scene$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Scene in graphyx.graphics - - - - - - - - - - - -
- graphyx.graphics -

- object Scene -

-
- [source: graphyx/graphics/Scene.scala] -

-
-
- - - object - Scene -
-
extends (World) => Scene
-
- - - - - - -
- Methods inherited from scala.Function1 -
- scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/graphics/Scene.html b/doc/graphyx/graphics/Scene.html index ab0f4df..1f288fc 100644 --- a/doc/graphyx/graphics/Scene.html +++ b/doc/graphyx/graphics/Scene.html @@ -1,439 +1,281 @@ - + + - class Scene in graphyx.graphics - + + Scaladoc for graphyx.graphics.Scene + + + + + + - - - - - - - - - -
- graphyx.graphics -

- class Scene -

-
- [source: graphyx/graphics/Scene.scala] -

-
-
- - case - class - Scene(val real : World) -
-
extends scala.Product
-
+ +

graphyx.graphics

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - aabbs - : scala.Seq[GraphicalAABB] - - -
- val - - bodies - : scala.Seq[GraphicalBody] - - -
- val - - collisions - : scala.Seq[GraphicalCollision] - - -
- val - - fps - : Int - - -
- val - - joints - : scala.Seq[GraphicalJoint] - - -
- val - - pairs - : scala.Seq[GraphicalPair] - - -
- val - - shapes - : scala.Seq[GraphicalShape with scala.Product] - - -
- val - - world - : GraphicalWorld - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- override def - - equals - (arg0 : Any) : Boolean - -
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
-
- override def - - hashCode - : Int - -
Returns a hash code value for the object.
-
- override def - - productArity - : Int - - -
- override def - - productElement - (arg0 : Int) : Any - - -
- override def - - productPrefix - : java.lang.String - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

Scene

+
+

+ class + + Scene(real: World) extends Product + +

+
- - - -
Value Details
-
- - - val - world : GraphicalWorld -
-
-

-
-
- - - val - shapes : scala.Seq[GraphicalShape with scala.Product] -
-
-

-
-
- - - val - joints : scala.Seq[GraphicalJoint] -
-
-

-
-
- - - val - bodies : scala.Seq[GraphicalBody] -
-
-

-
-
- - - val - collisions : scala.Seq[GraphicalCollision] -
-
-

-
-
- - - val - pairs : scala.Seq[GraphicalPair] -
-
-

-
-
- - - val - aabbs : scala.Seq[GraphicalAABB] -
-
-

-
-
- - - val - fps : Int -
-
-

- - -
Method Details
-
- - override - def - hashCode : Int -
-
-
-
Returns a hash code value for the object. -

- The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

-

-
- Returns
the hash code value for the object.

-
-
-
- - override - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
-
-
- - override - def - equals(arg0 : Any) : Boolean -
-
-
-
This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

- The default implementations of this method is an equivalence - relation: -

    -
  • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
  • -
  • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
  • -
  • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
  • -
-

-

- If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

-
- Parameters
arg0 - the object to compare against this object for equality.
- Returns
true if the receiver object is equivalent to the argument; false otherwise.

-
-
-
- - override - def - productPrefix : java.lang.String -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productPrefix -
-

-
-
- - override - def - productArity : Int -
-
-
-
- Overrides -
-
- scala.Product.scala.Product.productArity -
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. Product
  2. Equals
  3. AnyRef
  4. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + val + + aabbs: ArrayBuffer[GraphicalAABB] + +

    + +
  2. +

    + val + + bodies: ArrayBuffer[GraphicalBody] + +

    + +
  3. +

    + def + + canEqual(arg0: Any): Boolean + +

    + +
  4. +

    + val + + collisions: Seq[GraphicalCollision] + +

    + +
  5. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + + + +
    +
  6. +

    + val + + fps: Int + +

    + +
  7. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + + + +
    +
  8. +

    + val + + joints: ArrayBuffer[GraphicalJoint] + +

    + +
  9. +

    + val + + pairs: Seq[GraphicalPair] + +

    + +
  10. +

    + def + + productArity: Int + +

    + +
  11. +

    + def + + productElement(arg0: Int): Any + +

    + +
  12. +

    + def + + productElements: Iterator[Any] + +

    + +
  13. +

    + def + + productIterator: Iterator[Any] + +

    + +
  14. +

    + def + + productPrefix: String + +

    + +
  15. +

    + val + + real: World + +

    + +
  16. +

    + val + + shapes: ArrayBuffer[GraphicalShape with Product {...}] + +

    + +
  17. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  18. +

    + val + + world: GraphicalWorld + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + Scene(real: World) + +

    + +
  2. +

    + new + + Scene() + +

    + +
+
- override - def - productElement(arg0 : Int) : Any - -
-
-
- Overrides -
-
- scala.Product.scala.Product.productElement -
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/graphics/package.html b/doc/graphyx/graphics/package.html new file mode 100644 index 0000000..b0317c0 --- /dev/null +++ b/doc/graphyx/graphics/package.html @@ -0,0 +1,201 @@ + + + + + Scaladoc for graphyx.graphics + + + + + + + + + +

graphyx

+ +
+ +

graphics

+
+ +

+ package + + graphics + +

+
+ + + + + +
+ +
+ + + +
+

Type Members

+
  1. +

    + trait + + Drawable extends AnyRef + +

    +

    Enthaelt Methoden und Felder fuer graphische Darstellungen

    +
  2. +

    + class + + GraphicalAABB(real: AABB) extends AABB with GraphicalObject with Product + +

    + +
  3. +

    + class + + GraphicalBody(real: Body) extends GraphicalObject with Product + +

    + +
  4. +

    + class + + GraphicalCircle(real: Circle) extends Circle with GraphicalShape with Product + +

    + +
  5. +

    + class + + GraphicalCollision(real: Collision) extends GraphicalObject with Product + +

    + +
  6. +

    + class + + GraphicalDistanceJoint(real: DistanceJoint) extends GraphicalJoint with Product + +

    + +
  7. +

    + trait + + GraphicalJoint extends GraphicalObject + +

    + +
  8. +

    + trait + + GraphicalObject extends Drawable + +

    +

    Only copies functional info! (e

    +
  9. +

    + class + + GraphicalPair(real: Pair) extends GraphicalObject with Product + +

    + +
  10. +

    + class + + GraphicalRectangle(real: Rectangle) extends Rectangle with GraphicalShape with Product + +

    + +
  11. +

    + class + + GraphicalRegularPolygon(real: RegularPolygon) extends RegularPolygon with GraphicalShape with Product + +

    + +
  12. +

    + class + + GraphicalRevoluteJoint(real: RevoluteJoint) extends GraphicalJoint with Product + +

    + +
  13. +

    + trait + + GraphicalShape extends Shape with GraphicalObject + +

    + +
  14. +

    + class + + GraphicalSpringJoint(real: SpringJoint) extends GraphicalJoint with Product + +

    + +
  15. +

    + class + + GraphicalWorld(real: World) extends Product + +

    + +
  16. +

    + class + + MonitorResult extends AnyRef + +

    + +
  17. +

    + class + + Scene(real: World) extends Product + +

    + +
+
+ + + + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/gui$content.html b/doc/graphyx/gui$content.html deleted file mode 100644 index 433bf88..0000000 --- a/doc/graphyx/gui$content.html +++ /dev/null @@ -1,188 +0,0 @@ - - - All classes and objects in graphyx.gui - - -
Simple Mechanics Simulator (SiMS) API

This document is the API specification for SiMS

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class Summary
- class - - AboutHelpFrame - extends scala.swing.Frame - - -
- class - - BodyPopup - extends PopupMenu - - -
- class - - Container - extends AnyRef - - -
- class - - ControlPanel - (container : Container) extends scala.swing.BoxPanel - - -
- class - - GrabbedBody - (b : Body, point : Vector2D) extends AnyRef - - -
- class - - GravityPanel - (container : Container) extends scala.swing.GridBagPanel - - -
- class - - InfoPanel - (container : Container) extends scala.swing.BoxPanel - - -
- class - - MainFrame - (container : Container) extends scala.swing.Frame - - -
- class - - MainPanel - (container : Container) extends scala.swing.GridBagPanel - - -
- class - - MenuHelp - extends scala.swing.Menu - - -
- class - - MenuPanel - (container : Container) extends scala.swing.BoxPanel - - -
- class - - OptionsPanel - (container : Container) extends scala.swing.GridPanel - - -
- class - - PopupMenu - extends scala.swing.Component - - -
- class - - ShapeInfoPanel - (container : Container) extends scala.swing.GridPanel - - -
- class - - WorldPanel - (container : Container) extends scala.swing.BoxPanel - - -
- - - - - - -
Object Summary
- object - - AboutHelpFrame - extends AnyRef - - -
- \ No newline at end of file diff --git a/doc/graphyx/gui$package.html b/doc/graphyx/gui$package.html deleted file mode 100644 index 1d41d2c..0000000 --- a/doc/graphyx/gui$package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - List of classes and objects in package graphyx.gui - - - - -
Classes
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx/gui/AboutHelpFrame$.html b/doc/graphyx/gui/AboutHelpFrame$.html new file mode 100644 index 0000000..62ead47 --- /dev/null +++ b/doc/graphyx/gui/AboutHelpFrame$.html @@ -0,0 +1,156 @@ + + + + + Scaladoc for graphyx.gui.AboutHelpFrame + + + + + + + + + +

graphyx.gui

+ +
+ +

AboutHelpFrame

+
+ +

+ object + + AboutHelpFrame extends AnyRef + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  2. +

    + val + + frame: AboutHelpFrame + +

    + +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/gui/AboutHelpFrame$object.html b/doc/graphyx/gui/AboutHelpFrame$object.html deleted file mode 100644 index 776fc9f..0000000 --- a/doc/graphyx/gui/AboutHelpFrame$object.html +++ /dev/null @@ -1,98 +0,0 @@ - - - object AboutHelpFrame in graphyx.gui - - - - - - - - - - - -
- graphyx.gui -

- object AboutHelpFrame -

-
- [source: graphyx/gui/AboutHelpFrame.scala] -

-
-
- - - object - AboutHelpFrame -
-
extends AnyRef
-
- - - - - - - - -
Value Summary
- val - - frame - : AboutHelpFrame - - -
- - - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - frame : AboutHelpFrame -
-
-

- - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/gui/AboutHelpFrame.html b/doc/graphyx/gui/AboutHelpFrame.html index 5fcd3aa..097871c 100644 --- a/doc/graphyx/gui/AboutHelpFrame.html +++ b/doc/graphyx/gui/AboutHelpFrame.html @@ -1,138 +1,710 @@ - + + - class AboutHelpFrame in graphyx.gui - + + Scaladoc for graphyx.gui.AboutHelpFrame + + + + + + - - - - - - - - - -
- graphyx.gui -

- class AboutHelpFrame -

-
- [source: graphyx/gui/AboutHelpFrame.scala] -

-
-
- - - class - AboutHelpFrame -
-
extends scala.swing.Frame
-
+ +

graphyx.gui

- - - -
- Values and Variables inherited from scala.swing.Frame -
- scala.swing.Frame.peer -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.Frame -
- scala.swing.Frame.title, scala.swing.Frame.title_=, scala.swing.Frame.contents_=, scala.swing.Frame.defaultButton, scala.swing.Frame.defaultButton_=, scala.swing.Frame.defaultButton_=, scala.swing.Frame.dispose, scala.swing.Frame.pack, scala.swing.Frame.menuBar, scala.swing.Frame.menuBar_=, scala.swing.Frame.setLocationRelativeTo, scala.swing.Frame.location_=, scala.swing.Frame.iconImage, scala.swing.Frame.iconImage_= -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.RootPanel -
- scala.swing.RootPanel.contents -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals, scala.Proxy.toString -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

AboutHelpFrame

+
+

+ class + + AboutHelpFrame extends Frame + +

+
- - - - - -
- - - - - - - - + + + + +
+ +
+ +
+
+

Inherits

+
  1. Frame
  2. RichWindow
  3. Window
  4. RootPanel
  5. Container
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + background: Color + +

    + +
  2. +

    + def + + background_=(c: Color): Unit + +

    + +
  3. +

    + def + + bounds: Rectangle + +

    + +
  4. +

    + def + + centerOnScreen(): Unit + +

    + +
  5. +

    + def + + close(): Unit + +

    + +
  6. +

    + def + + closeOperation(): Unit + +

    + +
  7. +

    + def + + contents: Seq[Component] + +

    + +
  8. +

    + def + + contents_=(c: Component): Unit + +

    + +
  9. +

    + def + + cursor: Cursor + +

    + +
  10. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  11. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  12. +

    + def + + defaultButton: Option[Button] + +

    + +
  13. +

    + def + + defaultButton_=(b: Option[Button]): Unit + +

    + +
  14. +

    + def + + defaultButton_=(b: Button): Unit + +

    + +
  15. +

    + def + + displayable: Boolean + +

    + +
  16. +

    + def + + dispose(): Unit + +

    + +
  17. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  18. +

    + def + + font: Font + +

    + +
  19. +

    + def + + font_=(f: Font): Unit + +

    + +
  20. +

    + def + + foreground: Color + +

    + +
  21. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  23. +

    + def + + iconImage: Image + +

    + +
  24. +

    + def + + iconImage_=(i: Image): Unit + +

    + +
  25. +

    + def + + iconified(): Unit + +

    + +
  26. +

    + def + + iconify(): Unit + +

    + +
  27. +

    + def + + ignoreRepaint: Boolean + +

    + +
  28. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  29. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  30. +

    + def + + locale: Locale + +

    + +
  31. +

    + def + + location: Point + +

    + +
  32. +

    + def + + locationOnScreen: Point + +

    + +
  33. +

    + def + + location_=(p: Point): Unit + +

    + +
  34. +

    + def + + maximize(): Unit + +

    + +
  35. +

    + def + + maximized(): Unit + +

    + +
  36. +

    + def + + maximumSize: Dimension + +

    + +
  37. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  38. +

    + def + + menuBar: MenuBar + +

    + +
  39. +

    + def + + menuBar_=(m: MenuBar): Unit + +

    + +
  40. +

    + def + + minimumSize: Dimension + +

    + +
  41. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  42. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  43. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  44. +

    + def + + open(): Unit + +

    + +
  45. +

    + def + + owner: Window + +

    + +
  46. +

    + def + + pack(): Window + +

    + +
  47. +

    + var + + peer: JFrame with InterfaceMixin + +

    + +
  48. +

    + def + + preferredSize: Dimension + +

    + +
  49. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  50. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  51. +

    + def + + publish(e: Event): Unit + +

    + +
  52. +

    + val + + reactions: Reactions + +

    + +
  53. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  54. +

    + def + + repaint(): Unit + +

    + +
  55. +

    + def + + resizable: Boolean + +

    + +
  56. +

    + def + + resizable_=(b: Boolean): Unit + +

    + +
  57. +

    + def + + self: Component + +

    + +
  58. +

    + def + + setLocationRelativeTo(c: UIElement): Unit + +

    + +
  59. +

    + def + + showing: Boolean + +

    + +
  60. +

    + def + + size: Dimension + +

    + +
  61. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  62. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  63. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  64. +

    + def + + title: String + +

    + +
  65. +

    + def + + title_=(s: String): Unit + +

    + +
  66. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  67. +

    + def + + toolkit: Toolkit + +

    + +
  68. +

    + def + + uniconify(): Unit + +

    + +
  69. +

    + def + + unmaximize(): Unit + +

    + +
  70. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  71. +

    + def + + visible: Boolean + +

    + +
  72. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + AboutHelpFrame() + +

    + +
+
+ +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/BodyPopup.html b/doc/graphyx/gui/BodyPopup.html index d8fb284..a557f4a 100644 --- a/doc/graphyx/gui/BodyPopup.html +++ b/doc/graphyx/gui/BodyPopup.html @@ -1,251 +1,726 @@ - + + - class BodyPopup in graphyx.gui - + + Scaladoc for graphyx.gui.BodyPopup + + + + + + - - - - - - - - - -
- graphyx.gui -

- class BodyPopup -

-
- [source: graphyx/gui/BodyPopup.scala] -

-
-
- - - class - BodyPopup -
-
extends PopupMenu
-
+ +

graphyx.gui

- - - - - - - - - - - - - - -
Value Summary
- val - - btnClose - : scala.swing.MenuItem - - -
- val - - chckFixed - : scala.swing.CheckMenuItem - - -
- val - - chckMonitor - : scala.swing.CheckMenuItem - - -
- - -
- Values and Variables inherited from PopupMenu -
- peer -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - - - - - -
Method Summary
- def - - body - : Body - - -
- def - - body_= - (newBody : Body) : Unit - - -
- - -
- Methods inherited from PopupMenu -
- add, setVisible -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

BodyPopup

+
+

+ class + + BodyPopup extends PopupMenu + +

+
- - - -
Value Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. PopupMenu
  2. Component
  3. UIElement
  4. LazyPublisher
  5. Publisher
  6. Reactor
  7. Proxy
  8. AnyRef
  9. Any
+
+
- - val - chckMonitor : scala.swing.CheckMenuItem - -
-
-
-
- - val - chckFixed : scala.swing.CheckMenuItem -
-
-

-
-
- - val - btnClose : scala.swing.MenuItem -
-
-

- - -
Method Details
-
+
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + add(item: MenuItem): Unit + +

    + +
  3. +

    + def + + background: Color + +

    + +
  4. +

    + def + + background_=(c: Color): Unit + +

    + +
  5. +

    + def + + body: Body + +

    + +
  6. +

    + def + + body_=(newBody: Body): Unit + +

    + +
  7. +

    + def + + border: Border + +

    + +
  8. +

    + def + + border_=(b: Border): Unit + +

    + +
  9. +

    + def + + bounds: Rectangle + +

    + +
  10. +

    + val + + btnClose: MenuItem + +

    + +
  11. +

    + val + + chckFixed: CheckMenuItem + +

    + +
  12. +

    + val + + chckMonitor: CheckMenuItem + +

    + +
  13. +

    + def + + cursor: Cursor + +

    + +
  14. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  15. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  16. +

    + def + + displayable: Boolean + +

    + +
  17. +

    + def + + enabled: Boolean + +

    + +
  18. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  19. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  20. +

    + def + + focusable: Boolean + +

    + +
  21. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  22. +

    + def + + font: Font + +

    + +
  23. +

    + def + + font_=(f: Font): Unit + +

    + +
  24. +

    + def + + foreground: Color + +

    + +
  25. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  26. +

    + def + + hasFocus: Boolean + +

    + +
  27. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  28. +

    + def + + ignoreRepaint: Boolean + +

    + +
  29. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  30. +

    + var + + initP: JComponent + +

    + +
  31. +

    + def + + inputVerifier: (BodyPopup.this.type) ⇒ Boolean + +

    + +
  32. +

    + def + + inputVerifier_=(v: (BodyPopup.this.type) ⇒ Boolean): Unit + +

    + +
  33. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  34. +

    + def + + locale: Locale + +

    + +
  35. +

    + def + + location: Point + +

    + +
  36. +

    + def + + locationOnScreen: Point + +

    + +
  37. +

    + def + + maximumSize: Dimension + +

    + +
  38. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  39. +

    + def + + minimumSize: Dimension + +

    + +
  40. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  41. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  42. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  43. +

    + def + + opaque: Boolean + +

    + +
  44. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  45. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  46. +

    + var + + peer: JPopupMenu + +

    + +
  47. +

    + def + + preferredSize: Dimension + +

    + +
  48. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  49. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  50. +

    + def + + publish(e: Event): Unit + +

    + +
  51. +

    + val + + reactions: Reactions + +

    + +
  52. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  53. +

    + def + + repaint(): Unit + +

    + +
  54. +

    + def + + requestFocus(): Unit + +

    + +
  55. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  56. +

    + def + + revalidate(): Unit + +

    + +
  57. +

    + def + + self: Component + +

    + +
  58. +

    + def + + setVisible(visible: Boolean): Unit + +

    + +
  59. +

    + def + + showing: Boolean + +

    + +
  60. +

    + def + + size: Dimension + +

    + +
  61. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  62. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  63. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  64. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  65. +

    + def + + toolkit: Toolkit + +

    + +
  66. +

    + def + + tooltip: String + +

    + +
  67. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  68. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  69. +

    + def + + visible: Boolean + +

    + +
  70. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  71. +

    + def + + xLayoutAlignment: Double + +

    + +
  72. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  73. +

    + def + + yLayoutAlignment: Double + +

    + +
  74. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - def - body : Body -
-
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + BodyPopup() + +

    + +
+
- - def - body_=(newBody : Body) : Unit -
-
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/Container.html b/doc/graphyx/gui/Container.html index aeb0e25..feaf107 100644 --- a/doc/graphyx/gui/Container.html +++ b/doc/graphyx/gui/Container.html @@ -1,181 +1,199 @@ - + + - class Container in graphyx.gui - + + Scaladoc for graphyx.gui.Container + + + + + + - - - - - - - - - -
- graphyx.gui -

- class Container -

-
- [source: graphyx/gui/Container.scala] -

-
-
- - - class - Container -
-
extends AnyRef
-
+ +

graphyx.gui

- - - - - - - - - - -
Value Summary
- val - - mainFrame - : MainFrame - - -
- var - - scene - : Scene - - -
- - - - - - - - - - - - - - -
Method Summary
- def - - exitGUI - : Unit - - -
- def - - show - : Unit - - -
- def - - update - (s : Scene) : Unit - - -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

Container

+
+

+ class + + Container extends AnyRef + +

+
- - - -
Value Details
-
- - - val - mainFrame : MainFrame -
-
-

-
-
- - - var - scene : Scene -
-
-

- - -
Method Details
-
- - - def - show : Unit -
-
-

-
-
- - - def - update(s : Scene) : Unit -
-
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  2. +

    + def + + exitGUI(): Unit + +

    + +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + val + + mainFrame: MainFrame + +

    + +
  5. +

    + var + + scene: Scene + +

    + +
  6. +

    + def + + show(): Unit + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  8. +

    + def + + update(s: Scene): Unit + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + Container() + +

    + +
+
- - def - exitGUI : Unit - -
-
- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/ControlPanel.html b/doc/graphyx/gui/ControlPanel.html index 5352ba1..0c0f3bd 100644 --- a/doc/graphyx/gui/ControlPanel.html +++ b/doc/graphyx/gui/ControlPanel.html @@ -1,295 +1,758 @@ - + + - class ControlPanel in graphyx.gui - + + Scaladoc for graphyx.gui.ControlPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class ControlPanel -

-
- [source: graphyx/gui/ControlPanel.scala] -

-
-
- - - class - ControlPanel(container : Container) -
-
extends scala.swing.BoxPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - btnExit - : scala.swing.Button - - -
- val - - btnFire - : scala.swing.Button - - -
- val - - btnReset - : scala.swing.Button - - -
- val - - btnStart - : scala.swing.Button - - -
- val - - btnStep - : scala.swing.Button - - -
- val - - btnStop - : scala.swing.Button - - -
- val - - cboTest - : scala.swing.ComboBox[Test] - - -
- - -
- Values and Variables inherited from scala.swing.BoxPanel -
- scala.swing.BoxPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

ControlPanel

+
+

+ class + + ControlPanel extends BoxPanel + +

+
- - - -
Value Details
-
- - - val - btnStart : scala.swing.Button -
-
-

-
-
- - - val - btnStep : scala.swing.Button -
-
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. BoxPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
- - val - btnStop : scala.swing.Button - -
-
-
-
- - val - btnExit : scala.swing.Button -
-
-

-
-
- - val - btnFire : scala.swing.Button -
-
-

-
-
+
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + btnExit: Button + +

    + +
  8. +

    + val + + btnFire: Button + +

    + +
  9. +

    + val + + btnReset: Button + +

    + +
  10. +

    + val + + btnStart: Button + +

    + +
  11. +

    + val + + btnStep: Button + +

    + +
  12. +

    + val + + btnStop: Button + +

    + +
  13. +

    + val + + cboTest: ComboBox[Test] + +

    + +
  14. +

    + val + + contents: Buffer[Component] + +

    + +
  15. +

    + def + + cursor: Cursor + +

    + +
  16. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  17. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  18. +

    + def + + displayable: Boolean + +

    + +
  19. +

    + def + + enabled: Boolean + +

    + +
  20. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  21. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  22. +

    + def + + focusable: Boolean + +

    + +
  23. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  24. +

    + def + + font: Font + +

    + +
  25. +

    + def + + font_=(f: Font): Unit + +

    + +
  26. +

    + def + + foreground: Color + +

    + +
  27. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  28. +

    + def + + hasFocus: Boolean + +

    + +
  29. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  30. +

    + def + + ignoreRepaint: Boolean + +

    + +
  31. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  32. +

    + var + + initP: JComponent + +

    + +
  33. +

    + def + + inputVerifier: (ControlPanel.this.type) ⇒ Boolean + +

    + +
  34. +

    + def + + inputVerifier_=(v: (ControlPanel.this.type) ⇒ Boolean): Unit + +

    + +
  35. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  36. +

    + def + + locale: Locale + +

    + +
  37. +

    + def + + location: Point + +

    + +
  38. +

    + def + + locationOnScreen: Point + +

    + +
  39. +

    + def + + maximumSize: Dimension + +

    + +
  40. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  41. +

    + def + + minimumSize: Dimension + +

    + +
  42. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  43. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  44. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  45. +

    + def + + opaque: Boolean + +

    + +
  46. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  47. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  48. +

    + var + + peer: JPanel with SuperMixin + +

    + +
  49. +

    + def + + preferredSize: Dimension + +

    + +
  50. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  51. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  52. +

    + def + + publish(e: Event): Unit + +

    + +
  53. +

    + val + + reactions: Reactions + +

    + +
  54. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  55. +

    + def + + repaint(): Unit + +

    + +
  56. +

    + def + + requestFocus(): Unit + +

    + +
  57. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  58. +

    + def + + revalidate(): Unit + +

    + +
  59. +

    + def + + self: Component + +

    + +
  60. +

    + def + + showing: Boolean + +

    + +
  61. +

    + def + + size: Dimension + +

    + +
  62. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  63. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  64. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  65. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  66. +

    + def + + toolkit: Toolkit + +

    + +
  67. +

    + def + + tooltip: String + +

    + +
  68. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  69. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  70. +

    + def + + update(): Unit + +

    + +
  71. +

    + def + + visible: Boolean + +

    + +
  72. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  73. +

    + def + + xLayoutAlignment: Double + +

    + +
  74. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  75. +

    + def + + yLayoutAlignment: Double + +

    + +
  76. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - btnReset : scala.swing.Button -
-
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + ControlPanel(container: Container) + +

    + +
  2. +

    + new + + ControlPanel(orientation: Value) + +

    + +
  3. +

    + new + + ControlPanel() + +

    + +
+
- - val - cboTest : scala.swing.ComboBox[Test] -
-
-

- - - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/GrabbedBody.html b/doc/graphyx/gui/GrabbedBody.html index 4d9f028..ac2091e 100644 --- a/doc/graphyx/gui/GrabbedBody.html +++ b/doc/graphyx/gui/GrabbedBody.html @@ -1,141 +1,191 @@ - + + - class GrabbedBody in graphyx.gui - + + Scaladoc for graphyx.gui.GrabbedBody + + + + + + - - - - - - - - - -
- graphyx.gui -

- class GrabbedBody -

-
- [source: graphyx/gui/GrabbedBody.scala] -

-
-
- - - class - GrabbedBody(b : Body, point : Vector2D) -
-
extends AnyRef
-
+ +

graphyx.gui

- - - - - - - - - - -
Value Summary
- val - - r - : Vector2D - - -
- val - - wasFixed - : Boolean - +
+ +

GrabbedBody

+
+ +

+ class + + GrabbedBody extends AnyRef + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
-
- - - - - - -
Method Summary
- def - - body - : Body -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +
+

Value Members

+
  1. +

    + def + + body: Body + +

    - - - -
    Value Details
    -
    - - - val - r : Vector2D -
    -
    -

    -
    -
    +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + val + + r: Vector2D + +

    + +
  5. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  6. +

    + val + + wasFixed: Boolean + +

    + +
+
- - val - wasFixed : Boolean - -
-
- - -
Method Details
-
+
+

Instance constructors

+
  1. +

    + new + + GrabbedBody(b: Body, point: Vector2D) + +

    + +
  2. +

    + new + + GrabbedBody() + +

    + +
+
- - def - body : Body -
-
-

- - -
- - - - - - - - + + + \ No newline at end of file diff --git a/doc/graphyx/gui/GravityPanel.html b/doc/graphyx/gui/GravityPanel.html index ca9b299..140b3a0 100644 --- a/doc/graphyx/gui/GravityPanel.html +++ b/doc/graphyx/gui/GravityPanel.html @@ -1,292 +1,750 @@ - + + - class GravityPanel in graphyx.gui - + + Scaladoc for graphyx.gui.GravityPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class GravityPanel -

-
- [source: graphyx/gui/GravityPanel.scala] -

-
-
- - - class - GravityPanel(container : Container) -
-
extends scala.swing.GridBagPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - c - : scala.swing.GridBagPanel.Constraints - - -
- val - - lblX - : scala.swing.Label - - -
- val - - lblY - : scala.swing.Label - - -
- val - - sldX - : scala.swing.Slider - - -
- val - - sldY - : scala.swing.Slider - - -
- - -
- Values and Variables inherited from scala.swing.GridBagPanel -
- scala.swing.GridBagPanel.peer -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - -
Method Summary
- def - - update - : Unit - - -
- - -
- Methods inherited from scala.swing.GridBagPanel -
- scala.swing.GridBagPanel.pair2Constraints, scala.swing.GridBagPanel.constraintsFor, scala.swing.GridBagPanel.areValid, scala.swing.GridBagPanel.add -
- - -
- Methods inherited from scala.swing.LayoutContainer -
- scala.swing.LayoutContainer.layout -
- - -
- Methods inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper.contents -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

GravityPanel

+
+

+ class + + GravityPanel extends GridBagPanel + +

+
- - - -
Value Details
-
- - - val - c : scala.swing.GridBagPanel.Constraints -
-
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GridBagPanel
  2. LayoutContainer
  3. Panel
  4. Wrapper
  5. Container
  6. Component
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any
+
+
- - val - sldX : scala.swing.Slider - -
-
-
-
- - val - lblX : scala.swing.Label -
-
-

-
-
- - val - sldY : scala.swing.Slider -
-
-

-
-
+
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + c: Constraints + +

    + +
  8. +

    + def + + contents: Seq[Component] + +

    + +
  9. +

    + def + + cursor: Cursor + +

    + +
  10. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  11. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  12. +

    + def + + displayable: Boolean + +

    + +
  13. +

    + def + + enabled: Boolean + +

    + +
  14. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  15. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  16. +

    + def + + focusable: Boolean + +

    + +
  17. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  18. +

    + def + + font: Font + +

    + +
  19. +

    + def + + font_=(f: Font): Unit + +

    + +
  20. +

    + def + + foreground: Color + +

    + +
  21. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  22. +

    + def + + hasFocus: Boolean + +

    + +
  23. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  24. +

    + def + + ignoreRepaint: Boolean + +

    + +
  25. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  26. +

    + var + + initP: JComponent + +

    + +
  27. +

    + def + + inputVerifier: (GravityPanel.this.type) ⇒ Boolean + +

    + +
  28. +

    + def + + inputVerifier_=(v: (GravityPanel.this.type) ⇒ Boolean): Unit + +

    + +
  29. +

    + def + + layout: Map[Component, Constraints] + +

    + +
  30. +

    + val + + lblX: Label + +

    + +
  31. +

    + val + + lblY: Label + +

    + +
  32. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  33. +

    + def + + locale: Locale + +

    + +
  34. +

    + def + + location: Point + +

    + +
  35. +

    + def + + locationOnScreen: Point + +

    + +
  36. +

    + def + + maximumSize: Dimension + +

    + +
  37. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  38. +

    + def + + minimumSize: Dimension + +

    + +
  39. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  40. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  41. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  42. +

    + def + + opaque: Boolean + +

    + +
  43. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  44. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  45. +

    + def + + pair2Constraints(p: (Int, Int)): Constraints + +

    + +
  46. +

    + var + + peer: JPanel + +

    + +
  47. +

    + def + + preferredSize: Dimension + +

    + +
  48. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  49. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  50. +

    + def + + publish(e: Event): Unit + +

    + +
  51. +

    + val + + reactions: Reactions + +

    + +
  52. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  53. +

    + def + + repaint(): Unit + +

    + +
  54. +

    + def + + requestFocus(): Unit + +

    + +
  55. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  56. +

    + def + + revalidate(): Unit + +

    + +
  57. +

    + def + + self: Component + +

    + +
  58. +

    + def + + showing: Boolean + +

    + +
  59. +

    + def + + size: Dimension + +

    + +
  60. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  61. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  62. +

    + val + + sldX: Slider + +

    + +
  63. +

    + val + + sldY: Slider + +

    + +
  64. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  65. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  66. +

    + def + + toolkit: Toolkit + +

    + +
  67. +

    + def + + tooltip: String + +

    + +
  68. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  69. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  70. +

    + def + + update(): Unit + +

    + +
  71. +

    + def + + visible: Boolean + +

    + +
  72. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  73. +

    + def + + xLayoutAlignment: Double + +

    + +
  74. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  75. +

    + def + + yLayoutAlignment: Double + +

    + +
  76. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - lblY : scala.swing.Label -
-
-

- - -
Method Details
-
+
+

Instance constructors

+
  1. +

    + new + + GravityPanel(container: Container) + +

    + +
  2. +

    + new + + GravityPanel() + +

    + +
+
- - def - update : Unit -
-
-

- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/InfoPanel.html b/doc/graphyx/gui/InfoPanel.html index 94dd11f..c4f43c0 100644 --- a/doc/graphyx/gui/InfoPanel.html +++ b/doc/graphyx/gui/InfoPanel.html @@ -1,198 +1,710 @@ - + + - class InfoPanel in graphyx.gui - + + Scaladoc for graphyx.gui.InfoPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class InfoPanel -

-
- [source: graphyx/gui/InfoPanel.scala] -

-
-
- - - class - InfoPanel(container : Container) -
-
extends scala.swing.BoxPanel
-
+ +

graphyx.gui

- - - - - - -
Value Summary
- val - - out - : scala.swing.TextArea - +
+ +

InfoPanel

+
+ +

+ class + + InfoPanel extends BoxPanel + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. BoxPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
-
- - -
- Values and Variables inherited from scala.swing.BoxPanel -
- scala.swing.BoxPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - -
Method Summary
- def - - update - : Unit -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    - - - -
    Value Details
    -
    +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + contents: Buffer[Component] + +

    + +
  8. +

    + def + + cursor: Cursor + +

    + +
  9. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  10. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  11. +

    + def + + displayable: Boolean + +

    + +
  12. +

    + def + + enabled: Boolean + +

    + +
  13. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  14. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  15. +

    + def + + focusable: Boolean + +

    + +
  16. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  17. +

    + def + + font: Font + +

    + +
  18. +

    + def + + font_=(f: Font): Unit + +

    + +
  19. +

    + def + + foreground: Color + +

    + +
  20. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  21. +

    + def + + hasFocus: Boolean + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  23. +

    + def + + ignoreRepaint: Boolean + +

    + +
  24. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  25. +

    + var + + initP: JComponent + +

    + +
  26. +

    + def + + inputVerifier: (InfoPanel.this.type) ⇒ Boolean + +

    + +
  27. +

    + def + + inputVerifier_=(v: (InfoPanel.this.type) ⇒ Boolean): Unit + +

    + +
  28. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  29. +

    + def + + locale: Locale + +

    + +
  30. +

    + def + + location: Point + +

    + +
  31. +

    + def + + locationOnScreen: Point + +

    + +
  32. +

    + def + + maximumSize: Dimension + +

    + +
  33. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  34. +

    + def + + minimumSize: Dimension + +

    + +
  35. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  36. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  37. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  38. +

    + def + + opaque: Boolean + +

    + +
  39. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  40. +

    + val + + out: TextArea + +

    + +
  41. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  42. +

    + var + + peer: JPanel with SuperMixin + +

    + +
  43. +

    + def + + preferredSize: Dimension + +

    + +
  44. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  45. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  46. +

    + def + + publish(e: Event): Unit + +

    + +
  47. +

    + val + + reactions: Reactions + +

    + +
  48. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  49. +

    + def + + repaint(): Unit + +

    + +
  50. +

    + def + + requestFocus(): Unit + +

    + +
  51. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  52. +

    + def + + revalidate(): Unit + +

    + +
  53. +

    + def + + self: Component + +

    + +
  54. +

    + def + + showing: Boolean + +

    + +
  55. +

    + def + + size: Dimension + +

    + +
  56. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  57. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  58. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  59. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  60. +

    + def + + toolkit: Toolkit + +

    + +
  61. +

    + def + + tooltip: String + +

    + +
  62. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  63. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  64. +

    + def + + update(): Unit + +

    + +
  65. +

    + def + + visible: Boolean + +

    + +
  66. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  67. +

    + def + + xLayoutAlignment: Double + +

    + +
  68. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  69. +

    + def + + yLayoutAlignment: Double + +

    + +
  70. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - out : scala.swing.TextArea - -
-
- - -
Method Details
-
+
+

Instance constructors

+
  1. +

    + new + + InfoPanel(container: Container) + +

    + +
  2. +

    + new + + InfoPanel(orientation: Value) + +

    + +
  3. +

    + new + + InfoPanel() + +

    + +
+
- - def - update : Unit -
-
-

- - -
- - - - - - - - + + + \ No newline at end of file diff --git a/doc/graphyx/gui/MainFrame.html b/doc/graphyx/gui/MainFrame.html index fbc978a..289bd95 100644 --- a/doc/graphyx/gui/MainFrame.html +++ b/doc/graphyx/gui/MainFrame.html @@ -1,161 +1,726 @@ - + + - class MainFrame in graphyx.gui - + + Scaladoc for graphyx.gui.MainFrame + + + + + + - - - - - - - - - -
- graphyx.gui -

- class MainFrame -

-
- [source: graphyx/gui/MainFrame.scala] -

-
-
- - - class - MainFrame(container : Container) -
-
extends scala.swing.Frame
-
+ +

graphyx.gui

- - - - - - -
Value Summary
- val - - mainPanel - : MainPanel +
+ +

MainFrame

+
+ +

+ class + + MainFrame extends Frame + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Frame
  2. RichWindow
  3. Window
  4. RootPanel
  5. Container
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any
+
+
-
- - -
- Values and Variables inherited from scala.swing.Frame -
- scala.swing.Frame.peer -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.Frame -
- scala.swing.Frame.title, scala.swing.Frame.title_=, scala.swing.Frame.contents_=, scala.swing.Frame.defaultButton, scala.swing.Frame.defaultButton_=, scala.swing.Frame.defaultButton_=, scala.swing.Frame.dispose, scala.swing.Frame.pack, scala.swing.Frame.menuBar, scala.swing.Frame.menuBar_=, scala.swing.Frame.setLocationRelativeTo, scala.swing.Frame.location_=, scala.swing.Frame.iconImage, scala.swing.Frame.iconImage_= -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.RootPanel -
- scala.swing.RootPanel.contents -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals, scala.Proxy.toString -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - + +
+

Value Members

+
  1. +

    + def + + background: Color + +

    - - - -
    Value Details
    -
    +
  2. +

    + def + + background_=(c: Color): Unit + +

    + +
  3. +

    + def + + bounds: Rectangle + +

    + +
  4. +

    + def + + centerOnScreen(): Unit + +

    + +
  5. +

    + def + + close(): Unit + +

    + +
  6. +

    + def + + closeOperation(): Unit + +

    + +
  7. +

    + def + + contents: Seq[Component] + +

    + +
  8. +

    + def + + contents_=(c: Component): Unit + +

    + +
  9. +

    + def + + cursor: Cursor + +

    + +
  10. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  11. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  12. +

    + def + + defaultButton: Option[Button] + +

    + +
  13. +

    + def + + defaultButton_=(b: Option[Button]): Unit + +

    + +
  14. +

    + def + + defaultButton_=(b: Button): Unit + +

    + +
  15. +

    + def + + displayable: Boolean + +

    + +
  16. +

    + def + + dispose(): Unit + +

    + +
  17. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  18. +

    + def + + font: Font + +

    + +
  19. +

    + def + + font_=(f: Font): Unit + +

    + +
  20. +

    + def + + foreground: Color + +

    + +
  21. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  23. +

    + def + + iconImage: Image + +

    + +
  24. +

    + def + + iconImage_=(i: Image): Unit + +

    + +
  25. +

    + def + + iconified(): Unit + +

    + +
  26. +

    + def + + iconify(): Unit + +

    + +
  27. +

    + def + + ignoreRepaint: Boolean + +

    + +
  28. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  29. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  30. +

    + def + + locale: Locale + +

    + +
  31. +

    + def + + location: Point + +

    + +
  32. +

    + def + + locationOnScreen: Point + +

    + +
  33. +

    + def + + location_=(p: Point): Unit + +

    + +
  34. +

    + val + + mainPanel: MainPanel + +

    + +
  35. +

    + def + + maximize(): Unit + +

    + +
  36. +

    + def + + maximized(): Unit + +

    + +
  37. +

    + def + + maximumSize: Dimension + +

    + +
  38. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  39. +

    + def + + menuBar: MenuBar + +

    + +
  40. +

    + def + + menuBar_=(m: MenuBar): Unit + +

    + +
  41. +

    + def + + minimumSize: Dimension + +

    + +
  42. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  43. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  44. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  45. +

    + def + + open(): Unit + +

    + +
  46. +

    + def + + owner: Window + +

    + +
  47. +

    + def + + pack(): Window + +

    + +
  48. +

    + var + + peer: JFrame with InterfaceMixin + +

    + +
  49. +

    + def + + preferredSize: Dimension + +

    + +
  50. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  51. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  52. +

    + def + + publish(e: Event): Unit + +

    + +
  53. +

    + val + + reactions: Reactions + +

    + +
  54. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  55. +

    + def + + repaint(): Unit + +

    + +
  56. +

    + def + + resizable: Boolean + +

    + +
  57. +

    + def + + resizable_=(b: Boolean): Unit + +

    + +
  58. +

    + def + + self: Component + +

    + +
  59. +

    + def + + setLocationRelativeTo(c: UIElement): Unit + +

    + +
  60. +

    + def + + showing: Boolean + +

    + +
  61. +

    + def + + size: Dimension + +

    + +
  62. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  63. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  64. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  65. +

    + def + + title: String + +

    + +
  66. +

    + def + + title_=(s: String): Unit + +

    + +
  67. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  68. +

    + def + + toolkit: Toolkit + +

    + +
  69. +

    + def + + uniconify(): Unit + +

    + +
  70. +

    + def + + unmaximize(): Unit + +

    + +
  71. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  72. +

    + def + + visible: Boolean + +

    + +
  73. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
+
- - val - mainPanel : MainPanel - -
-
- - - -
- - - - - - - - +
+

Instance constructors

+
  1. +

    + new + + MainFrame(container: Container) + +

    + +
  2. +

    + new + + MainFrame() + +

    + +
+
+ + + + \ No newline at end of file diff --git a/doc/graphyx/gui/MainPanel.html b/doc/graphyx/gui/MainPanel.html index 57eb648..f519d72 100644 --- a/doc/graphyx/gui/MainPanel.html +++ b/doc/graphyx/gui/MainPanel.html @@ -1,349 +1,774 @@ - + + - class MainPanel in graphyx.gui - + + Scaladoc for graphyx.gui.MainPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class MainPanel -

-
- [source: graphyx/gui/MainPanel.scala] -

-
-
- - - class - MainPanel(container : Container) -
-
extends scala.swing.GridBagPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - c - : scala.swing.GridBagPanel.Constraints - - -
- val - - controlPanel - : ControlPanel - - -
- val - - gravityPanel - : GravityPanel - - -
- val - - infoPanel - : InfoPanel - - -
- val - - menuPanel - : MenuPanel - - -
- val - - optionsPanel - : OptionsPanel - - -
- val - - shapeInfoPanel - : ShapeInfoPanel - - -
- val - - splitter - : scala.swing.SplitPane - - -
- val - - worldPanel - : WorldPanel - - -
- - -
- Values and Variables inherited from scala.swing.GridBagPanel -
- scala.swing.GridBagPanel.peer -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.GridBagPanel -
- scala.swing.GridBagPanel.pair2Constraints, scala.swing.GridBagPanel.constraintsFor, scala.swing.GridBagPanel.areValid, scala.swing.GridBagPanel.add -
- - -
- Methods inherited from scala.swing.LayoutContainer -
- scala.swing.LayoutContainer.layout -
- - -
- Methods inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper.contents -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

MainPanel

+
+

+ class + + MainPanel extends GridBagPanel + +

+
- - - -
Value Details
-
- - - val - c : scala.swing.GridBagPanel.Constraints -
-
-

-
-
- - - val - menuPanel : MenuPanel -
-
-

-
-
- - - val - worldPanel : WorldPanel -
-
-

-
-
- - - val - controlPanel : ControlPanel -
-
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GridBagPanel
  2. LayoutContainer
  3. Panel
  4. Wrapper
  5. Container
  6. Component
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any
+
+
- - val - infoPanel : InfoPanel - -
-
-
-
- - val - optionsPanel : OptionsPanel -
-
-

-
-
- - val - shapeInfoPanel : ShapeInfoPanel -
-
-

-
-
+
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + c: Constraints + +

    + +
  8. +

    + def + + contents: Seq[Component] + +

    + +
  9. +

    + val + + controlPanel: ControlPanel + +

    + +
  10. +

    + def + + cursor: Cursor + +

    + +
  11. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  12. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  13. +

    + def + + displayable: Boolean + +

    + +
  14. +

    + def + + enabled: Boolean + +

    + +
  15. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  16. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  17. +

    + def + + focusable: Boolean + +

    + +
  18. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  19. +

    + def + + font: Font + +

    + +
  20. +

    + def + + font_=(f: Font): Unit + +

    + +
  21. +

    + def + + foreground: Color + +

    + +
  22. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  23. +

    + val + + gravityPanel: GravityPanel + +

    + +
  24. +

    + def + + hasFocus: Boolean + +

    + +
  25. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  26. +

    + def + + ignoreRepaint: Boolean + +

    + +
  27. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  28. +

    + val + + infoPanel: InfoPanel + +

    + +
  29. +

    + var + + initP: JComponent + +

    + +
  30. +

    + def + + inputVerifier: (MainPanel.this.type) ⇒ Boolean + +

    + +
  31. +

    + def + + inputVerifier_=(v: (MainPanel.this.type) ⇒ Boolean): Unit + +

    + +
  32. +

    + def + + layout: Map[Component, Constraints] + +

    + +
  33. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  34. +

    + def + + locale: Locale + +

    + +
  35. +

    + def + + location: Point + +

    + +
  36. +

    + def + + locationOnScreen: Point + +

    + +
  37. +

    + def + + maximumSize: Dimension + +

    + +
  38. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  39. +

    + val + + menuPanel: MenuPanel + +

    + +
  40. +

    + def + + minimumSize: Dimension + +

    + +
  41. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  42. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  43. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  44. +

    + def + + opaque: Boolean + +

    + +
  45. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  46. +

    + val + + optionsPanel: OptionsPanel + +

    + +
  47. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  48. +

    + def + + pair2Constraints(p: (Int, Int)): Constraints + +

    + +
  49. +

    + var + + peer: JPanel + +

    + +
  50. +

    + def + + preferredSize: Dimension + +

    + +
  51. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  52. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  53. +

    + def + + publish(e: Event): Unit + +

    + +
  54. +

    + val + + reactions: Reactions + +

    + +
  55. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  56. +

    + def + + repaint(): Unit + +

    + +
  57. +

    + def + + requestFocus(): Unit + +

    + +
  58. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  59. +

    + def + + revalidate(): Unit + +

    + +
  60. +

    + def + + self: Component + +

    + +
  61. +

    + val + + shapeInfoPanel: ShapeInfoPanel + +

    + +
  62. +

    + def + + showing: Boolean + +

    + +
  63. +

    + def + + size: Dimension + +

    + +
  64. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  65. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  66. +

    + val + + splitter: SplitPane + +

    + +
  67. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  68. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  69. +

    + def + + toolkit: Toolkit + +

    + +
  70. +

    + def + + tooltip: String + +

    + +
  71. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  72. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  73. +

    + def + + visible: Boolean + +

    + +
  74. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  75. +

    + val + + worldPanel: WorldPanel + +

    + +
  76. +

    + def + + xLayoutAlignment: Double + +

    + +
  77. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  78. +

    + def + + yLayoutAlignment: Double + +

    + +
  79. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - gravityPanel : GravityPanel -
-
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + MainPanel(container: Container) + +

    + +
  2. +

    + new + + MainPanel() + +

    + +
+
- - val - splitter : scala.swing.SplitPane -
-
-

- - - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/MenuHelp.html b/doc/graphyx/gui/MenuHelp.html index 311784d..0b16973 100644 --- a/doc/graphyx/gui/MenuHelp.html +++ b/doc/graphyx/gui/MenuHelp.html @@ -1,202 +1,1094 @@ - + + - class MenuHelp in graphyx.gui - + + Scaladoc for graphyx.gui.MenuHelp + + + + + + - - - - - - - - - -
- graphyx.gui -

- class MenuHelp -

-
- [source: graphyx/gui/MenuHelp.scala] -

-
-
- - - class - MenuHelp -
-
extends scala.swing.Menu
-
+ +

graphyx.gui

- - - - - - - - - - -
Value Summary
- val - - components - : scala.List[scala.swing.MenuItem] - +
+ +

MenuHelp

+
+ +

+ class + + MenuHelp extends Menu + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Menu
  2. Wrapper
  3. Wrapper
  4. SequentialContainer
  5. Container
  6. MenuItem
  7. AbstractButton
  8. Trigger
  9. Component
  10. UIElement
  11. LazyPublisher
  12. Publisher
  13. Reactor
  14. Proxy
  15. AnyRef
  16. Any
+
+
-
- val - - miAbout - : scala.swing.MenuItem -
- - -
- Values and Variables inherited from scala.swing.Menu -
- scala.swing.Menu.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.AbstractButton -
- scala.swing.AbstractButton.text, scala.swing.AbstractButton.text_=, scala.swing.AbstractButton.icon, scala.swing.AbstractButton.icon_=, scala.swing.AbstractButton.pressedIcon, scala.swing.AbstractButton.pressedIcon_=, scala.swing.AbstractButton.selectedIcon, scala.swing.AbstractButton.selectedIcon_=, scala.swing.AbstractButton.disabledIcon, scala.swing.AbstractButton.disabledIcon_=, scala.swing.AbstractButton.disabledSelectedIcon, scala.swing.AbstractButton.disabledSelectedIcon_=, scala.swing.AbstractButton.rolloverIcon, scala.swing.AbstractButton.rolloverIcon_=, scala.swing.AbstractButton.rolloverSelectedIcon, scala.swing.AbstractButton.rolloverSelectedIcon_=, scala.swing.AbstractButton.action, scala.swing.AbstractButton.action_=, scala.swing.AbstractButton.selected, scala.swing.AbstractButton.selected_=, scala.swing.AbstractButton.contentAreaFilled, scala.swing.AbstractButton.contentAreaFilled_=, scala.swing.AbstractButton.borderPainted, scala.swing.AbstractButton.borderPainted_=, scala.swing.AbstractButton.focusPainted, scala.swing.AbstractButton.focusPainted_=, scala.swing.AbstractButton.rolloverEnabled, scala.swing.AbstractButton.rolloverEnabled_=, scala.swing.AbstractButton.verticalTextPosition, scala.swing.AbstractButton.verticalTextPosition_=, scala.swing.AbstractButton.verticalAlignment, scala.swing.AbstractButton.verticalAlignment_=, scala.swing.AbstractButton.horizontalTextPosition, scala.swing.AbstractButton.horizontalTextPosition_=, scala.swing.AbstractButton.horizontalAlignment, scala.swing.AbstractButton.horizontalAlignment_=, scala.swing.AbstractButton.iconTextGap, scala.swing.AbstractButton.iconTextGap_=, scala.swing.AbstractButton.mnemonic, scala.swing.AbstractButton.mnemonic_=, scala.swing.AbstractButton.displayedMnemonicIndex, scala.swing.AbstractButton.displayedMnemonicIndex_=, scala.swing.AbstractButton.multiClickThreshold, scala.swing.AbstractButton.multiClickThreshold_=, scala.swing.AbstractButton.doClick, scala.swing.AbstractButton.doClick, scala.swing.AbstractButton.margin, scala.swing.AbstractButton.margin_= -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    - - - -
    Value Details
    -
    +
  2. +

    + def + + action: Action + +

    + +
  3. +

    + def + + action_=(a: Action): Unit + +

    + +
  4. +

    + def + + background: Color + +

    + +
  5. +

    + def + + background_=(c: Color): Unit + +

    + +
  6. +

    + def + + border: Border + +

    + +
  7. +

    + def + + borderPainted: Boolean + +

    + +
  8. +

    + def + + borderPainted_=(b: Boolean): Unit + +

    + +
  9. +

    + def + + border_=(b: Border): Unit + +

    + +
  10. +

    + def + + bounds: Rectangle + +

    + +
  11. +

    + val + + components: List[MenuItem] + +

    + +
  12. +

    + def + + contentAreaFilled: Boolean + +

    + +
  13. +

    + def + + contentAreaFilled_=(b: Boolean): Unit + +

    + +
  14. +

    + val + + contents: Buffer[Component] + +

    + +
  15. +

    + def + + cursor: Cursor + +

    + +
  16. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  17. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  18. +

    + def + + disabledIcon: Icon + +

    + +
  19. +

    + def + + disabledIcon_=(i: Icon): Unit + +

    + +
  20. +

    + def + + disabledSelectedIcon: Icon + +

    + +
  21. +

    + def + + disabledSelectedIcon_=(i: Icon): Unit + +

    + +
  22. +

    + def + + displayable: Boolean + +

    + +
  23. +

    + def + + displayedMnemonicIndex: Int + +

    + +
  24. +

    + def + + displayedMnemonicIndex_=(n: Int): Unit + +

    + +
  25. +

    + def + + doClick(times: Int): Unit + +

    + +
  26. +

    + def + + doClick(): Unit + +

    + +
  27. +

    + def + + enabled: Boolean + +

    + +
  28. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  29. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  30. +

    + def + + focusPainted: Boolean + +

    + +
  31. +

    + def + + focusPainted_=(b: Boolean): Unit + +

    + +
  32. +

    + def + + focusable: Boolean + +

    + +
  33. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  34. +

    + def + + font: Font + +

    + +
  35. +

    + def + + font_=(f: Font): Unit + +

    + +
  36. +

    + def + + foreground: Color + +

    + +
  37. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  38. +

    + def + + hasFocus: Boolean + +

    + +
  39. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  40. +

    + def + + horizontalAlignment: Value + +

    + +
  41. +

    + def + + horizontalAlignment_=(a: Value): Unit + +

    + +
  42. +

    + def + + horizontalTextPosition: Value + +

    + +
  43. +

    + def + + horizontalTextPosition_=(a: Value): Unit + +

    + +
  44. +

    + def + + icon: Icon + +

    + +
  45. +

    + def + + iconTextGap: Int + +

    + +
  46. +

    + def + + iconTextGap_=(x: Int): Unit + +

    + +
  47. +

    + def + + icon_=(i: Icon): Unit + +

    + +
  48. +

    + def + + ignoreRepaint: Boolean + +

    + +
  49. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  50. +

    + var + + initP: JComponent + +

    + +
  51. +

    + def + + inputVerifier: (MenuHelp.this.type) ⇒ Boolean + +

    + +
  52. +

    + def + + inputVerifier_=(v: (MenuHelp.this.type) ⇒ Boolean): Unit + +

    + +
  53. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  54. +

    + def + + locale: Locale + +

    + +
  55. +

    + def + + location: Point + +

    + +
  56. +

    + def + + locationOnScreen: Point + +

    + +
  57. +

    + def + + margin: Insets + +

    + +
  58. +

    + def + + margin_=(i: Insets): Unit + +

    + +
  59. +

    + def + + maximumSize: Dimension + +

    + +
  60. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  61. +

    + val + + miAbout: MenuItem + +

    + +
  62. +

    + def + + minimumSize: Dimension + +

    + +
  63. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  64. +

    + def + + mnemonic: Value + +

    + +
  65. +

    + def + + mnemonic_=(k: Value): Unit + +

    + +
  66. +

    + def + + multiClickThreshold: Long + +

    + +
  67. +

    + def + + multiClickThreshold_=(n: Long): Unit + +

    + +
  68. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  69. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  70. +

    + def + + opaque: Boolean + +

    + +
  71. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  72. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  73. +

    + var + + peer: JMenu + +

    + +
  74. +

    + def + + preferredSize: Dimension + +

    + +
  75. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  76. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  77. +

    + def + + pressedIcon: Icon + +

    + +
  78. +

    + def + + pressedIcon_=(i: Icon): Unit + +

    + +
  79. +

    + def + + publish(e: Event): Unit + +

    + +
  80. +

    + val + + reactions: Reactions + +

    + +
  81. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  82. +

    + def + + repaint(): Unit + +

    + +
  83. +

    + def + + requestFocus(): Unit + +

    + +
  84. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  85. +

    + def + + revalidate(): Unit + +

    + +
  86. +

    + def + + rolloverEnabled: Boolean + +

    + +
  87. +

    + def + + rolloverEnabled_=(b: Boolean): Unit + +

    + +
  88. +

    + def + + rolloverIcon: Icon + +

    + +
  89. +

    + def + + rolloverIcon_=(b: Icon): Unit + +

    + +
  90. +

    + def + + rolloverSelectedIcon: Icon + +

    + +
  91. +

    + def + + rolloverSelectedIcon_=(b: Icon): Unit + +

    + +
  92. +

    + def + + selected: Boolean + +

    + +
  93. +

    + def + + selectedIcon: Icon + +

    + +
  94. +

    + def + + selectedIcon_=(i: Icon): Unit + +

    + +
  95. +

    + def + + selected_=(b: Boolean): Unit + +

    + +
  96. +

    + def + + self: Component + +

    + +
  97. +

    + def + + showing: Boolean + +

    + +
  98. +

    + def + + size: Dimension + +

    + +
  99. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  100. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  101. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  102. +

    + def + + text: String + +

    + +
  103. +

    + def + + text_=(s: String): Unit + +

    + +
  104. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  105. +

    + def + + toolkit: Toolkit + +

    + +
  106. +

    + def + + tooltip: String + +

    + +
  107. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  108. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  109. +

    + def + + verticalAlignment: Value + +

    + +
  110. +

    + def + + verticalAlignment_=(a: Value): Unit + +

    + +
  111. +

    + def + + verticalTextPosition: Value + +

    + +
  112. +

    + def + + verticalTextPosition_=(a: Value): Unit + +

    + +
  113. +

    + def + + visible: Boolean + +

    + +
  114. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  115. +

    + def + + xLayoutAlignment: Double + +

    + +
  116. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  117. +

    + def + + yLayoutAlignment: Double + +

    + +
  118. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - miAbout : scala.swing.MenuItem - -
-
-
-
+
+

Instance constructors

+
  1. +

    + new + + MenuHelp() + +

    + +
  2. +

    + new + + MenuHelp(title0: String) + +

    + +
  3. +

    + new + + MenuHelp(a: Action) + +

    + +
+
- - val - components : scala.List[scala.swing.MenuItem] -
-
-

- - - -
- - - - - - - - + + + \ No newline at end of file diff --git a/doc/graphyx/gui/MenuPanel.html b/doc/graphyx/gui/MenuPanel.html index a685510..0b83492 100644 --- a/doc/graphyx/gui/MenuPanel.html +++ b/doc/graphyx/gui/MenuPanel.html @@ -1,175 +1,702 @@ - + + - class MenuPanel in graphyx.gui - + + Scaladoc for graphyx.gui.MenuPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class MenuPanel -

-
- [source: graphyx/gui/MenuPanel.scala] -

-
-
- - - class - MenuPanel(container : Container) -
-
extends scala.swing.BoxPanel
-
+ +

graphyx.gui

+ +
+ +

MenuPanel

+
- - - - - - -
Value Summary
- val - - mnu - : scala.swing.MenuBar +

+ class + + MenuPanel extends BoxPanel + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. BoxPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
-
- - -
- Values and Variables inherited from scala.swing.BoxPanel -
- scala.swing.BoxPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - + +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    - - - -
    Value Details
    -
    +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + contents: Buffer[Component] + +

    + +
  8. +

    + def + + cursor: Cursor + +

    + +
  9. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  10. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  11. +

    + def + + displayable: Boolean + +

    + +
  12. +

    + def + + enabled: Boolean + +

    + +
  13. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  14. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  15. +

    + def + + focusable: Boolean + +

    + +
  16. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  17. +

    + def + + font: Font + +

    + +
  18. +

    + def + + font_=(f: Font): Unit + +

    + +
  19. +

    + def + + foreground: Color + +

    + +
  20. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  21. +

    + def + + hasFocus: Boolean + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  23. +

    + def + + ignoreRepaint: Boolean + +

    + +
  24. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  25. +

    + var + + initP: JComponent + +

    + +
  26. +

    + def + + inputVerifier: (MenuPanel.this.type) ⇒ Boolean + +

    + +
  27. +

    + def + + inputVerifier_=(v: (MenuPanel.this.type) ⇒ Boolean): Unit + +

    + +
  28. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  29. +

    + def + + locale: Locale + +

    + +
  30. +

    + def + + location: Point + +

    + +
  31. +

    + def + + locationOnScreen: Point + +

    + +
  32. +

    + def + + maximumSize: Dimension + +

    + +
  33. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  34. +

    + def + + minimumSize: Dimension + +

    + +
  35. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  36. +

    + val + + mnu: MenuBar + +

    + +
  37. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  38. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  39. +

    + def + + opaque: Boolean + +

    + +
  40. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  41. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  42. +

    + var + + peer: JPanel with SuperMixin + +

    + +
  43. +

    + def + + preferredSize: Dimension + +

    + +
  44. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  45. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  46. +

    + def + + publish(e: Event): Unit + +

    + +
  47. +

    + val + + reactions: Reactions + +

    + +
  48. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  49. +

    + def + + repaint(): Unit + +

    + +
  50. +

    + def + + requestFocus(): Unit + +

    + +
  51. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  52. +

    + def + + revalidate(): Unit + +

    + +
  53. +

    + def + + self: Component + +

    + +
  54. +

    + def + + showing: Boolean + +

    + +
  55. +

    + def + + size: Dimension + +

    + +
  56. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  57. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  58. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  59. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  60. +

    + def + + toolkit: Toolkit + +

    + +
  61. +

    + def + + tooltip: String + +

    + +
  62. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  63. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  64. +

    + def + + visible: Boolean + +

    + +
  65. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  66. +

    + def + + xLayoutAlignment: Double + +

    + +
  67. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  68. +

    + def + + yLayoutAlignment: Double + +

    + +
  69. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - mnu : scala.swing.MenuBar - -
-
- - - -
- - - - - - - - +
+

Instance constructors

+
  1. +

    + new + + MenuPanel(container: Container) + +

    + +
  2. +

    + new + + MenuPanel(orientation: Value) + +

    + +
  3. +

    + new + + MenuPanel() + +

    + +
+
+ + + + \ No newline at end of file diff --git a/doc/graphyx/gui/OptionsPanel.html b/doc/graphyx/gui/OptionsPanel.html index a666b5d..cbb1a2b 100644 --- a/doc/graphyx/gui/OptionsPanel.html +++ b/doc/graphyx/gui/OptionsPanel.html @@ -1,665 +1,958 @@ - + + - class OptionsPanel in graphyx.gui - + + Scaladoc for graphyx.gui.OptionsPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class OptionsPanel -

-
- [source: graphyx/gui/OptionsPanel.scala] -

-
-
- - - class - OptionsPanel(container : Container) -
-
extends scala.swing.GridPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - chckCD - : scala.swing.CheckBox - - -
- val - - chckDrawAABBs - : scala.swing.CheckBox - - -
- val - - chckDrawBodies - : scala.swing.CheckBox - - -
- val - - chckDrawCollisions - : scala.swing.CheckBox - - -
- val - - chckDrawJoints - : scala.swing.CheckBox - - -
- val - - chckDrawPairs - : scala.swing.CheckBox - - -
- val - - chckDrawShapes - : scala.swing.CheckBox - - -
- val - - chckPC - : scala.swing.CheckBox - - -
- val - - chckTrace - : scala.swing.CheckBox - - -
- val - - components - : scala.List[scala.swing.Component] - - -
- val - - lblCD - : scala.swing.Label - - -
- val - - lblDraw - : scala.swing.Label - - -
- val - - lblDrawAABBs - : scala.swing.Label - - -
- val - - lblDrawBodies - : scala.swing.Label - - -
- val - - lblDrawCollisions - : scala.swing.Label - - -
- val - - lblDrawJoints - : scala.swing.Label - - -
- val - - lblDrawPairs - : scala.swing.Label - - -
- val - - lblDrawShapes - : scala.swing.Label - - -
- val - - lblIterations - : scala.swing.Label - - -
- val - - lblPC - : scala.swing.Label - - -
- val - - lblTimeStep - : scala.swing.Label - - -
- val - - lblTrace - : scala.swing.Label - - -
- val - - txtIterations - : scala.swing.TextField - - -
- val - - txtTimeStep - : scala.swing.TextField - - -
- - -
- Values and Variables inherited from scala.swing.GridPanel -
- scala.swing.GridPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - -
Method Summary
- def - - update - : Unit - - -
- - -
- Methods inherited from scala.swing.GridPanel -
- scala.swing.GridPanel.rows, scala.swing.GridPanel.rows_=, scala.swing.GridPanel.columns, scala.swing.GridPanel.columns_=, scala.swing.GridPanel.vGap, scala.swing.GridPanel.vGap_=, scala.swing.GridPanel.hGap, scala.swing.GridPanel.hGap_= -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

OptionsPanel

+
+

+ class + + OptionsPanel extends GridPanel + +

+
- - - -
Value Details
-
- - - val - lblTimeStep : scala.swing.Label -
-
-

-
-
- - - val - txtTimeStep : scala.swing.TextField -
-
-

-
-
- - - val - lblIterations : scala.swing.Label -
-
-

-
-
- - - val - txtIterations : scala.swing.TextField -
-
-

-
-
- - - val - lblCD : scala.swing.Label -
-
-

-
-
- - - val - chckCD : scala.swing.CheckBox -
-
-

-
-
- - - val - lblPC : scala.swing.Label -
-
-

-
-
- - - val - chckPC : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDraw : scala.swing.Label -
-
-

-
-
- - - val - lblDrawBodies : scala.swing.Label -
-
-

-
-
- - - val - chckDrawBodies : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDrawShapes : scala.swing.Label -
-
-

-
-
- - - val - chckDrawShapes : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDrawJoints : scala.swing.Label -
-
-

-
-
- - - val - chckDrawJoints : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDrawAABBs : scala.swing.Label -
-
-

-
-
- - - val - chckDrawAABBs : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDrawPairs : scala.swing.Label -
-
-

-
-
- - - val - chckDrawPairs : scala.swing.CheckBox -
-
-

-
-
- - - val - lblDrawCollisions : scala.swing.Label -
-
-

-
-
- - - val - chckDrawCollisions : scala.swing.CheckBox -
-
-

-
-
- - - val - lblTrace : scala.swing.Label -
-
-

-
-
- - - val - chckTrace : scala.swing.CheckBox -
-
-

-
-
- - - val - components : scala.List[scala.swing.Component] -
-
-

- - -
Method Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GridPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + chckCD: CheckBox + +

    + +
  8. +

    + val + + chckDrawAABBs: CheckBox + +

    + +
  9. +

    + val + + chckDrawBodies: CheckBox + +

    + +
  10. +

    + val + + chckDrawCollisions: CheckBox + +

    + +
  11. +

    + val + + chckDrawJoints: CheckBox + +

    + +
  12. +

    + val + + chckDrawPairs: CheckBox + +

    + +
  13. +

    + val + + chckDrawShapes: CheckBox + +

    + +
  14. +

    + val + + chckPC: CheckBox + +

    + +
  15. +

    + val + + chckTrace: CheckBox + +

    + +
  16. +

    + def + + columns: Int + +

    + +
  17. +

    + def + + columns_=(n: Int): Unit + +

    + +
  18. +

    + val + + components: List[Component {...}] + +

    + +
  19. +

    + val + + contents: Buffer[Component] + +

    + +
  20. +

    + def + + cursor: Cursor + +

    + +
  21. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  22. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  23. +

    + def + + displayable: Boolean + +

    + +
  24. +

    + def + + enabled: Boolean + +

    + +
  25. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  26. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  27. +

    + def + + focusable: Boolean + +

    + +
  28. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  29. +

    + def + + font: Font + +

    + +
  30. +

    + def + + font_=(f: Font): Unit + +

    + +
  31. +

    + def + + foreground: Color + +

    + +
  32. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  33. +

    + def + + hGap: Int + +

    + +
  34. +

    + def + + hGap_=(n: Int): Unit + +

    + +
  35. +

    + def + + hasFocus: Boolean + +

    + +
  36. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  37. +

    + def + + ignoreRepaint: Boolean + +

    + +
  38. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  39. +

    + var + + initP: JComponent + +

    + +
  40. +

    + def + + inputVerifier: (OptionsPanel.this.type) ⇒ Boolean + +

    + +
  41. +

    + def + + inputVerifier_=(v: (OptionsPanel.this.type) ⇒ Boolean): Unit + +

    + +
  42. +

    + val + + lblCD: Label + +

    + +
  43. +

    + val + + lblDraw: Label + +

    + +
  44. +

    + val + + lblDrawAABBs: Label + +

    + +
  45. +

    + val + + lblDrawBodies: Label + +

    + +
  46. +

    + val + + lblDrawCollisions: Label + +

    + +
  47. +

    + val + + lblDrawJoints: Label + +

    + +
  48. +

    + val + + lblDrawPairs: Label + +

    + +
  49. +

    + val + + lblDrawShapes: Label + +

    + +
  50. +

    + val + + lblIterations: Label + +

    + +
  51. +

    + val + + lblPC: Label + +

    + +
  52. +

    + val + + lblTimeStep: Label + +

    + +
  53. +

    + val + + lblTrace: Label + +

    + +
  54. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  55. +

    + def + + locale: Locale + +

    + +
  56. +

    + def + + location: Point + +

    + +
  57. +

    + def + + locationOnScreen: Point + +

    + +
  58. +

    + def + + maximumSize: Dimension + +

    + +
  59. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  60. +

    + def + + minimumSize: Dimension + +

    + +
  61. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  62. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  63. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  64. +

    + def + + opaque: Boolean + +

    + +
  65. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  66. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  67. +

    + var + + peer: JPanel + +

    + +
  68. +

    + def + + preferredSize: Dimension + +

    + +
  69. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  70. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  71. +

    + def + + publish(e: Event): Unit + +

    + +
  72. +

    + val + + reactions: Reactions + +

    + +
  73. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  74. +

    + def + + repaint(): Unit + +

    + +
  75. +

    + def + + requestFocus(): Unit + +

    + +
  76. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  77. +

    + def + + revalidate(): Unit + +

    + +
  78. +

    + def + + rows: Int + +

    + +
  79. +

    + def + + rows_=(n: Int): Unit + +

    + +
  80. +

    + def + + self: Component + +

    + +
  81. +

    + def + + showing: Boolean + +

    + +
  82. +

    + def + + size: Dimension + +

    + +
  83. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  84. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  85. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  86. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  87. +

    + def + + toolkit: Toolkit + +

    + +
  88. +

    + def + + tooltip: String + +

    + +
  89. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  90. +

    + val + + txtIterations: TextField + +

    + +
  91. +

    + val + + txtTimeStep: TextField + +

    + +
  92. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  93. +

    + def + + update(): Unit + +

    + +
  94. +

    + def + + vGap: Int + +

    + +
  95. +

    + def + + vGap_=(n: Int): Unit + +

    + +
  96. +

    + def + + visible: Boolean + +

    + +
  97. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  98. +

    + def + + xLayoutAlignment: Double + +

    + +
  99. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  100. +

    + def + + yLayoutAlignment: Double + +

    + +
  101. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + OptionsPanel(container: Container) + +

    + +
  2. +

    + new + + OptionsPanel(rows0: Int, cols0: Int) + +

    + +
  3. +

    + new + + OptionsPanel() + +

    + +
+
- - def - update : Unit - -
-
- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/PopupMenu.html b/doc/graphyx/gui/PopupMenu.html index 96c8a2e..b404006 100644 --- a/doc/graphyx/gui/PopupMenu.html +++ b/doc/graphyx/gui/PopupMenu.html @@ -1,207 +1,688 @@ - + + - class PopupMenu in graphyx.gui - + + Scaladoc for graphyx.gui.PopupMenu + + + + + + - - - - - - - - - -
- graphyx.gui -

- class PopupMenu -

-
- [source: graphyx/gui/PopupMenu.scala] -

-
-
- - - class - PopupMenu -
-
extends scala.swing.Component
-
-
Direct Known Subclasses:
-
BodyPopup
-

+ +

graphyx.gui

- - - - - - -
Value Summary
- override lazy val - - peer - : javax.swing.JPopupMenu - - -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - - - - - -
Method Summary
- def - - add - (item : scala.swing.MenuItem) : Unit - +
+ +

PopupMenu

+
+ +

+ class + + PopupMenu extends Component + +

+
+ + + + +
+ known subclasses: BodyPopup +
+
+ +
+ +
+
+

Inherits

+
  1. Component
  2. UIElement
  3. LazyPublisher
  4. Publisher
  5. Reactor
  6. Proxy
  7. AnyRef
  8. Any
+
+
-
- def - - setVisible - (visible : Boolean) : Unit -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    - - - -
    Value Details
    -
    - - override - lazy val - peer : javax.swing.JPopupMenu -
    -
    -
    -
    - Overrides -
    -
    - scala.swing.Component.scala.swing.Component.peer -
    -

    - - -
    Method Details
    -
    +
  2. +

    + def + + add(item: MenuItem): Unit + +

    + +
  3. +

    + def + + background: Color + +

    + +
  4. +

    + def + + background_=(c: Color): Unit + +

    + +
  5. +

    + def + + border: Border + +

    + +
  6. +

    + def + + border_=(b: Border): Unit + +

    + +
  7. +

    + def + + bounds: Rectangle + +

    + +
  8. +

    + def + + cursor: Cursor + +

    + +
  9. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  10. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  11. +

    + def + + displayable: Boolean + +

    + +
  12. +

    + def + + enabled: Boolean + +

    + +
  13. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  14. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  15. +

    + def + + focusable: Boolean + +

    + +
  16. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  17. +

    + def + + font: Font + +

    + +
  18. +

    + def + + font_=(f: Font): Unit + +

    + +
  19. +

    + def + + foreground: Color + +

    + +
  20. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  21. +

    + def + + hasFocus: Boolean + +

    + +
  22. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  23. +

    + def + + ignoreRepaint: Boolean + +

    + +
  24. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  25. +

    + var + + initP: JComponent + +

    + +
  26. +

    + def + + inputVerifier: (PopupMenu.this.type) ⇒ Boolean + +

    + +
  27. +

    + def + + inputVerifier_=(v: (PopupMenu.this.type) ⇒ Boolean): Unit + +

    + +
  28. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  29. +

    + def + + locale: Locale + +

    + +
  30. +

    + def + + location: Point + +

    + +
  31. +

    + def + + locationOnScreen: Point + +

    + +
  32. +

    + def + + maximumSize: Dimension + +

    + +
  33. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  34. +

    + def + + minimumSize: Dimension + +

    + +
  35. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  36. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  37. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  38. +

    + def + + opaque: Boolean + +

    + +
  39. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  40. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  41. +

    + var + + peer: JPopupMenu + +

    + +
  42. +

    + def + + preferredSize: Dimension + +

    + +
  43. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  44. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  45. +

    + def + + publish(e: Event): Unit + +

    + +
  46. +

    + val + + reactions: Reactions + +

    + +
  47. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  48. +

    + def + + repaint(): Unit + +

    + +
  49. +

    + def + + requestFocus(): Unit + +

    + +
  50. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  51. +

    + def + + revalidate(): Unit + +

    + +
  52. +

    + def + + self: Component + +

    + +
  53. +

    + def + + setVisible(visible: Boolean): Unit + +

    + +
  54. +

    + def + + showing: Boolean + +

    + +
  55. +

    + def + + size: Dimension + +

    + +
  56. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  57. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  58. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  59. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  60. +

    + def + + toolkit: Toolkit + +

    + +
  61. +

    + def + + tooltip: String + +

    + +
  62. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  63. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  64. +

    + def + + visible: Boolean + +

    + +
  65. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  66. +

    + def + + xLayoutAlignment: Double + +

    + +
  67. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  68. +

    + def + + yLayoutAlignment: Double + +

    + +
  69. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - def - add(item : scala.swing.MenuItem) : Unit - -
-
-
-
+
+

Instance constructors

+
  1. +

    + new + + PopupMenu() + +

    + +
+
- - def - setVisible(visible : Boolean) : Unit -
-
-

- - -
- - - - - - - - + + + \ No newline at end of file diff --git a/doc/graphyx/gui/ShapeInfoPanel.html b/doc/graphyx/gui/ShapeInfoPanel.html index 452968a..4e9b1c7 100644 --- a/doc/graphyx/gui/ShapeInfoPanel.html +++ b/doc/graphyx/gui/ShapeInfoPanel.html @@ -1,262 +1,798 @@ - + + - class ShapeInfoPanel in graphyx.gui - + + Scaladoc for graphyx.gui.ShapeInfoPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class ShapeInfoPanel -

-
- [source: graphyx/gui/ShapeInfoPanel.scala] -

-
-
- - - class - ShapeInfoPanel(container : Container) -
-
extends scala.swing.GridPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- val - - components - : scala.List[scala.swing.Label] - - -
- val - - lblBody - : scala.swing.Label - - -
- val - - lblShape - : scala.swing.Label - - -
- val - - lblValBody - : scala.swing.Label - - -
- val - - lblValShape - : scala.swing.Label - - -
- - -
- Values and Variables inherited from scala.swing.GridPanel -
- scala.swing.GridPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - -
- Methods inherited from scala.swing.GridPanel -
- scala.swing.GridPanel.rows, scala.swing.GridPanel.rows_=, scala.swing.GridPanel.columns, scala.swing.GridPanel.columns_=, scala.swing.GridPanel.vGap, scala.swing.GridPanel.vGap_=, scala.swing.GridPanel.hGap, scala.swing.GridPanel.hGap_= -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paintComponent, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

ShapeInfoPanel

+
+

+ class + + ShapeInfoPanel extends GridPanel + +

+
- - - -
Value Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. GridPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
- - val - lblBody : scala.swing.Label - -
-
-
-
- - val - lblValBody : scala.swing.Label -
-
-

-
-
- - val - lblShape : scala.swing.Label -
-
-

-
-
+
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + def + + columns: Int + +

    + +
  8. +

    + def + + columns_=(n: Int): Unit + +

    + +
  9. +

    + val + + components: List[Label] + +

    + +
  10. +

    + val + + contents: Buffer[Component] + +

    + +
  11. +

    + def + + cursor: Cursor + +

    + +
  12. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  13. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  14. +

    + def + + displayable: Boolean + +

    + +
  15. +

    + def + + enabled: Boolean + +

    + +
  16. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  17. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  18. +

    + def + + focusable: Boolean + +

    + +
  19. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  20. +

    + def + + font: Font + +

    + +
  21. +

    + def + + font_=(f: Font): Unit + +

    + +
  22. +

    + def + + foreground: Color + +

    + +
  23. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  24. +

    + def + + hGap: Int + +

    + +
  25. +

    + def + + hGap_=(n: Int): Unit + +

    + +
  26. +

    + def + + hasFocus: Boolean + +

    + +
  27. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  28. +

    + def + + ignoreRepaint: Boolean + +

    + +
  29. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  30. +

    + var + + initP: JComponent + +

    + +
  31. +

    + def + + inputVerifier: (ShapeInfoPanel.this.type) ⇒ Boolean + +

    + +
  32. +

    + def + + inputVerifier_=(v: (ShapeInfoPanel.this.type) ⇒ Boolean): Unit + +

    + +
  33. +

    + val + + lblBody: Label + +

    + +
  34. +

    + val + + lblShape: Label + +

    + +
  35. +

    + val + + lblValBody: Label + +

    + +
  36. +

    + val + + lblValShape: Label + +

    + +
  37. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  38. +

    + def + + locale: Locale + +

    + +
  39. +

    + def + + location: Point + +

    + +
  40. +

    + def + + locationOnScreen: Point + +

    + +
  41. +

    + def + + maximumSize: Dimension + +

    + +
  42. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  43. +

    + def + + minimumSize: Dimension + +

    + +
  44. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  45. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  46. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  47. +

    + def + + opaque: Boolean + +

    + +
  48. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  49. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  50. +

    + var + + peer: JPanel + +

    + +
  51. +

    + def + + preferredSize: Dimension + +

    + +
  52. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  53. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  54. +

    + def + + publish(e: Event): Unit + +

    + +
  55. +

    + val + + reactions: Reactions + +

    + +
  56. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  57. +

    + def + + repaint(): Unit + +

    + +
  58. +

    + def + + requestFocus(): Unit + +

    + +
  59. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  60. +

    + def + + revalidate(): Unit + +

    + +
  61. +

    + def + + rows: Int + +

    + +
  62. +

    + def + + rows_=(n: Int): Unit + +

    + +
  63. +

    + def + + self: Component + +

    + +
  64. +

    + def + + showing: Boolean + +

    + +
  65. +

    + def + + size: Dimension + +

    + +
  66. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  67. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  68. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  69. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  70. +

    + def + + toolkit: Toolkit + +

    + +
  71. +

    + def + + tooltip: String + +

    + +
  72. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  73. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  74. +

    + def + + vGap: Int + +

    + +
  75. +

    + def + + vGap_=(n: Int): Unit + +

    + +
  76. +

    + def + + visible: Boolean + +

    + +
  77. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  78. +

    + def + + xLayoutAlignment: Double + +

    + +
  79. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  80. +

    + def + + yLayoutAlignment: Double + +

    + +
  81. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
- - val - lblValShape : scala.swing.Label -
-
-

-
-
+
+

Instance constructors

+
  1. +

    + new + + ShapeInfoPanel(container: Container) + +

    + +
  2. +

    + new + + ShapeInfoPanel(rows0: Int, cols0: Int) + +

    + +
  3. +

    + new + + ShapeInfoPanel() + +

    + +
+
- - val - components : scala.List[scala.swing.Label] -
-
-

- - - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/WorldPanel.html b/doc/graphyx/gui/WorldPanel.html index e9a346e..1bac637 100644 --- a/doc/graphyx/gui/WorldPanel.html +++ b/doc/graphyx/gui/WorldPanel.html @@ -1,698 +1,910 @@ - + + - class WorldPanel in graphyx.gui - + + Scaladoc for graphyx.gui.WorldPanel + + + + + + - - - - - - - - - -
- graphyx.gui -

- class WorldPanel -

-
- [source: graphyx/gui/WorldPanel.scala] -

-
-
- - - class - WorldPanel(container : Container) -
-
extends scala.swing.BoxPanel
-
+ +

graphyx.gui

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- var - - drawAABBs - : Boolean - - -
- var - - drawBodies - : Boolean - - -
- var - - drawCollisions - : Boolean - - -
- var - - drawJoints - : Boolean - - -
- var - - drawPairs - : Boolean - - -
- var - - drawShapes - : Boolean - - -
- var - - endPoint - : java.awt.Point - - -
- var - - grabbedBody - : scala.Option[GrabbedBody] - - -
- val - - lblBody - : scala.swing.Label - - -
- var - - mousePressed - : Boolean - - -
- var - - offset - : Vector2D - - -
- val - - popup - : BodyPopup - - -
- val - - ppm - : Double - - -
- val - - prevPos - : scala.collection.mutable.Map[Int, scala.collection.mutable.Queue[Vector2D]] - - -
- var - - scale - : Double - - -
- var - - startPoint - : java.awt.Point - - -
- var - - trace - : Boolean - - -
- - -
- Values and Variables inherited from scala.swing.BoxPanel -
- scala.swing.BoxPanel.peer -
- - -
- Values and Variables inherited from scala.swing.SequentialContainer.Wrapper -
- scala.swing.SequentialContainer.Wrapper.contents -
- - -
- Values and Variables inherited from scala.swing.Container.Wrapper -
- scala.swing.Container.Wrapper._contents -
- - -
- Values and Variables inherited from scala.swing.Component -
- scala.swing.Component.initP -
- - -
- Values and Variables inherited from scala.swing.Publisher -
- scala.swing.Publisher.listeners -
- - -
- Values and Variables inherited from scala.swing.Reactor -
- scala.swing.Reactor.reactions -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Summary
- def - - drawAxes - (g : java.awt.Graphics) : Unit - - -
- def - - drawParts - (parts : scala.Iterable[Drawable], g : java.awt.Graphics) : Unit - - -
- def - - getBody - (p : Vector2D) : scala.Option[Body] - - -
- def - - grab - (b : Body, p : Vector2D) : Unit - - -
- override def - - paintComponent - (g : java.awt.Graphics) : Unit - - -
- implicit def - - point2Vector - (p : java.awt.Point) : Vector2D - - -
- def - - release - : Unit - - -
- def - - scene - : Scene - - -
- def - - trace - (shapes : scala.Iterable[GraphicalShape], g : java.awt.Graphics) : Unit - - -
- def - - update - : Unit - - -
- - -
- Methods inherited from scala.swing.Component -
- scala.swing.Component.xLayoutAlignment, scala.swing.Component.xLayoutAlignment_=, scala.swing.Component.yLayoutAlignment, scala.swing.Component.yLayoutAlignment_=, scala.swing.Component.border, scala.swing.Component.border_=, scala.swing.Component.opaque, scala.swing.Component.opaque_=, scala.swing.Component.enabled, scala.swing.Component.enabled_=, scala.swing.Component.tooltip, scala.swing.Component.tooltip_=, scala.swing.Component.inputVerifier, scala.swing.Component.inputVerifier_=, scala.swing.Component.revalidate, scala.swing.Component.requestFocus, scala.swing.Component.paint, scala.swing.Component.toString -
- - -
- Methods inherited from scala.swing.Publisher -
- scala.swing.Publisher.subscribe, scala.swing.Publisher.unsubscribe, scala.swing.Publisher.publish -
- - -
- Methods inherited from scala.swing.Reactor -
- scala.swing.Reactor.listenTo, scala.swing.Reactor.deafTo -
- - -
- Methods inherited from scala.swing.UIElement -
- scala.swing.UIElement.self, scala.swing.UIElement.foreground, scala.swing.UIElement.foreground_=, scala.swing.UIElement.background, scala.swing.UIElement.background_=, scala.swing.UIElement.minimumSize, scala.swing.UIElement.minimumSize_=, scala.swing.UIElement.maximumSize, scala.swing.UIElement.maximumSize_=, scala.swing.UIElement.preferredSize, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.preferredSize_=, scala.swing.UIElement.font, scala.swing.UIElement.font_=, scala.swing.UIElement.locationOnScreen, scala.swing.UIElement.location, scala.swing.UIElement.bounds, scala.swing.UIElement.size, scala.swing.UIElement.size_=, scala.swing.UIElement.size_=, scala.swing.UIElement.locale, scala.swing.UIElement.toolkit, scala.swing.UIElement.cursor, scala.swing.UIElement.cursor_=, scala.swing.UIElement.visible, scala.swing.UIElement.visible_=, scala.swing.UIElement.showing, scala.swing.UIElement.repaint -
- - -
- Methods inherited from scala.Proxy -
- scala.Proxy.hashCode, scala.Proxy.equals -
- - -
- Methods inherited from AnyRef -
- getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

WorldPanel

+
+

+ class + + WorldPanel extends BoxPanel + +

+
- - - -
Value Details
-
- - - val - lblBody : scala.swing.Label -
-
-

-
-
- - - val - popup : BodyPopup -
-
-

-
-
- - - val - ppm : Double -
-
-

-
-
- - - var - scale : Double -
-
-

-
-
- - - var - offset : Vector2D -
-
-

-
-
- - - var - drawBodies : Boolean -
-
-

-
-
- - - var - drawShapes : Boolean -
-
-

-
-
- - - var - drawJoints : Boolean -
-
-

-
-
- - - var - drawAABBs : Boolean -
-
-

-
-
- - - var - drawPairs : Boolean -
-
-

-
-
- - - var - drawCollisions : Boolean -
-
-

-
-
- - - var - trace : Boolean -
-
-

-
-
- - - val - prevPos : scala.collection.mutable.Map[Int, scala.collection.mutable.Queue[Vector2D]] -
-
-

-
-
- - - var - mousePressed : Boolean -
-
-

-
-
- - - var - startPoint : java.awt.Point -
-
-

-
-
- - - var - endPoint : java.awt.Point -
-
-

-
-
- - - var - grabbedBody : scala.Option[GrabbedBody] -
-
-

- - -
Method Details
-
- - implicit - def - point2Vector(p : java.awt.Point) : Vector2D -
-
-

-
-
- - - def - scene : Scene -
-
-

-
-
- - - def - update : Unit -
-
-

-
-
- - override - def - paintComponent(g : java.awt.Graphics) : Unit -
-
-

-
-
- - - def - drawAxes(g : java.awt.Graphics) : Unit -
-
-

-
-
- - - def - drawParts(parts : scala.Iterable[Drawable], g : java.awt.Graphics) : Unit -
-
-

-
-
- - - def - trace(shapes : scala.Iterable[GraphicalShape], g : java.awt.Graphics) : Unit -
-
-

-
-
- - - def - getBody(p : Vector2D) : scala.Option[Body] -
-
-

-
-
- - - def - grab(b : Body, p : Vector2D) : Unit -
-
-

-
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. BoxPanel
  2. Wrapper
  3. SequentialContainer
  4. Panel
  5. Wrapper
  6. Container
  7. Component
  8. UIElement
  9. LazyPublisher
  10. Publisher
  11. Reactor
  12. Proxy
  13. AnyRef
  14. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + Mouse: mouse + +

    + +
  2. +

    + def + + background: Color + +

    + +
  3. +

    + def + + background_=(c: Color): Unit + +

    + +
  4. +

    + def + + border: Border + +

    + +
  5. +

    + def + + border_=(b: Border): Unit + +

    + +
  6. +

    + def + + bounds: Rectangle + +

    + +
  7. +

    + val + + contents: Buffer[Component] + +

    + +
  8. +

    + def + + cursor: Cursor + +

    + +
  9. +

    + def + + cursor_=(c: Cursor): Unit + +

    + +
  10. +

    + def + + deafTo(ps: Publisher*): Unit + +

    + +
  11. +

    + def + + displayable: Boolean + +

    + +
  12. +

    + var + + drawAABBs: Boolean + +

    + +
  13. +

    + def + + drawAxes(g: Graphics2D): Unit + +

    + +
  14. +

    + var + + drawBodies: Boolean + +

    + +
  15. +

    + var + + drawCollisions: Boolean + +

    + +
  16. +

    + var + + drawJoints: Boolean + +

    + +
  17. +

    + var + + drawPairs: Boolean + +

    + +
  18. +

    + def + + drawParts(parts: Iterable[Drawable], g: Graphics2D): Unit + +

    + +
  19. +

    + var + + drawShapes: Boolean + +

    + +
  20. +

    + def + + enabled: Boolean + +

    + +
  21. +

    + def + + enabled_=(b: Boolean): Unit + +

    + +
  22. +

    + var + + endPoint: Point + +

    + +
  23. +

    + def + + equals(that: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  24. +

    + def + + focusable: Boolean + +

    + +
  25. +

    + def + + focusable_=(b: Boolean): Unit + +

    + +
  26. +

    + def + + font: Font + +

    + +
  27. +

    + def + + font_=(f: Font): Unit + +

    + +
  28. +

    + def + + foreground: Color + +

    + +
  29. +

    + def + + foreground_=(c: Color): Unit + +

    + +
  30. +

    + def + + getBody(p: Vector2D): Option[Body] + +

    + +
  31. +

    + def + + grab(b: Body, p: Vector2D): Unit + +

    + +
  32. +

    + var + + grabbedBody: Option[GrabbedBody] + +

    + +
  33. +

    + def + + hasFocus: Boolean + +

    + +
  34. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  35. +

    + def + + ignoreRepaint: Boolean + +

    + +
  36. +

    + def + + ignoreRepaint_=(b: Boolean): Unit + +

    + +
  37. +

    + var + + initP: JComponent + +

    + +
  38. +

    + def + + inputVerifier: (WorldPanel.this.type) ⇒ Boolean + +

    + +
  39. +

    + def + + inputVerifier_=(v: (WorldPanel.this.type) ⇒ Boolean): Unit + +

    + +
  40. +

    + val + + lblBody: Label + +

    + +
  41. +

    + def + + listenTo(ps: Publisher*): Unit + +

    + +
  42. +

    + def + + locale: Locale + +

    + +
  43. +

    + def + + location: Point + +

    + +
  44. +

    + def + + locationOnScreen: Point + +

    + +
  45. +

    + def + + maximumSize: Dimension + +

    + +
  46. +

    + def + + maximumSize_=(x: Dimension): Unit + +

    + +
  47. +

    + def + + minimumSize: Dimension + +

    + +
  48. +

    + def + + minimumSize_=(x: Dimension): Unit + +

    + +
  49. +

    + var + + mousePressed: Boolean + +

    + +
  50. +

    + var + + offset: Vector2D + +

    + +
  51. +

    + def + + onFirstSubscribe(): Unit + +

    + +
  52. +

    + def + + onLastUnsubscribe(): Unit + +

    + +
  53. +

    + def + + opaque: Boolean + +

    + +
  54. +

    + def + + opaque_=(b: Boolean): Unit + +

    + +
  55. +

    + def + + paint(g: Graphics2D): Unit + +

    + +
  56. +

    + def + + paintComponent(g: Graphics2D): Unit + +

    + +
  57. +

    + var + + peer: JPanel with SuperMixin + +

    + +
  58. +

    + def + + point2Vector(p: Point): Vector2D + +

    + +
  59. +

    + val + + popup: BodyPopup + +

    + +
  60. +

    + val + + ppm: Double + +

    + +
  61. +

    + def + + preferredSize: Dimension + +

    + +
  62. +

    + def + + preferredSize_=(xy: (Int, Int)): Unit + +

    + +
  63. +

    + def + + preferredSize_=(x: Dimension): Unit + +

    + +
  64. +

    + val + + prevPos: Map[Int, Queue[Vector2D]] + +

    + +
  65. +

    + def + + publish(e: Event): Unit + +

    + +
  66. +

    + val + + reactions: Reactions + +

    + +
  67. +

    + def + + release(): Unit + +

    + +
  68. +

    + def + + repaint(rect: Rectangle): Unit + +

    + +
  69. +

    + def + + repaint(): Unit + +

    + +
  70. +

    + def + + requestFocus(): Unit + +

    + +
  71. +

    + def + + requestFocusInWindow(): Boolean + +

    + +
  72. +

    + def + + revalidate(): Unit + +

    + +
  73. +

    + var + + scale: Double + +

    + +
  74. +

    + def + + scene: Scene + +

    + +
  75. +

    + def + + self: Component + +

    + +
  76. +

    + def + + showing: Boolean + +

    + +
  77. +

    + def + + size: Dimension + +

    + +
  78. +

    + def + + size_=(xy: (Int, Int)): Unit + +

    + +
  79. +

    + def + + size_=(dim: Dimension): Unit + +

    + +
  80. +

    + var + + startPoint: Point + +

    + +
  81. +

    + def + + subscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  82. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Component ⇐ Proxy ⇐ AnyRef ⇐ Any +
    + +
    +
  83. +

    + def + + toolkit: Toolkit + +

    + +
  84. +

    + def + + tooltip: String + +

    + +
  85. +

    + def + + tooltip_=(t: String): Unit + +

    + +
  86. +

    + def + + trace(shapes: Iterable[GraphicalShape], g: Graphics2D): Unit + +

    + +
  87. +

    + var + + trace: Boolean + +

    + +
  88. +

    + def + + unsubscribe(listener: PartialFunction[Event, Unit]): Unit + +

    + +
  89. +

    + def + + update(): Unit + +

    + +
  90. +

    + def + + visible: Boolean + +

    + +
  91. +

    + def + + visible_=(b: Boolean): Unit + +

    + +
  92. +

    + def + + xLayoutAlignment: Double + +

    + +
  93. +

    + def + + xLayoutAlignment_=(x: Double): Unit + +

    + +
  94. +

    + def + + yLayoutAlignment: Double + +

    + +
  95. +

    + def + + yLayoutAlignment_=(y: Double): Unit + +

    + +
+
+ +
+

Instance constructors

+
  1. +

    + new + + WorldPanel(container: Container) + +

    + +
  2. +

    + new + + WorldPanel(orientation: Value) + +

    + +
  3. +

    + new + + WorldPanel() + +

    + +
+
- - def - release : Unit - -
-
- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/gui/package.html b/doc/graphyx/gui/package.html new file mode 100644 index 0000000..7ce1c92 --- /dev/null +++ b/doc/graphyx/gui/package.html @@ -0,0 +1,185 @@ + + + + + Scaladoc for graphyx.gui + + + + + + + + + +

graphyx

+ +
+ +

gui

+
+ +

+ package + + gui + +

+
+ + + + + +
+ +
+ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/package.html b/doc/graphyx/package.html new file mode 100644 index 0000000..286d1fe --- /dev/null +++ b/doc/graphyx/package.html @@ -0,0 +1,94 @@ + + + + + Scaladoc for graphyx + + + + + + + + + + + +
+ +

graphyx

+
+ +

+ package + + graphyx + +

+
+ + + + + +
+ +
+ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests$content.html b/doc/graphyx/tests$content.html deleted file mode 100644 index ff87015..0000000 --- a/doc/graphyx/tests$content.html +++ /dev/null @@ -1,232 +0,0 @@ - - - All classes and objects in graphyx.tests - - -
Simple Mechanics Simulator (SiMS) API

This document is the API specification for SiMS

- - - - - -
Class Summary
- trait - - Test - extends AnyRef - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Object Summary
- object - - Atom - extends Test - - -
- object - - BallStack - extends Test - - -
- object - - Carriage - extends Test - - -
- object - - Chain - extends Test - - -
- object - - CompositeShape - extends Test - - -
- object - - Cup - extends Test - - -
- object - - EmptyTest - extends Test - - -
- object - - Friction - extends Test - - -
- object - - Friction2 - extends Test - - -
- object - - General1 - extends Test - - -
- object - - General2 - extends Test - - -
- object - - Joints1 - extends Test - - -
- object - - Joints2 - extends Test - - -
- object - - Net - extends Test - - -
- object - - RagdollTest - extends Test - - -
- object - - Restitution - extends Test - - -
- object - - Spring - extends Test - - -
- object - - Stacking - extends Test - - -
- object - - Wave - extends Test - - -
- \ No newline at end of file diff --git a/doc/graphyx/tests$package.html b/doc/graphyx/tests$package.html deleted file mode 100644 index 7e57107..0000000 --- a/doc/graphyx/tests$package.html +++ /dev/null @@ -1,35 +0,0 @@ - - - List of classes and objects in package graphyx.tests - - - - -
Classes
-
Objects
- \ No newline at end of file diff --git a/doc/graphyx/tests/Atom$.html b/doc/graphyx/tests/Atom$.html new file mode 100644 index 0000000..f323c1f --- /dev/null +++ b/doc/graphyx/tests/Atom$.html @@ -0,0 +1,212 @@ + + + + + Scaladoc for graphyx.tests.Atom + + + + + + + + + +

graphyx.tests

+ +
+ +

Atom

+
+ +

+ object + + Atom extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + connections: List[SpringJoint] + +

    + +
  2. +

    + var + + electrons: List[Body] + +

    + +
  3. +

    + var + + enableEvent: Boolean + +

    + +
  4. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + fireEvent(): Unit + +

    + +
  6. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  7. +

    + def + + init(): Unit + +

    + +
  8. +

    + var + + nucleus: Body + +

    + +
  9. +

    + val + + title: String + +

    + +
  10. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  11. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Atom$object.html b/doc/graphyx/tests/Atom$object.html deleted file mode 100644 index 2db8db4..0000000 --- a/doc/graphyx/tests/Atom$object.html +++ /dev/null @@ -1,256 +0,0 @@ - - - object Atom in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Atom -

-
- [source: graphyx/tests/Atom.scala] -

-
-
- - - object - Atom -
-
extends Test
-
- - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- var - - connections - : scala.List[SpringJoint] - - -
- var - - electrons - : scala.List[Body] - - -
- var - - nucleus - : Body - - -
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - - - - - -
Method Summary
- override def - - fireEvent - : Unit - - -
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

-
-
- - - var - nucleus : Body -
-
-

-
-
- - - var - electrons : scala.List[Body] -
-
-

-
-
- - - var - connections : scala.List[SpringJoint] -
-
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

-
-
- - override - def - fireEvent : Unit -
-
-
-
- Overrides -
-
- Test.fireEvent -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/BallStack$.html b/doc/graphyx/tests/BallStack$.html new file mode 100644 index 0000000..52bda16 --- /dev/null +++ b/doc/graphyx/tests/BallStack$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.BallStack + + + + + + + + + +

graphyx.tests

+ +
+ +

BallStack

+
+ +

+ object + + BallStack extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/BallStack$object.html b/doc/graphyx/tests/BallStack$object.html deleted file mode 100644 index 092ce96..0000000 --- a/doc/graphyx/tests/BallStack$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object BallStack in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object BallStack -

-
- [source: graphyx/tests/BallStack.scala] -

-
-
- - - object - BallStack -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

-
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Cannon$.html b/doc/graphyx/tests/Cannon$.html new file mode 100644 index 0000000..b6d461a --- /dev/null +++ b/doc/graphyx/tests/Cannon$.html @@ -0,0 +1,196 @@ + + + + + Scaladoc for graphyx.tests.Cannon + + + + + + + + + +

graphyx.tests

+ +
+ +

Cannon

+
+ +

+ object + + Cannon extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + blastBomb(): Unit + +

    + +
  2. +

    + var + + enableEvent: Boolean + +

    + +
  3. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + fireEvent(): Unit + +

    + +
  5. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  6. +

    + def + + init(): Unit + +

    + +
  7. +

    + val + + title: String + +

    + +
  8. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  9. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Carriage$$Car.html b/doc/graphyx/tests/Carriage$$Car.html new file mode 100644 index 0000000..7634625 --- /dev/null +++ b/doc/graphyx/tests/Carriage$$Car.html @@ -0,0 +1,231 @@ + + + + + Scaladoc for graphyx.tests.Carriage.Car + + + + + + + + + +

graphyx.tests.Carriage

+ +
+ +

Car

+
+ +

+ class + + Car extends Prefab + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Prefab
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + val + + bodies: List[Body] + +

    + +
  2. +

    + val + + chassis: Body + +

    + +
  3. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + val + + joints: List[Product with Joint] + +

    + +
  6. +

    + val + + leftDamper: SpringJoint + +

    + +
  7. +

    + val + + leftStabelizer: DistanceJoint + +

    + +
  8. +

    + val + + leftWheel: Body + +

    + +
  9. +

    + val + + rightDamper: SpringJoint + +

    + +
  10. +

    + val + + rightStabelizer: DistanceJoint + +

    + +
  11. +

    + val + + rightWheel: Body + +

    + +
  12. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
+
+ +
+

Instance constructors

+
  1. +

    + new + + Car() + +

    + +
+
+ +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Carriage$.html b/doc/graphyx/tests/Carriage$.html new file mode 100644 index 0000000..e2ef925 --- /dev/null +++ b/doc/graphyx/tests/Carriage$.html @@ -0,0 +1,199 @@ + + + + + Scaladoc for graphyx.tests.Carriage + + + + + + + + + +

graphyx.tests

+ +
+ +

Carriage

+
+ +

+ object + + Carriage extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ +
+

Type Members

+
  1. +

    + class + + Car extends Prefab + +

    + +
+
+ +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Carriage$object.Car.html b/doc/graphyx/tests/Carriage$object.Car.html deleted file mode 100644 index 79e3aa1..0000000 --- a/doc/graphyx/tests/Carriage$object.Car.html +++ /dev/null @@ -1,272 +0,0 @@ - - - class Car in graphyx.tests.Carriage - - - - - - - - - - - -
- graphyx.tests.Carriage -

- class Car -

-
- [source: graphyx/tests/Carriage.scala] -

-
-
- - - class - Car -
-
extends Prefab
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- override val - - bodies - : scala.List[Body] - - -
- val - - chassis - : Body - - -
- override val - - joints - : scala.List[Joint with scala.Product] - - -
- val - - leftDamper - : SpringJoint - - -
- val - - leftStabelizer - : DistanceJoint - - -
- val - - leftWheel - : Body - - -
- val - - rightDamper - : SpringJoint - - -
- val - - rightStabelizer - : DistanceJoint - - -
- val - - rightWheel - : Body - - -
- - - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - chassis : Body -
-
-

-
-
- - - val - rightWheel : Body -
-
-

-
-
- - - val - leftWheel : Body -
-
-

-
-
- - override - val - bodies : scala.List[Body] -
-
-
-
- Overrides -
-
- Prefab.bodies -
-

-
-
- - - val - rightStabelizer : DistanceJoint -
-
-

-
-
- - - val - rightDamper : SpringJoint -
-
-

-
-
- - - val - leftStabelizer : DistanceJoint -
-
-

-
-
- - - val - leftDamper : SpringJoint -
-
-

-
-
- - override - val - joints : scala.List[Joint with scala.Product] -
-
-
-
- Overrides -
-
- Prefab.joints -
-

- - - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Carriage$object.html b/doc/graphyx/tests/Carriage$object.html deleted file mode 100644 index c21093a..0000000 --- a/doc/graphyx/tests/Carriage$object.html +++ /dev/null @@ -1,182 +0,0 @@ - - - object Carriage in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Carriage -

-
- [source: graphyx/tests/Carriage.scala] -

-
-
- - - object - Carriage -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Class Summary
- class - - Car - extends Prefab - - -
- - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Chain$.html b/doc/graphyx/tests/Chain$.html new file mode 100644 index 0000000..de4242e --- /dev/null +++ b/doc/graphyx/tests/Chain$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Chain + + + + + + + + + +

graphyx.tests

+ +
+ +

Chain

+
+ +

+ object + + Chain extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Chain$object.html b/doc/graphyx/tests/Chain$object.html deleted file mode 100644 index 0818b71..0000000 --- a/doc/graphyx/tests/Chain$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Chain in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Chain -

-
- [source: graphyx/tests/Chain.scala] -

-
-
- - - object - Chain -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- override val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - override - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/CompositeShape$.html b/doc/graphyx/tests/CompositeShape$.html new file mode 100644 index 0000000..4d13172 --- /dev/null +++ b/doc/graphyx/tests/CompositeShape$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.CompositeShape + + + + + + + + + +

graphyx.tests

+ +
+ +

CompositeShape

+
+ +

+ object + + CompositeShape extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/CompositeShape$object.html b/doc/graphyx/tests/CompositeShape$object.html deleted file mode 100644 index 2eb9a85..0000000 --- a/doc/graphyx/tests/CompositeShape$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object CompositeShape in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object CompositeShape -

-
- [source: graphyx/tests/CompositeShape.scala] -

-
-
- - - object - CompositeShape -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Cup$.html b/doc/graphyx/tests/Cup$.html new file mode 100644 index 0000000..d57d680 --- /dev/null +++ b/doc/graphyx/tests/Cup$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Cup + + + + + + + + + +

graphyx.tests

+ +
+ +

Cup

+
+ +

+ object + + Cup extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Cup$object.html b/doc/graphyx/tests/Cup$object.html deleted file mode 100644 index b3c46a8..0000000 --- a/doc/graphyx/tests/Cup$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Cup in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Cup -

-
- [source: graphyx/tests/Cup.scala] -

-
-
- - - object - Cup -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/EmptyTest$.html b/doc/graphyx/tests/EmptyTest$.html new file mode 100644 index 0000000..8fbe011 --- /dev/null +++ b/doc/graphyx/tests/EmptyTest$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.EmptyTest + + + + + + + + + +

graphyx.tests

+ +
+ +

EmptyTest

+
+ +

+ object + + EmptyTest extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/EmptyTest$object.html b/doc/graphyx/tests/EmptyTest$object.html deleted file mode 100644 index ff540a7..0000000 --- a/doc/graphyx/tests/EmptyTest$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object EmptyTest in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object EmptyTest -

-
- [source: graphyx/tests/EmptyTest.scala] -

-
-
- - - object - EmptyTest -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- override val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - override - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Friction$.html b/doc/graphyx/tests/Friction$.html new file mode 100644 index 0000000..0aa7032 --- /dev/null +++ b/doc/graphyx/tests/Friction$.html @@ -0,0 +1,212 @@ + + + + + Scaladoc for graphyx.tests.Friction + + + + + + + + + +

graphyx.tests

+ +
+ +

Friction

+
+ +

+ object + + Friction extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + var + + r1: RevoluteJoint + +

    + +
  7. +

    + var + + r2: RevoluteJoint + +

    + +
  8. +

    + var + + r3: RevoluteJoint + +

    + +
  9. +

    + val + + title: String + +

    + +
  10. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  11. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Friction$object.html b/doc/graphyx/tests/Friction$object.html deleted file mode 100644 index 7b3b691..0000000 --- a/doc/graphyx/tests/Friction$object.html +++ /dev/null @@ -1,256 +0,0 @@ - - - object Friction in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Friction -

-
- [source: graphyx/tests/Friction.scala] -

-
-
- - - object - Friction -
-
extends Test
-
- - - - - - - - - - - - - - - - - - - - - - - - -
Value Summary
- var - - r1 - : RevoluteJoint - - -
- var - - r2 - : RevoluteJoint - - -
- var - - r3 - : RevoluteJoint - - -
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - - - - - -
Method Summary
- override def - - fireEvent - : Unit - - -
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

-
-
- - - var - r1 : RevoluteJoint -
-
-

-
-
- - - var - r2 : RevoluteJoint -
-
-

-
-
- - - var - r3 : RevoluteJoint -
-
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

-
-
- - override - def - fireEvent : Unit -
-
-
-
- Overrides -
-
- Test.fireEvent -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Friction2$.html b/doc/graphyx/tests/Friction2$.html new file mode 100644 index 0000000..1a16968 --- /dev/null +++ b/doc/graphyx/tests/Friction2$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Friction2 + + + + + + + + + +

graphyx.tests

+ +
+ +

Friction2

+
+ +

+ object + + Friction2 extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World {...} + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Friction2$object.html b/doc/graphyx/tests/Friction2$object.html deleted file mode 100644 index 427e527..0000000 --- a/doc/graphyx/tests/Friction2$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Friction2 in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Friction2 -

-
- [source: graphyx/tests/Friction2.scala] -

-
-
- - - object - Friction2 -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/General1$.html b/doc/graphyx/tests/General1$.html new file mode 100644 index 0000000..d27d4f6 --- /dev/null +++ b/doc/graphyx/tests/General1$.html @@ -0,0 +1,196 @@ + + + + + Scaladoc for graphyx.tests.General1 + + + + + + + + + +

graphyx.tests

+ +
+ +

General1

+
+ +

+ object + + General1 extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + def + + blastBomb(): Unit + +

    + +
  2. +

    + var + + enableEvent: Boolean + +

    + +
  3. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  4. +

    + def + + fireEvent(): Unit + +

    + +
  5. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  6. +

    + def + + init(): Unit + +

    + +
  7. +

    + val + + title: String + +

    + +
  8. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  9. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/General1$object.html b/doc/graphyx/tests/General1$object.html deleted file mode 100644 index 2484144..0000000 --- a/doc/graphyx/tests/General1$object.html +++ /dev/null @@ -1,216 +0,0 @@ - - - object General1 in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object General1 -

-
- [source: graphyx/tests/General1.scala] -

-
-
- - - object - General1 -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- override val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - - - - - - - - - -
Method Summary
- def - - blastBomb - : Unit - - -
- override def - - fireEvent - : Unit - - -
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - override - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

-
-
- - override - def - fireEvent : Unit -
-
-
-
- Overrides -
-
- Test.fireEvent -
-

-
-
- - - def - blastBomb : Unit -
-
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/General2$.html b/doc/graphyx/tests/General2$.html new file mode 100644 index 0000000..a0f17cf --- /dev/null +++ b/doc/graphyx/tests/General2$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.General2 + + + + + + + + + +

graphyx.tests

+ +
+ +

General2

+
+ +

+ object + + General2 extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/General2$object.html b/doc/graphyx/tests/General2$object.html deleted file mode 100644 index 099672b..0000000 --- a/doc/graphyx/tests/General2$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object General2 in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object General2 -

-
- [source: graphyx/tests/General2.scala] -

-
-
- - - object - General2 -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Joints1$.html b/doc/graphyx/tests/Joints1$.html new file mode 100644 index 0000000..18fa2e6 --- /dev/null +++ b/doc/graphyx/tests/Joints1$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Joints1 + + + + + + + + + +

graphyx.tests

+ +
+ +

Joints1

+
+ +

+ object + + Joints1 extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Joints1$object.html b/doc/graphyx/tests/Joints1$object.html deleted file mode 100644 index 808acb0..0000000 --- a/doc/graphyx/tests/Joints1$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Joints1 in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Joints1 -

-
- [source: graphyx/tests/Joints1.scala] -

-
-
- - - object - Joints1 -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- override val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - override - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Joints2$.html b/doc/graphyx/tests/Joints2$.html new file mode 100644 index 0000000..e44750b --- /dev/null +++ b/doc/graphyx/tests/Joints2$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Joints2 + + + + + + + + + +

graphyx.tests

+ +
+ +

Joints2

+
+ +

+ object + + Joints2 extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Joints2$object.html b/doc/graphyx/tests/Joints2$object.html deleted file mode 100644 index b141a42..0000000 --- a/doc/graphyx/tests/Joints2$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Joints2 in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Joints2 -

-
- [source: graphyx/tests/Joints2.scala] -

-
-
- - - object - Joints2 -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- override val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - override - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Net$.html b/doc/graphyx/tests/Net$.html new file mode 100644 index 0000000..7e42b9b --- /dev/null +++ b/doc/graphyx/tests/Net$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Net + + + + + + + + + +

graphyx.tests

+ +
+ +

Net

+
+ +

+ object + + Net extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Net$object.html b/doc/graphyx/tests/Net$object.html deleted file mode 100644 index 3bf8f69..0000000 --- a/doc/graphyx/tests/Net$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Net in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Net -

-
- [source: graphyx/tests/Net.scala] -

-
-
- - - object - Net -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/RagdollTest$.html b/doc/graphyx/tests/RagdollTest$.html new file mode 100644 index 0000000..f348e4f --- /dev/null +++ b/doc/graphyx/tests/RagdollTest$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.RagdollTest + + + + + + + + + +

graphyx.tests

+ +
+ +

RagdollTest

+
+ +

+ object + + RagdollTest extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/RagdollTest$object.html b/doc/graphyx/tests/RagdollTest$object.html deleted file mode 100644 index 6457166..0000000 --- a/doc/graphyx/tests/RagdollTest$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object RagdollTest in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object RagdollTest -

-
- [source: graphyx/tests/RagdollTest.scala] -

-
-
- - - object - RagdollTest -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Restitution$.html b/doc/graphyx/tests/Restitution$.html new file mode 100644 index 0000000..881958f --- /dev/null +++ b/doc/graphyx/tests/Restitution$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Restitution + + + + + + + + + +

graphyx.tests

+ +
+ +

Restitution

+
+ +

+ object + + Restitution extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Restitution$object.html b/doc/graphyx/tests/Restitution$object.html deleted file mode 100644 index 29c62a6..0000000 --- a/doc/graphyx/tests/Restitution$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Restitution in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Restitution -

-
- [source: graphyx/tests/Restitution.scala] -

-
-
- - - object - Restitution -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Spring$.html b/doc/graphyx/tests/Spring$.html new file mode 100644 index 0000000..a9e823d --- /dev/null +++ b/doc/graphyx/tests/Spring$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Spring + + + + + + + + + +

graphyx.tests

+ +
+ +

Spring

+
+ +

+ object + + Spring extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Spring$object.html b/doc/graphyx/tests/Spring$object.html deleted file mode 100644 index c9a3d6f..0000000 --- a/doc/graphyx/tests/Spring$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Spring in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Spring -

-
- [source: graphyx/tests/Spring.scala] -

-
-
- - - object - Spring -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Stacking$.html b/doc/graphyx/tests/Stacking$.html new file mode 100644 index 0000000..6792f3b --- /dev/null +++ b/doc/graphyx/tests/Stacking$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Stacking + + + + + + + + + +

graphyx.tests

+ +
+ +

Stacking

+
+ +

+ object + + Stacking extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Stacking$object.html b/doc/graphyx/tests/Stacking$object.html deleted file mode 100644 index c84e2c0..0000000 --- a/doc/graphyx/tests/Stacking$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Stacking in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Stacking -

-
- [source: graphyx/tests/Stacking.scala] -

-
-
- - - object - Stacking -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

-
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/Test.html b/doc/graphyx/tests/Test.html index 33cfb50..379e304 100644 --- a/doc/graphyx/tests/Test.html +++ b/doc/graphyx/tests/Test.html @@ -1,190 +1,188 @@ - + + - trait Test in graphyx.tests - + + Scaladoc for graphyx.tests.Test + + + + + + - - - - - - - - - -
- graphyx.tests -

- trait Test -

-
- [source: graphyx/tests/Test.scala] -

-
-
- - - trait - Test -
-
extends AnyRef
-
-
Direct Known Subclasses:
-
Atom, BallStack, Carriage, Chain, CompositeShape, Cup, EmptyTest, Friction, Friction2, General1, General2, Joints1, Joints2, Net, RagdollTest, Restitution, Spring, Stacking, Wave
-

+ +

graphyx.tests

- - - - - - - - - - -
Value Summary
- abstract val - - title - : java.lang.String - - -
- abstract val - - world - : World - - -
- - - - - - - - - - - - - - -
Method Summary
- def - - fireEvent - : Unit - - -
- abstract def - - init - : Unit - - -
- override def - - toString - : java.lang.String - -
Returns a string representation of the object.
-
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- +
+ +

Test

+
+

+ trait + + Test extends AnyRef + +

+
- - - -
Value Details
-
- - abstract - val - world : World -
-
-

-
-
- - abstract - val - title : java.lang.String -
-
-

- - -
Method Details
-
+ + + + +
+ +
+ +
+
+

Inherits

+
  1. AnyRef
  2. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + + + +
    +
  8. +

    + val + + world: World + +

    + +
+
- abstract - def - init : Unit - -
-
-
-
- - def - fireEvent : Unit -
-
-

-
-
- override - def - toString : java.lang.String -
-
-
-
Returns a string representation of the object. -

- The default representation is platform dependent.

-
- Returns
a string representation of the object.

-
- - -
- - - - - - - - +
+ + \ No newline at end of file diff --git a/doc/graphyx/tests/Wave$.html b/doc/graphyx/tests/Wave$.html new file mode 100644 index 0000000..4baac1f --- /dev/null +++ b/doc/graphyx/tests/Wave$.html @@ -0,0 +1,188 @@ + + + + + Scaladoc for graphyx.tests.Wave + + + + + + + + + +

graphyx.tests

+ +
+ +

Wave

+
+ +

+ object + + Wave extends Test + +

+
+ + + + + +
+ +
+ +
+
+

Inherits

+
  1. Test
  2. AnyRef
  3. Any
+
+
+ + + +
+

Value Members

+
  1. +

    + var + + enableEvent: Boolean + +

    + +
  2. +

    + def + + equals(arg0: Any): Boolean + +

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

    +

    This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

    +The default implementations of this method is an equivalence +relation: +

      +
    • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
    • +
    • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
    • +
    • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
    • +
    +

    +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

    +
    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise. +

    + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  3. +

    + def + + fireEvent(): Unit + +

    + +
  4. +

    + def + + hashCode(): Int + +

    +

    Returns a hash code value for the object

    +

    Returns a hash code value for the object.

    +The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

    + + +
    + definition classes: AnyRef ⇐ Any +
    + +
    +
  5. +

    + def + + init(): Unit + +

    + +
  6. +

    + val + + title: String + +

    + +
  7. +

    + def + + toString(): String + +

    +

    Returns a string representation of the object

    +

    Returns a string representation of the object. +

    +The default representation is platform dependent. +

    + + +
    + definition classes: Test ⇐ AnyRef ⇐ Any +
    + +
    +
  8. +

    + val + + world: World + +

    + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/doc/graphyx/tests/Wave$object.html b/doc/graphyx/tests/Wave$object.html deleted file mode 100644 index 1b31387..0000000 --- a/doc/graphyx/tests/Wave$object.html +++ /dev/null @@ -1,169 +0,0 @@ - - - object Wave in graphyx.tests - - - - - - - - - - - -
- graphyx.tests -

- object Wave -

-
- [source: graphyx/tests/Wave.scala] -

-
-
- - - object - Wave -
-
extends Test
-
- - - - - - - - - - - - -
Value Summary
- val - - title - : java.lang.String - - -
- val - - world - : World - - -
- - - - - - -
Method Summary
- def - - init - : Unit - - -
- - -
- Methods inherited from Test -
- fireEvent, toString -
- - -
- Methods inherited from AnyRef -
- getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
- - -
- Methods inherited from Any -
- ==, !=, isInstanceOf, asInstanceOf -
- - - - - - -
Value Details
-
- - - val - title : java.lang.String -
-
-
-
- Overrides -
-
- Test.title -
-

-
-
- - - val - world : World -
-
-
-
- Overrides -
-
- Test.world -
-

- - -
Method Details
-
- - - def - init : Unit -
-
-
-
- Overrides -
-
- Test.init -
-

- - -
- - - - - - - - - \ No newline at end of file diff --git a/doc/graphyx/tests/package.html b/doc/graphyx/tests/package.html new file mode 100644 index 0000000..2952bd7 --- /dev/null +++ b/doc/graphyx/tests/package.html @@ -0,0 +1,225 @@ + + + + + Scaladoc for graphyx.tests + + + + + + + + + +

graphyx

+ +
+ +

tests

+
+ +

+ package + + tests + +

+
+ + + + + +
+ +
+ + + +
+

Type Members

+
  1. +

    + trait + + Test extends AnyRef + +

    + +
+
+ + + + + +
+ + + \ No newline at end of file diff --git a/doc/index.html b/doc/index.html index 33257d7..0a422e3 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1,14 +1,396 @@ - + + - SiMS - + + Scaladoc: all classes and objects + + + + + + - - - - - - - - + +
+ +
+ +
    +
    1. +

      graphyx

      +
      1. + Graphyx + (object) +
      +
      1. +

        graphyx.actors

        +
        1. + Exit + (object) +
        2. + FireEvent + (object) +
        3. + GUIActor + (class) +
        4. + PhysicsActor + (class) +
        5. + SetWorld + (class) +
        6. + Start + (object) +
        7. + Stop + (object) +
        +
        +
      2. +

        graphyx.graphics

        +
        1. + Drawable + (trait) +
        2. + GraphicalAABB + (class) +
        3. + GraphicalBody + (class) +
        4. + GraphicalCircle + (class) +
        5. + GraphicalCollision + (class) +
        6. + GraphicalDistanceJoint + (class) +
        7. + GraphicalJoint + (trait) +
        8. + GraphicalObject + (trait) +
        9. + GraphicalPair + (class) +
        10. + GraphicalRectangle + (class) +
        11. + GraphicalRegularPolygon + (class) +
        12. + GraphicalRevoluteJoint + (class) +
        13. + GraphicalShape + (trait) +
        14. + GraphicalSpringJoint + (class) +
        15. + GraphicalWorld + (class) +
        16. + MonitorResult + (class) +
        17. + Parser + (object) +
        18. + Scene + (class) +
        +
        +
      3. +

        graphyx.gui

        +
        1. + AboutHelpFrame + (class) + + + (object) +
        2. + BodyPopup + (class) +
        3. + Container + (class) +
        4. + ControlPanel + (class) +
        5. + GrabbedBody + (class) +
        6. + GravityPanel + (class) +
        7. + InfoPanel + (class) +
        8. + MainFrame + (class) +
        9. + MainPanel + (class) +
        10. + MenuHelp + (class) +
        11. + MenuPanel + (class) +
        12. + OptionsPanel + (class) +
        13. + PopupMenu + (class) +
        14. + ShapeInfoPanel + (class) +
        15. + WorldPanel + (class) +
        +
        +
      4. +

        graphyx.tests

        +
        1. + Atom + (object) +
        2. + BallStack + (object) +
        3. + Cannon + (object) +
        4. + Carriage + (object) +
        5. + Chain + (object) +
        6. + CompositeShape + (object) +
        7. + Cup + (object) +
        8. + EmptyTest + (object) +
        9. + Friction + (object) +
        10. + Friction2 + (object) +
        11. + General1 + (object) +
        12. + General2 + (object) +
        13. + Joints1 + (object) +
        14. + Joints2 + (object) +
        15. + Net + (object) +
        16. + RagdollTest + (object) +
        17. + Restitution + (object) +
        18. + Spring + (object) +
        19. + Stacking + (object) +
        20. + Test + (trait) +
        21. + Wave + (object) +
        +
        +
      +
    2. +

      sims

      +
        +
        1. +

          sims.collision

          +
          1. + AABB + (class) +
          2. + CircleCollision + (class) +
          3. + Collision + (class) + + + (object) +
          4. + Detector + (class) +
          5. + GridDetector + (class) +
          6. + Overlap + (class) +
          7. + Pair + (class) +
          8. + PolyCircleCollision + (class) +
          9. + PolyCollision + (class) +
          +
          +
        2. +

          sims.dynamics

          +
          1. + Body + (class) + + + (object) +
          2. + Circle + (class) +
          3. + Constraint + (trait) +
          4. + Rectangle + (class) +
          5. + RegularPolygon + (class) +
          6. + Shape + (class) + + + (object) +
          7. + World + (class) +
          +
          1. +

            sims.dynamics.joints

            +
            1. + DistanceJoint + (class) +
            2. + ForceJoint + (trait) +
            3. + Joint + (class) +
            4. + RevoluteJoint + (class) +
            5. + SpringJoint + (class) +
            +
            1. +

              sims.dynamics.joints.test

              +
              1. + PrismaticJoint + (class) +
              2. + UnitCircleJoint + (class) +
              +
              +
            +
          +
        3. +

          sims.geometry

          +
          1. + ConvexPolygon + (trait) +
          2. + Projection + (class) +
          3. + Ray + (class) +
          4. + Segment + (class) +
          5. + Vector2D + (class) + + + (object) +
          +
          +
        4. +

          sims.math

          +
          1. + Matrix22 + (class) + + + (object) +
          +
          +
        5. +

          sims.prefabs

          +
          1. + Net + (class) +
          2. + Prefab + (trait) +
          3. + Pylon + (class) +
          4. + Ragdoll + (class) +
          +
          +
        6. +

          sims.util

          +
          1. + Polar + (class) +
          2. + Positioning + (object) +
          3. + RelativeVector + (class) +
          +
          +
        +
      +
      +
      +
      + +
      + \ No newline at end of file diff --git a/doc/lib/class.png b/doc/lib/class.png new file mode 100644 index 0000000..c6e3841 Binary files /dev/null and b/doc/lib/class.png differ diff --git a/doc/lib/class_big.png b/doc/lib/class_big.png new file mode 100644 index 0000000..1969cff Binary files /dev/null and b/doc/lib/class_big.png differ diff --git a/doc/lib/index.css b/doc/lib/index.css new file mode 100644 index 0000000..0b444ee --- /dev/null +++ b/doc/lib/index.css @@ -0,0 +1,102 @@ +* { + color: inherit; + font-size: 10pt; + text-decoration: none; + font-family: sans-serif; + border-width: 0px; + padding: 0px; + margin: 0px; +} + +a { + cursor: pointer; +} + +a:hover { + text-decoration: underline; +} + +h1 { + display: none; +} + +#browser { + top: 0px; + left: 0px; + bottom: 0px; + width: 300px; + display: block; + position: fixed; +} + +#quickflt { + display: block; + position: fixed; + height: 22px; + right: 0px; + left: 0px; + top: 0px; + position: absolute; + display: block; + font-weight: bold; + color: #993300; + padding: 5px; + background-color: white; +} + +#tpl { + display: block; + position: fixed; + overflow: auto; + right: 0px; + left: 0px; + bottom: 0px; + top: 30px; + position: absolute; + display: block; +} + +#tpl .packhide { + display: block; + float: right; + font-weight: normal; + color: white; + padding: 1px 4px 1px 4px; +} + +#tpl .packages > li > h3 { + display: block; + background-color: #142556; + color: white; + padding: 1px 4px 1px 4px; + font-weight: bold; + display: block; +} + +#tpl ol > li { + display: block; +} + +#tpl ol > li .icon { + bottom: -2px; + position: relative; +} + +#content { + border-left-width: 1px; + border-left-color: black; + border-left-style: white; + right: 0px; + left: 0px; + bottom: 0px; + top: 0px; + position: fixed; + margin-left: 300px; + display: block; +} + +#content > iframe { + display: block; + height: 100%; + width: 100%; +} diff --git a/doc/lib/index.js b/doc/lib/index.js new file mode 100644 index 0000000..ad8a535 --- /dev/null +++ b/doc/lib/index.js @@ -0,0 +1,81 @@ +// 2009 EPFL/LAMP +// written by Gilles Dubochet with contributions by Johannes Rudolph and "spiros" + +$(document).ready(function(){ + cleanPackage($("#tpl")); + $("#tpl ol > li span:contains('(class)')").replaceWith(""); + $("#tpl ol > li span:contains('(object)')").replaceWith(""); + $("#tpl ol > li span:contains('(trait)')").replaceWith(""); + $("#tpl ol > li span:contains('(package)')").replaceWith(""); + $("#tpl a[href]").click(function(event){ + $("#content>iframe").attr("src", event.currentTarget.href); + return false; + }); + $("#quickflt").focus(function(event) { + $("#quickflt").select(); + }); + function search() { + var query = $("#quickflt").attr("value"); + // Regexp that matches CamelCase subbits: "BiSe" is + // "[a-z]*Bi[a-z]*Se" and matches "BitSet", "ABitSet", ... + var queryRegExp = new RegExp(query.replace(/([A-Z])/g,"[a-z]*$1")); + $("#tpl ol.templates > li").each(function(){ + var item = $(this).attr("title"); + if (item == "" || queryRegExp.test(item)) { + $(this).show(); + $(this).removeClass("hide"); + } + else { + $(this).addClass("hide"); + $(this).hide(); + }; + }); + cleanPackage($("#tpl")); + pendingTimeout = undefined; + }; + var pendingTimeout = undefined; + $("#quickflt").bind("keyup", function(event) { + if (event.keyCode == 27) { // escape + $("#quickflt").attr("value", ""); + } + if (pendingTimeout != undefined) { + clearTimeout(pendingTimeout); + } + pendingTimeout = setTimeout(search, 200); //delay 0.2 sec + }); + $("#tpl .packages > li").prepend("hide"); + $("#tpl .packages > li > a.packhide").click(function(event){ + var action = $(this).text(); + if (action == "hide") { + $("~ ol", $(this)).hide(); + $(this).text("show"); + } + else { + $("~ ol", $(this)).show(); + $(this).text("hide"); + } + return false; + }); +}); + +/* Recusively go through the packages and show only those which contain visible items. */ +function cleanPackage(pack) { + $("> ol.packages > li", pack).each(function(){ cleanPackage($(this)); }); + if ($("> ol > li:not(.hide)", pack).length > 0) { + pack.show(); + pack.removeClass("hide"); + } + else { + pack.addClass("hide"); + pack.hide(); + }; + if ($("> ol.templates > li:not(.hide)", pack).length > 0) { + $("> h3", pack).show(); + $("> .packhide", pack).show(); + } + else { + $("> h3", pack).hide(); + $("> .packhide", pack).hide(); + }; + return false; +} diff --git a/doc/lib/jquery.js b/doc/lib/jquery.js new file mode 100644 index 0000000..b1ae21d --- /dev/null +++ b/doc/lib/jquery.js @@ -0,0 +1,19 @@ +/* + * jQuery JavaScript Library v1.3.2 + * http://jquery.com/ + * + * Copyright (c) 2009 John Resig + * Dual licensed under the MIT and GPL licenses. + * http://docs.jquery.com/License + * + * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) + * Revision: 6246 + */ +(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
      "]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
      ","
      "]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); +/* + * Sizzle CSS Selector Engine - v0.9.3 + * Copyright 2009, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

      ";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
      ";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
      ").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
      ';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/doc/lib/object.png b/doc/lib/object.png new file mode 100644 index 0000000..886cd5c Binary files /dev/null and b/doc/lib/object.png differ diff --git a/doc/lib/object_big.png b/doc/lib/object_big.png new file mode 100644 index 0000000..0a483ca Binary files /dev/null and b/doc/lib/object_big.png differ diff --git a/doc/lib/package.png b/doc/lib/package.png new file mode 100644 index 0000000..c3eef6e Binary files /dev/null and b/doc/lib/package.png differ diff --git a/doc/lib/package_big.png b/doc/lib/package_big.png new file mode 100644 index 0000000..5ab05cc Binary files /dev/null and b/doc/lib/package_big.png differ diff --git a/doc/lib/template.css b/doc/lib/template.css new file mode 100644 index 0000000..517c767 --- /dev/null +++ b/doc/lib/template.css @@ -0,0 +1,259 @@ +* { + color: black; + text-decoration: none; + font-family: inherit; + font-size: inherit; + font-weight: normal; + border-width: 0px; + padding: 0px; + margin: 0px; +} + +body { + font-family: sans-serif; + font-size: 10pt; +} + +a { + cursor: pointer; +} + +a:hover { + text-decoration: underline; +} + +#owner { + padding: 4px; + font-size: 12pt; + display: block; +} + +.value #owner { + background-color: #ced8f4; +} + +.type #owner { + background-color: #f4cece; +} + +#definition { + display: block; + padding: 6px; +} + +#definition > img { + float: left; +} + +#definition > h1 { + padding: 12px 0 12px 6px; + color: white; + font-size: 24pt; + display: inline-block; +} + +.value #definition { + background-color: #142556; +} + +.type #definition { + background-color: #561414; +} + +#comment { + padding-left: 8px; +} + +#values > h3 { + color: white; + padding: 4px; + background-color: #142556; + font-size: 12pt; + font-weight: bold; +} + +#types > h3 { + padding: 4px; + color: white; + font-weight: bold; + font-size: 12pt; + background-color: #561414; +} + +#constructors > h3 { + padding: 4px; + color: white; + font-weight: bold; + font-size: 12pt; + background-color: #000000; +} + +/* Member cells */ + +div.members > ol { + background-color: white; +} + +div.members > ol > li { + display: block; +} + +/* Member signatures */ + +.signature { + padding: 1px; + font-family: monospace; + font-size: 10pt; + clear: both; + display: block; + background-color: #dddddd; +} + +.signature .kind { + text-align: right; + float: left; + width: 72px; +} + +.signature .symbol { + display: block; + margin-left: 80px; +} + +.signature .name { + display: inline-block; + font-weight: bold; +} + +#values .signature .name { + color: #142556; +} + +#types .signature .name { + color: #561414; +} + +/* Comments text formating */ + +.cmt {} + +.cmt p { + margin: 2px 0 2px 0; +} + +.cmt code { + font-family: monospace; + font-size: small; +} + +.cmt pre { + display: block; + font-family: monospace; + font-size: small; + margin: 2px 0 2px 0; +} + +/* Comments structured layout */ + +p.comment { + display: block; + margin-left: 80px; +} + +p.shortcomment { + display: block; + margin-left: 80px; + cursor: help; +} + +div.fullcomment { + display: block; + margin: 10px 0 10px 0; +} + +#template div.fullcomment { + margin: 6px 0 6px 80px; +} + +div.fullcomment .block { + padding: 2px 0 2px 0; + border-top: 1px solid black; + border-bottom: 1px solid black; +} + +div.fullcomment .block + .block { + border-top: none; +} + +div.fullcomment .block > h5 { + font-style: italic; + font-weight: normal; + display: inline-block; +} + +div.fullcomment .comment { + margin: 6px 0 6px 0; +} + +div.fullcomment dl.paramcmts > dt { + display: block; + float: left; + font-weight: bold; + margin: 2px 4px 2px 0; +} + +div.fullcomment dl.paramcmts > dd { + display: block; + padding-left: 80px; + border-top: 1px dashed black; + border-bottom: 1px dashed black; +} + +div.fullcomment dl.paramcmts > dt:first-child + dd { + border-top: none; +} + +div.fullcomment dl.paramcmts > dd:last-child { + border-bottom: none; +} + +div.fullcomment dl.paramcmts > dd + dt + dd { + border-top: none; +} + +/* Members filter tool */ + +#mbrsel { + padding: 4px; + background-color: #cccccc; + display: block; +} + +#mbrsel > div > h3 { + padding: 4px; + display: block; + float: left; +} + +#mbrsel > div > ol { + margin-left: 80px; +} + +#mbrsel > div > ol > li { + display: block; + padding: 4px 8px 4px 8px; + font-weight: bold; + background-color: white; + display: inline-block; + cursor: crosshair; +} + +#mbrsel > div > ol > li.in { + background-color: white; +} + +#mbrsel > div > ol > li.out { + color: #888888; + background-color: #bbbbbb; +} + diff --git a/doc/lib/template.js b/doc/lib/template.js new file mode 100644 index 0000000..2f5efb1 --- /dev/null +++ b/doc/lib/template.js @@ -0,0 +1,100 @@ +$(document).ready(function(){ + var prefilters = $("#ancestors > ol > li").filter(function(){ + var name = $(this).attr("name"); + return name == "scala.Any" || name == "scala.AnyRef"; + }); + prefilters.removeClass("in"); + prefilters.addClass("out"); + filterInherit(); + $("#ancestors > ol > li").click(function(){ + if ($(this).hasClass("in")) { + $(this).removeClass("in"); + $(this).addClass("out"); + } + else if ($(this).hasClass("out")) { + $(this).removeClass("out"); + $(this).addClass("in"); + }; + filterInherit(); + }); + $(".signature .symbol .extype").hover( + function(){ + var full = $(this).attr("name"); + var short = $(this).text(); + $(this).attr("name", short); + $(this).text(full); + }, + function(){ + var short = $(this).attr("name"); + var full = $(this).text(); + $(this).attr("name", full); + $(this).text(short); + } + ); + $("#template div.fullcomment").hide(); + var docAllSigs = $("#template .signature"); + function commentShowFct(fullComment){ + var vis = $(":visible", fullComment); + if (vis.length > 0) { + fullComment.slideUp(100); + } + else { + fullComment.slideDown(100); + } + }; + var docShowSigs = docAllSigs.filter(function(){ + return $("+ div.fullcomment", $(this)).length > 0; + }); + docShowSigs.css("cursor", "help"); + docShowSigs.click(function(){ + commentShowFct($("+ div.fullcomment", $(this))); + }); + function commentToggleFct(shortComment){ + var vis = $("~ div.fullcomment:visible", shortComment); + if (vis.length > 0) { + shortComment.slideDown(100); + vis.slideUp(100); + } + else { + var hid = $("~ div.fullcomment:hidden", shortComment); + hid.slideDown(100); + shortComment.slideUp(100); + } + }; + var docToggleSigs = docAllSigs.filter(function(){ + return $("+ p.shortcomment", $(this)).length > 0; + }); + docToggleSigs.css("cursor", "help"); + docToggleSigs.click(function(){ + commentToggleFct($("+ p.shortcomment", $(this))); + }); + $("p.shortcomment").click(function(){ + commentToggleFct($(this)); + }); +}); + +function filterInherit() { + $("#mbrsel > div > ol > li.in").each(function(){ + findMembersByOwner($(this).attr("name")).show(); + }); + $("#mbrsel > div > ol > li.out").each(function(){ + findMembersByOwner($(this).attr("name")).hide(); + }); + return false; +}; + +function findMembersByOwner(owner0) { + return $(".members > ol > li").filter(function(){ + var qualName1 = $(this).attr("name"); + if (qualName1 == undefined) return false; + return owner0 == qualName1.slice(0, qualName1.indexOf("#")); + }); +}; + +function findMemberByName(name0) { + return $(".members > ol > li").filter(function(){ + var qualName1 = $(this).attr("name"); + if (qualName1 == undefined) return false; + return name0 == qualName1.slice(qualName1.indexOf("#") + 1); + }).eq(0); +}; \ No newline at end of file diff --git a/doc/lib/trait.png b/doc/lib/trait.png new file mode 100644 index 0000000..b1b0430 Binary files /dev/null and b/doc/lib/trait.png differ diff --git a/doc/lib/trait_big.png b/doc/lib/trait_big.png new file mode 100644 index 0000000..63be0d7 Binary files /dev/null and b/doc/lib/trait_big.png differ diff --git a/doc/modules.html b/doc/modules.html deleted file mode 100644 index 894ca01..0000000 --- a/doc/modules.html +++ /dev/null @@ -1,36 +0,0 @@ - - - List of all packages - - -
      Packages
      - \ No newline at end of file diff --git a/doc/nav-classes.html b/doc/nav-classes.html deleted file mode 100644 index 505f7c6..0000000 --- a/doc/nav-classes.html +++ /dev/null @@ -1,27 +0,0 @@ - - - navigation - - -
      - - A -B -C -D -E -G -I -L -M -P -R -T -V -X - -
      - \ No newline at end of file diff --git a/doc/package.html b/doc/package.html new file mode 100644 index 0000000..fd2a529 --- /dev/null +++ b/doc/package.html @@ -0,0 +1,70 @@ + + + + + Scaladoc for _root_ + + + + + + + + + + + +
      + +

      root package

      +
      + +

      + package + + root + +

      +
      + + + + + +
      + +
      + + + + + + + + + +
      + + + \ No newline at end of file diff --git a/doc/root-content.html b/doc/root-content.html deleted file mode 100644 index e477111..0000000 --- a/doc/root-content.html +++ /dev/null @@ -1,74 +0,0 @@ - - - All Packages - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS


      - - - - - - - - - - - - - - -
      Package Summary
      - package - graphyx - -
      - package - graphyx.actors - -
      - package - graphyx.graphics - -
      - package - graphyx.gui - -
      - package - graphyx.tests - -
      - package - sims.collision - -
      - package - sims.dynamics - -
      - package - sims.dynamics.joints - -
      - package - sims.dynamics.joints.test - -
      - package - sims.geometry - -
      - package - sims.math - -
      - package - sims.prefabs - -
      - package - sims.util - -
      - \ No newline at end of file diff --git a/doc/script.js b/doc/script.js deleted file mode 100644 index 9728804..0000000 --- a/doc/script.js +++ /dev/null @@ -1,112 +0,0 @@ - - diff --git a/doc/sims/collision$content.html b/doc/sims/collision$content.html deleted file mode 100644 index 1aa99c6..0000000 --- a/doc/sims/collision$content.html +++ /dev/null @@ -1,190 +0,0 @@ - - - All classes and objects in sims.collision - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Class Summary
      - case class - - AABB - (val minVertex : Vector2D, val maxVertex : Vector2D) extends scala.Product - -
      Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape. - Their X-Axis and Y-Axis orientation makes it easy to test two AABBs for overlap.
      -
      - case class - - CircleCollision - (val c1 : Circle, val c2 : Circle) extends Collision with scala.Product - -
      Collision between two circles.
      -
      - abstract class - - Collision - extends Constraint with AnyRef - -
      Collision between two shapes. Contains methods to compute the collision response.
      -
      - abstract class - - Detector - extends AnyRef - -
      A world detects its collisions through concrete implementations of this class.
      -
      - class - - GridDetector - (val override world : World) extends Detector - -
      A conrete implementation of Detector. GridDetector divides the world into a grid - for faster collision detection.
      -
      - case class - - Overlap - (val poly : ConvexPolygon, val sideNum : Int, val overlap : Double) extends scala.Product - - -
      - case class - - Pair - (val s1 : Shape, val s2 : Shape) extends (Shape, Shape) - -
      Pair of shapes.
      -
      - case class - - PolyCircleCollision - (val p : ConvexPolygon, val c : Circle) extends Collision with scala.Product - -
      Collision between a convex polygon and a circle.
      -
      - case class - - PolyCollision - (val p1 : ConvexPolygon, val p2 : ConvexPolygon) extends Collision with scala.Product - -
      Collision between two convex polygons.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Object Summary
      - object - - AABB - extends (Vector2D, Vector2D) => AABB - - -
      - object - - CircleCollision - extends (Circle, Circle) => CircleCollision - - -
      - object - - Collision - extends AnyRef - - -
      - object - - Overlap - extends (ConvexPolygon, Int, Double) => Overlap - - -
      - object - - Pair - extends (Shape, Shape) => Pair - - -
      - object - - PolyCircleCollision - extends (ConvexPolygon, Circle) => PolyCircleCollision - - -
      - object - - PolyCollision - extends (ConvexPolygon, ConvexPolygon) => PolyCollision - - -
      - \ No newline at end of file diff --git a/doc/sims/collision$package.html b/doc/sims/collision$package.html deleted file mode 100644 index 0871d60..0000000 --- a/doc/sims/collision$package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - List of classes and objects in package sims.collision - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/AABB$object.html b/doc/sims/collision/AABB$object.html deleted file mode 100644 index 6d5d29d..0000000 --- a/doc/sims/collision/AABB$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object AABB in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object AABB -

      -
      -
      -
      - - - object - AABB -
      -
      extends (Vector2D, Vector2D) => AABB
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/AABB.html b/doc/sims/collision/AABB.html index a687d9d..9666bff 100644 --- a/doc/sims/collision/AABB.html +++ b/doc/sims/collision/AABB.html @@ -1,308 +1,242 @@ - + + - class AABB in sims.collision - + + Scaladoc for sims.collision.AABB + + + + + + - - - - - - - - - -
      - sims.collision -

      - class AABB -

      -
      -
      -
      - - case - class - AABB(val minVertex : Vector2D, val maxVertex : Vector2D) -
      -
      extends scala.Product
      -
      -
      Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape. - Their X-Axis and Y-Axis orientation makes it easy to test two AABBs for overlap.
      -
      - Parameters
      minVertex - Position vector of the bottom-left vertex
      maxVertex - Position vector of the upper-right vertex
      -
      -
      Direct Known Subclasses:
      -
      GraphicalAABB
      -

      + +

      sims.collision

      +
      + +

      AABB

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - overlaps - (box : AABB) : Boolean - -
      Checks this AABB with box for overlap.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + AABB(minVertex: Vector2D, maxVertex: Vector2D) extends Product + +

      +
      +

      Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape. +Their X-Axis and Y-Axis orientation makes it easy to test two AABBs for overlap.

      +
      minVertex

      Position vector of the bottom-left vertex

      maxVertex

      Position vector of the upper-right vertex

      - - - - -
      Method Details
      -
      - - - def - overlaps(box : AABB) : Boolean -
      -
      -
      -
      Checks this AABB with box for overlap.
      -
      - Parameters
      box - AABB with which to check for overlap
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + +
      + known subclasses: GraphicalAABB +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      4. +

        + val + + maxVertex: Vector2D + +

        + +
      5. +

        + val + + minVertex: Vector2D + +

        + +
      6. +

        + def + + overlaps(box: AABB): Boolean + +

        +

        Checks this AABB with box for overlap

        +

        Checks this AABB with box for overlap.

        +
        box

        AABB with which to check for overlap

        + + + +
        +
      7. +

        + def + + productArity: Int + +

        + +
      8. +

        + def + + productElement(arg0: Int): Any + +

        + +
      9. +

        + def + + productElements: Iterator[Any] + +

        + +
      10. +

        + def + + productIterator: Iterator[Any] + +

        + +
      11. +

        + def + + productPrefix: String + +

        + +
      12. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + AABB(minVertex: Vector2D, maxVertex: Vector2D) + +

        + +
      2. +

        + new + + AABB() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/CircleCollision$object.html b/doc/sims/collision/CircleCollision$object.html deleted file mode 100644 index c175c15..0000000 --- a/doc/sims/collision/CircleCollision$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object CircleCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object CircleCollision -

      -
      -
      -
      - - - object - CircleCollision -
      -
      extends (Circle, Circle) => CircleCollision
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/CircleCollision.html b/doc/sims/collision/CircleCollision.html index e26027f..80e6b4d 100644 --- a/doc/sims/collision/CircleCollision.html +++ b/doc/sims/collision/CircleCollision.html @@ -1,409 +1,321 @@ - + + - class CircleCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - class CircleCollision -

      -
      -
      -
      - - case - class - CircleCollision(val c1 : Circle, val c2 : Circle) -
      -
      extends Collision with scala.Product
      -
      -
      Collision between two circles.
      -
      + + Scaladoc for sims.collision.CircleCollision + + + + + + + +

      sims.collision

      - - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - normal - : Vector2D - -
      Normal vector to the collision face.
      -
      - val - - points - : scala.List[Vector2D] - -
      Collision points.
      -
      - val - - shape1 - : Circle - -
      First colliding shape (reference shape).
      -
      - val - - shape2 - : Circle - -
      Second colliding shape (incident shape).
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from Collision -
      - correctVelocity, correctFriction, correctPosition -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      CircleCollision

      +
      +

      + class + + CircleCollision(c1: Circle, c2: Circle) extends Collision with Product + +

      +
      +

      Collision between two circles.

      - - - -
      Value Details
      -
      - - - val - shape1 : Circle -
      -
      -
      -
      First colliding shape (reference shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape1 -
      -

      -
      -
      - - - val - shape2 : Circle -
      -
      -
      -
      Second colliding shape (incident shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape2 -
      -

      -
      -
      - - - val - normal : Vector2D -
      -
      -
      -
      Normal vector to the collision face.
      -
      -
      -
      - Overrides -
      -
      - Collision.normal -
      -

      -
      -
      - - - val - points : scala.List[Vector2D] -
      -
      -
      -
      Collision points.
      -
      -
      -
      - Overrides -
      -
      - Collision.points -
      -

      - - -
      Method Details
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Collision
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + val + + c1: Circle + +

        + +
      2. +

        + val + + c2: Circle + +

        + +
      3. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      4. +

        + def + + correctFriction(point: Vector2D, normalForce: Double, h: Double): Unit + +

        + +
      5. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of bodies according to this constraint

        +

        Corrects the positions of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      6. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of bodies according to this constraint

        +

        Corrects the velocities of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      7. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      8. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      9. +

        + val + + normal: Vector2D + +

        +

        Normal vector to the collision face

        +

        Normal vector to the collision face.

        + + + + +
        +
      10. +

        + val + + points: List[Vector2D] + +

        +

        Collision points

        +

        Collision points.

        + + + + +
        +
      11. +

        + def + + productArity: Int + +

        + +
      12. +

        + def + + productElement(arg0: Int): Any + +

        + +
      13. +

        + def + + productElements: Iterator[Any] + +

        + +
      14. +

        + def + + productIterator: Iterator[Any] + +

        + +
      15. +

        + def + + productPrefix: String + +

        + +
      16. +

        + val + + shape1: Circle + +

        +

        First colliding shape (reference shape)

        +

        First colliding shape (reference shape).

        + + + + +
        +
      17. +

        + val + + shape2: Circle + +

        +

        Second colliding shape (incident shape)

        +

        Second colliding shape (incident shape).

        + + + + +
        +
      18. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + CircleCollision(c1: Circle, c2: Circle) + +

        + +
      2. +

        + new + + CircleCollision() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/Collision$.html b/doc/sims/collision/Collision$.html new file mode 100644 index 0000000..a7c64d8 --- /dev/null +++ b/doc/sims/collision/Collision$.html @@ -0,0 +1,162 @@ + + + + + Scaladoc for sims.collision.Collision + + + + + + + + + +

      sims.collision

      + +
      + +

      Collision

      +
      + +

      + object + + Collision extends AnyRef + +

      +
      + + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + ToleratedOverlap: Double + +

        +

        Tolerated overlap

        +

        Tolerated overlap. Collision response will only be applied if the overlap of two shapes exceeds the tolerated overlap.

        + + + + +
        +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/collision/Collision$object.html b/doc/sims/collision/Collision$object.html deleted file mode 100644 index 0d02762..0000000 --- a/doc/sims/collision/Collision$object.html +++ /dev/null @@ -1,101 +0,0 @@ - - - object Collision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object Collision -

      -
      -
      -
      - - - object - Collision -
      -
      extends AnyRef
      -
      - - - - - - - - -
      Value Summary
      - val - - ToleratedOverlap - : Double - -
      Tolerated overlap. Collision response will only be applied if the overlap of two shapes exceeds the tolerated overlap.
      -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - -
      Value Details
      -
      - - - val - ToleratedOverlap : Double -
      -
      -
      -
      Tolerated overlap. Collision response will only be applied if the overlap of two shapes exceeds the tolerated overlap.
      -
      -
      - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/Collision.html b/doc/sims/collision/Collision.html index 028dc09..c74223c 100644 --- a/doc/sims/collision/Collision.html +++ b/doc/sims/collision/Collision.html @@ -1,261 +1,263 @@ - + + - class Collision in sims.collision - + + Scaladoc for sims.collision.Collision + + + + + + - - - - - - - - - -
      - sims.collision -

      - class Collision -

      -
      -
      -
      - - abstract - class - Collision -
      -
      extends Constraint with AnyRef
      -
      -
      Collision between two shapes. Contains methods to compute the collision response.
      -
      -
      -
      Direct Known Subclasses:
      -
      CircleCollision, PolyCircleCollision, PolyCollision
      -

      + +

      sims.collision

      - - - - - - - - - - - - - - - - - - -
      Value Summary
      - abstract val - - normal - : Vector2D - -
      Normal vector to the collision face.
      -
      - abstract val - - points - : scala.Iterable[Vector2D] - -
      Collision points.
      -
      - abstract val - - shape1 - : Shape - -
      First colliding shape (reference shape).
      -
      - abstract val - - shape2 - : Shape - -
      Second colliding shape (incident shape).
      -
      - - - - - - - - - - - - - - -
      Method Summary
      - def - - correctFriction - (point : Vector2D, normalForce : Double, h : Double) : Unit - - -
      - def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of bodies according to this constraint.
      -
      - def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of bodies according to this constraint.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Collision

      +
      +

      + class + + Collision extends Constraint + +

      +
      +

      Collision between two shapes. Contains methods to compute the collision response.

      - - - -
      Value Details
      -
      - - abstract - val - shape1 : Shape -
      -
      -
      -
      First colliding shape (reference shape).
      -
      -
      -
      -
      - - abstract - val - shape2 : Shape -
      -
      -
      -
      Second colliding shape (incident shape).
      -
      -
      -
      -
      +
      + attributes: abstract +
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Constraint
      2. AnyRef
      3. Any
      +
      +
      - abstract - val - points : scala.Iterable[Vector2D] - -
      - -
      Collision points.
      -
      -
      -
      -
      - abstract - val - normal : Vector2D -
      -
      -
      -
      Normal vector to the collision face.
      -
      -
      - - -
      Method Details
      -
      - - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of bodies according to this constraint.
      -
      - Parameters
      h - a time interval, used for converting forces and impulses
      -
      -
      - Overrides -
      -
      - Constraint.correctVelocity -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + correctFriction(point: Vector2D, normalForce: Double, h: Double): Unit + +

        + +
      2. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of bodies according to this constraint

        +

        Corrects the positions of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + + + +
        +
      3. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of bodies according to this constraint

        +

        Corrects the velocities of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + + + +
        +
      4. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      6. +

        + val + + normal: Vector2D + +

        +

        Normal vector to the collision face

        +

        Normal vector to the collision face.

        + +
        + attributes: abstract +
        + + +
        +
      7. +

        + val + + points: Iterable[Vector2D] + +

        +

        Collision points

        +

        Collision points.

        + +
        + attributes: abstract +
        + + +
        +
      8. +

        + val + + shape1: Shape + +

        +

        First colliding shape (reference shape)

        +

        First colliding shape (reference shape).

        + +
        + attributes: abstract +
        + + +
        +
      9. +

        + val + + shape2: Shape + +

        +

        Second colliding shape (incident shape)

        +

        Second colliding shape (incident shape).

        + +
        + attributes: abstract +
        + + +
        +
      10. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      - - def - correctFriction(point : Vector2D, normalForce : Double, h : Double) : Unit -
      -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Collision() + +

        + +
      +
      - - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of bodies according to this constraint.
      -
      - Parameters
      h - a time interval, used for converting forces and impulses
      -
      -
      - Overrides -
      -
      - Constraint.correctPosition -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/Detector.html b/doc/sims/collision/Detector.html index ad93c73..c858df8 100644 --- a/doc/sims/collision/Detector.html +++ b/doc/sims/collision/Detector.html @@ -1,133 +1,195 @@ - + + - class Detector in sims.collision - + + Scaladoc for sims.collision.Detector + + + + + + - - - - - - - - - -
      - sims.collision -

      - class Detector -

      -
      -
      -
      - - abstract - class - Detector -
      -
      extends AnyRef
      -
      -
      A world detects its collisions through concrete implementations of this class.
      -
      -
      -
      Direct Known Subclasses:
      -
      GridDetector
      -

      + +

      sims.collision

      - - - - - - -
      Value Summary
      - abstract val - - world - : World +
      + +

      Detector

      +
      + +

      + class + + Detector extends AnyRef + +

      +
      +

      A world detects its collisions through concrete implementations of this class.

      + +
      + attributes: abstract +
      + +
      + known subclasses: GridDetector +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      -
      The world whose shapes are to be checked for collisions.
      -
      - - - - - - -
      Method Summary
      - abstract def - - collisions - : scala.Seq[Collision] -
      Returns all collisions between shapes in the world world.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - + +
      +

      Value Members

      +
      1. +

        + def + + collisions: Seq[Collision] + +

        +

        Returns all collisions between shapes in the world world

        +

        Returns all collisions between shapes in the world world.

        - - - -
        Value Details
        -
        +
        + attributes: abstract +
        + + +
        +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + val + + world: World + +

        +

        The world whose shapes are to be checked for collisions

        +

        The world whose shapes are to be checked for collisions.

        + +
        + attributes: abstract +
        + + +
        +
      +
      - abstract - val - world : World - -
      - -
      The world whose shapes are to be checked for collisions.
      -
      -
      - - -
      Method Details
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Detector() + +

        + +
      +
      - abstract - def - collisions : scala.Seq[Collision] -
      -
      -
      -
      Returns all collisions between shapes in the world world.
      -
      -
      - - -
      - - - - - - - - + + + \ No newline at end of file diff --git a/doc/sims/collision/GridDetector.html b/doc/sims/collision/GridDetector.html index 9007d31..6cdaad7 100644 --- a/doc/sims/collision/GridDetector.html +++ b/doc/sims/collision/GridDetector.html @@ -1,311 +1,317 @@ - + + - class GridDetector in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - class GridDetector -

      -
      -
      -
      - - - class - GridDetector(val override world : World) -
      -
      extends Detector
      -
      -
      A conrete implementation of Detector. GridDetector divides the world into a grid - for faster collision detection.
      -
      + + Scaladoc for sims.collision.GridDetector + + + + + + + +

      sims.collision

      - - - - - - - - - - - - - - -
      Value Summary
      - val - - collisionMethods - : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]] - -
      Array of methods returning collisions. It is assumed that both shapes are colliding.
      -
      - val - - detectionMethods - : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]] - -
      Array of collision detection methods. These methods return true if two shapes are colliding.
      -
      - var - - gridSide - : Double - -
      Width and height of a grid cell.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - colliding - (p : Pair) : Boolean - -
      Checks the pair of shapes p for collision.
      -
      - def - - collidingPairs - : scala.Seq[Pair] - -
      Returns all colliding pairs.
      -
      - def - - collision - (p : Pair) : Collision - -
      Returns the collision between both shapes of the pair p.
      -
      - def - - collisions - : scala.Seq[Collision] - -
      Returns all collisions.
      -
      - def - - getPairs - : scala.Seq[Pair] - -
      Returns potential colliding pairs of shapes of the world world.
      -
      - def - - pairs - : scala.Seq[Pair] - -
      All potential colliding pairs of the world.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      GridDetector

      +
      +

      + class + + GridDetector extends Detector + +

      +
      +

      A conrete implementation of Detector. GridDetector divides the world into a grid +for faster collision detection.

      - - - -
      Value Details
      -
      - - - val - detectionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Boolean]] -
      -
      -
      -
      Array of collision detection methods. These methods return true if two shapes are colliding.
      -
      -
      -
      -
      - - - val - collisionMethods : scala.collection.mutable.ArrayBuffer[scala.PartialFunction[(Shape, Shape), Collision]] -
      -
      -
      -
      Array of methods returning collisions. It is assumed that both shapes are colliding.
      -
      -
      -
      -
      - - - var - gridSide : Double -
      -
      -
      -
      Width and height of a grid cell.
      -
      -
      - - -
      Method Details
      -
      - - - def - colliding(p : Pair) : Boolean -
      -
      -
      -
      Checks the pair of shapes p for collision.
      -
      - Parameters
      p - Pair of shapes.
      -
      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Detector
      2. AnyRef
      3. Any
      +
      +
      - - def - collision(p : Pair) : Collision - -
      - -
      Returns the collision between both shapes of the pair p.
      -
      - Parameters
      p - Pair of shapes.
      -
      -
      -
      - - def - getPairs : scala.Seq[Pair] -
      -
      -
      -
      Returns potential colliding pairs of shapes of the world world. -

      - A potential colliding pair is a pair of two shapes that comply with the following criteria: -

        -
      • The shapes are situated in the same grid cell.
      • -
      • Their AABBs overlap.
      • -
      • The shapes do not belong to the same body.
      • -
      • At least one shape is not fixed.
      • -
      • Both shapes are {@link dynamics.Shape#collidable}.
      • -
      -
      -
      -
      -
      - - def - pairs : scala.Seq[Pair] -
      -
      -
      -
      All potential colliding pairs of the world.
      -
      - See Also
      getPairs
      -
      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + colliding(p: Pair): Boolean + +

        +

        Checks the pair of shapes p for collision

        +

        Checks the pair of shapes p for collision.

        +
        p

        Pair of shapes.

        + + + +
        +
      2. +

        + def + + collidingPairs: Seq[Pair] + +

        +

        Returns all colliding pairs

        +

        Returns all colliding pairs.

        + + + + +
        +
      3. +

        + def + + collision(p: Pair): Collision + +

        +

        Returns the collision between both shapes of the pair p

        +

        Returns the collision between both shapes of the pair p.

        +
        p

        Pair of shapes.

        + + + +
        +
      4. +

        + val + + collisionMethods: ArrayBuffer[PartialFunction[(Shape, Shape), Collision]] + +

        +

        Array of methods returning collisions

        +

        Array of methods returning collisions. It is assumed that both shapes are colliding.

        + + + + +
        +
      5. +

        + def + + collisions: Seq[Collision] + +

        +

        Returns all collisions

        +

        Returns all collisions.

        + + + + +
        +
      6. +

        + val + + detectionMethods: ArrayBuffer[PartialFunction[(Shape, Shape), Boolean]] + +

        +

        Array of collision detection methods

        +

        Array of collision detection methods. These methods return true if two shapes are colliding.

        + + + + +
        +
      7. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      8. +

        + def + + getPairs: Seq[Pair] + +

        +

        Returns potential colliding pairs of shapes of the world world

        +

        Returns potential colliding pairs of shapes of the world world. +

        +A potential colliding pair is a pair of two shapes that comply with the following criteria: +

          +
        • The shapes are situated in the same grid cell.
        • +
        • Their AABBs overlap.
        • +
        • The shapes do not belong to the same body.
        • +
        • At least one shape is not fixed.
        • +
        • Both shapes are {@link dynamics.Shape#collidable}.
        • +

        + + + + +
        +
      9. +

        + var + + gridSide: Double + +

        +

        Width and height of a grid cell

        +

        Width and height of a grid cell.

        + + + + +
        +
      10. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      11. +

        + def + + pairs: Seq[Pair] + +

        +

        All potential colliding pairs of the world

        +

        All potential colliding pairs of the world.

        + + + + +
        +
      12. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      13. +

        + val + + world: World + +

        +

        The world whose shapes are to be checked for collisions

        +

        The world whose shapes are to be checked for collisions.

        + + + + +
        +
      +
      - - def - collidingPairs : scala.Seq[Pair] -
      -
      -
      -
      Returns all colliding pairs.
      -
      -
      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + GridDetector(world: World) + +

        + +
      2. +

        + new + + GridDetector() + +

        + +
      +
      - - def - collisions : scala.Seq[Collision] -
      -
      -
      -
      Returns all collisions.
      -
      -
      -
      - Overrides -
      -
      - Detector.collisions -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/Overlap$object.html b/doc/sims/collision/Overlap$object.html deleted file mode 100644 index 0989c48..0000000 --- a/doc/sims/collision/Overlap$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Overlap in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object Overlap -

      -
      -
      -
      - - - object - Overlap -
      -
      extends (ConvexPolygon, Int, Double) => Overlap
      -
      - - - - - - -
      - Methods inherited from scala.Function3 -
      - scala.Function3.toString, scala.Function3.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/Overlap.html b/doc/sims/collision/Overlap.html index f76df7e..b6f9960 100644 --- a/doc/sims/collision/Overlap.html +++ b/doc/sims/collision/Overlap.html @@ -1,276 +1,233 @@ - + + - class Overlap in sims.collision - + + Scaladoc for sims.collision.Overlap + + + + + + - - - - - - - - - -
      - sims.collision -

      - class Overlap -

      -
      -
      -
      - - case - class - Overlap(val poly : ConvexPolygon, val sideNum : Int, val overlap : Double) -
      -
      extends scala.Product
      -
      + +

      sims.collision

      +
      + +

      Overlap

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + Overlap(poly: ConvexPolygon, sideNum: Int, overlap: Double) extends Product + +

      +
      - - - - -
      Method Details
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      4. +

        + val + + overlap: Double + +

        + +
      5. +

        + val + + poly: ConvexPolygon + +

        + +
      6. +

        + def + + productArity: Int + +

        + +
      7. +

        + def + + productElement(arg0: Int): Any + +

        + +
      8. +

        + def + + productElements: Iterator[Any] + +

        + +
      9. +

        + def + + productIterator: Iterator[Any] + +

        + +
      10. +

        + def + + productPrefix: String + +

        + +
      11. +

        + val + + sideNum: Int + +

        + +
      12. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Overlap(poly: ConvexPolygon, sideNum: Int, overlap: Double) + +

        + +
      2. +

        + new + + Overlap() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/Pair$object.html b/doc/sims/collision/Pair$object.html deleted file mode 100644 index fab5d78..0000000 --- a/doc/sims/collision/Pair$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Pair in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object Pair -

      -
      -
      -
      - - - object - Pair -
      -
      extends (Shape, Shape) => Pair
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/Pair.html b/doc/sims/collision/Pair.html index e210fc9..af5a434 100644 --- a/doc/sims/collision/Pair.html +++ b/doc/sims/collision/Pair.html @@ -1,257 +1,274 @@ - + + - class Pair in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - class Pair -

      -
      -
      -
      - - case - class - Pair(val s1 : Shape, val s2 : Shape) -
      -
      extends (Shape, Shape)
      -
      -
      Pair of shapes.
      -
      + + Scaladoc for sims.collision.Pair + + + + + - - - - - - -
      Additional Constructor Summary
      - def - - this - (t : (Shape, Shape)) : Pair - - -
      - - - - -
      - Values and Variables inherited from scala.Tuple2 -
      - scala.Tuple2._1, scala.Tuple2._2 -
      - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (other : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productPrefix - : java.lang.String - - -
      - - -
      - Methods inherited from scala.Tuple2 -
      - scala.Tuple2.toString, scala.Tuple2.swap -
      - - -
      - Methods inherited from scala.Product2 -
      - scala.Product2.productArity, scala.Product2.productElement -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      + + + +

      sims.collision

      +
      + +

      Pair

      +
      - - -
      Additional Constructor Details
      -
      +

      + class + + Pair(s1: Shape, s2: Shape) extends (Shape, Shape) with Product + +

      +
      +

      Pair of shapes.

      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Tuple2
      2. Product2
      3. Product
      4. Equals
      5. AnyRef
      6. Any
      +
      +
      - - def - this(t : (Shape, Shape)) : Pair -
      -
      -

      - - - - -
      Method Details
      -
      - override - def - equals(other : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      - Overrides -
      -
      - scala.Tuple2.scala.Tuple2.equals -
      -

      -
      -
      - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      - Overrides -
      -
      - scala.Tuple2.scala.Tuple2.hashCode -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + val + + _1: Shape + +

        + +
      2. +

        + val + + _2: Shape + +

        + +
      3. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      4. +

        + def + + equals(other: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        + + + + +
        +
      5. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      6. +

        + def + + productArity: Int + +

        + +
      7. +

        + def + + productElement(n: Int): Any + +

        + +
      8. +

        + def + + productElements: Iterator[Any] + +

        + +
      9. +

        + def + + productIterator: Iterator[Any] + +

        + +
      10. +

        + def + + productPrefix: String + +

        + +
      11. +

        + val + + s1: Shape + +

        + +
      12. +

        + val + + s2: Shape + +

        + +
      13. +

        + def + + swap: (Shape, Shape) + +

        + +
      14. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: Tuple2 ⇐ AnyRef ⇐ Any +
        + +
        +
      15. +

        + def + + zip[Repr1, El1, El2, To](w1: (Shape) ⇒ TraversableLike[El1, Repr1], w2: (Shape) ⇒ Iterable[El2], cbf1: CanBuildFrom[Repr1, (El1, El2), To]): To + +

        + +
      16. +

        + def + + zipped[Repr1, El1, Repr2, El2](w1: (Shape) ⇒ TraversableLike[El1, Repr1], w2: (Shape) ⇒ IterableLike[El2, Repr2]): Zipped[Repr1, El1, Repr2, El2] + +

        + +
      +
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Tuple2.scala.Tuple2.productPrefix -
      -

      - - -
      - - - - - - - - +
      +

      Instance constructors

      +
      1. +

        + new + + Pair(t: (Shape, Shape)) + +

        + +
      2. +

        + new + + Pair(s1: Shape, s2: Shape) + +

        + +
      3. +

        + new + + Pair() + +

        + +
      +
      + + + + \ No newline at end of file diff --git a/doc/sims/collision/PolyCircleCollision$object.html b/doc/sims/collision/PolyCircleCollision$object.html deleted file mode 100644 index 7ccdcf3..0000000 --- a/doc/sims/collision/PolyCircleCollision$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object PolyCircleCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object PolyCircleCollision -

      -
      -
      -
      - - - object - PolyCircleCollision -
      -
      extends (ConvexPolygon, Circle) => PolyCircleCollision
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/PolyCircleCollision.html b/doc/sims/collision/PolyCircleCollision.html index 3b1d094..fc31ca6 100644 --- a/doc/sims/collision/PolyCircleCollision.html +++ b/doc/sims/collision/PolyCircleCollision.html @@ -1,409 +1,321 @@ - + + - class PolyCircleCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - class PolyCircleCollision -

      -
      -
      -
      - - case - class - PolyCircleCollision(val p : ConvexPolygon, val c : Circle) -
      -
      extends Collision with scala.Product
      -
      -
      Collision between a convex polygon and a circle.
      -
      + + Scaladoc for sims.collision.PolyCircleCollision + + + + + + + +

      sims.collision

      - - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - normal - : Vector2D - -
      Normal vector to the collision face.
      -
      - val - - points - : scala.List[Vector2D] - -
      Collision points.
      -
      - val - - shape1 - : Shape - -
      First colliding shape (reference shape).
      -
      - val - - shape2 - : Circle - -
      Second colliding shape (incident shape).
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from Collision -
      - correctVelocity, correctFriction, correctPosition -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      PolyCircleCollision

      +
      +

      + class + + PolyCircleCollision(p: ConvexPolygon, c: Circle) extends Collision with Product + +

      +
      +

      Collision between a convex polygon and a circle.

      - - - -
      Value Details
      -
      - - - val - shape1 : Shape -
      -
      -
      -
      First colliding shape (reference shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape1 -
      -

      -
      -
      - - - val - shape2 : Circle -
      -
      -
      -
      Second colliding shape (incident shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape2 -
      -

      -
      -
      - - - val - normal : Vector2D -
      -
      -
      -
      Normal vector to the collision face.
      -
      -
      -
      - Overrides -
      -
      - Collision.normal -
      -

      -
      -
      - - - val - points : scala.List[Vector2D] -
      -
      -
      -
      Collision points.
      -
      -
      -
      - Overrides -
      -
      - Collision.points -
      -

      - - -
      Method Details
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Collision
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + val + + c: Circle + +

        + +
      2. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      3. +

        + def + + correctFriction(point: Vector2D, normalForce: Double, h: Double): Unit + +

        + +
      4. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of bodies according to this constraint

        +

        Corrects the positions of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      5. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of bodies according to this constraint

        +

        Corrects the velocities of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      6. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      7. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      8. +

        + val + + normal: Vector2D + +

        +

        Normal vector to the collision face

        +

        Normal vector to the collision face.

        + + + + +
        +
      9. +

        + val + + p: ConvexPolygon + +

        + +
      10. +

        + val + + points: List[Vector2D] + +

        +

        Collision points

        +

        Collision points.

        + + + + +
        +
      11. +

        + def + + productArity: Int + +

        + +
      12. +

        + def + + productElement(arg0: Int): Any + +

        + +
      13. +

        + def + + productElements: Iterator[Any] + +

        + +
      14. +

        + def + + productIterator: Iterator[Any] + +

        + +
      15. +

        + def + + productPrefix: String + +

        + +
      16. +

        + val + + shape1: Shape + +

        +

        First colliding shape (reference shape)

        +

        First colliding shape (reference shape).

        + + + + +
        +
      17. +

        + val + + shape2: Circle + +

        +

        Second colliding shape (incident shape)

        +

        Second colliding shape (incident shape).

        + + + + +
        +
      18. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + PolyCircleCollision(p: ConvexPolygon, c: Circle) + +

        + +
      2. +

        + new + + PolyCircleCollision() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/PolyCollision$object.html b/doc/sims/collision/PolyCollision$object.html deleted file mode 100644 index a9642ae..0000000 --- a/doc/sims/collision/PolyCollision$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object PolyCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - object PolyCollision -

      -
      -
      -
      - - - object - PolyCollision -
      -
      extends (ConvexPolygon, ConvexPolygon) => PolyCollision
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/collision/PolyCollision.html b/doc/sims/collision/PolyCollision.html index 9009f39..8a9cc89 100644 --- a/doc/sims/collision/PolyCollision.html +++ b/doc/sims/collision/PolyCollision.html @@ -1,469 +1,345 @@ - + + - class PolyCollision in sims.collision - - - - - - - - - - - -
      - sims.collision -

      - class PolyCollision -

      -
      -
      -
      - - case - class - PolyCollision(val p1 : ConvexPolygon, val p2 : ConvexPolygon) -
      -
      extends Collision with scala.Product
      -
      -
      Collision between two convex polygons.
      -
      + + Scaladoc for sims.collision.PolyCollision + + + + + + + +

      sims.collision

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - var - - minOverlap - : Overlap - - -
      - lazy val - - normal - : Vector2D - -
      Normal vector to the collision face.
      -
      - lazy val - - overlaps - : scala.RandomAccessSeq[Overlap] - - -
      - lazy val - - points - : scala.Seq[Vector2D] - -
      Collision points.
      -
      - lazy val - - shape1 - : Shape - -
      First colliding shape (reference shape).
      -
      - lazy val - - shape2 - : Shape - -
      Second colliding shape (incident shape).
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - overlap - (axis : Vector2D) : Double - - -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from Collision -
      - correctVelocity, correctFriction, correctPosition -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      PolyCollision

      +
      +

      + class + + PolyCollision(p1: ConvexPolygon, p2: ConvexPolygon) extends Collision with Product + +

      +
      +

      Collision between two convex polygons.

      - - - -
      Value Details
      -
      - - - lazy val - overlaps : scala.RandomAccessSeq[Overlap] -
      -
      -

      -
      -
      - - - var - minOverlap : Overlap -
      -
      -

      -
      -
      - - - lazy val - shape1 : Shape -
      -
      -
      -
      First colliding shape (reference shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape1 -
      -

      -
      -
      - - - lazy val - shape2 : Shape -
      -
      -
      -
      Second colliding shape (incident shape).
      -
      -
      -
      - Overrides -
      -
      - Collision.shape2 -
      -

      -
      -
      - - - lazy val - normal : Vector2D -
      -
      -
      -
      Normal vector to the collision face.
      -
      -
      -
      - Overrides -
      -
      - Collision.normal -
      -

      -
      -
      - - - lazy val - points : scala.Seq[Vector2D] -
      -
      -
      -
      Collision points.
      -
      -
      -
      - Overrides -
      -
      - Collision.points -
      -

      - - -
      Method Details
      -
      - - - def - overlap(axis : Vector2D) : Double -
      -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Collision
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      2. +

        + def + + correctFriction(point: Vector2D, normalForce: Double, h: Double): Unit + +

        + +
      3. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of bodies according to this constraint

        +

        Corrects the positions of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      4. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of bodies according to this constraint

        +

        Corrects the velocities of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        + +
        + definition classes: CollisionConstraint +
        + +
        +
      5. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      6. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      7. +

        + var + + minOverlap: Overlap + +

        + +
      8. +

        + var + + normal: Vector2D + +

        +

        Normal vector to the collision face

        +

        Normal vector to the collision face.

        + + + + +
        +
      9. +

        + def + + overlap(axis: Vector2D): Double + +

        + +
      10. +

        + var + + overlaps: IndexedSeq[Overlap] + +

        + +
      11. +

        + val + + p1: ConvexPolygon + +

        + +
      12. +

        + val + + p2: ConvexPolygon + +

        + +
      13. +

        + var + + points: Seq[Vector2D] + +

        +

        Collision points

        +

        Collision points.

        + + + + +
        +
      14. +

        + def + + productArity: Int + +

        + +
      15. +

        + def + + productElement(arg0: Int): Any + +

        + +
      16. +

        + def + + productElements: Iterator[Any] + +

        + +
      17. +

        + def + + productIterator: Iterator[Any] + +

        + +
      18. +

        + def + + productPrefix: String + +

        + +
      19. +

        + var + + shape1: Shape + +

        +

        First colliding shape (reference shape)

        +

        First colliding shape (reference shape).

        + + + + +
        +
      20. +

        + var + + shape2: Shape + +

        +

        Second colliding shape (incident shape)

        +

        Second colliding shape (incident shape).

        + + + + +
        +
      21. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + PolyCollision(p1: ConvexPolygon, p2: ConvexPolygon) + +

        + +
      2. +

        + new + + PolyCollision() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/collision/package.html b/doc/sims/collision/package.html new file mode 100644 index 0000000..a1e571e --- /dev/null +++ b/doc/sims/collision/package.html @@ -0,0 +1,137 @@ + + + + + Scaladoc for sims.collision + + + + + + + + + +

      sims

      + +
      + +

      collision

      +
      + +

      + package + + collision + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/dynamics$content.html b/doc/sims/dynamics$content.html deleted file mode 100644 index 8cbd40c..0000000 --- a/doc/sims/dynamics$content.html +++ /dev/null @@ -1,146 +0,0 @@ - - - All classes and objects in sims.dynamics - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Class Summary
      - class - - Body - (shps : Shape*) extends AnyRef - -
      A two dimensional rigid body is made out of shapes.
      -
      - case class - - Circle - (val radius : Double, val density : Double) extends Shape with scala.Product - -
      A circle.
      -
      - trait - - Constraint - extends AnyRef - -
      All constraints in SiMS implement this trait. - Position and velocity can be corrected for each constraint. - The implementation of constraints was inspired by Erin Catto's box2d.
      -
      - case class - - Rectangle - (val halfWidth : Double, val halfHeight : Double, val density : Double) extends Shape with ConvexPolygon with scala.Product - -
      A rectangle is a polygon.
      -
      - case class - - RegularPolygon - (val n : Int, val radius : Double, val density : Double) extends Shape with ConvexPolygon with scala.Product - -
      A regular polygon with n sides whose excircle has a radius radius.
      -
      - abstract class - - Shape - extends AnyRef - -
      An abstract shape.
      -
      - class - - World - extends AnyRef - -
      A world contains and simulates a system of rigid bodies and joints.
      -
      - - - - - - - - - - - - - - - - - - - - - - -
      Object Summary
      - object - - Body - extends AnyRef - - -
      - object - - Circle - extends (Double, Double) => Circle - - -
      - object - - Rectangle - extends (Double, Double, Double) => Rectangle - - -
      - object - - RegularPolygon - extends (Int, Double, Double) => RegularPolygon - - -
      - object - - Shape - extends AnyRef - - -
      - \ No newline at end of file diff --git a/doc/sims/dynamics$package.html b/doc/sims/dynamics$package.html deleted file mode 100644 index b2430c2..0000000 --- a/doc/sims/dynamics$package.html +++ /dev/null @@ -1,26 +0,0 @@ - - - List of classes and objects in package sims.dynamics - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/Body$.html b/doc/sims/dynamics/Body$.html new file mode 100644 index 0000000..c9c6b49 --- /dev/null +++ b/doc/sims/dynamics/Body$.html @@ -0,0 +1,148 @@ + + + + + Scaladoc for sims.dynamics.Body + + + + + + + + + +

      sims.dynamics

      + +
      + +

      Body

      +
      + +

      + object + + Body extends AnyRef + +

      +
      + + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      2. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/dynamics/Body$object.html b/doc/sims/dynamics/Body$object.html deleted file mode 100644 index fe5fec2..0000000 --- a/doc/sims/dynamics/Body$object.html +++ /dev/null @@ -1,75 +0,0 @@ - - - object Body in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - object Body -

      -
      - [source: sims/dynamics/Body.scala] -

      -
      -
      - - - object - Body -
      -
      extends AnyRef
      -
      - - - - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/Body.html b/doc/sims/dynamics/Body.html index 4bacab2..858116a 100644 --- a/doc/sims/dynamics/Body.html +++ b/doc/sims/dynamics/Body.html @@ -1,660 +1,490 @@ - + + - class Body in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - class Body -

      -
      - [source: sims/dynamics/Body.scala] -

      -
      -
      - - - class - Body(shps : Shape*) -
      -
      extends AnyRef
      -
      -
      A two dimensional rigid body is made out of shapes.
      -
      - Parameters
      shps - shapes that belong to this body.
      + + Scaladoc for sims.dynamics.Body + + + + + + + +

      sims.dynamics

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - var - - angularVelocity - : Double - -
      Angular velocity of this body.
      -
      - var - - force - : Vector2D - -
      Resulting force on the COM of this body.
      -
      - var - - linearVelocity - : Vector2D - -
      Linear velocity of this body.
      -
      - var - - monitor - : Boolean - -
      Flag for a world to monitor the properties of this body.
      -
      - val - - shapes - : scala.List[Shape] - -
      Shapes that belong to this body.
      -
      - var - - torque - : Double - -
      Resulting torque on this body.
      -
      - val - - uid - : Int - -
      Unique identification number.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - I - : Double - -
      Returns the moment of inertia for rotations about the COM of this body. - It is calculated using the moments of inertia of this body's shapes and the parallel axis theorem. - If the body is fixed, its moment of inertia is infinite (Double.PositiveInfinity).
      -
      - def - - applyForce - (force : Vector2D, point : Vector2D) : Unit - -
      Applies a force to a point on this body. Warning: the point is considered to be contained within this body.
      -
      - def - - applyForce - (force : Vector2D) : Unit - -
      Applies a force to the COM of this body.
      -
      - def - - applyImpulse - (impulse : Vector2D) : Unit - -
      Applies an impulse to the COM of this body.
      -
      - def - - applyImpulse - (impulse : Vector2D, point : Vector2D) : Unit - -
      Applies an impulse to a point on this body. Warning: the point is considered to be contained within this body.
      -
      - def - - contains - (point : Vector2D) : Boolean - -
      Checks if the point point is contained in this body.
      -
      - def - - fixed - : Boolean - -
      Returns whether this body is fixed or not.
      -
      - def - - fixed_= - (value : Boolean) : Unit - -
      Fixes or frees this body. By fixing, linear and angular velocities are set to zero.
      -
      - def - - mass - : Double - -
      Returns the mass of this body. If the body is free, its mass is the sum of the masses of its shapes. - If the body is fixed, its mass is infinite (Double.PositiveInfinity).
      -
      - def - - pos - : Vector2D - -
      Returns the position of this body. The position is equivalent to the center of mass.
      -
      - def - - pos_= - (newPos : Vector2D) : Unit - -
      Sets the position of this body. By doing so all its shapes are translated.
      -
      - def - - rotation - : Double - -
      Returns the current rotation of this body.
      -
      - def - - rotation_= - (newRotation : Double) : Unit - -
      Sets the rotation of this body. Position and rotation of shapes are modified accordingly.
      -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - velocityOfPoint - (point : Vector2D) : Vector2D - -
      Linear velocity of the given point on this body (in world coordinates).
      -
      - def - - ~ - (b : Body) : Body - -
      Creates a new body containing this body's shapes and the shapes of another body b.
      -
      - def - - ~ - (s : Shape) : Body - -
      Creates a new body containing this body's shapes and the shape s.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Body

      +
      +

      + class + + Body extends AnyRef + +

      +
      +

      A two dimensional rigid body is made out of shapes.

      - - - -
      Value Details
      -
      - - - val - uid : Int -
      -
      -
      -
      Unique identification number.
      -
      -
      -
      -
      - - - val - shapes : scala.List[Shape] -
      -
      -
      -
      Shapes that belong to this body.
      -
      -
      -
      -
      - - - var - monitor : Boolean -
      -
      -
      -
      Flag for a world to monitor the properties of this body.
      -
      - See Also
      World#monitors
      -
      -
      -
      - - - var - linearVelocity : Vector2D -
      -
      -
      -
      Linear velocity of this body.
      -
      -
      -
      -
      - - - var - angularVelocity : Double -
      -
      -
      -
      Angular velocity of this body.
      -
      -
      -
      -
      - - - var - force : Vector2D -
      -
      -
      -
      Resulting force on the COM of this body.
      -
      -
      -
      -
      - - - var - torque : Double -
      -
      -
      -
      Resulting torque on this body.
      -
      -
      - - -
      Method Details
      -
      - - - def - fixed : Boolean -
      -
      -
      -
      Returns whether this body is fixed or not.
      -
      -
      -
      -
      - - - def - fixed_=(value : Boolean) : Unit -
      -
      -
      -
      Fixes or frees this body. By fixing, linear and angular velocities are set to zero.
      -
      -
      -
      -
      - - - def - pos : Vector2D -
      -
      -
      -
      Returns the position of this body. The position is equivalent to the center of mass.
      -
      - Returns
      position of this body
      -
      -
      -
      - - - def - pos_=(newPos : Vector2D) : Unit -
      -
      -
      -
      Sets the position of this body. By doing so all its shapes are translated.
      -
      - Parameters
      newPos - new position
      -
      -
      -
      - - - def - rotation : Double -
      -
      -
      -
      Returns the current rotation of this body.
      -
      -
      -
      -
      - - - def - rotation_=(newRotation : Double) : Unit -
      -
      -
      -
      Sets the rotation of this body. Position and rotation of shapes are modified accordingly.
      -
      - Parameters
      r - new rotation
      -
      -
      -
      - - - def - velocityOfPoint(point : Vector2D) : Vector2D -
      -
      -
      -
      Linear velocity of the given point on this body (in world coordinates).
      -
      -
      -
      -
      - - - def - mass : Double -
      -
      -
      -
      Returns the mass of this body. If the body is free, its mass is the sum of the masses of its shapes. - If the body is fixed, its mass is infinite (Double.PositiveInfinity).
      -
      - Returns
      this body's mass
      -
      -
      -
      - - - def - I : Double -
      -
      -
      -
      Returns the moment of inertia for rotations about the COM of this body. - It is calculated using the moments of inertia of this body's shapes and the parallel axis theorem. - If the body is fixed, its moment of inertia is infinite (Double.PositiveInfinity).
      -
      - Returns
      moment of inertia for rotations about the COM of this body
      -
      -
      -
      - - - def - applyForce(force : Vector2D) : Unit -
      -
      -
      -
      Applies a force to the COM of this body.
      -
      - Parameters
      force - applied force
      -
      -
      -
      - - - def - applyForce(force : Vector2D, point : Vector2D) : Unit -
      -
      -
      -
      Applies a force to a point on this body. Warning: the point is considered to be contained within this body.
      -
      - Parameters
      force - applied force
      point - position vector of the point (in world coordinates)
      -
      -
      -
      - - - def - applyImpulse(impulse : Vector2D) : Unit -
      -
      -
      -
      Applies an impulse to the COM of this body.
      -
      - Parameters
      impulse - applied impulse
      -
      -
      -
      - - - def - applyImpulse(impulse : Vector2D, point : Vector2D) : Unit -
      -
      -
      -
      Applies an impulse to a point on this body. Warning: the point is considered to be contained within this body.
      -
      - Parameters
      impulse - applied impulse
      point - position vector of the point (in world coordinates)
      -
      -
      -
      - - - def - contains(point : Vector2D) : Boolean -
      -
      -
      -
      Checks if the point point is contained in this body.
      -
      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - - def - ~(s : Shape) : Body -
      -
      -
      -
      Creates a new body containing this body's shapes and the shape s.
      -
      - Parameters
      s - new shape
      - Returns
      new body
      -
      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + I: Double + +

        +

        Returns the moment of inertia for rotations about the COM of this body

        +

        Returns the moment of inertia for rotations about the COM of this body. +It is calculated using the moments of inertia of this body's shapes and the parallel axis theorem. +If the body is fixed, its moment of inertia is infinite (Double.PositiveInfinity).

        + + + + +
        +
      2. +

        + var + + angularVelocity: Double + +

        +

        Angular velocity of this body

        +

        Angular velocity of this body.

        + + + + +
        +
      3. +

        + def + + applyForce(force: Vector2D, point: Vector2D): Unit + +

        +

        Applies a force to a point on this body

        +

        Applies a force to a point on this body. Warning: the point is considered to be contained within this body.

        +
        force

        applied force

        point

        position vector of the point (in world coordinates)

        + + + +
        +
      4. +

        + def + + applyForce(force: Vector2D): Unit + +

        +

        Applies a force to the COM of this body

        +

        Applies a force to the COM of this body.

        +
        force

        applied force

        + + + +
        +
      5. +

        + def + + applyImpulse(impulse: Vector2D, point: Vector2D): Unit + +

        +

        Applies an impulse to a point on this body

        +

        Applies an impulse to a point on this body. Warning: the point is considered to be contained within this body.

        +
        impulse

        applied impulse

        point

        position vector of the point (in world coordinates)

        + + + +
        +
      6. +

        + def + + applyImpulse(impulse: Vector2D): Unit + +

        +

        Applies an impulse to the COM of this body

        +

        Applies an impulse to the COM of this body.

        +
        impulse

        applied impulse

        + + + +
        +
      7. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this body

        +

        Checks if the point point is contained in this body.

        + + + + +
        +
      8. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      9. +

        + def + + fixed: Boolean + +

        +

        Returns whether this body is fixed or not

        +

        Returns whether this body is fixed or not.

        + + + + +
        +
      10. +

        + def + + fixed_=(value: Boolean): Unit + +

        +

        Fixes or frees this body

        +

        Fixes or frees this body. By fixing, linear and angular velocities are set to zero.

        + + + + +
        +
      11. +

        + var + + force: Vector2D + +

        +

        Resulting force on the COM of this body

        +

        Resulting force on the COM of this body.

        + + + + +
        +
      12. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      13. +

        + var + + linearVelocity: Vector2D + +

        +

        Linear velocity of this body

        +

        Linear velocity of this body.

        + + + + +
        +
      14. +

        + def + + mass: Double + +

        +

        Returns the mass of this body

        +

        Returns the mass of this body. If the body is free, its mass is the sum of the masses of its shapes. +If the body is fixed, its mass is infinite (Double.PositiveInfinity).

        + + + + +
        +
      15. +

        + var + + monitor: Boolean + +

        +

        Flag for a world to monitor the properties of this body

        +

        Flag for a world to monitor the properties of this body.

        + + + + +
        +
      16. +

        + def + + pos: Vector2D + +

        +

        Returns the position of this body

        +

        Returns the position of this body. The position is equivalent to the center of mass.

        + + + + +
        +
      17. +

        + def + + pos_=(newPos: Vector2D): Unit + +

        +

        Sets the position of this body

        +

        Sets the position of this body. By doing so all its shapes are translated.

        +
        newPos

        new position

        + + + +
        +
      18. +

        + def + + rotation: Double + +

        +

        Returns the current rotation of this body

        +

        Returns the current rotation of this body.

        + + + + +
        +
      19. +

        + def + + rotation_=(newRotation: Double): Unit + +

        +

        Sets the rotation of this body

        +

        Sets the rotation of this body. Position and rotation of shapes are modified accordingly.

        + + + + +
        +
      20. +

        + val + + shapes: List[Shape] + +

        +

        Shapes that belong to this body

        +

        Shapes that belong to this body.

        + + + + +
        +
      21. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      22. +

        + var + + torque: Double + +

        +

        Resulting torque on this body

        +

        Resulting torque on this body.

        + + + + +
        +
      23. +

        + val + + uid: Int + +

        +

        Unique identification number

        +

        Unique identification number.

        + + + + +
        +
      24. +

        + def + + velocityOfPoint(point: Vector2D): Vector2D + +

        +

        Linear velocity of the given point on this body (in world coordinates)

        +

        Linear velocity of the given point on this body (in world coordinates).

        + + + + +
        +
      25. +

        + def + + ~(b: Body): Body + +

        +

        Creates a new body containing this body's shapes and the shapes of another body b

        +

        Creates a new body containing this body's shapes and the shapes of another body b.

        +
        b

        body with extra shapes

        returns

        new body

        + + + +
        +
      26. +

        + def + + ~(s: Shape): Body + +

        +

        Creates a new body containing this body's shapes and the shape s

        +

        Creates a new body containing this body's shapes and the shape s.

        +
        s

        new shape

        returns

        new body

        + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Body(shps: Shape*) + +

        + +
      2. +

        + new + + Body() + +

        + +
      +
      - - def - ~(b : Body) : Body - -
      - -
      Creates a new body containing this body's shapes and the shapes of another body b.
      -
      - Parameters
      b - body with extra shapes
      - Returns
      new body
      -
      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/Circle$object.html b/doc/sims/dynamics/Circle$object.html deleted file mode 100644 index 086b684..0000000 --- a/doc/sims/dynamics/Circle$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Circle in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - object Circle -

      -
      -
      -
      - - - object - Circle -
      -
      extends (Double, Double) => Circle
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/Circle.html b/doc/sims/dynamics/Circle.html index f5a1655..47526f7 100644 --- a/doc/sims/dynamics/Circle.html +++ b/doc/sims/dynamics/Circle.html @@ -1,454 +1,530 @@ - + + - class Circle in sims.dynamics - + + Scaladoc for sims.dynamics.Circle + + + + + + - - - - - - - - - -
      - sims.dynamics -

      - class Circle -

      -
      -
      -
      - - case - class - Circle(val radius : Double, val density : Double) -
      -
      extends Shape with scala.Product
      -
      -
      A circle.
      -
      - Parameters
      radius - radius of this circle
      density - density of this circle
      -
      -
      Direct Known Subclasses:
      -
      GraphicalCircle
      -

      + +

      sims.dynamics

      - - - - - - - - - - -
      Value Summary
      - val - - I - : Double - -
      Moment of inertia for a rotation about this shape's COM.
      -
      - val - - volume - : Double - -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      - - -
      - Values and Variables inherited from Shape -
      - uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - AABB - : AABB - -
      Returns this shape's axis aligned bounding box.
      -
      - def - - contains - (point : Vector2D) : Boolean - -
      Checks if the point point is contained in this shape.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - def - - project - (axis : Vector2D) : Projection - -
      Returns the projection of this shape onto the line given by the directional vector axis.
      -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from Shape -
      - mass, body, asBody, ~, ~ -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Circle

      +
      +

      + class + + Circle(radius: Double, density: Double) extends Shape with Product + +

      +
      +

      A circle.

      +
      radius

      radius of this circle

      density

      density of this circle

      - - - -
      Value Details
      -
      - - - val - volume : Double -
      -
      -
      -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      -
      -
      - Overrides -
      -
      - Shape.volume -
      -

      -
      -
      - - - val - I : Double -
      -
      -
      -
      Moment of inertia for a rotation about this shape's COM.
      -
      -
      -
      - Overrides -
      -
      - Shape.I -
      -

      - - -
      Method Details
      -
      - - - def - AABB : AABB -
      -
      -
      -
      Returns this shape's axis aligned bounding box.
      -
      -
      -
      - Overrides -
      -
      - Shape.AABB -
      -

      -
      -
      - - - def - project(axis : Vector2D) : Projection -
      -
      -
      -
      Returns the projection of this shape onto the line given by the directional vector axis.
      -
      - Parameters
      axis - directional vector of the line
      - Returns
      projection of this shape
      -
      -
      - Overrides -
      -
      - Shape.project -
      -

      -
      -
      - - - def - contains(point : Vector2D) : Boolean -
      -
      -
      -
      Checks if the point point is contained in this shape.
      -
      -
      -
      - Overrides -
      -
      - Shape.contains -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + +
      + known subclasses: GraphicalCircle +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Shape
      4. AnyRef
      5. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + AABB: AABB + +

        +

        Returns this shape's axis aligned bounding box

        +

        Returns this shape's axis aligned bounding box.

        + + + + +
        +
      2. +

        + val + + I: Double + +

        +

        Moment of inertia for a rotation about this shape's COM

        +

        Moment of inertia for a rotation about this shape's COM.

        + + + + +
        +
      3. +

        + def + + asBody: Body + +

        +

        Creates a new body made out of tis shape

        +

        Creates a new body made out of tis shape.

        + + +
        + definition classes: Shape +
        + +
        +
      4. +

        + def + + body: Body + +

        +

        Returns this shape's containing body

        +

        Returns this shape's containing body.

        + + +
        + definition classes: Shape +
        + +
        +
      5. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      6. +

        + var + + collidable: Boolean + +

        +

        Flag determining this shapes ability to collide with other shapes

        +

        Flag determining this shapes ability to collide with other shapes.

        + + +
        + definition classes: Shape +
        + +
        +
      7. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this shape

        +

        Checks if the point point is contained in this shape.

        + + + + +
        +
      8. +

        + val + + density: Double + +

        +

        Density

        +

        Density. (Mass per area)

        + + + + +
        +
      9. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      10. +

        + var + + friction: Double + +

        +

        Part of the coefficient of friction for a collision between this shape and another

        +

        Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      11. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      12. +

        + def + + mass: Double + +

        +

        Returns the mass of this shape

        +

        Returns the mass of this shape. The mass is given by volume times density.

        + + +
        + definition classes: Shape +
        + +
        +
      13. +

        + var + + pos: Vector2D + +

        +

        Position of this shape's COM (in world coordinates)

        +

        Position of this shape's COM (in world coordinates).

        + + +
        + definition classes: Shape +
        + +
        +
      14. +

        + def + + productArity: Int + +

        + +
      15. +

        + def + + productElement(arg0: Int): Any + +

        + +
      16. +

        + def + + productElements: Iterator[Any] + +

        + +
      17. +

        + def + + productIterator: Iterator[Any] + +

        + +
      18. +

        + def + + productPrefix: String + +

        + +
      19. +

        + def + + project(axis: Vector2D): Projection + +

        +

        Returns the projection of this shape onto the line given by the directional vector axis

        +

        Returns the projection of this shape onto the line given by the directional vector axis.

        +
        axis

        directional vector of the line

        returns

        projection of this shape

        + + + +
        +
      20. +

        + val + + radius: Double + +

        + +
      21. +

        + var + + refLocalPos: Vector2D + +

        +

        Local position of this shape's body COM to its COM at a body rotation of zero

        +

        Local position of this shape's body COM to its COM at a body rotation of zero.

        + + +
        + definition classes: Shape +
        + +
        +
      22. +

        + var + + restitution: Double + +

        +

        Part of the coefficient of restitution for a collision between this shape and another

        +

        Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      23. +

        + var + + rotation: Double + +

        +

        Rotation of this shape about its COM

        +

        Rotation of this shape about its COM.

        + + +
        + definition classes: Shape +
        + +
        +
      24. +

        + var + + rotation0: Double + +

        +

        Initial rotation

        +

        Initial rotation. Rotation of this shape before it was added to a body.

        + + +
        + definition classes: Shape +
        + +
        +
      25. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      26. +

        + val + + transientShapes: Set[Shape] + +

        +

        Shapes with which this shape cannot collide

        +

        Shapes with which this shape cannot collide.

        + + +
        + definition classes: Shape +
        + +
        +
      27. +

        + val + + uid: Int + +

        +

        Unique identification number

        +

        Unique identification number.

        + + +
        + definition classes: Shape +
        + +
        +
      28. +

        + val + + volume: Double + +

        +

        Volume

        +

        Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

        + + + + +
        +
      29. +

        + def + + ~(b: Body): Body + +

        +

        Creates a new body out of this shape and the shapes of body b

        +

        Creates a new body out of this shape and the shapes of body b.

        + + +
        + definition classes: Shape +
        + +
        +
      30. +

        + def + + ~(s: Shape): Body + +

        +

        Creates a new body out of this shape and the shape s

        +

        Creates a new body out of this shape and the shape s.

        + + +
        + definition classes: Shape +
        + +
        +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Circle(radius: Double, density: Double) + +

        + +
      2. +

        + new + + Circle() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/Constraint.html b/doc/sims/dynamics/Constraint.html index 570f522..23264ed 100644 --- a/doc/sims/dynamics/Constraint.html +++ b/doc/sims/dynamics/Constraint.html @@ -1,134 +1,184 @@ - + + - trait Constraint in sims.dynamics - + + Scaladoc for sims.dynamics.Constraint + + + + + + - - - - - - - - - -
      - sims.dynamics -

      - trait Constraint -

      -
      -
      -
      - - - trait - Constraint -
      -
      extends AnyRef
      -
      -
      All constraints in SiMS implement this trait. - Position and velocity can be corrected for each constraint. - The implementation of constraints was inspired by Erin Catto's box2d.
      -
      -
      -
      Direct Known Subclasses:
      -
      Collision, Joint
      -

      + +

      sims.dynamics

      +
      + +

      Constraint

      +
      - - - - - - - - - - -
      Method Summary
      - abstract def - - correctPosition - (h : Double) : Unit +

      + trait + + Constraint extends AnyRef + +

      +
      +

      All constraints in SiMS implement this trait. +Position and velocity can be corrected for each constraint. +The implementation of constraints was inspired by Erin Catto's box2d.

      + + + +
      + known subclasses: Joint, Collision +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      -
      Corrects the positions of bodies according to this constraint.
      -
      - abstract def - - correctVelocity - (h : Double) : Unit -
      Corrects the velocities of bodies according to this constraint.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - + +
      +

      Value Members

      +
      1. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of bodies according to this constraint

        +

        Corrects the positions of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        +
        + attributes: abstract +
        - - - - -
        Method Details
        -
        + +
        +
      2. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of bodies according to this constraint

        +

        Corrects the velocities of bodies according to this constraint.

        +
        h

        a time interval, used for converting forces and impulses

        +
        + attributes: abstract +
        + + +
        +
      3. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      - abstract - def - correctVelocity(h : Double) : Unit - -
      - -
      Corrects the velocities of bodies according to this constraint.
      -
      - Parameters
      h - a time interval, used for converting forces and impulses
      -
      -
      -
      - abstract - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of bodies according to this constraint.
      -
      - Parameters
      h - a time interval, used for converting forces and impulses
      -
      - - -
      - - - - - - - - + + + + \ No newline at end of file diff --git a/doc/sims/dynamics/Rectangle$object.html b/doc/sims/dynamics/Rectangle$object.html deleted file mode 100644 index 7c76345..0000000 --- a/doc/sims/dynamics/Rectangle$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Rectangle in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - object Rectangle -

      -
      -
      -
      - - - object - Rectangle -
      -
      extends (Double, Double, Double) => Rectangle
      -
      - - - - - - -
      - Methods inherited from scala.Function3 -
      - scala.Function3.toString, scala.Function3.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/Rectangle.html b/doc/sims/dynamics/Rectangle.html index df238de..63ef89d 100644 --- a/doc/sims/dynamics/Rectangle.html +++ b/doc/sims/dynamics/Rectangle.html @@ -1,430 +1,598 @@ - + + - class Rectangle in sims.dynamics - + + Scaladoc for sims.dynamics.Rectangle + + + + + + - - - - - - - - - -
      - sims.dynamics -

      - class Rectangle -

      -
      -
      -
      - - case - class - Rectangle(val halfWidth : Double, val halfHeight : Double, val density : Double) -
      -
      extends Shape with ConvexPolygon with scala.Product
      -
      -
      A rectangle is a polygon.
      -
      - Parameters
      halfWidth - this rectangle's half width
      halfHeight - this rectangle's half height
      density - density of this rectangle
      -
      -
      Direct Known Subclasses:
      -
      GraphicalRectangle
      -

      + +

      sims.dynamics

      - - - - - - - - - - -
      Value Summary
      - val - - I - : Double - -
      Moment of inertia for a rotation about this shape's COM.
      -
      - val - - volume - : Double - -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      - - -
      - Values and Variables inherited from Shape -
      - uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - def - - halfDiags - : scala.Array[Vector2D] - -
      Returns the vectors from the center to the vertices of this rectangle. - The first vertex is the upper-right vertex at a rotation of 0. - Vertices are ordered counter-clockwise.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - vertices - : scala.Array[Vector2D] - -
      Returns the position vectors of this rectangle's vertices. - The first vertex is the upper-right vertex at a rotation of 0. - Vertices are ordered counter-clockwise.
      -
      - - -
      - Methods inherited from ConvexPolygon -
      - sides, project, AABB, contains -
      - - -
      - Methods inherited from Shape -
      - mass, body, asBody, ~, ~ -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Rectangle

      +
      +

      + class + + Rectangle(halfWidth: Double, halfHeight: Double, density: Double) extends Shape with ConvexPolygon with Product + +

      +
      +

      A rectangle is a polygon.

      +
      halfWidth

      this rectangle's half width

      halfHeight

      this rectangle's half height

      density

      density of this rectangle

      - - - -
      Value Details
      -
      - - - val - volume : Double -
      -
      -
      -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      -
      -
      - Overrides -
      -
      - Shape.volume -
      -

      -
      -
      - - - val - I : Double -
      -
      -
      -
      Moment of inertia for a rotation about this shape's COM.
      -
      -
      -
      - Overrides -
      -
      - Shape.I -
      -

      - - -
      Method Details
      -
      - - - def - halfDiags : scala.Array[Vector2D] -
      -
      -
      -
      Returns the vectors from the center to the vertices of this rectangle. - The first vertex is the upper-right vertex at a rotation of 0. - Vertices are ordered counter-clockwise.
      -
      -
      -
      -
      - - - def - vertices : scala.Array[Vector2D] -
      -
      -
      -
      Returns the position vectors of this rectangle's vertices. - The first vertex is the upper-right vertex at a rotation of 0. - Vertices are ordered counter-clockwise.
      -
      -
      -
      - Overrides -
      -
      - ConvexPolygon.vertices -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + +
      + known subclasses: GraphicalRectangle +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. ConvexPolygon
      4. Shape
      5. AnyRef
      6. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + AABB: AABB + +

        +

        Returns this polygon's axis aligned bounding box

        +

        Returns this polygon's axis aligned bounding box.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      2. +

        + val + + I: Double + +

        +

        Moment of inertia for a rotation about this shape's COM

        +

        Moment of inertia for a rotation about this shape's COM.

        + + + + +
        +
      3. +

        + def + + asBody: Body + +

        +

        Creates a new body made out of tis shape

        +

        Creates a new body made out of tis shape.

        + + +
        + definition classes: Shape +
        + +
        +
      4. +

        + def + + body: Body + +

        +

        Returns this shape's containing body

        +

        Returns this shape's containing body.

        + + +
        + definition classes: Shape +
        + +
        +
      5. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      6. +

        + var + + collidable: Boolean + +

        +

        Flag determining this shapes ability to collide with other shapes

        +

        Flag determining this shapes ability to collide with other shapes.

        + + +
        + definition classes: Shape +
        + +
        +
      7. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this polygon

        +

        Checks if the point point is contained in this polygon. +

        +A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      8. +

        + val + + density: Double + +

        +

        Density

        +

        Density. (Mass per area)

        + + + + +
        +
      9. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      10. +

        + var + + friction: Double + +

        +

        Part of the coefficient of friction for a collision between this shape and another

        +

        Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      11. +

        + def + + halfDiags: Array[Vector2D] + +

        +

        Returns the vectors from the center to the vertices of this rectangle

        +

        Returns the vectors from the center to the vertices of this rectangle. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.

        + + + + +
        +
      12. +

        + val + + halfHeight: Double + +

        + +
      13. +

        + val + + halfWidth: Double + +

        + +
      14. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      15. +

        + def + + mass: Double + +

        +

        Returns the mass of this shape

        +

        Returns the mass of this shape. The mass is given by volume times density.

        + + +
        + definition classes: Shape +
        + +
        +
      16. +

        + var + + pos: Vector2D + +

        +

        Position of this shape's COM (in world coordinates)

        +

        Position of this shape's COM (in world coordinates).

        + + +
        + definition classes: Shape +
        + +
        +
      17. +

        + def + + productArity: Int + +

        + +
      18. +

        + def + + productElement(arg0: Int): Any + +

        + +
      19. +

        + def + + productElements: Iterator[Any] + +

        + +
      20. +

        + def + + productIterator: Iterator[Any] + +

        + +
      21. +

        + def + + productPrefix: String + +

        + +
      22. +

        + def + + project(axis: Vector2D): Projection + +

        +

        Returns the projection of this polygon onto the line given by the directional vector axis

        +

        Returns the projection of this polygon onto the line given by the directional vector axis.

        +
        axis

        directional vector of the line

        returns

        projection of this polygon

        + +
        + definition classes: ConvexPolygon +
        + +
        +
      23. +

        + var + + refLocalPos: Vector2D + +

        +

        Local position of this shape's body COM to its COM at a body rotation of zero

        +

        Local position of this shape's body COM to its COM at a body rotation of zero.

        + + +
        + definition classes: Shape +
        + +
        +
      24. +

        + var + + restitution: Double + +

        +

        Part of the coefficient of restitution for a collision between this shape and another

        +

        Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      25. +

        + var + + rotation: Double + +

        +

        Rotation of this shape about its COM

        +

        Rotation of this shape about its COM.

        + + +
        + definition classes: Shape +
        + +
        +
      26. +

        + var + + rotation0: Double + +

        +

        Initial rotation

        +

        Initial rotation. Rotation of this shape before it was added to a body.

        + + +
        + definition classes: Shape +
        + +
        +
      27. +

        + def + + sides: Array[Segment] + +

        +

        Returns all sides of this polygon

        +

        Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      28. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      29. +

        + val + + transientShapes: Set[Shape] + +

        +

        Shapes with which this shape cannot collide

        +

        Shapes with which this shape cannot collide.

        + + +
        + definition classes: Shape +
        + +
        +
      30. +

        + val + + uid: Int + +

        +

        Unique identification number

        +

        Unique identification number.

        + + +
        + definition classes: Shape +
        + +
        +
      31. +

        + def + + vertices: Seq[Vector2D] + +

        +

        Returns the position vectors of this rectangle's vertices

        +

        Returns the position vectors of this rectangle's vertices. +The first vertex is the upper-right vertex at a rotation of 0. +Vertices are ordered counter-clockwise.@return position vectors of the vertices

        + + + + +
        +
      32. +

        + val + + volume: Double + +

        +

        Volume

        +

        Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

        + + + + +
        +
      33. +

        + def + + ~(b: Body): Body + +

        +

        Creates a new body out of this shape and the shapes of body b

        +

        Creates a new body out of this shape and the shapes of body b.

        + + +
        + definition classes: Shape +
        + +
        +
      34. +

        + def + + ~(s: Shape): Body + +

        +

        Creates a new body out of this shape and the shape s

        +

        Creates a new body out of this shape and the shape s.

        + + +
        + definition classes: Shape +
        + +
        +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Rectangle(halfWidth: Double, halfHeight: Double, density: Double) + +

        + +
      2. +

        + new + + Rectangle() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/RegularPolygon$object.html b/doc/sims/dynamics/RegularPolygon$object.html deleted file mode 100644 index b2d8a0e..0000000 --- a/doc/sims/dynamics/RegularPolygon$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object RegularPolygon in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - object RegularPolygon -

      -
      -
      -
      - - - object - RegularPolygon -
      -
      extends (Int, Double, Double) => RegularPolygon
      -
      - - - - - - -
      - Methods inherited from scala.Function3 -
      - scala.Function3.toString, scala.Function3.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/RegularPolygon.html b/doc/sims/dynamics/RegularPolygon.html index e691f51..b0e8cc9 100644 --- a/doc/sims/dynamics/RegularPolygon.html +++ b/doc/sims/dynamics/RegularPolygon.html @@ -1,421 +1,588 @@ - + + - class RegularPolygon in sims.dynamics - + + Scaladoc for sims.dynamics.RegularPolygon + + + + + + - - - - - - - - - -
      - sims.dynamics -

      - class RegularPolygon -

      -
      -
      -
      - - case - class - RegularPolygon(val n : Int, val radius : Double, val density : Double) -
      -
      extends Shape with ConvexPolygon with scala.Product
      -
      -
      A regular polygon with n sides whose excircle has a radius radius.
      -
      - Parameters
      n - nmber of sides.
      radius - radius of the excircle
      density - density of this regular polygon
      - Throws
      IllegalArgumentException - if n is smaller than 3
      -
      -
      Direct Known Subclasses:
      -
      GraphicalRegularPolygon
      -

      + +

      sims.dynamics

      - - - - - - - - - - -
      Value Summary
      - val - - I - : Double - -
      Moment of inertia for a rotation about this shape's COM.
      -
      - val - - volume - : Double - -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      - - -
      - Values and Variables inherited from Shape -
      - uid, collidable, restitution, friction, pos, rotation, rotation0, refLocalPos, transientShapes -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - def - - halfDiags - : scala.Array[Vector2D] - - -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - vertices - : scala.Array[Vector2D] - -
      Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
      -
      - - -
      - Methods inherited from ConvexPolygon -
      - sides, project, AABB, contains -
      - - -
      - Methods inherited from Shape -
      - mass, body, asBody, ~, ~ -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      RegularPolygon

      +
      +

      + class + + RegularPolygon(n: Int, radius: Double, density: Double) extends Shape with ConvexPolygon with Product + +

      +
      +

      A regular polygon with n sides whose excircle has a radius radius.

      +
      n

      nmber of sides.

      radius

      radius of the excircle

      density

      density of this regular polygon

      - - - -
      Value Details
      -
      - - - val - volume : Double -
      -
      -
      -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      -
      -
      - Overrides -
      -
      - Shape.volume -
      -

      -
      -
      - - - val - I : Double -
      -
      -
      -
      Moment of inertia for a rotation about this shape's COM.
      -
      -
      -
      - Overrides -
      -
      - Shape.I -
      -

      - - -
      Method Details
      -
      - - - def - halfDiags : scala.Array[Vector2D] -
      -
      -

      -
      -
      - - - def - vertices : scala.Array[Vector2D] -
      -
      -
      -
      Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
      -
      - Returns
      position vectors of the vertices
      -
      -
      - Overrides -
      -
      - ConvexPolygon.vertices -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + +
      + known subclasses: GraphicalRegularPolygon +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. ConvexPolygon
      4. Shape
      5. AnyRef
      6. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + AABB: AABB + +

        +

        Returns this polygon's axis aligned bounding box

        +

        Returns this polygon's axis aligned bounding box.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      2. +

        + val + + I: Double + +

        +

        Moment of inertia for a rotation about this shape's COM

        +

        Moment of inertia for a rotation about this shape's COM.

        + + + + +
        +
      3. +

        + def + + asBody: Body + +

        +

        Creates a new body made out of tis shape

        +

        Creates a new body made out of tis shape.

        + + +
        + definition classes: Shape +
        + +
        +
      4. +

        + def + + body: Body + +

        +

        Returns this shape's containing body

        +

        Returns this shape's containing body.

        + + +
        + definition classes: Shape +
        + +
        +
      5. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      6. +

        + var + + collidable: Boolean + +

        +

        Flag determining this shapes ability to collide with other shapes

        +

        Flag determining this shapes ability to collide with other shapes.

        + + +
        + definition classes: Shape +
        + +
        +
      7. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this polygon

        +

        Checks if the point point is contained in this polygon. +

        +A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      8. +

        + val + + density: Double + +

        +

        Density

        +

        Density. (Mass per area)

        + + + + +
        +
      9. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      10. +

        + var + + friction: Double + +

        +

        Part of the coefficient of friction for a collision between this shape and another

        +

        Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      11. +

        + def + + halfDiags: Array[Vector2D] + +

        + +
      12. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      13. +

        + def + + mass: Double + +

        +

        Returns the mass of this shape

        +

        Returns the mass of this shape. The mass is given by volume times density.

        + + +
        + definition classes: Shape +
        + +
        +
      14. +

        + val + + n: Int + +

        + +
      15. +

        + var + + pos: Vector2D + +

        +

        Position of this shape's COM (in world coordinates)

        +

        Position of this shape's COM (in world coordinates).

        + + +
        + definition classes: Shape +
        + +
        +
      16. +

        + def + + productArity: Int + +

        + +
      17. +

        + def + + productElement(arg0: Int): Any + +

        + +
      18. +

        + def + + productElements: Iterator[Any] + +

        + +
      19. +

        + def + + productIterator: Iterator[Any] + +

        + +
      20. +

        + def + + productPrefix: String + +

        + +
      21. +

        + def + + project(axis: Vector2D): Projection + +

        +

        Returns the projection of this polygon onto the line given by the directional vector axis

        +

        Returns the projection of this polygon onto the line given by the directional vector axis.

        +
        axis

        directional vector of the line

        returns

        projection of this polygon

        + +
        + definition classes: ConvexPolygon +
        + +
        +
      22. +

        + val + + radius: Double + +

        + +
      23. +

        + var + + refLocalPos: Vector2D + +

        +

        Local position of this shape's body COM to its COM at a body rotation of zero

        +

        Local position of this shape's body COM to its COM at a body rotation of zero.

        + + +
        + definition classes: Shape +
        + +
        +
      24. +

        + var + + restitution: Double + +

        +

        Part of the coefficient of restitution for a collision between this shape and another

        +

        Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

        + + +
        + definition classes: Shape +
        + +
        +
      25. +

        + var + + rotation: Double + +

        +

        Rotation of this shape about its COM

        +

        Rotation of this shape about its COM.

        + + +
        + definition classes: Shape +
        + +
        +
      26. +

        + var + + rotation0: Double + +

        +

        Initial rotation

        +

        Initial rotation. Rotation of this shape before it was added to a body.

        + + +
        + definition classes: Shape +
        + +
        +
      27. +

        + def + + sides: Array[Segment] + +

        +

        Returns all sides of this polygon

        +

        Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.

        + + +
        + definition classes: ConvexPolygon +
        + +
        +
      28. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      29. +

        + val + + transientShapes: Set[Shape] + +

        +

        Shapes with which this shape cannot collide

        +

        Shapes with which this shape cannot collide.

        + + +
        + definition classes: Shape +
        + +
        +
      30. +

        + val + + uid: Int + +

        +

        Unique identification number

        +

        Unique identification number.

        + + +
        + definition classes: Shape +
        + +
        +
      31. +

        + def + + vertices: Seq[Vector2D] + +

        +

        Returns positions of all vertices of this Polygon

        +

        Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.

        + + + + +
        +
      32. +

        + val + + volume: Double + +

        +

        Volume

        +

        Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

        + + + + +
        +
      33. +

        + def + + ~(b: Body): Body + +

        +

        Creates a new body out of this shape and the shapes of body b

        +

        Creates a new body out of this shape and the shapes of body b.

        + + +
        + definition classes: Shape +
        + +
        +
      34. +

        + def + + ~(s: Shape): Body + +

        +

        Creates a new body out of this shape and the shape s

        +

        Creates a new body out of this shape and the shape s.

        + + +
        + definition classes: Shape +
        + +
        +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + RegularPolygon(n: Int, radius: Double, density: Double) + +

        + +
      2. +

        + new + + RegularPolygon() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/Shape$.html b/doc/sims/dynamics/Shape$.html new file mode 100644 index 0000000..6cc92c5 --- /dev/null +++ b/doc/sims/dynamics/Shape$.html @@ -0,0 +1,148 @@ + + + + + Scaladoc for sims.dynamics.Shape + + + + + + + + + +

      sims.dynamics

      + +
      + +

      Shape

      +
      + +

      + object + + Shape extends AnyRef + +

      +
      + + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      2. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/dynamics/Shape$object.html b/doc/sims/dynamics/Shape$object.html deleted file mode 100644 index a90e5ee..0000000 --- a/doc/sims/dynamics/Shape$object.html +++ /dev/null @@ -1,75 +0,0 @@ - - - object Shape in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - object Shape -

      -
      -
      -
      - - - object - Shape -
      -
      extends AnyRef
      -
      - - - - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/Shape.html b/doc/sims/dynamics/Shape.html index f769f9b..03db5e1 100644 --- a/doc/sims/dynamics/Shape.html +++ b/doc/sims/dynamics/Shape.html @@ -1,557 +1,458 @@ - + + - class Shape in sims.dynamics - + + Scaladoc for sims.dynamics.Shape + + + + + + - - - - - - - - - -
      - sims.dynamics -

      - class Shape -

      -
      -
      -
      - - abstract - class - Shape -
      -
      extends AnyRef
      -
      -
      An abstract shape.
      -
      -
      -
      Direct Known Subclasses:
      -
      GraphicalShape, Circle, Rectangle, RegularPolygon
      -

      + +

      sims.dynamics

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - abstract val - - I - : Double - -
      Moment of inertia for a rotation about this shape's COM.
      -
      - var - - collidable - : Boolean - -
      Flag determining this shapes ability to collide with other shapes.
      -
      - abstract val - - density - : Double - -
      Density. (Mass per area)
      -
      - var - - friction - : Double - -
      Part of the coefficient of friction for a collision between this shape and another. - The coefficient of friction is calculated out of the product of this part and the other shape's part.
      -
      - var - - pos - : Vector2D - -
      Position of this shape's COM (in world coordinates).
      -
      - var - - refLocalPos - : Vector2D - -
      Local position of this shape's body COM to its COM at a body rotation of zero.
      -
      - var - - restitution - : Double - -
      Part of the coefficient of restitution for a collision between this shape and another. - The coefficient of restitution is calculated out of the product of this part and the other shape's part.
      -
      - var - - rotation - : Double - -
      Rotation of this shape about its COM.
      -
      - var - - rotation0 - : Double - -
      Initial rotation. Rotation of this shape before it was added to a body.
      -
      - val - - transientShapes - : scala.collection.mutable.Set[Shape] - -
      Shapes with which this shape cannot collide.
      -
      - val - - uid - : Int - -
      Unique identification number.
      -
      - abstract val - - volume - : Double - -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - abstract def - - AABB - : AABB - -
      Returns this shape's axis aligned bounding box.
      -
      - def - - asBody - : Body - -
      Creates a new body made out of tis shape.
      -
      - def - - body - : Body - -
      Returns this shape's containing body.
      -
      - abstract def - - contains - (point : Vector2D) : Boolean - -
      Checks if the point point is contained in this shape.
      -
      - def - - mass - : Double - -
      Returns the mass of this shape. The mass is given by volume times density.
      -
      - abstract def - - project - (axis : Vector2D) : Projection - -
      Returns the projection of this shape onto the line given by the directional vector axis.
      -
      - def - - ~ - (b : Body) : Body - -
      Creates a new body out of this shape and the shapes of body b.
      -
      - def - - ~ - (s : Shape) : Body - -
      Creates a new body out of this shape and the shape s.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Shape

      +
      +

      + class + + Shape extends AnyRef + +

      +
      +

      An abstract shape.

      - - - -
      Value Details
      -
      - - - val - uid : Int -
      -
      -
      -
      Unique identification number.
      -
      -
      -
      -
      - - - var - collidable : Boolean -
      -
      -
      -
      Flag determining this shapes ability to collide with other shapes.
      -
      -
      -
      -
      - - - var - restitution : Double -
      -
      -
      -
      Part of the coefficient of restitution for a collision between this shape and another. - The coefficient of restitution is calculated out of the product of this part and the other shape's part.
      -
      -
      -
      -
      - - - var - friction : Double -
      -
      -
      -
      Part of the coefficient of friction for a collision between this shape and another. - The coefficient of friction is calculated out of the product of this part and the other shape's part.
      -
      -
      -
      -
      - - - var - pos : Vector2D -
      -
      -
      -
      Position of this shape's COM (in world coordinates).
      -
      -
      -
      -
      - - - var - rotation : Double -
      -
      -
      -
      Rotation of this shape about its COM.
      -
      -
      -
      -
      - - - var - rotation0 : Double -
      -
      -
      -
      Initial rotation. Rotation of this shape before it was added to a body.
      -
      -
      -
      -
      - - - var - refLocalPos : Vector2D -
      -
      -
      -
      Local position of this shape's body COM to its COM at a body rotation of zero.
      -
      -
      -
      -
      - - abstract - val - density : Double -
      -
      -
      -
      Density. (Mass per area)
      -
      -
      -
      -
      - - abstract - val - volume : Double -
      -
      -
      -
      Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) - and is used with this shape's density to calculate its mass.
      -
      -
      -
      -
      - - abstract - val - I : Double -
      -
      -
      -
      Moment of inertia for a rotation about this shape's COM.
      -
      -
      -
      -
      - - - val - transientShapes : scala.collection.mutable.Set[Shape] -
      -
      -
      -
      Shapes with which this shape cannot collide.
      -
      -
      - - -
      Method Details
      -
      - - - def - mass : Double -
      -
      -
      -
      Returns the mass of this shape. The mass is given by volume times density.
      -
      - Returns
      mass of this shape
      -
      -
      -
      - - - def - body : Body -
      -
      -
      -
      Returns this shape's containing body.
      -
      -
      -
      -
      - - abstract - def - AABB : AABB -
      -
      -
      -
      Returns this shape's axis aligned bounding box.
      -
      -
      -
      -
      - - abstract - def - project(axis : Vector2D) : Projection -
      -
      -
      -
      Returns the projection of this shape onto the line given by the directional vector axis.
      -
      - Parameters
      axis - directional vector of the line
      - Returns
      projection of this shape
      -
      -
      -
      - - abstract - def - contains(point : Vector2D) : Boolean -
      -
      -
      -
      Checks if the point point is contained in this shape.
      -
      -
      -
      -
      - - - def - asBody : Body -
      -
      -
      -
      Creates a new body made out of tis shape.
      -
      - Returns
      a body made out of tis shape
      -
      -
      -
      - - - def - ~(s : Shape) : Body -
      -
      -
      -
      Creates a new body out of this shape and the shape s.
      -
      -
      -
      -
      +
      + attributes: abstract +
      + +
      + known subclasses: RegularPolygon, Rectangle, Circle, GraphicalShape +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + AABB: AABB + +

        +

        Returns this shape's axis aligned bounding box

        +

        Returns this shape's axis aligned bounding box.

        + +
        + attributes: abstract +
        + + +
        +
      2. +

        + val + + I: Double + +

        +

        Moment of inertia for a rotation about this shape's COM

        +

        Moment of inertia for a rotation about this shape's COM.

        + +
        + attributes: abstract +
        + + +
        +
      3. +

        + def + + asBody: Body + +

        +

        Creates a new body made out of tis shape

        +

        Creates a new body made out of tis shape.

        + + + + +
        +
      4. +

        + def + + body: Body + +

        +

        Returns this shape's containing body

        +

        Returns this shape's containing body.

        + + + + +
        +
      5. +

        + var + + collidable: Boolean + +

        +

        Flag determining this shapes ability to collide with other shapes

        +

        Flag determining this shapes ability to collide with other shapes.

        + + + + +
        +
      6. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this shape

        +

        Checks if the point point is contained in this shape.

        + +
        + attributes: abstract +
        + + +
        +
      7. +

        + val + + density: Double + +

        +

        Density

        +

        Density. (Mass per area)

        + +
        + attributes: abstract +
        + + +
        +
      8. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      9. +

        + var + + friction: Double + +

        +

        Part of the coefficient of friction for a collision between this shape and another

        +

        Part of the coefficient of friction for a collision between this shape and another. +The coefficient of friction is calculated out of the product of this part and the other shape's part.

        + + + + +
        +
      10. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      11. +

        + def + + mass: Double + +

        +

        Returns the mass of this shape

        +

        Returns the mass of this shape. The mass is given by volume times density.

        + + + + +
        +
      12. +

        + var + + pos: Vector2D + +

        +

        Position of this shape's COM (in world coordinates)

        +

        Position of this shape's COM (in world coordinates).

        + + + + +
        +
      13. +

        + def + + project(axis: Vector2D): Projection + +

        +

        Returns the projection of this shape onto the line given by the directional vector axis

        +

        Returns the projection of this shape onto the line given by the directional vector axis.

        +
        axis

        directional vector of the line

        returns

        projection of this shape

        +
        + attributes: abstract +
        + + +
        +
      14. +

        + var + + refLocalPos: Vector2D + +

        +

        Local position of this shape's body COM to its COM at a body rotation of zero

        +

        Local position of this shape's body COM to its COM at a body rotation of zero.

        + + + + +
        +
      15. +

        + var + + restitution: Double + +

        +

        Part of the coefficient of restitution for a collision between this shape and another

        +

        Part of the coefficient of restitution for a collision between this shape and another. +The coefficient of restitution is calculated out of the product of this part and the other shape's part.

        + + + + +
        +
      16. +

        + var + + rotation: Double + +

        +

        Rotation of this shape about its COM

        +

        Rotation of this shape about its COM.

        + + + + +
        +
      17. +

        + var + + rotation0: Double + +

        +

        Initial rotation

        +

        Initial rotation. Rotation of this shape before it was added to a body.

        + + + + +
        +
      18. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      19. +

        + val + + transientShapes: Set[Shape] + +

        +

        Shapes with which this shape cannot collide

        +

        Shapes with which this shape cannot collide.

        + + + + +
        +
      20. +

        + val + + uid: Int + +

        +

        Unique identification number

        +

        Unique identification number.

        + + + + +
        +
      21. +

        + val + + volume: Double + +

        +

        Volume

        +

        Volume. The volume is actually equivalent to this shape's area (SiMS is in 2D) +and is used with this shape's density to calculate its mass.

        + +
        + attributes: abstract +
        + + +
        +
      22. +

        + def + + ~(b: Body): Body + +

        +

        Creates a new body out of this shape and the shapes of body b

        +

        Creates a new body out of this shape and the shapes of body b.

        + + + + +
        +
      23. +

        + def + + ~(s: Shape): Body + +

        +

        Creates a new body out of this shape and the shape s

        +

        Creates a new body out of this shape and the shape s.

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Shape() + +

        + +
      +
      - - def - ~(b : Body) : Body - -
      - -
      Creates a new body out of this shape and the shapes of body b.
      -
      -
      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/World.html b/doc/sims/dynamics/World.html index d089cd9..336852c 100644 --- a/doc/sims/dynamics/World.html +++ b/doc/sims/dynamics/World.html @@ -1,699 +1,539 @@ - + + - class World in sims.dynamics - - - - - - - - - - - -
      - sims.dynamics -

      - class World -

      -
      -
      -
      - - - class - World -
      -
      extends AnyRef
      -
      -
      A world contains and simulates a system of rigid bodies and joints.
      -
      + + Scaladoc for sims.dynamics.World + + + + + + + +

      sims.dynamics

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - bodies - : scala.collection.mutable.ArrayBuffer[Body] - -
      Bodies contained in this world.
      -
      - val - - detector - : Detector - -
      Collsion detector who manages collision detection in this world.
      -
      - var - - enableCollisionDetection - : Boolean - -
      Flag to enable collision detection.
      -
      - var - - enablePositionCorrection - : Boolean - -
      Flag to enable position correction for constraints.
      -
      - var - - gravity - : Vector2D - -
      Gravity in this world.
      -
      - var - - iterations - : Int - -
      Number of constraint corrections per time step.
      -
      - val - - joints - : scala.collection.mutable.ArrayBuffer[Joint] - -
      Joints contained in this world.
      -
      - var - - minAngularVelocity - : Double - -
      Minimal, non-zero angular velocity.
      -
      - var - - minLinearVelocity - : Double - -
      Minimal, non-zero linear velocity.
      -
      - val - - monitors - : scala.collection.mutable.ArrayBuffer[(java.lang.String, (Body) => java.lang.String)] - -
      Monitoring methods for bodies.
      -
      - var - - overCWarning - : Boolean - -
      Warning if a body's velocity exceeds the speed of light.
      -
      - var - - time - : Double - -
      Current time in this world.
      -
      - var - - timeStep - : Double - -
      Time intervals in which this world simulates.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - ++= - (bs : scala.Seq[Body]) : Unit - -
      Adds the given sequence of bodies to this world.
      -
      - def - - += - (body : Body) : Unit - -
      Adds the given body to this world.
      -
      - def - - += - (p : Prefab) : Unit - -
      Adds the given prefabricated system of bodies and joints to this world.
      -
      - def - - += - (joint : Joint) : Unit - -
      Adds the given joint to this world.
      -
      - def - - --= - (bs : scala.Seq[Body]) : Unit - -
      Removes the given sequence of bodies from this world.
      -
      - def - - -= - (p : Prefab) : Unit - -
      Removes the given prefabricated system of bodies and joints from this world.
      -
      - def - - -= - (body : Body) : Unit - -
      Removes the given body from this world.
      -
      - def - - -= - (joint : Joint) : Unit - -
      Removes the given joint from this world.
      -
      - def - - clear - : Unit - -
      Removes all bodies, joints and monitoring methods from this world.
      -
      - def - - info - : java.lang.String - -
      Returns information about this world.
      -
      - def - - postStep - : Unit - -
      Initially empty method that is executed after each time step. This method - may be overriden to create custom behaviour in a world.
      -
      - def - - shapes - : scala.Seq[Shape] - -
      Returns all shapes of all bodies in this world.
      -
      - def - - step - : Unit - -
      Simulates a time step of the duration timeStep.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      World

      +
      +

      + class + + World extends AnyRef + +

      +
      +

      A world contains and simulates a system of rigid bodies and joints.

      - - - -
      Value Details
      -
      - - - var - timeStep : Double -
      -
      -
      -
      Time intervals in which this world simulates.
      -
      -
      -
      -
      - - - var - iterations : Int -
      -
      -
      -
      Number of constraint corrections per time step.
      -
      -
      -
      -
      - - - var - gravity : Vector2D -
      -
      -
      -
      Gravity in this world.
      -
      -
      -
      -
      - - - val - bodies : scala.collection.mutable.ArrayBuffer[Body] -
      -
      -
      -
      Bodies contained in this world.
      -
      -
      -
      -
      - - - val - joints : scala.collection.mutable.ArrayBuffer[Joint] -
      -
      -
      -
      Joints contained in this world.
      -
      -
      -
      -
      - - - val - monitors : scala.collection.mutable.ArrayBuffer[(java.lang.String, (Body) => java.lang.String)] -
      -
      -
      -
      Monitoring methods for bodies. -

      - The first element of the tuple is the method's title and the second the method. - Example usage: monitors += ("Y-Position", _.pos.y.toString) - This will calculate all bodies - whose monitor field is set to - true - second position components.

      -
      -
      -
      -
      - - - val - detector : Detector -
      -
      -
      -
      Collsion detector who manages collision detection in this world.
      -
      -
      -
      -
      - - - var - overCWarning : Boolean -
      -
      -
      -
      Warning if a body's velocity exceeds the speed of light.
      -
      -
      -
      -
      - - - var - enableCollisionDetection : Boolean -
      -
      -
      -
      Flag to enable collision detection.
      -
      -
      -
      -
      - - - var - enablePositionCorrection : Boolean -
      -
      -
      -
      Flag to enable position correction for constraints.
      -
      -
      -
      -
      - - - var - minLinearVelocity : Double -
      -
      -
      -
      Minimal, non-zero linear velocity.
      -
      -
      -
      -
      - - - var - minAngularVelocity : Double -
      -
      -
      -
      Minimal, non-zero angular velocity.
      -
      -
      -
      -
      - - - var - time : Double -
      -
      -
      -
      Current time in this world.
      -
      -
      - - -
      Method Details
      -
      - - - def - shapes : scala.Seq[Shape] -
      -
      -
      -
      Returns all shapes of all bodies in this world.
      -
      -
      -
      -
      - - - def - +=(body : Body) : Unit -
      -
      -
      -
      Adds the given body to this world.
      -
      -
      -
      -
      - - - def - +=(joint : Joint) : Unit -
      -
      -
      -
      Adds the given joint to this world.
      -
      -
      -
      -
      - - - def - +=(p : Prefab) : Unit -
      -
      -
      -
      Adds the given prefabricated system of bodies and joints to this world.
      -
      -
      -
      -
      - - - def - ++=(bs : scala.Seq[Body]) : Unit -
      -
      -
      -
      Adds the given sequence of bodies to this world.
      -
      -
      -
      -
      - - - def - -=(body : Body) : Unit -
      -
      -
      -
      Removes the given body from this world.
      -
      -
      -
      -
      - - - def - -=(joint : Joint) : Unit -
      -
      -
      -
      Removes the given joint from this world.
      -
      -
      -
      -
      - - - def - -=(p : Prefab) : Unit -
      -
      -
      -
      Removes the given prefabricated system of bodies and joints from this world.
      -
      -
      -
      -
      - - - def - --=(bs : scala.Seq[Body]) : Unit -
      -
      -
      -
      Removes the given sequence of bodies from this world.
      -
      -
      -
      -
      - - - def - clear : Unit -
      -
      -
      -
      Removes all bodies, joints and monitoring methods from this world.
      -
      -
      -
      -
      - - - def - step : Unit -
      -
      -
      -
      Simulates a time step of the duration timeStep. -

      - The time step is simulated in the following phases: -

        -
      1. Forces are applied to bodies.
      2. -
      3. Accelerations are integrated.
      4. -
      5. Velocities are corrected.
      6. -
      7. Velocities are integrated.
      8. -
      9. Postions are corrected.
      10. -
      11. The method postStep() is executed.
      12. -
      -
      -
      -
      -
      - - - def - postStep : Unit -
      -
      -
      -
      Initially empty method that is executed after each time step. This method - may be overriden to create custom behaviour in a world.
      -
      -
      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + ++=(bs: Seq[Body]): Unit + +

        +

        Adds the given sequence of bodies to this world

        +

        Adds the given sequence of bodies to this world.

        + + + + +
        +
      2. +

        + def + + +=(p: Prefab): Unit + +

        +

        Adds the given prefabricated system of bodies and joints to this world

        +

        Adds the given prefabricated system of bodies and joints to this world.

        + + + + +
        +
      3. +

        + def + + +=(joint: Joint): Unit + +

        +

        Adds the given joint to this world

        +

        Adds the given joint to this world.

        + + + + +
        +
      4. +

        + def + + +=(body: Body): ArrayBuffer[Body] + +

        +

        Adds the given body to this world

        +

        Adds the given body to this world.

        + + + + +
        +
      5. +

        + def + + --=(bs: Seq[Body]): Unit + +

        +

        Removes the given sequence of bodies from this world

        +

        Removes the given sequence of bodies from this world.

        + + + + +
        +
      6. +

        + def + + -=(p: Prefab): Unit + +

        +

        Removes the given prefabricated system of bodies and joints from this world

        +

        Removes the given prefabricated system of bodies and joints from this world.

        + + + + +
        +
      7. +

        + def + + -=(joint: Joint): Unit + +

        +

        Removes the given joint from this world

        +

        Removes the given joint from this world.

        + + + + +
        +
      8. +

        + def + + -=(body: Body): Unit + +

        +

        Removes the given body from this world

        +

        Removes the given body from this world.

        + + + + +
        +
      9. +

        + val + + bodies: ArrayBuffer[Body] + +

        +

        Bodies contained in this world

        +

        Bodies contained in this world.

        + + + + +
        +
      10. +

        + def + + clear(): Unit + +

        +

        Removes all bodies, joints and monitoring methods from this world

        +

        Removes all bodies, joints and monitoring methods from this world.

        + + + + +
        +
      11. +

        + val + + detector: Detector + +

        +

        Collsion detector who manages collision detection in this world

        +

        Collsion detector who manages collision detection in this world.

        + + + + +
        +
      12. +

        + var + + enableCollisionDetection: Boolean + +

        +

        Flag to enable collision detection

        +

        Flag to enable collision detection.

        + + + + +
        +
      13. +

        + var + + enablePositionCorrection: Boolean + +

        +

        Flag to enable position correction for constraints

        +

        Flag to enable position correction for constraints.

        + + + + +
        +
      14. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      15. +

        + var + + gravity: Vector2D + +

        +

        Gravity in this world

        +

        Gravity in this world.

        + + + + +
        +
      16. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      17. +

        + def + + info: String + +

        +

        Returns information about this world

        +

        Returns information about this world.

        + + + + +
        +
      18. +

        + var + + iterations: Int + +

        +

        Number of constraint corrections per time step

        +

        Number of constraint corrections per time step.

        + + + + +
        +
      19. +

        + val + + joints: ArrayBuffer[Joint] + +

        +

        Joints contained in this world

        +

        Joints contained in this world.

        + + + + +
        +
      20. +

        + var + + minAngularVelocity: Double + +

        +

        Minimal, non-zero angular velocity

        +

        Minimal, non-zero angular velocity.

        + + + + +
        +
      21. +

        + var + + minLinearVelocity: Double + +

        +

        Minimal, non-zero linear velocity

        +

        Minimal, non-zero linear velocity.

        + + + + +
        +
      22. +

        + val + + monitors: ArrayBuffer[(String, (Body) ⇒ Any)] + +

        +

        Monitoring methods for bodies

        +

        Monitoring methods for bodies. +

        +The first element of the tuple is the method's title and the second the method. +Example usage: monitors += ("Y-Position", _.pos.y.toString) +This will calculate all bodies - whose monitor field is set to +true - second position components.

        + + + + +
        +
      23. +

        + var + + overCWarning: Boolean + +

        +

        Warning if a body's velocity exceeds the speed of light

        +

        Warning if a body's velocity exceeds the speed of light.

        + + + + +
        +
      24. +

        + def + + postStep(): Unit + +

        +

        Initially empty method that is executed after each time step

        +

        Initially empty method that is executed after each time step. This method +may be overriden to create custom behaviour in a world.

        + + + + +
        +
      25. +

        + def + + shapes: ArrayBuffer[Shape] + +

        +

        Returns all shapes of all bodies in this world

        +

        Returns all shapes of all bodies in this world.

        + + + + +
        +
      26. +

        + def + + step(): Unit + +

        +

        Simulates a time step of the duration timeStep

        +

        Simulates a time step of the duration timeStep. +

        +The time step is simulated in the following phases: +

          +
        1. Forces are applied to bodies.
        2. +
        3. Accelerations are integrated.
        4. +
        5. Velocities are corrected.
        6. +
        7. Velocities are integrated.
        8. +
        9. Postions are corrected.
        10. +
        11. The method postStep() is executed.
        12. +

        + + + + +
        +
      27. +

        + var + + time: Double + +

        +

        Current time in this world

        +

        Current time in this world.

        + + + + +
        +
      28. +

        + var + + timeStep: Double + +

        +

        Time intervals in which this world simulates

        +

        Time intervals in which this world simulates.

        + + + + +
        +
      29. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + World() + +

        + +
      +
      - - def - info : java.lang.String - -
      - -
      Returns information about this world.
      -
      -
      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints$content.html b/doc/sims/dynamics/joints$content.html deleted file mode 100644 index 141c3e3..0000000 --- a/doc/sims/dynamics/joints$content.html +++ /dev/null @@ -1,103 +0,0 @@ - - - All classes and objects in sims.dynamics.joints - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - - - - - - - - - - - - - -
      Class Summary
      - case class - - DistanceJoint - (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) extends Joint with scala.Product - -
      DistanceJoints keep their connection points at a constant distance.
      -
      - trait - - ForceJoint - extends AnyRef - -
      A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system.
      -
      - abstract class - - Joint - extends Constraint with AnyRef - -
      Joints constrain the movement of two bodies. - Their implementation was inspired by Erin Catto's box2d.
      -
      - case class - - RevoluteJoint - (val node1 : Body, val node2 : Body, val anchor : Vector2D) extends Joint with scala.Product - -
      A revolute joint that connects two bodies at a singe point. Inspired from JBox2D. - Warning: there are still several bugs with revolute joints, if they are between two free - bodies and not connected at their respective COMs.
      -
      - case class - - SpringJoint - (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D, val springConstant : Double, val initialLength : Double) extends Joint with ForceJoint with scala.Product - -
      A spring obeying Hooke's law.
      -
      - - - - - - - - - - - - - - -
      Object Summary
      - object - - DistanceJoint - extends (Body, Vector2D, Body, Vector2D) => DistanceJoint - - -
      - object - - RevoluteJoint - extends (Body, Body, Vector2D) => RevoluteJoint - - -
      - object - - SpringJoint - extends (Body, Vector2D, Body, Vector2D, Double, Double) => SpringJoint - - -
      - \ No newline at end of file diff --git a/doc/sims/dynamics/joints$package.html b/doc/sims/dynamics/joints$package.html deleted file mode 100644 index dde0590..0000000 --- a/doc/sims/dynamics/joints$package.html +++ /dev/null @@ -1,22 +0,0 @@ - - - List of classes and objects in package sims.dynamics.joints - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/DistanceJoint$object.html b/doc/sims/dynamics/joints/DistanceJoint$object.html deleted file mode 100644 index e4121b3..0000000 --- a/doc/sims/dynamics/joints/DistanceJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object DistanceJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - object DistanceJoint -

      -
      -
      -
      - - - object - DistanceJoint -
      -
      extends (Body, Vector2D, Body, Vector2D) => DistanceJoint
      -
      - - - - - - -
      - Methods inherited from scala.Function4 -
      - scala.Function4.toString, scala.Function4.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/DistanceJoint.html b/doc/sims/dynamics/joints/DistanceJoint.html index bae5f5d..27e4e5c 100644 --- a/doc/sims/dynamics/joints/DistanceJoint.html +++ b/doc/sims/dynamics/joints/DistanceJoint.html @@ -1,481 +1,359 @@ - + + - class DistanceJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - class DistanceJoint -

      -
      -
      -
      - - case - class - DistanceJoint(val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) -
      -
      extends Joint with scala.Product
      -
      -
      DistanceJoints keep their connection points at a constant distance.
      -
      - Parameters
      node1 - first associated body
      anchor1 - first connection point
      node2 - second associated body
      anchor2 - second connection point
      + + Scaladoc for sims.dynamics.joints.DistanceJoint + + + + + - - - - - - -
      Additional Constructor Summary
      - def - - this - (node1 : Body, node2 : Body) : DistanceJoint - - -
      - - - - - - - -
      Value Summary
      - val - - distance - : Double - -
      Distance between the two connection points at initialisation (the desired distance).
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - connection1 - : Vector2D - -
      Returns the connection point on body one (in world coordinates).
      -
      - def - - connection2 - : Vector2D - -
      Returns the connection point on body two (in world coordinates).
      -
      - override def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - override def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - v - : Vector2D - -
      Relative velocity of the connection points.
      -
      - def - - x - : Vector2D - -
      Relative position of the connection points.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - -
      Additional Constructor Details
      -
      - - - def - this(node1 : Body, node2 : Body) : DistanceJoint -
      -
      -

      - - - -
      Value Details
      -
      - - - val - distance : Double -
      -
      -
      -
      Distance between the two connection points at initialisation (the desired distance).
      -
      -
      - - -
      Method Details
      -
      - - - def - connection1 : Vector2D -
      -
      -
      -
      Returns the connection point on body one (in world coordinates).
      -
      -
      -
      -
      - - - def - connection2 : Vector2D -
      -
      -
      -
      Returns the connection point on body two (in world coordinates).
      -
      -
      -
      -
      - - - def - x : Vector2D -
      -
      -
      -
      Relative position of the connection points.
      -
      -
      -
      -
      - - - def - v : Vector2D -
      -
      -
      -
      Relative velocity of the connection points.
      -
      -
      -
      -
      - - override - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctVelocity -
      -

      -
      -
      - - override - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctPosition -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      - - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      + + + +

      sims.dynamics.joints

      +
      + +

      DistanceJoint

      +
      -
      - - - - - - - - +

      + class + + DistanceJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) extends Joint with Product + +

      +
      +

      DistanceJoints keep their connection points at a constant distance.

      +
      node1

      first associated body

      anchor1

      first connection point

      node2

      second associated body

      anchor2

      second connection point

      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Joint
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + anchor1: Vector2D + +

        + +
      2. +

        + val + + anchor2: Vector2D + +

        + +
      3. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      4. +

        + def + + connection1: Vector2D + +

        +

        Returns the connection point on body one (in world coordinates)

        +

        Returns the connection point on body one (in world coordinates).

        + + + + +
        +
      5. +

        + def + + connection2: Vector2D + +

        +

        Returns the connection point on body two (in world coordinates)

        +

        Returns the connection point on body two (in world coordinates).

        + + + + +
        +
      6. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      7. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      8. +

        + val + + distance: Double + +

        +

        Distance between the two connection points at initialisation (the desired distance)

        +

        Distance between the two connection points at initialisation (the desired distance).

        + + + + +
        +
      9. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      10. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      11. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + + + + +
        +
      12. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + + + + +
        +
      13. +

        + def + + productArity: Int + +

        + +
      14. +

        + def + + productElement(arg0: Int): Any + +

        + +
      15. +

        + def + + productElements: Iterator[Any] + +

        + +
      16. +

        + def + + productIterator: Iterator[Any] + +

        + +
      17. +

        + def + + productPrefix: String + +

        + +
      18. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      19. +

        + def + + v: Vector2D + +

        +

        Relative velocity of the connection points

        +

        Relative velocity of the connection points.

        + + + + +
        +
      20. +

        + def + + x: Vector2D + +

        +

        Relative position of the connection points

        +

        Relative position of the connection points.

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + DistanceJoint(node1: Body, node2: Body) + +

        + +
      2. +

        + new + + DistanceJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) + +

        + +
      3. +

        + new + + DistanceJoint() + +

        + +
      +
      + +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/ForceJoint.html b/doc/sims/dynamics/joints/ForceJoint.html index 58215b4..76bfe45 100644 --- a/doc/sims/dynamics/joints/ForceJoint.html +++ b/doc/sims/dynamics/joints/ForceJoint.html @@ -1,107 +1,166 @@ - + + - trait ForceJoint in sims.dynamics.joints - + + Scaladoc for sims.dynamics.joints.ForceJoint + + + + + + - - - - - - - - - -
      - sims.dynamics.joints -

      - trait ForceJoint -

      -
      -
      -
      - - - trait - ForceJoint -
      -
      extends AnyRef
      -
      -
      A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system.
      -
      -
      -
      Direct Known Subclasses:
      -
      SpringJoint
      -

      + +

      sims.dynamics.joints

      +
      + +

      ForceJoint

      +
      - - - - - - -
      Method Summary
      - abstract def - - applyForce - : Unit +

      + trait + + ForceJoint extends AnyRef + +

      +
      +

      A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system.

      + + + +
      + known subclasses: SpringJoint +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      -
      Applies a force on the achor bodies.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - + + +
      +

      Value Members

      +
      1. +

        + def + + applyForce(): Unit + +

        +

        Applies a force on the achor bodies

        +

        Applies a force on the achor bodies.

        - - - - -
        Method Details
        -
        +
        + attributes: abstract +
        + + +
        +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      - abstract - def - applyForce : Unit - -
      - -
      Applies a force on the achor bodies.
      -
      -
      - - -
      - - - - - - - - + + + + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/Joint.html b/doc/sims/dynamics/joints/Joint.html index 0e6908f..4874434 100644 --- a/doc/sims/dynamics/joints/Joint.html +++ b/doc/sims/dynamics/joints/Joint.html @@ -1,194 +1,228 @@ - + + - class Joint in sims.dynamics.joints - + + Scaladoc for sims.dynamics.joints.Joint + + + + + + - - - - - - - - - -
      - sims.dynamics.joints -

      - class Joint -

      -
      -
      -
      - - abstract - class - Joint -
      -
      extends Constraint with AnyRef
      -
      -
      Joints constrain the movement of two bodies. - Their implementation was inspired by Erin Catto's box2d.
      -
      -
      -
      Direct Known Subclasses:
      -
      DistanceJoint, RevoluteJoint, SpringJoint, PrismaticJoint, UnitCircleJoint
      -

      + +

      sims.dynamics.joints

      - - - - - - - - - - -
      Value Summary
      - abstract val - - node1 - : Body - -
      First body of the joint.
      -
      - abstract val - - node2 - : Body - -
      Second body of the joint.
      -
      - - - - - - - - - - -
      Method Summary
      - abstract def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - abstract def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Joint

      +
      +

      + class + + Joint extends Constraint + +

      +
      +

      Joints constrain the movement of two bodies. +Their implementation was inspired by Erin Catto's box2d.

      - - - -
      Value Details
      -
      +
      + attributes: abstract +
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Constraint
      2. AnyRef
      3. Any
      +
      +
      + - abstract - val - node1 : Body - -
      - -
      First body of the joint.
      -
      -
      -
      -
      - abstract - val - node2 : Body -
      -
      -
      -
      Second body of the joint.
      -
      -
      - - -
      Method Details
      -
      +
      +

      Value Members

      +
      1. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + +
        + attributes: abstract +
        + + +
        +
      2. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + +
        + attributes: abstract +
        + + +
        +
      3. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + +
        + attributes: abstract +
        + + +
        +
      6. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + +
        + attributes: abstract +
        + + +
        +
      7. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      - abstract - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Constraint.correctVelocity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Joint() + +

        + +
      +
      - abstract - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Constraint.correctPosition -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/RevoluteJoint$object.html b/doc/sims/dynamics/joints/RevoluteJoint$object.html deleted file mode 100644 index c8a5d71..0000000 --- a/doc/sims/dynamics/joints/RevoluteJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object RevoluteJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - object RevoluteJoint -

      -
      -
      -
      - - - object - RevoluteJoint -
      -
      extends (Body, Body, Vector2D) => RevoluteJoint
      -
      - - - - - - -
      - Methods inherited from scala.Function3 -
      - scala.Function3.toString, scala.Function3.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/RevoluteJoint.html b/doc/sims/dynamics/joints/RevoluteJoint.html index 5184b29..921025a 100644 --- a/doc/sims/dynamics/joints/RevoluteJoint.html +++ b/doc/sims/dynamics/joints/RevoluteJoint.html @@ -1,421 +1,307 @@ - + + - class RevoluteJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - class RevoluteJoint -

      -
      -
      -
      - - case - class - RevoluteJoint(val node1 : Body, val node2 : Body, val anchor : Vector2D) -
      -
      extends Joint with scala.Product
      -
      -
      A revolute joint that connects two bodies at a singe point. Inspired from JBox2D. - Warning: there are still several bugs with revolute joints, if they are between two free - bodies and not connected at their respective COMs.
      -
      + + Scaladoc for sims.dynamics.joints.RevoluteJoint + + + + + + + +

      sims.dynamics.joints

      +
      + +

      RevoluteJoint

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - connection1 - : Vector2D - - -
      - def - - connection2 - : Vector2D - - -
      - def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - v - : Vector2D - - -
      - def - - x - : Vector2D - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + RevoluteJoint(node1: Body, node2: Body, anchor: Vector2D) extends Joint with Product + +

      +
      +

      A revolute joint that connects two bodies at a singe point. Inspired from JBox2D. +Warning: there are still several bugs with revolute joints, if they are between two free +bodies and not connected at their respective COMs.

      - - - - -
      Method Details
      -
      - - - def - connection1 : Vector2D -
      -
      -

      -
      -
      - - - def - connection2 : Vector2D -
      -
      -

      -
      -
      - - - def - x : Vector2D -
      -
      -

      -
      -
      - - - def - v : Vector2D -
      -
      -

      -
      -
      - - - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctVelocity -
      -

      -
      -
      - - - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctPosition -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Joint
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + anchor: Vector2D + +

        + +
      2. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      3. +

        + def + + connection1: Vector2D + +

        + +
      4. +

        + def + + connection2: Vector2D + +

        + +
      5. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      6. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      7. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      8. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      9. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + + + + +
        +
      10. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + + + + +
        +
      11. +

        + def + + productArity: Int + +

        + +
      12. +

        + def + + productElement(arg0: Int): Any + +

        + +
      13. +

        + def + + productElements: Iterator[Any] + +

        + +
      14. +

        + def + + productIterator: Iterator[Any] + +

        + +
      15. +

        + def + + productPrefix: String + +

        + +
      16. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      17. +

        + def + + v: Vector2D + +

        + +
      18. +

        + def + + x: Vector2D + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + RevoluteJoint(node1: Body, node2: Body, anchor: Vector2D) + +

        + +
      2. +

        + new + + RevoluteJoint() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/SpringJoint$object.html b/doc/sims/dynamics/joints/SpringJoint$object.html deleted file mode 100644 index 7730d19..0000000 --- a/doc/sims/dynamics/joints/SpringJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object SpringJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - object SpringJoint -

      -
      -
      -
      - - - object - SpringJoint -
      -
      extends (Body, Vector2D, Body, Vector2D, Double, Double) => SpringJoint
      -
      - - - - - - -
      - Methods inherited from scala.Function6 -
      - scala.Function6.toString, scala.Function6.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/SpringJoint.html b/doc/sims/dynamics/joints/SpringJoint.html index 4819b16..699f2e0 100644 --- a/doc/sims/dynamics/joints/SpringJoint.html +++ b/doc/sims/dynamics/joints/SpringJoint.html @@ -1,574 +1,419 @@ - + + - class SpringJoint in sims.dynamics.joints - - - - - - - - - - - -
      - sims.dynamics.joints -

      - class SpringJoint -

      -
      -
      -
      - - case - class - SpringJoint(val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D, val springConstant : Double, val initialLength : Double) -
      -
      extends Joint with ForceJoint with scala.Product
      -
      -
      A spring obeying Hooke's law.
      -
      - Parameters
      node1 - first associated body
      anchor1 - first connection point
      node2 - second associated body
      anchor2 - second connection point
      springConstant - spring constant
      initialLength - initial length
      + + Scaladoc for sims.dynamics.joints.SpringJoint + + + + + - - - - - - - - - - - - - - -
      Additional Constructor Summary
      - def - - this - (node1 : Body, node2 : Body, springConstant : Double, initialLength : Double) : SpringJoint - - -
      - def - - this - (node1 : Body, anchor1 : Vector2D, node2 : Body, anchor2 : Vector2D, springConstant : Double) : SpringJoint - - -
      - def - - this - (node1 : Body, node2 : Body, springConstant : Double) : SpringJoint - - -
      - - - - - - - -
      Value Summary
      - var - - damping - : Double - -
      Damping.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - applyForce - : Unit - -
      Applies the spring force to the connection points.
      -
      - def - - connection1 - : Vector2D - -
      Returns the connection point on body one (in world coordinates).
      -
      - def - - connection2 - : Vector2D - -
      Returns the connection point on body two (in world coordinates).
      -
      - def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - def - - force - : Double - -
      Returns the spring force.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - v - : Vector2D - -
      Relative velocity of the connection points.
      -
      - def - - x - : Vector2D - -
      Relative position of the connection points.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - -
      Additional Constructor Details
      -
      - - - def - this(node1 : Body, anchor1 : Vector2D, node2 : Body, anchor2 : Vector2D, springConstant : Double) : SpringJoint -
      -
      -

      -
      -
      - - - def - this(node1 : Body, node2 : Body, springConstant : Double, initialLength : Double) : SpringJoint -
      -
      -

      -
      -
      - - - def - this(node1 : Body, node2 : Body, springConstant : Double) : SpringJoint -
      -
      -

      - - - -
      Value Details
      -
      - - - var - damping : Double -
      -
      -
      -
      Damping.
      -
      -
      - - -
      Method Details
      -
      - - - def - connection1 : Vector2D -
      -
      -
      -
      Returns the connection point on body one (in world coordinates).
      -
      -
      -
      -
      - - - def - connection2 : Vector2D -
      -
      -
      -
      Returns the connection point on body two (in world coordinates).
      -
      -
      -
      -
      - - - def - x : Vector2D -
      -
      -
      -
      Relative position of the connection points.
      -
      -
      -
      -
      - - - def - v : Vector2D -
      -
      -
      -
      Relative velocity of the connection points.
      -
      -
      -
      -
      - - - def - force : Double -
      -
      -
      -
      Returns the spring force.
      -
      -
      -
      -
      - - - def - applyForce : Unit -
      -
      -
      -
      Applies the spring force to the connection points.
      -
      -
      -
      - Overrides -
      -
      - ForceJoint.applyForce -
      -

      -
      -
      - - - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctVelocity -
      -

      -
      -
      - - - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctPosition -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      - - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      + + + +

      sims.dynamics.joints

      +
      + +

      SpringJoint

      +
      -
      - - - - - - - - +

      + class + + SpringJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D, springConstant: Double, initialLength: Double) extends Joint with ForceJoint with Product + +

      +
      +

      A spring obeying Hooke's law.

      +
      node1

      first associated body

      anchor1

      first connection point

      node2

      second associated body

      anchor2

      second connection point

      springConstant

      spring constant

      initialLength

      initial length

      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. ForceJoint
      4. Joint
      5. Constraint
      6. AnyRef
      7. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + anchor1: Vector2D + +

        + +
      2. +

        + val + + anchor2: Vector2D + +

        + +
      3. +

        + def + + applyForce(): Unit + +

        +

        Applies the spring force to the connection points

        +

        Applies the spring force to the connection points.

        + + + + +
        +
      4. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      5. +

        + def + + connection1: Vector2D + +

        +

        Returns the connection point on body one (in world coordinates)

        +

        Returns the connection point on body one (in world coordinates).

        + + + + +
        +
      6. +

        + def + + connection2: Vector2D + +

        +

        Returns the connection point on body two (in world coordinates)

        +

        Returns the connection point on body two (in world coordinates).

        + + + + +
        +
      7. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      8. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      9. +

        + var + + damping: Double + +

        +

        Damping

        +

        Damping.

        + + + + +
        +
      10. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      11. +

        + def + + force: Double + +

        +

        Returns the spring force

        +

        Returns the spring force.

        + + + + +
        +
      12. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      13. +

        + val + + initialLength: Double + +

        + +
      14. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + + + + +
        +
      15. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + + + + +
        +
      16. +

        + def + + productArity: Int + +

        + +
      17. +

        + def + + productElement(arg0: Int): Any + +

        + +
      18. +

        + def + + productElements: Iterator[Any] + +

        + +
      19. +

        + def + + productIterator: Iterator[Any] + +

        + +
      20. +

        + def + + productPrefix: String + +

        + +
      21. +

        + val + + springConstant: Double + +

        + +
      22. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      23. +

        + def + + v: Vector2D + +

        +

        Relative velocity of the connection points

        +

        Relative velocity of the connection points.

        + + + + +
        +
      24. +

        + def + + x: Vector2D + +

        +

        Relative position of the connection points

        +

        Relative position of the connection points.

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + SpringJoint(node1: Body, node2: Body, springConstant: Double) + +

        + +
      2. +

        + new + + SpringJoint(node1: Body, node2: Body, springConstant: Double, initialLength: Double) + +

        + +
      3. +

        + new + + SpringJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D, springConstant: Double) + +

        + +
      4. +

        + new + + SpringJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D, springConstant: Double, initialLength: Double) + +

        + +
      5. +

        + new + + SpringJoint() + +

        + +
      +
      + +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/package.html b/doc/sims/dynamics/joints/package.html new file mode 100644 index 0000000..bd320c3 --- /dev/null +++ b/doc/sims/dynamics/joints/package.html @@ -0,0 +1,105 @@ + + + + + Scaladoc for sims.dynamics.joints + + + + + + + + + +

      sims.dynamics

      + +
      + +

      joints

      +
      + +

      + package + + joints + +

      +
      + + + + + +
      + +
      + + + +
      +

      Type Members

      +
      1. +

        + class + + DistanceJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) extends Joint with Product + +

        +

        DistanceJoints keep their connection points at a constant distance

        +
      2. +

        + trait + + ForceJoint extends AnyRef + +

        +

        A joint which can apply a force to its anchor bodies, thus adding or removing energy to the system

        +
      3. +

        + class + + Joint extends Constraint + +

        +

        Joints constrain the movement of two bodies

        +
      4. +

        + class + + RevoluteJoint(node1: Body, node2: Body, anchor: Vector2D) extends Joint with Product + +

        +

        A revolute joint that connects two bodies at a singe point

        +
      5. +

        + class + + SpringJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D, springConstant: Double, initialLength: Double) extends Joint with ForceJoint with Product + +

        +

        A spring obeying Hooke's law

        +
      +
      + +
      +

      Value Members

      +
      1. +

        + package + + test + +

        + +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test$content.html b/doc/sims/dynamics/joints/test$content.html deleted file mode 100644 index 6509725..0000000 --- a/doc/sims/dynamics/joints/test$content.html +++ /dev/null @@ -1,45 +0,0 @@ - - - All classes and objects in sims.dynamics.joints.test - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - -
      Class Summary
      - case class - - PrismaticJoint - (val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) extends Joint with scala.Product - - -
      - class - - UnitCircleJoint - (body : Body, anchor : Vector2D) extends Joint - - -
      - - - - - - -
      Object Summary
      - object - - PrismaticJoint - extends (Body, Vector2D, Body, Vector2D) => PrismaticJoint - - -
      - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test$package.html b/doc/sims/dynamics/joints/test$package.html deleted file mode 100644 index b34f98d..0000000 --- a/doc/sims/dynamics/joints/test$package.html +++ /dev/null @@ -1,17 +0,0 @@ - - - List of classes and objects in package sims.dynamics.joints.test - - - - -
      Classes
      -
      Objects
      - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test/PrismaticJoint$object.html b/doc/sims/dynamics/joints/test/PrismaticJoint$object.html deleted file mode 100644 index e460df7..0000000 --- a/doc/sims/dynamics/joints/test/PrismaticJoint$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object PrismaticJoint in sims.dynamics.joints.test - - - - - - - - - - - -
      - sims.dynamics.joints.test -

      - object PrismaticJoint -

      -
      -
      -
      - - - object - PrismaticJoint -
      -
      extends (Body, Vector2D, Body, Vector2D) => PrismaticJoint
      -
      - - - - - - -
      - Methods inherited from scala.Function4 -
      - scala.Function4.toString, scala.Function4.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test/PrismaticJoint.html b/doc/sims/dynamics/joints/test/PrismaticJoint.html index a5c5a94..2883427 100644 --- a/doc/sims/dynamics/joints/test/PrismaticJoint.html +++ b/doc/sims/dynamics/joints/test/PrismaticJoint.html @@ -1,502 +1,345 @@ - + + - class PrismaticJoint in sims.dynamics.joints.test - + + Scaladoc for sims.dynamics.joints.test.PrismaticJoint + + + + + + - - - - - - - - - -
      - sims.dynamics.joints.test -

      - class PrismaticJoint -

      -
      -
      -
      - - case - class - PrismaticJoint(val node1 : Body, val anchor1 : Vector2D, val node2 : Body, val anchor2 : Vector2D) -
      -
      extends Joint with scala.Product
      -
      - - - - - - -
      Additional Constructor Summary
      - def - - this - (node1 : Body, node2 : Body) : PrismaticJoint - - -
      - - - - - - - -
      Value Summary
      - val - - angle - : Double - - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - connection1 - : Vector2D - - -
      - def - - connection2 - : Vector2D - - -
      - def - - correctAngular - (h : Double) : Unit - - -
      - def - - correctLinear - (h : Double) : Unit - - -
      - def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - v - : Vector2D - - -
      - def - - x - : Vector2D - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - -
      Additional Constructor Details
      -
      - - - def - this(node1 : Body, node2 : Body) : PrismaticJoint -
      -
      -

      - - - -
      Value Details
      -
      - - - val - angle : Double -
      -
      -

      - - -
      Method Details
      -
      - - - def - connection1 : Vector2D -
      -
      -

      -
      -
      - - - def - connection2 : Vector2D -
      -
      -

      -
      -
      - - - def - x : Vector2D -
      -
      -

      -
      -
      - - - def - v : Vector2D -
      -
      -

      -
      -
      - - - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctVelocity -
      -

      -
      -
      - - - def - correctLinear(h : Double) : Unit -
      -
      -

      -
      -
      - - - def - correctAngular(h : Double) : Unit -
      -
      -

      -
      -
      - - - def - correctPosition(h : Double) : Unit -
      -
      -
      -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctPosition -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      - - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      + + +

      sims.dynamics.joints.test

      +
      + +

      PrismaticJoint

      +
      -
      - - - - - - - - +

      + class + + PrismaticJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) extends Joint with Product + +

      +
      + + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. Joint
      4. Constraint
      5. AnyRef
      6. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + anchor1: Vector2D + +

        + +
      2. +

        + val + + anchor2: Vector2D + +

        + +
      3. +

        + val + + angle: Double + +

        + +
      4. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      5. +

        + def + + connection1: Vector2D + +

        + +
      6. +

        + def + + connection2: Vector2D + +

        + +
      7. +

        + def + + correctAngular(h: Double): Unit + +

        + +
      8. +

        + def + + correctLinear(h: Double): Unit + +

        + +
      9. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      10. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      11. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      12. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      13. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + + + + +
        +
      14. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + + + + +
        +
      15. +

        + def + + productArity: Int + +

        + +
      16. +

        + def + + productElement(arg0: Int): Any + +

        + +
      17. +

        + def + + productElements: Iterator[Any] + +

        + +
      18. +

        + def + + productIterator: Iterator[Any] + +

        + +
      19. +

        + def + + productPrefix: String + +

        + +
      20. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      21. +

        + def + + v: Vector2D + +

        + +
      22. +

        + def + + x: Vector2D + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + PrismaticJoint(node1: Body, node2: Body) + +

        + +
      2. +

        + new + + PrismaticJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) + +

        + +
      3. +

        + new + + PrismaticJoint() + +

        + +
      +
      + +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test/UnitCircleJoint.html b/doc/sims/dynamics/joints/test/UnitCircleJoint.html index b580f30..d8291c4 100644 --- a/doc/sims/dynamics/joints/test/UnitCircleJoint.html +++ b/doc/sims/dynamics/joints/test/UnitCircleJoint.html @@ -1,261 +1,247 @@ - + + - class UnitCircleJoint in sims.dynamics.joints.test - + + Scaladoc for sims.dynamics.joints.test.UnitCircleJoint + + + + + + - - - - - - - - - -
      - sims.dynamics.joints.test -

      - class UnitCircleJoint -

      -
      -
      -
      - - - class - UnitCircleJoint(body : Body, anchor : Vector2D) -
      -
      extends Joint
      -
      + +

      sims.dynamics.joints.test

      - - - - - - - - - - -
      Value Summary
      - val - - node1 - : Body - -
      First body of the joint.
      -
      - val - - node2 - : Body - -
      Second body of the joint.
      -
      - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - connection - : Vector2D - - -
      - def - - correctPosition - (h : Double) : Unit - -
      Corrects the positions of this joint's associated bodies.
      -
      - def - - correctVelocity - (h : Double) : Unit - -
      Corrects the velocities of this joint's associated bodies.
      -
      - def - - v - : Vector2D - - -
      - def - - x - : Vector2D - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      UnitCircleJoint

      +
      +

      + class + + UnitCircleJoint extends Joint + +

      +
      - - - -
      Value Details
      -
      - - - val - node1 : Body -
      -
      -
      -
      First body of the joint.
      -
      -
      -
      - Overrides -
      -
      - Joint.node1 -
      -

      -
      -
      - - - val - node2 : Body -
      -
      -
      -
      Second body of the joint.
      -
      -
      -
      - Overrides -
      -
      - Joint.node2 -
      -

      - - -
      Method Details
      -
      - - - def - connection : Vector2D -
      -
      -

      -
      -
      - - - def - x : Vector2D -
      -
      -

      -
      -
      - - - def - v : Vector2D -
      -
      -

      -
      -
      - - - def - correctVelocity(h : Double) : Unit -
      -
      -
      -
      Corrects the velocities of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctVelocity -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Joint
      2. Constraint
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + connection: Vector2D + +

        + +
      2. +

        + def + + correctPosition(h: Double): Unit + +

        +

        Corrects the positions of this joint's associated bodies

        +

        Corrects the positions of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      3. +

        + def + + correctVelocity(h: Double): Unit + +

        +

        Corrects the velocities of this joint's associated bodies

        +

        Corrects the velocities of this joint's associated bodies.@param h a time interval, used for converting forces and impulses

        + + + + +
        +
      4. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      6. +

        + val + + node1: Body + +

        +

        First body of the joint

        +

        First body of the joint.

        + + + + +
        +
      7. +

        + val + + node2: Body + +

        +

        Second body of the joint

        +

        Second body of the joint.

        + + + + +
        +
      8. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      9. +

        + def + + v: Vector2D + +

        + +
      10. +

        + def + + x: Vector2D + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + UnitCircleJoint(body: Body, anchor: Vector2D) + +

        + +
      2. +

        + new + + UnitCircleJoint() + +

        + +
      +
      - - def - correctPosition(h : Double) : Unit - -
      - -
      Corrects the positions of this joint's associated bodies.
      -
      -
      -
      - Overrides -
      -
      - Joint.correctPosition -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/dynamics/joints/test/package.html b/doc/sims/dynamics/joints/test/package.html new file mode 100644 index 0000000..43414db --- /dev/null +++ b/doc/sims/dynamics/joints/test/package.html @@ -0,0 +1,70 @@ + + + + + Scaladoc for sims.dynamics.joints.test + + + + + + + + + +

      sims.dynamics.joints

      + +
      + +

      test

      +
      + +

      + package + + test + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/dynamics/package.html b/doc/sims/dynamics/package.html new file mode 100644 index 0000000..f9e3a86 --- /dev/null +++ b/doc/sims/dynamics/package.html @@ -0,0 +1,137 @@ + + + + + Scaladoc for sims.dynamics + + + + + + + + + +

      sims

      + +
      + +

      dynamics

      +
      + +

      + package + + dynamics + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/geometry$content.html b/doc/sims/geometry$content.html deleted file mode 100644 index d5e1e86..0000000 --- a/doc/sims/geometry$content.html +++ /dev/null @@ -1,111 +0,0 @@ - - - All classes and objects in sims.geometry - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - - - - - - - - - - - - - -
      Class Summary
      - trait - - ConvexPolygon - extends AnyRef - -
      Common properties of all convex polygons.
      -
      - case class - - Projection - (val axis : Vector2D, val lower : Double, val upper : Double) extends scala.Product - -
      Projection on an axis.
      -
      - case class - - Ray - (val point : Vector2D, val direction : Vector2D) extends scala.Product - -
      A ray.
      -
      - case class - - Segment - (val vertex1 : Vector2D, val vertex2 : Vector2D) extends scala.Product - -
      A segment is given by its vertices.
      -
      - case class - - Vector2D - (val x : Double, val y : Double) extends scala.Product - -
      A 2D vector.
      -
      - - - - - - - - - - - - - - - - - - -
      Object Summary
      - object - - Projection - extends (Vector2D, Double, Double) => Projection - - -
      - object - - Ray - extends (Vector2D, Vector2D) => Ray - - -
      - object - - Segment - extends (Vector2D, Vector2D) => Segment - - -
      - object - - Vector2D - extends AnyRef - -
      Contains special vectors.
      -
      - \ No newline at end of file diff --git a/doc/sims/geometry$package.html b/doc/sims/geometry$package.html deleted file mode 100644 index c3a4d63..0000000 --- a/doc/sims/geometry$package.html +++ /dev/null @@ -1,23 +0,0 @@ - - - List of classes and objects in package sims.geometry - - - - - - \ No newline at end of file diff --git a/doc/sims/geometry/ConvexPolygon.html b/doc/sims/geometry/ConvexPolygon.html index 5db8789..e3cdc96 100644 --- a/doc/sims/geometry/ConvexPolygon.html +++ b/doc/sims/geometry/ConvexPolygon.html @@ -1,210 +1,228 @@ - + + - trait ConvexPolygon in sims.geometry - + + Scaladoc for sims.geometry.ConvexPolygon + + + + + + - - - - - - - - - -
      - sims.geometry -

      - trait ConvexPolygon -

      -
      -
      -
      - - - trait - ConvexPolygon -
      -
      extends AnyRef
      -
      -
      Common properties of all convex polygons.
      -
      -
      -
      Direct Known Subclasses:
      -
      Rectangle, RegularPolygon
      -

      + +

      sims.geometry

      +
      + +

      ConvexPolygon

      +
      - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - AABB - : AABB - -
      Returns this polygon's axis aligned bounding box.
      -
      - def - - contains - (point : Vector2D) : Boolean - -
      Checks if the point point is contained in this polygon.
      -
      - def - - project - (axis : Vector2D) : Projection +

      + trait + + ConvexPolygon extends AnyRef + +

      +
      +

      Common properties of all convex polygons.

      + + + +
      + known subclasses: RegularPolygon, Rectangle +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      -
      Returns the projection of this polygon onto the line given by the directional vector axis.
      -
      - def - - sides - : scala.Array[Segment] -
      Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side - giving the side index.
      -
      - abstract def - - vertices - : scala.Seq[Vector2D] -
      Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +
      +

      Value Members

      +
      1. +

        + def + + AABB: AABB + +

        +

        Returns this polygon's axis aligned bounding box

        +

        Returns this polygon's axis aligned bounding box.

        - - - - -
        Method Details
        -
        - - abstract - def - vertices : scala.Seq[Vector2D] -
        -
        -
        -
        Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.
        -
        - Returns
        position vectors of the vertices
        -
        -
        -
        - - - def - sides : scala.Array[Segment] -
        -
        -
        -
        Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side - giving the side index.
        -
        -
        -
        -
        + + + +
        +
      2. +

        + def + + contains(point: Vector2D): Boolean + +

        +

        Checks if the point point is contained in this polygon

        +

        Checks if the point point is contained in this polygon. +

        +A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). +The number of intersections between the ray and this polygon's sides (including vertices) is counted. +The amount of intersections with vertices is substracted form the previuos number. +If the latter number is odd, the point is contained in the polygon.

        + + + + +
        +
      3. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      5. +

        + def + + project(axis: Vector2D): Projection + +

        +

        Returns the projection of this polygon onto the line given by the directional vector axis

        +

        Returns the projection of this polygon onto the line given by the directional vector axis.

        +
        axis

        directional vector of the line

        returns

        projection of this polygon

        + + + +
        +
      6. +

        + def + + sides: Array[Segment] + +

        +

        Returns all sides of this polygon

        +

        Returns all sides of this polygon. The sides are ordered counter-clockwise, the first vertex of the side +giving the side index.

        + + + + +
        +
      7. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      8. +

        + def + + vertices: Seq[Vector2D] + +

        +

        Returns positions of all vertices of this Polygon

        +

        Returns positions of all vertices of this Polygon. Vertices are ordered counter-clockwise.

        + +
        + attributes: abstract +
        + + +
        +
      +
      - - def - project(axis : Vector2D) : Projection - -
      - -
      Returns the projection of this polygon onto the line given by the directional vector axis.
      -
      - Parameters
      axis - directional vector of the line
      - Returns
      projection of this polygon
      -
      -
      -
      - - def - AABB : AABB -
      -
      -
      -
      Returns this polygon's axis aligned bounding box.
      -
      - See Also
      collision.AABB
      -
      -
      -
      - - def - contains(point : Vector2D) : Boolean -
      -
      -
      -
      Checks if the point point is contained in this polygon. -

      - A ray is created, originating from the point and following an arbitrary direction (X-Axis was chosen). - The number of intersections between the ray and this polygon's sides (including vertices) is counted. - The amount of intersections with vertices is substracted form the previuos number. - If the latter number is odd, the point is contained in the polygon.

      -
      -
      - - -
      - - - - - - - - + + + \ No newline at end of file diff --git a/doc/sims/geometry/Projection$object.html b/doc/sims/geometry/Projection$object.html deleted file mode 100644 index 4b01917..0000000 --- a/doc/sims/geometry/Projection$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Projection in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - object Projection -

      -
      -
      -
      - - - object - Projection -
      -
      extends (Vector2D, Double, Double) => Projection
      -
      - - - - - - -
      - Methods inherited from scala.Function3 -
      - scala.Function3.toString, scala.Function3.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/geometry/Projection.html b/doc/sims/geometry/Projection.html index ad69275..7c180ac 100644 --- a/doc/sims/geometry/Projection.html +++ b/doc/sims/geometry/Projection.html @@ -1,330 +1,263 @@ - + + - class Projection in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - class Projection -

      -
      -
      -
      - - case - class - Projection(val axis : Vector2D, val lower : Double, val upper : Double) -
      -
      extends scala.Product
      -
      -
      Projection on an axis. -

      - Projections are commonly used in SiMS for collision detection.

      -
      - Parameters
      axis - directional vector of the axis of the projection
      lower - lower value of the projection
      upper - upper value of the projection
      + + Scaladoc for sims.geometry.Projection + + + + + + + +

      sims.geometry

      +
      + +

      Projection

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - overlap - (other : Projection) : Double - -
      Returns the overlap between this projection and another projection other.
      -
      - def - - overlaps - (other : Projection) : Boolean - -
      Checks this projection for overlap with another projection other.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + Projection(axis: Vector2D, lower: Double, upper: Double) extends Product + +

      +
      +

      Projection on an axis. +

      +Projections are commonly used in SiMS for collision detection.

      +
      axis

      directional vector of the axis of the projection

      lower

      lower value of the projection

      upper

      upper value of the projection

      - - - - -
      Method Details
      -
      - - - def - overlaps(other : Projection) : Boolean -
      -
      -
      -
      Checks this projection for overlap with another projection other.
      -
      - Throws
      IllegalArgumentExcepion - if both projections axes aren't the same
      -
      -
      -
      - - - def - overlap(other : Projection) : Double -
      -
      -
      -
      Returns the overlap between this projection and another projection other.
      -
      - Throws
      IllegalArgumentExcepion - if both projections axes aren't the same
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      - override - def - toString : java.lang.String - -
      - -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      +
      +

      Value Members

      +
      1. +

        + val + + axis: Vector2D + +

        + +
      2. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      3. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      4. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      5. +

        + val + + lower: Double + +

        + +
      6. +

        + def + + overlap(other: Projection): Double + +

        +

        Returns the overlap between this projection and another projection other

        +

        Returns the overlap between this projection and another projection other.

        + + + + +
        +
      7. +

        + def + + overlaps(other: Projection): Boolean + +

        +

        Checks this projection for overlap with another projection other

        +

        Checks this projection for overlap with another projection other.

        + + + + +
        +
      8. +

        + def + + productArity: Int + +

        + +
      9. +

        + def + + productElement(arg0: Int): Any + +

        + +
      10. +

        + def + + productElements: Iterator[Any] + +

        + +
      11. +

        + def + + productIterator: Iterator[Any] + +

        + +
      12. +

        + def + + productPrefix: String + +

        + +
      13. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      14. +

        + val + + upper: Double + +

        + +
      +
      - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Projection(axis: Vector2D, lower: Double, upper: Double) + +

        + +
      2. +

        + new + + Projection() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/geometry/Ray$object.html b/doc/sims/geometry/Ray$object.html deleted file mode 100644 index 199fc55..0000000 --- a/doc/sims/geometry/Ray$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Ray in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - object Ray -

      -
      - [source: sims/geometry/Ray.scala] -

      -
      -
      - - - object - Ray -
      -
      extends (Vector2D, Vector2D) => Ray
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/geometry/Ray.html b/doc/sims/geometry/Ray.html index 79288ce..d2a8ec8 100644 --- a/doc/sims/geometry/Ray.html +++ b/doc/sims/geometry/Ray.html @@ -1,328 +1,253 @@ - + + - class Ray in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - class Ray -

      -
      - [source: sims/geometry/Ray.scala] -

      -
      -
      - - case - class - Ray(val point : Vector2D, val direction : Vector2D) -
      -
      extends scala.Product
      -
      -
      A ray.
      -
      - Parameters
      point - a point on the ray
      direction - this ray's directional vector
      - Throws
      IllegalArgumentException - if the directional vector is the null vector
      + + Scaladoc for sims.geometry.Ray + + + + + + + +

      sims.geometry

      +
      + +

      Ray

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - contains - (p : Vector2D) : Boolean - -
      Checks if this ray contains the point p.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - intersects - (s : Segment) : Boolean - -
      Checks this ray and the given segment for intersection.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + Ray(point: Vector2D, direction: Vector2D) extends Product + +

      +
      +

      A ray.

      +
      point

      a point on the ray

      direction

      this ray's directional vector

      - - - - -
      Method Details
      -
      - - - def - intersects(s : Segment) : Boolean -
      -
      -
      -
      Checks this ray and the given segment for intersection.
      -
      - Parameters
      s - the segment to test for intersection
      -
      -
      -
      - - - def - contains(p : Vector2D) : Boolean -
      -
      -
      -
      Checks if this ray contains the point p.
      -
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      2. +

        + def + + contains(p: Vector2D): Boolean + +

        +

        Checks if this ray contains the point p

        +

        Checks if this ray contains the point p.

        + + + + +
        +
      3. +

        + val + + direction: Vector2D + +

        + +
      4. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      5. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      6. +

        + def + + intersects(s: Segment): Boolean + +

        +

        Checks this ray and the given segment for intersection

        +

        Checks this ray and the given segment for intersection.

        +
        s

        the segment to test for intersection

        + + + +
        +
      7. +

        + val + + point: Vector2D + +

        + +
      8. +

        + def + + productArity: Int + +

        + +
      9. +

        + def + + productElement(arg0: Int): Any + +

        + +
      10. +

        + def + + productElements: Iterator[Any] + +

        + +
      11. +

        + def + + productIterator: Iterator[Any] + +

        + +
      12. +

        + def + + productPrefix: String + +

        + +
      13. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Ray(point: Vector2D, direction: Vector2D) + +

        + +
      2. +

        + new + + Ray() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/geometry/Segment$object.html b/doc/sims/geometry/Segment$object.html deleted file mode 100644 index fae9e31..0000000 --- a/doc/sims/geometry/Segment$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Segment in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - object Segment -

      -
      -
      -
      - - - object - Segment -
      -
      extends (Vector2D, Vector2D) => Segment
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/geometry/Segment.html b/doc/sims/geometry/Segment.html index 084cfb6..2d79999 100644 --- a/doc/sims/geometry/Segment.html +++ b/doc/sims/geometry/Segment.html @@ -1,442 +1,317 @@ - + + - class Segment in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - class Segment -

      -
      -
      -
      - - case - class - Segment(val vertex1 : Vector2D, val vertex2 : Vector2D) -
      -
      extends scala.Product
      -
      -
      A segment is given by its vertices.
      -
      - Parameters
      vertex1 - position vector of the first vertex
      vertex2 - position vector of the second vertex
      - Throws
      IllegalArgumentException - if both vertices are equal
      + + Scaladoc for sims.geometry.Segment + + + + + + + +

      sims.geometry

      - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - d - : Vector2D - -
      Vector from vertex1 to vertex2.
      -
      - val - - d0 - : Vector2D - -
      Unit directional vector.
      -
      - val - - length - : Double - -
      Length of this segment.
      -
      - val - - n - : Vector2D - -
      Right normal vector.
      -
      - val - - n0 - : Vector2D - -
      Right normal unit vector.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - clipToSegment - (s : Segment) : scala.Option[Vector2D] - - -
      - def - - distance - (point : Vector2D) : Double - -
      Smallest distance between this segment and the point point.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Segment

      +
      +

      + class + + Segment(vertex1: Vector2D, vertex2: Vector2D) extends Product + +

      +
      +

      A segment is given by its vertices.

      +
      vertex1

      position vector of the first vertex

      vertex2

      position vector of the second vertex

      - - - -
      Value Details
      -
      - - - val - length : Double -
      -
      -
      -
      Length of this segment.
      -
      -
      -
      -
      - - - val - d : Vector2D -
      -
      -
      -
      Vector from vertex1 to vertex2.
      -
      -
      -
      -
      - - - val - d0 : Vector2D -
      -
      -
      -
      Unit directional vector.
      -
      -
      -
      -
      - - - val - n : Vector2D -
      -
      -
      -
      Right normal vector.
      -
      -
      -
      -
      - - - val - n0 : Vector2D -
      -
      -
      -
      Right normal unit vector.
      -
      -
      - - -
      Method Details
      -
      - - - def - distance(point : Vector2D) : Double -
      -
      -
      -
      Smallest distance between this segment and the point point.
      -
      -
      -
      -
      - - - def - clipToSegment(s : Segment) : scala.Option[Vector2D] -
      -
      -

      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      2. +

        + def + + clipToSegment(s: Segment): Option[Vector2D] + +

        + +
      3. +

        + val + + d: Vector2D + +

        +

        Vector from vertex1 to vertex2

        +

        Vector from vertex1 to vertex2.

        + + + + +
        +
      4. +

        + val + + d0: Vector2D + +

        +

        Unit directional vector

        +

        Unit directional vector.

        + + + + +
        +
      5. +

        + def + + distance(point: Vector2D): Double + +

        +

        Smallest distance between this segment and the point point

        +

        Smallest distance between this segment and the point point.

        + + + + +
        +
      6. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      7. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      8. +

        + val + + length: Double + +

        +

        Length of this segment

        +

        Length of this segment.

        + + + + +
        +
      9. +

        + val + + n: Vector2D + +

        +

        Right normal vector

        +

        Right normal vector.

        + + + + +
        +
      10. +

        + val + + n0: Vector2D + +

        +

        Right normal unit vector

        +

        Right normal unit vector.

        + + + + +
        +
      11. +

        + def + + productArity: Int + +

        + +
      12. +

        + def + + productElement(arg0: Int): Any + +

        + +
      13. +

        + def + + productElements: Iterator[Any] + +

        + +
      14. +

        + def + + productIterator: Iterator[Any] + +

        + +
      15. +

        + def + + productPrefix: String + +

        + +
      16. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      17. +

        + val + + vertex1: Vector2D + +

        + +
      18. +

        + val + + vertex2: Vector2D + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Segment(vertex1: Vector2D, vertex2: Vector2D) + +

        + +
      2. +

        + new + + Segment() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/geometry/Vector2D$.html b/doc/sims/geometry/Vector2D$.html new file mode 100644 index 0000000..52ef68b --- /dev/null +++ b/doc/sims/geometry/Vector2D$.html @@ -0,0 +1,190 @@ + + + + + Scaladoc for sims.geometry.Vector2D + + + + + + + + + +

      sims.geometry

      + +
      + +

      Vector2D

      +
      + +

      + object + + Vector2D extends AnyRef + +

      +
      +

      Contains special vectors.

      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + Null: Vector2D + +

        +

        Null vector

        +

        Null vector.

        + + + + +
        +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + val + + i: Vector2D + +

        +

        Horizontal unit vector

        +

        Horizontal unit vector. (1,0)

        + + + + +
        +
      5. +

        + val + + j: Vector2D + +

        +

        Vertical unit vector

        +

        Vertical unit vector. (0,1)

        + + + + +
        +
      6. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/geometry/Vector2D$object.html b/doc/sims/geometry/Vector2D$object.html deleted file mode 100644 index ee73bb6..0000000 --- a/doc/sims/geometry/Vector2D$object.html +++ /dev/null @@ -1,150 +0,0 @@ - - - object Vector2D in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - object Vector2D -

      -
      -
      -
      - - - object - Vector2D -
      -
      extends AnyRef
      -
      -
      Contains special vectors.
      -
      - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - Null - : Vector2D - -
      Null vector.
      -
      - val - - i - : Vector2D - -
      Horizontal unit vector. (1,0)
      -
      - val - - j - : Vector2D - -
      Vertical unit vector. (0,1)
      -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - -
      Value Details
      -
      - - - val - Null : Vector2D -
      -
      -
      -
      Null vector.
      -
      -
      -
      -
      - - - val - i : Vector2D -
      -
      -
      -
      Horizontal unit vector. (1,0)
      -
      -
      -
      -
      - - - val - j : Vector2D -
      -
      -
      -
      Vertical unit vector. (0,1)
      -
      -
      - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/geometry/Vector2D.html b/doc/sims/geometry/Vector2D.html index 816428e..990b144 100644 --- a/doc/sims/geometry/Vector2D.html +++ b/doc/sims/geometry/Vector2D.html @@ -1,628 +1,435 @@ - + + - class Vector2D in sims.geometry - - - - - - - - - - - -
      - sims.geometry -

      - class Vector2D -

      -
      -
      -
      - - case - class - Vector2D(val x : Double, val y : Double) -
      -
      extends scala.Product
      -
      -
      A 2D vector.
      -
      - Parameters
      x - 1st component
      y - 2nd component
      + + Scaladoc for sims.geometry.Vector2D + + + + + + + +

      sims.geometry

      - - - - - - -
      Value Summary
      - val - - length - : Double - -
      Norm or length of this vector.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - * - (n : Double) : Vector2D - -
      Scalar multiplication.
      -
      - def - - + - (v : Vector2D) : Vector2D - -
      Vector addition.
      -
      - def - - - - (v : Vector2D) : Vector2D - -
      Vector substraction.
      -
      - def - - / - (n : Double) : Vector2D - -
      Scalar division.
      -
      - def - - components - : scala.List[Double] - -
      Returns a list of this vector's components.
      -
      - def - - cross - (v : Vector2D) : Double - -
      Cross product. Length only because in 2D. The direction would be given by the x3-axis.
      -
      - def - - dot - (v : Vector2D) : Double - -
      Dot product.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - isNull - : Boolean - -
      Checks if this vector is the null vector.
      -
      - def - - leftNormal - : Vector2D - -
      Left normal vector. (-y, x)
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - def - - project - (v : Vector2D) : Vector2D - -
      Returns the projection of this vector onto the vector v.
      -
      - def - - rightNormal - : Vector2D - -
      Right normal vector. (y, -x)
      -
      - def - - rotate - (angle : Double) : Vector2D - -
      Returns a rotation of this vector by angle radian.
      -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - def - - unary_- - : Vector2D - -
      Unary minus.
      -
      - def - - unit - : Vector2D - -
      Unit vector.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Vector2D

      +
      +

      + class + + Vector2D(x: Double, y: Double) extends Product + +

      +
      +

      A 2D vector.

      +
      x

      1st component

      y

      2nd component

      - - - -
      Value Details
      -
      - - - val - length : Double -
      -
      -
      -
      Norm or length of this vector.
      -
      -
      - - -
      Method Details
      -
      - - - def - +(v : Vector2D) : Vector2D -
      -
      -
      -
      Vector addition.
      -
      -
      -
      -
      - - - def - -(v : Vector2D) : Vector2D -
      -
      -
      -
      Vector substraction.
      -
      -
      -
      -
      - - - def - *(n : Double) : Vector2D -
      -
      -
      -
      Scalar multiplication.
      -
      -
      -
      -
      - - - def - /(n : Double) : Vector2D -
      -
      -
      -
      Scalar division.
      -
      -
      -
      -
      - - - def - unary_- : Vector2D -
      -
      -
      -
      Unary minus.
      -
      -
      -
      -
      - - - def - dot(v : Vector2D) : Double -
      -
      -
      -
      Dot product.
      -
      -
      -
      -
      - - - def - cross(v : Vector2D) : Double -
      -
      -
      -
      Cross product. Length only because in 2D. The direction would be given by the x3-axis.
      -
      -
      -
      -
      - - - def - unit : Vector2D -
      -
      -
      -
      Unit vector.
      -
      -
      -
      -
      - - - def - project(v : Vector2D) : Vector2D -
      -
      -
      -
      Returns the projection of this vector onto the vector v.
      -
      -
      -
      -
      - - - def - rotate(angle : Double) : Vector2D -
      -
      -
      -
      Returns a rotation of this vector by angle radian.
      -
      -
      -
      -
      - - - def - leftNormal : Vector2D -
      -
      -
      -
      Left normal vector. (-y, x)
      -
      -
      -
      -
      - - - def - rightNormal : Vector2D -
      -
      -
      -
      Right normal vector. (y, -x)
      -
      -
      -
      -
      - - - def - isNull : Boolean -
      -
      -
      -
      Checks if this vector is the null vector.
      -
      -
      -
      -
      - - - def - components : scala.List[Double] -
      -
      -
      -
      Returns a list of this vector's components.
      -
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + *(n: Double): Vector2D + +

        +

        Scalar multiplication

        +

        Scalar multiplication.

        + + + + +
        +
      2. +

        + def + + +(v: Vector2D): Vector2D + +

        +

        Vector addition

        +

        Vector addition.

        + + + + +
        +
      3. +

        + def + + -(v: Vector2D): Vector2D + +

        +

        Vector substraction

        +

        Vector substraction.

        + + + + +
        +
      4. +

        + def + + /(n: Double): Vector2D + +

        +

        Scalar division

        +

        Scalar division.

        + + + + +
        +
      5. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      6. +

        + def + + components: List[Double] + +

        +

        Returns a list of this vector's components

        +

        Returns a list of this vector's components.

        + + + + +
        +
      7. +

        + def + + cross(v: Vector2D): Double + +

        +

        Cross product

        +

        Cross product. Length only because in 2D. The direction would be given by the x3-axis.

        + + + + +
        +
      8. +

        + def + + dot(v: Vector2D): Double + +

        +

        Dot product

        +

        Dot product.

        + + + + +
        +
      9. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      10. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      11. +

        + def + + isNull: Boolean + +

        +

        Checks if this vector is the null vector

        +

        Checks if this vector is the null vector.

        + + + + +
        +
      12. +

        + def + + leftNormal: Vector2D + +

        +

        Left normal vector

        +

        Left normal vector. (-y, x)

        + + + + +
        +
      13. +

        + val + + length: Double + +

        +

        Norm or length of this vector

        +

        Norm or length of this vector.

        + + + + +
        +
      14. +

        + def + + productArity: Int + +

        + +
      15. +

        + def + + productElement(arg0: Int): Any + +

        + +
      16. +

        + def + + productElements: Iterator[Any] + +

        + +
      17. +

        + def + + productIterator: Iterator[Any] + +

        + +
      18. +

        + def + + productPrefix: String + +

        + +
      19. +

        + def + + project(v: Vector2D): Vector2D + +

        +

        Returns the projection of this vector onto the vector v

        +

        Returns the projection of this vector onto the vector v.

        + + + + +
        +
      20. +

        + def + + rightNormal: Vector2D + +

        +

        Right normal vector

        +

        Right normal vector. (y, -x)

        + + + + +
        +
      21. +

        + def + + rotate(angle: Double): Vector2D + +

        +

        Returns a rotation of this vector by angle radian

        +

        Returns a rotation of this vector by angle radian.

        + + + + +
        +
      22. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      23. +

        + def + + unary_-: Vector2D + +

        +

        Unary minus

        +

        Unary minus.

        + + + + +
        +
      24. +

        + def + + unit: Vector2D + +

        +

        Unit vector

        +

        Unit vector.

        + + + + +
        +
      25. +

        + val + + x: Double + +

        + +
      26. +

        + val + + y: Double + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Vector2D(x: Double, y: Double) + +

        + +
      2. +

        + new + + Vector2D() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/geometry/package.html b/doc/sims/geometry/package.html new file mode 100644 index 0000000..7ae3ade --- /dev/null +++ b/doc/sims/geometry/package.html @@ -0,0 +1,105 @@ + + + + + Scaladoc for sims.geometry + + + + + + + + + +

      sims

      + +
      + +

      geometry

      +
      + +

      + package + + geometry + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/math$content.html b/doc/sims/math$content.html deleted file mode 100644 index 8d2df26..0000000 --- a/doc/sims/math$content.html +++ /dev/null @@ -1,34 +0,0 @@ - - - All classes and objects in sims.math - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - -
      Class Summary
      - case class - - Matrix22 - (val c11 : Double, val c12 : Double, val c21 : Double, val c22 : Double) extends scala.Product - -
      A 2x2 matrix.
      -
      - - - - - - -
      Object Summary
      - object - - Matrix22 - extends AnyRef - - -
      - \ No newline at end of file diff --git a/doc/sims/math$package.html b/doc/sims/math$package.html deleted file mode 100644 index ac34016..0000000 --- a/doc/sims/math$package.html +++ /dev/null @@ -1,16 +0,0 @@ - - - List of classes and objects in package sims.math - - - - -
      Classes
      -
      Objects
      - \ No newline at end of file diff --git a/doc/sims/math/Matrix22$.html b/doc/sims/math/Matrix22$.html new file mode 100644 index 0000000..59a9e6b --- /dev/null +++ b/doc/sims/math/Matrix22$.html @@ -0,0 +1,156 @@ + + + + + Scaladoc for sims.math.Matrix22 + + + + + + + + + +

      sims.math

      + +
      + +

      Matrix22

      +
      + +

      + object + + Matrix22 extends AnyRef + +

      +
      + + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + apply(c1: Vector2D, c2: Vector2D): Matrix22 + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/math/Matrix22$object.html b/doc/sims/math/Matrix22$object.html deleted file mode 100644 index 9411340..0000000 --- a/doc/sims/math/Matrix22$object.html +++ /dev/null @@ -1,98 +0,0 @@ - - - object Matrix22 in sims.math - - - - - - - - - - - -
      - sims.math -

      - object Matrix22 -

      -
      - [source: sims/math/Matrix22.scala] -

      -
      -
      - - - object - Matrix22 -
      -
      extends AnyRef
      -
      - - - - - - - - - -
      Method Summary
      - def - - apply - (c1 : Vector2D, c2 : Vector2D) : Matrix22 - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - -
      Method Details
      -
      - - - def - apply(c1 : Vector2D, c2 : Vector2D) : Matrix22 -
      -
      -

      - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/math/Matrix22.html b/doc/sims/math/Matrix22.html index b07482d..e3fc756 100644 --- a/doc/sims/math/Matrix22.html +++ b/doc/sims/math/Matrix22.html @@ -1,445 +1,339 @@ - + + - class Matrix22 in sims.math - - - - - - - - - - - -
      - sims.math -

      - class Matrix22 -

      -
      - [source: sims/math/Matrix22.scala] -

      -
      -
      - - case - class - Matrix22(val c11 : Double, val c12 : Double, val c21 : Double, val c22 : Double) -
      -
      extends scala.Product
      -
      -
      A 2x2 matrix.
      -
      - Parameters
      c11 - component 1,1
      c12 - component 1,2
      c21 - component 2,1
      c22 - component 2,2
      + + Scaladoc for sims.math.Matrix22 + + + + + - - - - - - -
      Additional Constructor Summary
      - def - - this - (c1 : Vector2D, c2 : Vector2D) : Matrix22 - -
      A 2x2 matrix can be created with two 2D vectors. In this case, each column is represented by a vector.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - * - (v : Vector2D) : Vector2D - -
      Multiplikation with a 2D vector.
      -
      - def - - * - (m : Matrix22) : Matrix22 - -
      Matrix multiplication.
      -
      - def - - * - (n : Double) : Matrix22 - -
      Scalar multiplication.
      -
      - def - - + - (m : Matrix22) : Matrix22 - -
      Addition.
      -
      - def - - det - : Double - -
      Determinant of this matrix.
      -
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - def - - invert - : Matrix22 - -
      Inverse.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - -
      Additional Constructor Details
      -
      - - - def - this(c1 : Vector2D, c2 : Vector2D) : Matrix22 -
      -
      -
      -
      A 2x2 matrix can be created with two 2D vectors. In this case, each column is represented by a vector.
      -
      - Parameters
      c1 - first column
      c2 - second column
      -
      + + + +

      sims.math

      +
      + +

      Matrix22

      +
      - - -
      Method Details
      -
      - - - def - det : Double -
      -
      -
      -
      Determinant of this matrix.
      -
      -
      -
      -
      +

      + class + + Matrix22(c11: Double, c12: Double, c21: Double, c22: Double) extends Product + +

      +
      +

      A 2x2 matrix.

      +
      c11

      component 1,1

      c12

      component 1,2

      c21

      component 2,1

      c22

      component 2,2

      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      - - def - +(m : Matrix22) : Matrix22 -
      -
      -
      -
      Addition.
      -
      -
      -
      -
      - - def - *(n : Double) : Matrix22 -
      -
      -
      -
      Scalar multiplication.
      -
      -
      -
      -
      - - def - *(m : Matrix22) : Matrix22 -
      -
      -
      -
      Matrix multiplication.
      -
      -
      -
      -
      +
      +

      Value Members

      +
      1. +

        + def + + *(v: Vector2D): Vector2D + +

        +

        Multiplikation with a 2D vector

        +

        Multiplikation with a 2D vector.

        + + + + +
        +
      2. +

        + def + + *(m: Matrix22): Matrix22 + +

        +

        Matrix multiplication

        +

        Matrix multiplication.

        + + + + +
        +
      3. +

        + def + + *(n: Double): Matrix22 + +

        +

        Scalar multiplication

        +

        Scalar multiplication.

        + + + + +
        +
      4. +

        + def + + +(m: Matrix22): Matrix22 + +

        +

        Addition

        +

        Addition.

        + + + + +
        +
      5. +

        + val + + c11: Double + +

        + +
      6. +

        + val + + c12: Double + +

        + +
      7. +

        + val + + c21: Double + +

        + +
      8. +

        + val + + c22: Double + +

        + +
      9. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      10. +

        + def + + det: Double + +

        +

        Determinant of this matrix

        +

        Determinant of this matrix.

        + + + + +
        +
      11. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      12. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      13. +

        + def + + invert: Matrix22 + +

        +

        Inverse

        +

        Inverse.

        + + + + +
        +
      14. +

        + def + + productArity: Int + +

        + +
      15. +

        + def + + productElement(arg0: Int): Any + +

        + +
      16. +

        + def + + productElements: Iterator[Any] + +

        + +
      17. +

        + def + + productIterator: Iterator[Any] + +

        + +
      18. +

        + def + + productPrefix: String + +

        + +
      19. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      - - def - *(v : Vector2D) : Vector2D -
      -
      -
      -
      Multiplikation with a 2D vector.
      -
      -
      -
      -
      +
      +

      Instance constructors

      +
      1. +

        + new + + Matrix22(c1: Vector2D, c2: Vector2D) + +

        +

        A 2x2 matrix can be created with two 2D vectors

        +

        A 2x2 matrix can be created with two 2D vectors. In this case, each column is represented by a vector.

        +
        c1

        first column

        c2

        second column

        + + + +
        +
      2. +

        + new + + Matrix22(c11: Double, c12: Double, c21: Double, c22: Double) + +

        + +
      3. +

        + new + + Matrix22() + +

        + +
      +
      - - def - invert : Matrix22 -
      -
      -
      -
      Inverse.
      -
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      - - override - def - productElement(arg0 : Int) : Any -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - + + + \ No newline at end of file diff --git a/doc/sims/math/package.html b/doc/sims/math/package.html new file mode 100644 index 0000000..fd0ba89 --- /dev/null +++ b/doc/sims/math/package.html @@ -0,0 +1,73 @@ + + + + + Scaladoc for sims.math + + + + + + + + + +

      sims

      + +
      + +

      math

      +
      + +

      + package + + math + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/package.html b/doc/sims/package.html new file mode 100644 index 0000000..1502495 --- /dev/null +++ b/doc/sims/package.html @@ -0,0 +1,102 @@ + + + + + Scaladoc for sims + + + + + + + + + + + +
      + +

      sims

      +
      + +

      + package + + sims + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/prefabs$content.html b/doc/sims/prefabs$content.html deleted file mode 100644 index dad597c..0000000 --- a/doc/sims/prefabs$content.html +++ /dev/null @@ -1,54 +0,0 @@ - - - All classes and objects in sims.prefabs - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - - - - - - - - - -
      Class Summary
      - class - - Net - (width : Int, height : Int, initPos : Vector2D) extends Prefab - - -
      - trait - - Prefab - extends AnyRef - - -
      - class - - Pylon - extends Prefab - - -
      - class - - Ragdoll - (position : Vector2D) extends Prefab - - -
      - - \ No newline at end of file diff --git a/doc/sims/prefabs$package.html b/doc/sims/prefabs$package.html deleted file mode 100644 index 490a2cf..0000000 --- a/doc/sims/prefabs$package.html +++ /dev/null @@ -1,17 +0,0 @@ - - - List of classes and objects in package sims.prefabs - - - - -
      Classes
      -
      - \ No newline at end of file diff --git a/doc/sims/prefabs/Net.html b/doc/sims/prefabs/Net.html index 0298260..584df7a 100644 --- a/doc/sims/prefabs/Net.html +++ b/doc/sims/prefabs/Net.html @@ -1,232 +1,223 @@ - + + - class Net in sims.prefabs - + + Scaladoc for sims.prefabs.Net + + + + + + - - - - - - - - - -
      - sims.prefabs -

      - class Net -

      -
      - [source: sims/prefabs/Net.scala] -

      -
      -
      - - - class - Net(width : Int, height : Int, initPos : Vector2D) -
      -
      extends Prefab
      -
      + +

      sims.prefabs

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - override val - - bodies - : scala.List[Body] - - -
      - override val - - joints - : scala.List[DistanceJoint] - - -
      - val - - nodeDensity - : Double - - -
      - val - - nodeDistance - : Double - - -
      - val - - nodeRadius - : Double - - -
      - val - - springConstant - : Double - - -
      - val - - springDamping - : Double - - -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Net

      +
      +

      + class + + Net extends Prefab + +

      +
      - - - -
      Value Details
      -
      - - - val - nodeDistance : Double -
      -
      -

      -
      -
      - - - val - nodeRadius : Double -
      -
      -

      -
      -
      - - - val - nodeDensity : Double -
      -
      -

      -
      -
      - - - val - springConstant : Double -
      -
      -

      -
      -
      - - - val - springDamping : Double -
      -
      -

      -
      -
      - - override - val - bodies : scala.List[Body] -
      -
      -
      -
      - Overrides -
      -
      - Prefab.bodies -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Prefab
      2. AnyRef
      3. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + bodies: List[Body] + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + val + + joints: List[DistanceJoint] + +

        + +
      5. +

        + val + + nodeDensity: Double + +

        + +
      6. +

        + val + + nodeDistance: Double + +

        + +
      7. +

        + val + + nodeRadius: Double + +

        + +
      8. +

        + val + + springConstant: Double + +

        + +
      9. +

        + val + + springDamping: Double + +

        + +
      10. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Net(width: Int, height: Int, initPos: Vector2D) + +

        + +
      2. +

        + new + + Net() + +

        + +
      +
      - override - val - joints : scala.List[DistanceJoint] - -
      -
      -
      - Overrides -
      -
      - Prefab.joints -
      -

      - - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/prefabs/Prefab.html b/doc/sims/prefabs/Prefab.html index 699ecf9..b2b8a23 100644 --- a/doc/sims/prefabs/Prefab.html +++ b/doc/sims/prefabs/Prefab.html @@ -1,121 +1,166 @@ - + + - trait Prefab in sims.prefabs - + + Scaladoc for sims.prefabs.Prefab + + + + + + - - - - - - - - - -
      - sims.prefabs -

      - trait Prefab -

      -
      -
      -
      - - - trait - Prefab -
      -
      extends AnyRef
      -
      -
      Direct Known Subclasses:
      -
      Carriage.Car, Net, Pylon, Ragdoll
      -

      + +

      sims.prefabs

      - - - - - - - - - - -
      Value Summary
      - val - - bodies - : scala.Iterable[Body] - +
      + +

      Prefab

      +
      + +

      + trait + + Prefab extends AnyRef + +

      +
      + + + + +
      + known subclasses: Ragdoll, Pylon, Net, Car +
      +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      -
      - val - - joints - : scala.Iterable[Joint] -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +
      +

      Value Members

      +
      1. +

        + val + + bodies: Iterable[Body] + +

        - - - -
        Value Details
        -
        +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + val + + joints: Iterable[Joint] + +

        + +
      5. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      - - val - bodies : scala.Iterable[Body] - -
      -
      -
      -
      - - val - joints : scala.Iterable[Joint] -
      -
      -

      - - - -
      - - - - - - - - + + + + \ No newline at end of file diff --git a/doc/sims/prefabs/Pylon.html b/doc/sims/prefabs/Pylon.html index cec9b30..1715c04 100644 --- a/doc/sims/prefabs/Pylon.html +++ b/doc/sims/prefabs/Pylon.html @@ -1,272 +1,231 @@ - + + - class Pylon in sims.prefabs - + + Scaladoc for sims.prefabs.Pylon + + + + + + - - - - - - - - - -
      - sims.prefabs -

      - class Pylon -

      -
      - [source: sims/prefabs/Pylon.scala] -

      -
      -
      - - - class - Pylon -
      -
      extends Prefab
      -
      + +

      sims.prefabs

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - val - - beamHeight - : Double - - -
      - val - - beamNumber - : Int - - -
      - val - - beamWidth - : Double - - -
      - lazy val - - beams - : scala.List[DistanceJoint] - - -
      - override val - - bodies - : scala.List[Body] - - -
      - override val - - joints - : scala.List[DistanceJoint] - - -
      - val - - nodeDensity - : Double - - -
      - lazy val - - nodes - : scala.List[Body] - - -
      - val - - position - : Vector2D - - -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Pylon

      +
      +

      + class + + Pylon extends Prefab + +

      +
      - - - -
      Value Details
      -
      - - - val - position : Vector2D -
      -
      -

      -
      -
      - - - val - nodeDensity : Double -
      -
      -

      -
      -
      - - - val - beamHeight : Double -
      -
      -

      -
      -
      - - - val - beamWidth : Double -
      -
      -

      -
      -
      - - - val - beamNumber : Int -
      -
      -

      -
      -
      - - - lazy val - nodes : scala.List[Body] -
      -
      -

      -
      -
      - - - lazy val - beams : scala.List[DistanceJoint] -
      -
      -

      -
      -
      - - override - val - bodies : scala.List[Body] -
      -
      -
      -
      - Overrides -
      -
      - Prefab.bodies -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Prefab
      2. AnyRef
      3. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + beamHeight: Double + +

        + +
      2. +

        + val + + beamNumber: Int + +

        + +
      3. +

        + val + + beamWidth: Double + +

        + +
      4. +

        + var + + beams: List[DistanceJoint] + +

        + +
      5. +

        + val + + bodies: List[Body] + +

        + +
      6. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      7. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      8. +

        + val + + joints: List[DistanceJoint] + +

        + +
      9. +

        + val + + nodeDensity: Double + +

        + +
      10. +

        + var + + nodes: List[Body] + +

        + +
      11. +

        + val + + position: Vector2D + +

        + +
      12. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Pylon() + +

        + +
      +
      - override - val - joints : scala.List[DistanceJoint] - -
      -
      -
      - Overrides -
      -
      - Prefab.joints -
      -

      - - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/prefabs/Ragdoll.html b/doc/sims/prefabs/Ragdoll.html index 0ae14d2..fe09221 100644 --- a/doc/sims/prefabs/Ragdoll.html +++ b/doc/sims/prefabs/Ragdoll.html @@ -1,432 +1,303 @@ - + + - class Ragdoll in sims.prefabs - + + Scaladoc for sims.prefabs.Ragdoll + + + + + + - - - - - - - - - -
      - sims.prefabs -

      - class Ragdoll -

      -
      -
      -
      - - - class - Ragdoll(position : Vector2D) -
      -
      extends Prefab
      -
      + +

      sims.prefabs

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Value Summary
      - override val - - bodies - : scala.List[Body] - - -
      - val - - foot1 - : Body - - -
      - val - - foot2 - : Body - - -
      - val - - forearm1 - : Body - - -
      - val - - forearm2 - : Body - - -
      - val - - hand1 - : Body - - -
      - val - - hand2 - : Body - - -
      - val - - headTorso - : Body - - -
      - override val - - joints - : scala.Nil - - -
      - val - - shoulder1 - : RevoluteJoint - - -
      - val - - shoulder2 - : RevoluteJoint - - -
      - val - - thigh1 - : Body - - -
      - val - - thigh2 - : Body - - -
      - val - - tibia1 - : Body - - -
      - val - - tibia2 - : Body - - -
      - val - - upperArm1 - : Body - - -
      - val - - upperArm2 - : Body - - -
      - - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - +
      + +

      Ragdoll

      +
      +

      + class + + Ragdoll extends Prefab + +

      +
      - - - -
      Value Details
      -
      - - - val - headTorso : Body -
      -
      -

      -
      -
      - - - val - thigh1 : Body -
      -
      -

      -
      -
      - - - val - thigh2 : Body -
      -
      -

      -
      -
      - - - val - tibia1 : Body -
      -
      -

      -
      -
      - - - val - tibia2 : Body -
      -
      -

      -
      -
      - - - val - foot1 : Body -
      -
      -

      -
      -
      - - - val - foot2 : Body -
      -
      -

      -
      -
      - - - val - upperArm1 : Body -
      -
      -

      -
      -
      - - - val - upperArm2 : Body -
      -
      -

      -
      -
      - - - val - forearm1 : Body -
      -
      -

      -
      -
      - - - val - forearm2 : Body -
      -
      -

      -
      -
      - - - val - hand1 : Body -
      -
      -

      -
      -
      - - - val - hand2 : Body -
      -
      -

      -
      -
      - - override - val - bodies : scala.List[Body] -
      -
      -
      -
      - Overrides -
      -
      - Prefab.bodies -
      -

      -
      -
      - - - val - shoulder1 : RevoluteJoint -
      -
      -

      -
      -
      - - - val - shoulder2 : RevoluteJoint -
      -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Prefab
      2. AnyRef
      3. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + bodies: List[Body] + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + val + + foot1: Body + +

        + +
      4. +

        + val + + foot2: Body + +

        + +
      5. +

        + val + + forearm1: Body + +

        + +
      6. +

        + val + + forearm2: Body + +

        + +
      7. +

        + val + + hand1: Body + +

        + +
      8. +

        + val + + hand2: Body + +

        + +
      9. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      10. +

        + val + + headTorso: Body + +

        + +
      11. +

        + val + + joints: Nil + +

        + +
      12. +

        + val + + shoulder1: RevoluteJoint + +

        + +
      13. +

        + val + + shoulder2: RevoluteJoint + +

        + +
      14. +

        + val + + thigh1: Body + +

        + +
      15. +

        + val + + thigh2: Body + +

        + +
      16. +

        + val + + tibia1: Body + +

        + +
      17. +

        + val + + tibia2: Body + +

        + +
      18. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      19. +

        + val + + upperArm1: Body + +

        + +
      20. +

        + val + + upperArm2: Body + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Ragdoll(position: Vector2D) + +

        + +
      2. +

        + new + + Ragdoll() + +

        + +
      +
      - override - val - joints : scala.Nil - -
      -
      -
      - Overrides -
      -
      - Prefab.joints -
      -

      - - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/prefabs/package.html b/doc/sims/prefabs/package.html new file mode 100644 index 0000000..78b76e7 --- /dev/null +++ b/doc/sims/prefabs/package.html @@ -0,0 +1,86 @@ + + + + + Scaladoc for sims.prefabs + + + + + + + + + +

      sims

      + +
      + +

      prefabs

      +
      + +

      + package + + prefabs + +

      +
      + + + + + +
      + + + + + \ No newline at end of file diff --git a/doc/sims/util$content.html b/doc/sims/util$content.html deleted file mode 100644 index 8db8c6c..0000000 --- a/doc/sims/util$content.html +++ /dev/null @@ -1,56 +0,0 @@ - - - All classes and objects in sims.util - - -
      Simple Mechanics Simulator (SiMS) API

      This document is the API specification for SiMS

      - - - - - - - - - -
      Class Summary
      - case class - - Polar - (val distance : Double, val angle : Double) extends scala.Product - -
      Polar coordinates.
      -
      - class - - RelativeVector - (val x : Double, val y : Double) extends AnyRef - - -
      - - - - - - - - - - -
      Object Summary
      - object - - Polar - extends (Double, Double) => Polar - - -
      - object - - Positioning - extends AnyRef - -
      Utility functions for comfortable positioning of bodies.
      -
      - \ No newline at end of file diff --git a/doc/sims/util$package.html b/doc/sims/util$package.html deleted file mode 100644 index 61c5bdc..0000000 --- a/doc/sims/util$package.html +++ /dev/null @@ -1,18 +0,0 @@ - - - List of classes and objects in package sims.util - - - - -
      Classes
      -
      Objects
      - \ No newline at end of file diff --git a/doc/sims/util/Polar$object.html b/doc/sims/util/Polar$object.html deleted file mode 100644 index c1ae2b3..0000000 --- a/doc/sims/util/Polar$object.html +++ /dev/null @@ -1,82 +0,0 @@ - - - object Polar in sims.util - - - - - - - - - - - -
      - sims.util -

      - object Polar -

      -
      - [source: sims/util/Polar.scala] -

      -
      -
      - - - object - Polar -
      -
      extends (Double, Double) => Polar
      -
      - - - - - - -
      - Methods inherited from scala.Function2 -
      - scala.Function2.toString, scala.Function2.curry -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/util/Polar.html b/doc/sims/util/Polar.html index 78fa78d..d2ad5fd 100644 --- a/doc/sims/util/Polar.html +++ b/doc/sims/util/Polar.html @@ -1,302 +1,239 @@ - + + - class Polar in sims.util - - - - - - - - - - - -
      - sims.util -

      - class Polar -

      -
      - [source: sims/util/Polar.scala] -

      -
      -
      - - case - class - Polar(val distance : Double, val angle : Double) -
      -
      extends scala.Product
      -
      -
      Polar coordinates.
      -
      + + Scaladoc for sims.util.Polar + + + + + + + +

      sims.util

      +
      + +

      Polar

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - override def - - equals - (arg0 : Any) : Boolean - -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence.
      -
      - override def - - hashCode - : Int - -
      Returns a hash code value for the object.
      -
      - override def - - productArity - : Int - - -
      - override def - - productElement - (arg0 : Int) : Any - - -
      - override def - - productPrefix - : java.lang.String - - -
      - def - - toCarthesian - : Vector2D - -
      Returns the vector representation of these polar coordinates.
      -
      - override def - - toString - : java.lang.String - -
      Returns a string representation of the object.
      -
      - - -
      - Methods inherited from AnyRef -
      - getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + Polar(distance: Double, angle: Double) extends Product + +

      +
      +

      Polar coordinates.

      - - - - -
      Method Details
      -
      - - - def - toCarthesian : Vector2D -
      -
      -
      -
      Returns the vector representation of these polar coordinates.
      -
      -
      -
      -
      - - override - def - hashCode : Int -
      -
      -
      -
      Returns a hash code value for the object. -

      - The default hashing algorithm is platform dependent. - Note that it is allowed for two objects to have identical hash - codes (o1.hashCode.equals(o2.hashCode)) yet not be - equal (o1.equals(o2) returns false). A - degenerate implementation could always return 0. - However, it is required that if two objects are equal - (o1.equals(o2) returns true) that they - have identical hash codes - (o1.hashCode.equals(o2.hashCode)). Therefore, when - overriding this method, be sure to verify that the behavior is - consistent with the equals method. -

      -

      -
      - Returns
      the hash code value for the object.

      -
      -
      -
      - - override - def - toString : java.lang.String -
      -
      -
      -
      Returns a string representation of the object. -

      - The default representation is platform dependent.

      -
      - Returns
      a string representation of the object.

      -
      -
      -
      - - override - def - equals(arg0 : Any) : Boolean -
      -
      -
      -
      This method is used to compare the receiver object (this) - with the argument object (arg0) for equivalence. - -

      - The default implementations of this method is an equivalence - relation: -

        -
      • It is reflexive: for any instance x of type Any, - x.equals(x) should return true.
      • -
      • It is symmetric: for any instances x and y of type - Any, x.equals(y) should return true if and only - if y.equals(x) returns true.
      • -
      • It is transitive: for any instances - x, y, and z of type AnyRef - if x.equals(y) returns true and - y.equals(z) returns - true, then x.equals(z) should return true.
      • -
      -

      -

      - If you override this method, you should verify that - your implementation remains an equivalence relation. - Additionally, when overriding this method it is often necessary to - override hashCode to ensure that objects that are - "equal" (o1.equals(o2) returns true) - hash to the same Int - (o1.hashCode.equals(o2.hashCode)).

      -
      - Parameters
      arg0 - the object to compare against this object for equality.
      - Returns
      true if the receiver object is equivalent to the argument; false otherwise.

      -
      -
      -
      - - override - def - productPrefix : java.lang.String -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productPrefix -
      -

      -
      -
      - - override - def - productArity : Int -
      -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productArity -
      -

      -
      -
      + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. Product
      2. Equals
      3. AnyRef
      4. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + val + + angle: Double + +

        + +
      2. +

        + def + + canEqual(arg0: Any): Boolean + +

        + +
      3. +

        + val + + distance: Double + +

        + +
      4. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + + + +
        +
      5. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + + + +
        +
      6. +

        + def + + productArity: Int + +

        + +
      7. +

        + def + + productElement(arg0: Int): Any + +

        + +
      8. +

        + def + + productElements: Iterator[Any] + +

        + +
      9. +

        + def + + productIterator: Iterator[Any] + +

        + +
      10. +

        + def + + productPrefix: String + +

        + +
      11. +

        + def + + toCarthesian: Vector2D + +

        +

        Returns the vector representation of these polar coordinates

        +

        Returns the vector representation of these polar coordinates.

        + + + + +
        +
      12. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + + + +
        +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + Polar(distance: Double, angle: Double) + +

        + +
      2. +

        + new + + Polar() + +

        + +
      +
      - override - def - productElement(arg0 : Int) : Any - -
      -
      -
      - Overrides -
      -
      - scala.Product.scala.Product.productElement -
      -

      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/util/Positioning$.html b/doc/sims/util/Positioning$.html new file mode 100644 index 0000000..f04ce7c --- /dev/null +++ b/doc/sims/util/Positioning$.html @@ -0,0 +1,196 @@ + + + + + Scaladoc for sims.util.Positioning + + + + + + + + + +

      sims.util

      + +
      + +

      Positioning

      +
      + +

      + object + + Positioning extends AnyRef + +

      +
      +

      Utility functions for comfortable positioning of bodies.

      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + double2RelativeVector(x: Double): RelativeVector + +

        + +
      2. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      3. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      4. +

        + def + + int2RelativeVector(x: Int): RelativeVector + +

        + +
      5. +

        + def + + polar2Carthesian(p: Polar): Vector2D + +

        + +
      6. +

        + def + + polar2RelativeVector(p: Polar): RelativeVector + +

        + +
      7. +

        + def + + position(s: Shape)(a: Vector2D): Unit + +

        + +
      8. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      9. +

        + def + + vector2RelativeVector(v: Vector2D): RelativeVector + +

        + +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/sims/util/Positioning$object.html b/doc/sims/util/Positioning$object.html deleted file mode 100644 index 3a9b6c0..0000000 --- a/doc/sims/util/Positioning$object.html +++ /dev/null @@ -1,201 +0,0 @@ - - - object Positioning in sims.util - - - - - - - - - - - -
      - sims.util -

      - object Positioning -

      -
      -
      -
      - - - object - Positioning -
      -
      extends AnyRef
      -
      -
      Utility functions for comfortable positioning of bodies.
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - implicit def - - double2RelativeVector - (x : Double) : RelativeVector - - -
      - implicit def - - int2RelativeVector - (x : Int) : RelativeVector - - -
      - implicit def - - polar2Carthesian - (p : Polar) : Vector2D - - -
      - implicit def - - polar2RelativeVector - (p : Polar) : RelativeVector - - -
      - def - - position - (s : Shape)(a : Vector2D) : Unit - - -
      - implicit def - - vector2RelativeVector - (v : Vector2D) : RelativeVector - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - - - - - - -
      Method Details
      -
      - - implicit - def - int2RelativeVector(x : Int) : RelativeVector -
      -
      -

      -
      -
      - - implicit - def - double2RelativeVector(x : Double) : RelativeVector -
      -
      -

      -
      -
      - - implicit - def - vector2RelativeVector(v : Vector2D) : RelativeVector -
      -
      -

      -
      -
      - - implicit - def - polar2Carthesian(p : Polar) : Vector2D -
      -
      -

      -
      -
      - - implicit - def - polar2RelativeVector(p : Polar) : RelativeVector -
      -
      -

      -
      -
      - - - def - position(s : Shape)(a : Vector2D) : Unit -
      -
      -

      - - -
      - - - - - - - - - \ No newline at end of file diff --git a/doc/sims/util/RelativeVector.html b/doc/sims/util/RelativeVector.html index b2512f4..99da021 100644 --- a/doc/sims/util/RelativeVector.html +++ b/doc/sims/util/RelativeVector.html @@ -1,278 +1,263 @@ - + + - class RelativeVector in sims.util - + + Scaladoc for sims.util.RelativeVector + + + + + + - - - - - - - - - -
      - sims.util -

      - class RelativeVector -

      -
      -
      -
      - - - class - RelativeVector(val x : Double, val y : Double) -
      -
      extends AnyRef
      -
      + +

      sims.util

      +
      + +

      RelativeVector

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Method Summary
      - def - - above - (s : Shape) : Vector2D - - -
      - def - - above - (point : Vector2D) : Vector2D - - -
      - def - - below - (point : Vector2D) : Vector2D - - -
      - def - - below - (s : Shape) : Vector2D - - -
      - def - - from - (point : Vector2D) : Vector2D - - -
      - def - - from - (s : Shape) : Vector2D - - -
      - def - - left - (point : Vector2D) : Vector2D - - -
      - def - - left - (s : Shape) : Vector2D - - -
      - def - - right - (point : Vector2D) : Vector2D - - -
      - def - - right - (s : Shape) : Vector2D - - -
      - - -
      - Methods inherited from AnyRef -
      - getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized -
      - - -
      - Methods inherited from Any -
      - ==, !=, isInstanceOf, asInstanceOf -
      - - +

      + class + + RelativeVector extends AnyRef + +

      +
      - - - - -
      Method Details
      -
      - - - def - above(point : Vector2D) : Vector2D -
      -
      -

      -
      -
      - - - def - below(point : Vector2D) : Vector2D -
      -
      -

      -
      -
      - - - def - left(point : Vector2D) : Vector2D -
      -
      -

      -
      -
      - - - def - right(point : Vector2D) : Vector2D -
      -
      -

      -
      -
      - - - def - from(point : Vector2D) : Vector2D -
      -
      -

      -
      -
      - - - def - above(s : Shape) : Vector2D -
      -
      -

      -
      -
      - - - def - below(s : Shape) : Vector2D -
      -
      -

      -
      -
      - - - def - left(s : Shape) : Vector2D -
      -
      -

      -
      -
      - - - def - right(s : Shape) : Vector2D -
      -
      -

      -
      -
      + + + + +
      + +
      + +
      +
      +

      Inherits

      +
      1. AnyRef
      2. Any
      +
      +
      + + + +
      +

      Value Members

      +
      1. +

        + def + + above(s: Shape): Vector2D + +

        + +
      2. +

        + def + + above(point: Vector2D): Vector2D + +

        + +
      3. +

        + def + + below(s: Shape): Vector2D + +

        + +
      4. +

        + def + + below(point: Vector2D): Vector2D + +

        + +
      5. +

        + def + + equals(arg0: Any): Boolean + +

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence

        +

        This method is used to compare the receiver object (this) +with the argument object (arg0) for equivalence.

        +The default implementations of this method is an equivalence +relation: +

          +
        • It is reflexive: for any instance x of type Any, + x.equals(x) should return true.
        • +
        • It is symmetric: for any instances x and y of type + Any, x.equals(y) should return true if and only + if y.equals(x) returns true.
        • +
        • It is transitive: for any instances + x, y, and z of type AnyRef + if x.equals(y) returns true and + y.equals(z) returns + true, then x.equals(z) should return true.
        • +
        +

        +If you override this method, you should verify that +your implementation remains an equivalence relation. +Additionally, when overriding this method it is often necessary to +override hashCode to ensure that objects that are +"equal" (o1.equals(o2) returns true) +hash to the same Int +(o1.hashCode.equals(o2.hashCode)). +

        +
        arg0

        the object to compare against this object for equality.

        returns

        true if the receiver object is equivalent to the argument; false otherwise. +

        + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      6. +

        + def + + from(s: Shape): Vector2D + +

        + +
      7. +

        + def + + from(point: Vector2D): Vector2D + +

        + +
      8. +

        + def + + hashCode(): Int + +

        +

        Returns a hash code value for the object

        +

        Returns a hash code value for the object.

        +The default hashing algorithm is platform dependent.

        Note that it is allowed for two objects to have identical hash +codes (o1.hashCode.equals(o2.hashCode)) yet not be +equal (o1.equals(o2) returns false). A +degenerate implementation could always return 0. +However, it is required that if two objects are equal +(o1.equals(o2) returns true) that they +have identical hash codes +(o1.hashCode.equals(o2.hashCode)). Therefore, when +overriding this method, be sure to verify that the behavior is +consistent with the equals method. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      9. +

        + def + + left(s: Shape): Vector2D + +

        + +
      10. +

        + def + + left(point: Vector2D): Vector2D + +

        + +
      11. +

        + def + + right(s: Shape): Vector2D + +

        + +
      12. +

        + def + + right(point: Vector2D): Vector2D + +

        + +
      13. +

        + def + + toString(): String + +

        +

        Returns a string representation of the object

        +

        Returns a string representation of the object. +

        +The default representation is platform dependent. +

        + + +
        + definition classes: AnyRef ⇐ Any +
        + +
        +
      14. +

        + val + + x: Double + +

        + +
      15. +

        + val + + y: Double + +

        + +
      +
      + +
      +

      Instance constructors

      +
      1. +

        + new + + RelativeVector(x: Double, y: Double) + +

        + +
      2. +

        + new + + RelativeVector() + +

        + +
      +
      - - def - from(s : Shape) : Vector2D - -
      -
      - - -
      - - - - - - - - +
      + + \ No newline at end of file diff --git a/doc/sims/util/package.html b/doc/sims/util/package.html new file mode 100644 index 0000000..0605149 --- /dev/null +++ b/doc/sims/util/package.html @@ -0,0 +1,81 @@ + + + + + Scaladoc for sims.util + + + + + + + + + +

      sims

      + +
      + +

      util

      +
      + +

      + package + + util + +

      +
      + + + + + +
      + +
      + + + + + +
      +

      Value Members

      +
      1. +

        + object + + Positioning extends AnyRef + +

        +

        Utility functions for comfortable positioning of bodies

        +
      +
      + + + +
      + + + \ No newline at end of file diff --git a/doc/style.css b/doc/style.css deleted file mode 100644 index e243249..0000000 --- a/doc/style.css +++ /dev/null @@ -1,148 +0,0 @@ -/* Scaladoc style sheet */ - -a:link { - color: #0000ee; -} - -a:visited { - color: #551a8b; -} - -a:active { - color: #0000ee; -} - -body { - background-color: #ffffff; -} - -div.entity { - margin: 18px 0px 18px 0px; - font-size: x-large; - font-weight: bold; -} - -div.doctitle { - font-weight: bold; - font-style: italic; -} - -div.doctitle-larger { - margin: 0px 0px 10px 0px; - font-size: larger; - font-weight: bold; -} - -div.kinds { - margin: 0.6em 0 0 0; /* top right bottom left */ - font-weight: bold; -} - -div.page-title { - margin: 15px 0px 15px 0px; - font-size: x-large; - font-weight: bold; - text-align: center; -} - -div.source { - font-size: smaller; - color: gray; -} - -span.entity { - color: #ff6666; -} - -table.member { - margin: 0 0 1.2em 0; /* top rigth bottom left */ - border-collapse: collapse; - border: 2px inset #888888; - width: 100%; -} - -table.member td.title { - border: 2px inset #888888; - background-color: #ccccff; - font-size: x-large; - font-weight: bold; -} - -table.inherited { - margin: 0 0 1.2em 0; /* top rigth bottom left */ - border-collapse: collapse; - border: 2px inset #888888; - width: 100%; -} - -table.inherited td.title { - background-color: #eeeeff; - font-weight: bold; -} - -table.member-detail { - margin: 10px 0px 0px 0px; - border-collapse: collapse; - border: 2px inset #888888; - background-color: #ffffff; - width: 100%; -} - -table.member-detail td.title { - border: 2px inset #888888; - background-color: #ccccff; - font-size: x-large; - font-weight: bold; -} - -table.navigation { - border-collapse: collapse; - width: 100%; - font-family: Arial,Helvetica,Sans-Serif; -} - -td.inherited-members { - border-top: 2px inset #888888; - border-right: 0px; -} - -td.inherited-owner { - background-color: #eeeeff; - font-weight: bold; -} - -td.modifiers { - border-top: 2px inset #888888; - border-right: 2px inset #888888; - width: 50px; - text-align: right; -} - -td.navigation-enabled { - font-weight: bold; - color: #000000; - background-color: #eeeeff; -} - -td.navigation-links { - width: 100%; - background-color: #eeeeff; -} - -td.navigation-selected { - font-weight: bold; - color: #ffffff; - background-color: #00008b; -} - -td.signature { - border-top: 2px inset #888888; - width: 90%; -} - -ul.list { - margin: 0; - padding: 0; - list-style: none; -} - diff --git a/src/graphyx/Graphyx.scala b/src/graphyx/Graphyx.scala index 01caea8..192b897 100644 --- a/src/graphyx/Graphyx.scala +++ b/src/graphyx/Graphyx.scala @@ -22,10 +22,10 @@ object Graphyx{ Atom, Chain, Wave, + Net, Stacking, BallStack, Cup, - Net, Friction, Friction2, Restitution, @@ -33,6 +33,7 @@ object Graphyx{ Carriage, General1, General2, + Cannon, EmptyTest ) @@ -48,10 +49,10 @@ object Graphyx{ val physicsActor = new PhysicsActor val guiActor = new GUIActor - + def main(args: Array[String]): Unit = { test.init() - physicsActor.world = test.world + physicsActor.world = test.world guiActor.start() physicsActor.start() } diff --git a/src/graphyx/actors/GUIActor.scala b/src/graphyx/actors/GUIActor.scala index a704f6a..0116551 100644 --- a/src/graphyx/actors/GUIActor.scala +++ b/src/graphyx/actors/GUIActor.scala @@ -7,11 +7,10 @@ package graphyx.actors import graphyx.graphics._ -import graphyx.gui._ import scala.actors._ class GUIActor extends Actor{ - val container = new Container + val container = new graphyx.gui.Container var continue = true diff --git a/src/graphyx/actors/PhysicsActor.scala b/src/graphyx/actors/PhysicsActor.scala index b93541f..0bc7faf 100644 --- a/src/graphyx/actors/PhysicsActor.scala +++ b/src/graphyx/actors/PhysicsActor.scala @@ -6,6 +6,7 @@ package graphyx.actors +import graphyx._ import graphyx.graphics._ import sims.dynamics._ import scala.actors._ @@ -30,8 +31,9 @@ class PhysicsActor extends Actor{ Graphyx.guiActor ! new Scene(world) {override val fps = _fps} - while (mailboxSize > 0) { - receive { + receiveWithin(0) { + case TIMEOUT => () + case Stop => { simulate = false println("Simulation stopped.") @@ -49,7 +51,6 @@ class PhysicsActor extends Actor{ case other => println("Engine received unknown command: '" + other + "'") } - } val h = (System.nanoTime - t0) / 1000000 val f = 60 diff --git a/src/graphyx/graphics/Drawable.scala b/src/graphyx/graphics/Drawable.scala index fefd97d..07f3491 100644 --- a/src/graphyx/graphics/Drawable.scala +++ b/src/graphyx/graphics/Drawable.scala @@ -13,7 +13,7 @@ import sims.geometry._ trait Drawable { /**Java Graphics Objekt zur graphischen Darstellung*/ - var g: java.awt.Graphics = _ + var g: java.awt.Graphics2D = _ /**Anzahl von Pixeln pro Meter.*/ var ppm: Double = 39.37007874015748 * 96 //ppm = i/m * p/i diff --git a/src/graphyx/graphics/GraphicalRectangle.scala b/src/graphyx/graphics/GraphicalRectangle.scala index d3774bb..ae65c5e 100644 --- a/src/graphyx/graphics/GraphicalRectangle.scala +++ b/src/graphyx/graphics/GraphicalRectangle.scala @@ -15,4 +15,4 @@ case class GraphicalRectangle(real: Rectangle) extends Rectangle(real.halfWidth, g.setColor(java.awt.Color.BLACK) drawPolygon(vertices) } -} +} \ No newline at end of file diff --git a/src/graphyx/graphics/GraphicalRegularPolygon.scala b/src/graphyx/graphics/GraphicalRegularPolygon.scala index 919b857..a3906c3 100644 --- a/src/graphyx/graphics/GraphicalRegularPolygon.scala +++ b/src/graphyx/graphics/GraphicalRegularPolygon.scala @@ -16,5 +16,4 @@ case class GraphicalRegularPolygon(real: RegularPolygon) extends RegularPolygon( g.setColor(java.awt.Color.BLACK) drawPolygon(vertices) } - -} +} \ No newline at end of file diff --git a/src/graphyx/graphics/GraphicalWorld.scala b/src/graphyx/graphics/GraphicalWorld.scala index 2837d69..abc9cbb 100644 --- a/src/graphyx/graphics/GraphicalWorld.scala +++ b/src/graphyx/graphics/GraphicalWorld.scala @@ -13,7 +13,16 @@ case class GraphicalWorld(real: World){ val iterations = real.iterations val overCWarning = real.overCWarning val gravity = real.gravity - val monitorResults = for (b <- real.bodies; m <- real.monitors; if (b.monitor)) yield "b" + b.uid.toString + " " + m._1 + ": " + m._2(b) + val monitorResults = for (m <- real.monitors) yield + new MonitorResult(m, + for (b <- real.bodies.toList; if (b.monitor)) yield (b.uid, m._1, m._2(b)) + ) + val monitorFlatResults = for (b <- real.bodies; m <- real.monitors; if (b.monitor)) yield (b.uid, m._1, m._2(b)) val enableCollisionDetection = real.enableCollisionDetection val enablePositionCorrection = real.enablePositionCorrection } + +class MonitorResult ( + val monitor: (String, Body => Any), + val results: List[(Int, String, Any)] +) diff --git a/src/graphyx/gui/AboutHelpFrame.scala b/src/graphyx/gui/AboutHelpFrame.scala index 4dba9f1..52bfb73 100644 --- a/src/graphyx/gui/AboutHelpFrame.scala +++ b/src/graphyx/gui/AboutHelpFrame.scala @@ -9,11 +9,13 @@ class AboutHelpFrame extends Frame { title = "About" contents = new TextArea( """|Graphyx, testing and visualization tool for SiMS. - | + | |copyright (c) 2009 Jakob Odersky |SiMS and Graphyx are made available under the MIT License | - |http://sourceforge.net/projects/simplemechanics/""".stripMargin + |http://sourceforge.net/projects/simplemechanics/ + | + |Version 1.1""".stripMargin ) {editable = false} } diff --git a/src/graphyx/gui/Container.scala b/src/graphyx/gui/Container.scala index 5181df7..80886f8 100644 --- a/src/graphyx/gui/Container.scala +++ b/src/graphyx/gui/Container.scala @@ -6,12 +6,14 @@ package graphyx.gui -import graphyx.graphics._ import sims.dynamics._ - +import graphyx.graphics._ +import java.io._ class Container { val mainFrame = new MainFrame(this) + //val plotFrames = new ArrayBuffer[plot.PlotFrame[Body]] + var scene: Scene = Scene(new World) def show() = { @@ -20,6 +22,7 @@ class Container { def update(s: Scene) = { scene = s + mainFrame.mainPanel.controlPanel.update() mainFrame.mainPanel.worldPanel.update() mainFrame.mainPanel.infoPanel.update() mainFrame.mainPanel.optionsPanel.update() @@ -29,5 +32,6 @@ class Container { def exitGUI() = { mainFrame.dispose AboutHelpFrame.frame.dispose + //plotFrames.foreach(_.dispose) } } diff --git a/src/graphyx/gui/ControlPanel.scala b/src/graphyx/gui/ControlPanel.scala index 2708d54..2cde7e6 100644 --- a/src/graphyx/gui/ControlPanel.scala +++ b/src/graphyx/gui/ControlPanel.scala @@ -6,6 +6,7 @@ package graphyx.gui +import graphyx._ import graphyx.actors._ import graphyx.gui._ import scala.swing._ @@ -33,4 +34,7 @@ class ControlPanel(container: Container) extends BoxPanel(Orientation.Horizontal case SelectionChanged(`cboTest`) => Graphyx.test = Graphyx.tests(cboTest.selection.index) } + def update() { + btnFire.enabled = Graphyx.test.enableEvent + } } diff --git a/src/graphyx/gui/InfoPanel.scala b/src/graphyx/gui/InfoPanel.scala index 484f3d7..6e58ba3 100644 --- a/src/graphyx/gui/InfoPanel.scala +++ b/src/graphyx/gui/InfoPanel.scala @@ -23,6 +23,6 @@ class InfoPanel(container: Container) extends BoxPanel(Orientation.Vertical){ out.text += "Warning: some bodies passed the speed of light! Simulation may be highly incorrect.\n" } else out.foreground = java.awt.Color.black - for (r <- container.scene.world.monitorResults) out.text += r + "\n" + for (r <- container.scene.world.monitorFlatResults) out.text += "b" + r._1 + " " + r._2 + ": " + r._3 + "\n" } } diff --git a/src/graphyx/gui/MainFrame.scala b/src/graphyx/gui/MainFrame.scala index 89812a5..6b1f2fe 100644 --- a/src/graphyx/gui/MainFrame.scala +++ b/src/graphyx/gui/MainFrame.scala @@ -6,6 +6,7 @@ package graphyx.gui +import graphyx._ import sims._ import scala.swing._ diff --git a/src/graphyx/gui/WorldPanel.scala b/src/graphyx/gui/WorldPanel.scala index cd91f00..7f9fbee 100644 --- a/src/graphyx/gui/WorldPanel.scala +++ b/src/graphyx/gui/WorldPanel.scala @@ -11,6 +11,8 @@ import sims.geometry._ import sims.dynamics._ import scala.swing._ import scala.swing.event._ +import scala.collection.mutable.Map +import scala.collection.mutable.Queue class WorldPanel(container: Container) extends BoxPanel(Orientation.Vertical){ cursor = new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR) @@ -44,8 +46,8 @@ class WorldPanel(container: Container) extends BoxPanel(Orientation.Vertical){ var drawCollisions = false var trace = false - override def paintComponent(g: java.awt.Graphics) = { - var parts: Seq[graphyx.graphics.Drawable] = Seq() + override def paintComponent(g: java.awt.Graphics2D) = { + var parts: Seq[Drawable] = Seq() if (drawShapes) parts ++= scene.shapes if (drawJoints) parts ++= scene.joints if (drawAABBs) parts ++= scene.aabbs @@ -60,7 +62,7 @@ class WorldPanel(container: Container) extends BoxPanel(Orientation.Vertical){ g.translate(-offset.x.toInt, offset.y.toInt) } - def drawAxes(g: java.awt.Graphics): Unit = { + def drawAxes(g: java.awt.Graphics2D): Unit = { g.setColor(java.awt.Color.GRAY) g.drawLine(0, size.height - offset.y.toInt, size.width, size.height - offset.y.toInt) g.drawLine(offset.x.toInt, 0, offset.x.toInt, size.height) @@ -72,7 +74,7 @@ class WorldPanel(container: Container) extends BoxPanel(Orientation.Vertical){ */ } - def drawParts(parts: Iterable[graphics.Drawable], g: java.awt.Graphics) = { + def drawParts(parts: Iterable[Drawable], g: java.awt.Graphics2D) = { for (p <- parts){ p.g = g p.windowHeight = super.size.height @@ -82,9 +84,8 @@ class WorldPanel(container: Container) extends BoxPanel(Orientation.Vertical){ } } - import collection.mutable._ - val prevPos: collection.mutable.Map[Int, collection.mutable.Queue[Vector2D]] = Map() - def trace(shapes: Iterable[graphics.GraphicalShape], g: java.awt.Graphics) = { + val prevPos: Map[Int, Queue[Vector2D]] = Map() + def trace(shapes: Iterable[GraphicalShape], g: java.awt.Graphics2D) = { for (s <- shapes) { s.g = g s.windowHeight = super.size.height diff --git a/src/graphyx/tests/Atom.scala b/src/graphyx/tests/Atom.scala index 84fe05c..31d03fc 100644 --- a/src/graphyx/tests/Atom.scala +++ b/src/graphyx/tests/Atom.scala @@ -22,6 +22,7 @@ object Atom extends Test{ connections = Nil } + enableEvent = true override def fireEvent = { val e = (new Circle(0.1, 10) {pos = Vector2D(0, -1)}).asBody e.linearVelocity = Vector2D(-50,100) diff --git a/src/graphyx/tests/Cannon.scala b/src/graphyx/tests/Cannon.scala new file mode 100644 index 0000000..7738103 --- /dev/null +++ b/src/graphyx/tests/Cannon.scala @@ -0,0 +1,59 @@ +package graphyx.tests + +import sims.dynamics._ +import sims.geometry._ +import sims.prefabs._ + +object Cannon extends Test{ + val title = "Cannon" + val world = new World + + def init = { + val cannon = new Prefab{ + val hull = new Body( + new Rectangle(0.1,0.5,1) {pos = Vector2D(0.1, 0.6); friction = 0.0}, + new Rectangle(0.1,0.5,1) {pos = Vector2D(0.5, 0.6); friction = 0.0}, + new Rectangle(0.1,0.1,1) {pos = Vector2D(0.3, 0.2); friction = 0.0} + ) + hull.fixed = true + hull.rotation -= Math.Pi / 2 + + val ball = new Body(new Circle(0.1,100) {pos = Vector2D(0.3, 0.56)}) + + override val bodies = List(hull, ball) + override val joints = Nil + } + val n = 10 + val r = 0.1 + val initialPos = Vector2D(5,0) + val stack = for (i <- (0 to n).toList) yield { + for (j <- (0 to n-i).toList) yield + new Body( + new Circle(r,10){ + pos = Vector2D(2 * j * r + i * r, 1.7 * i * r) + initialPos + } + ) {fixed = (i == 0)} + } + world += cannon + world ++= List.flatten(stack) + + } + + enableEvent = true + override def fireEvent() = blastBomb + + def blastBomb() = { + val bombPos = Vector2D(0, 0.56) + val bombRadius = 1 + val bombImpulse = 200 + val region = new Circle(bombRadius, 0) {pos = bombPos} + val detector = world.detector.asInstanceOf[sims.collision.GridDetector] + val collisions = for (s <- world.shapes; if detector.colliding(sims.collision.Pair(region, s))) yield detector.collision(sims.collision.Pair(region, s)) + for (c <- collisions) { + if (c.shape1 != region) + for(p <- c.points) c.shape1.body.applyImpulse((p - bombPos).unit * bombImpulse, p) + if (c.shape2 != region) + for(p <- c.points) c.shape2.body.applyImpulse((p - bombPos).unit * bombImpulse, p) + } + } +} diff --git a/src/graphyx/tests/EmptyTest.scala b/src/graphyx/tests/EmptyTest.scala index 585a053..0e3bd84 100644 --- a/src/graphyx/tests/EmptyTest.scala +++ b/src/graphyx/tests/EmptyTest.scala @@ -7,6 +7,7 @@ package graphyx.tests import sims.dynamics._ +import sims.geometry._ object EmptyTest extends Test{ override val title = "Empty Test" val world = new World diff --git a/src/graphyx/tests/Friction.scala b/src/graphyx/tests/Friction.scala index 268d054..ba9fb69 100644 --- a/src/graphyx/tests/Friction.scala +++ b/src/graphyx/tests/Friction.scala @@ -47,6 +47,7 @@ object Friction extends Test{ world += r3 } + enableEvent = true override def fireEvent = { world -= r1 world -= r2 diff --git a/src/graphyx/tests/Friction2.scala b/src/graphyx/tests/Friction2.scala index f6731e2..9d03bd9 100644 --- a/src/graphyx/tests/Friction2.scala +++ b/src/graphyx/tests/Friction2.scala @@ -20,10 +20,10 @@ object Friction2 extends Test{ friction = (i * 1.0 / 10) restitution = 0 }) - val ground = new Body(shapes: _*) //Rectangle(100, 0.1, 1).asBody + val ground = new Body(shapes: _*) ground.pos = Vector2D(0,0) ground.fixed = true - ground.rotation = -0.2 + ground.rotation = -Math.Pi / 5 world += ground val b: Body = (new Circle(0.1,10)) ~ (new Circle(0.1,10) {pos = Vector2D(0.2,0)}) ~ (new Circle(0.1,10) {pos = Vector2D(0.4,0)}) diff --git a/src/graphyx/tests/General1.scala b/src/graphyx/tests/General1.scala index 7d8703b..71e041b 100644 --- a/src/graphyx/tests/General1.scala +++ b/src/graphyx/tests/General1.scala @@ -106,6 +106,7 @@ object General1 extends Test{ world += (new Circle(0.1,1) {pos = Vector2D(2,2)}) ~ (new Circle(0.1,1) {pos = Vector2D(2,2.2)}) } + enableEvent = true override def fireEvent() = blastBomb def blastBomb() = { diff --git a/src/graphyx/tests/Spring.scala b/src/graphyx/tests/Spring.scala index 439259f..e7fecb8 100644 --- a/src/graphyx/tests/Spring.scala +++ b/src/graphyx/tests/Spring.scala @@ -7,23 +7,14 @@ import java.io._ object Spring extends Test{ val title = "Spring" - //val fout = new java.io.FileOutputStream("out.csv") - //val sout = new java.io.PrintStream(fout) - val world = new World { - override def postStep = { - //for (b <- bodies; if (b.monitor)) sout.println(monitors(0)._2(b)) - } - } + val world = new World def init = { val anchor = Circle(0.05, 10).asBody anchor.fixed = true - val particle = (new Circle(0.1, 10) {pos = Vector2D(0, -1)}).asBody - val spring = new SpringJoint(anchor, particle, 500, 0.6) - //val spring = new PrismaticJoint(anchor, particle) - spring.damping = 1 - particle.monitor = true - world.monitors += ("", _.pos.y.toString) + val particle = (new Circle(0.1, 20) {pos = Vector2D(0, -3)}).asBody + val spring = new SpringJoint(anchor, particle, 500, 2) + spring.damping = 0.5 world += anchor world += particle diff --git a/src/graphyx/tests/Test.scala b/src/graphyx/tests/Test.scala index b539283..ca0f8e8 100644 --- a/src/graphyx/tests/Test.scala +++ b/src/graphyx/tests/Test.scala @@ -11,6 +11,7 @@ trait Test { val world: World val title: String def init(): Unit + var enableEvent: Boolean = false def fireEvent(): Unit = println("No custom event method defined.") override def toString() = title } diff --git a/src/graphyx/tests/Wave.scala b/src/graphyx/tests/Wave.scala index 62ec194..d3359c1 100644 --- a/src/graphyx/tests/Wave.scala +++ b/src/graphyx/tests/Wave.scala @@ -11,17 +11,24 @@ object Wave extends Test{ def init = { val n = 50 - val anchors = for (i <- (0 to n).toList) yield (new Body(new Circle(0.01,1) {pos = Vector2D(0.4 * i, 5)}) {fixed = true}) - val particles = for (i <- (0 to n).toList) yield (new Body(new Circle(0.1,10) {pos = Vector2D(0.4 * i, 0)})) - val rails = (for (i <- (0 to n).toList) yield (new PrismaticJoint(anchors(i), particles(i)))) - val springs = (for (i <- (0 to n).toList) yield (new SpringJoint(anchors(i), particles(i), 5)))// {damping = 0.00})) - world ++= anchors - world ++= particles - for (j <- rails ++ springs) world += j - val lateralSprings = (for (i <- (0 to (n - 1)).toList) yield (new SpringJoint(particles(i), particles(i + 1), 50.0))) - for (j <- lateralSprings) world += j + val anchors = for (i <- (0 to n).toList) yield + new Body(new Circle(0.01,1) {pos = Vector2D(0.4 * i, 5)}) {fixed = true} + + val particles = for (i <- (0 to n).toList) yield + new Body(new Circle(0.1,10) {pos = Vector2D(0.4 * i, 0)}) + + val rails = for (i <- (0 to n).toList) yield + new PrismaticJoint(anchors(i), particles(i)) + + val springs = for (i <- (0 to n).toList) yield + new SpringJoint(anchors(i), particles(i), 5)// {damping = 0.00}) + val lateralSprings = for (i <- (0 to (n - 1)).toList) yield + new SpringJoint(particles(i), particles(i + 1), 50.0) + + world ++= anchors + world ++= particles + for (j <- rails ++ springs ++ lateralSprings) world += j } - } diff --git a/src/sims/collision/AABB.scala b/src/sims/collision/AABB.scala index ea696f2..f3a0b71 100644 --- a/src/sims/collision/AABB.scala +++ b/src/sims/collision/AABB.scala @@ -6,7 +6,7 @@ package sims.collision -import geometry._ +import sims.geometry._ /** * Axis Aligned Bounding Boxes (AABBs) are rectangles that frame a shape. diff --git a/src/sims/collision/CircleCollision.scala b/src/sims/collision/CircleCollision.scala index e77c8e2..04cf2d7 100644 --- a/src/sims/collision/CircleCollision.scala +++ b/src/sims/collision/CircleCollision.scala @@ -6,8 +6,8 @@ package sims.collision -import geometry._ -import dynamics._ +import sims.geometry._ +import sims.dynamics._ /**Collision between two circles.*/ case class CircleCollision(c1: Circle, c2: Circle) extends Collision { diff --git a/src/sims/collision/Collision.scala b/src/sims/collision/Collision.scala index ce09ac2..540081a 100644 --- a/src/sims/collision/Collision.scala +++ b/src/sims/collision/Collision.scala @@ -6,8 +6,8 @@ package sims.collision -import dynamics._ -import geometry._ +import sims.dynamics._ +import sims.geometry._ /**Collision between two shapes. Contains methods to compute the collision response.*/ abstract class Collision extends Constraint { diff --git a/src/sims/collision/Detector.scala b/src/sims/collision/Detector.scala index 0a3ad5b..96af5dc 100644 --- a/src/sims/collision/Detector.scala +++ b/src/sims/collision/Detector.scala @@ -9,8 +9,6 @@ package sims.collision import sims.geometry._ import sims.dynamics._ -import scala.collection._ -import scala.collection.mutable._ /**A world detects its collisions through concrete implementations of this class.*/ abstract class Detector { diff --git a/src/sims/collision/GridDetector.scala b/src/sims/collision/GridDetector.scala index f5ed99a..abc40f2 100644 --- a/src/sims/collision/GridDetector.scala +++ b/src/sims/collision/GridDetector.scala @@ -9,7 +9,8 @@ package sims.collision import sims.dynamics._ import sims.geometry._ import scala.collection._ -import scala.collection.mutable._ +import scala.collection.mutable.ArrayBuffer +import scala.collection.mutable.HashMap /**A conrete implementation of Detector. GridDetector divides the world into a grid * for faster collision detection.*/ diff --git a/src/sims/collision/PolyCollision.scala b/src/sims/collision/PolyCollision.scala index b4fa917..5296f41 100644 --- a/src/sims/collision/PolyCollision.scala +++ b/src/sims/collision/PolyCollision.scala @@ -9,7 +9,6 @@ package sims.collision import sims.geometry._ import sims.dynamics._ import scala.collection.mutable.Map -import scala.collection.mutable._ /**Collision between two convex polygons.*/ case class PolyCollision(p1: ConvexPolygon, p2: ConvexPolygon) extends Collision { diff --git a/src/sims/dynamics/World.scala b/src/sims/dynamics/World.scala index 0230a50..f24a3fd 100644 --- a/src/sims/dynamics/World.scala +++ b/src/sims/dynamics/World.scala @@ -9,7 +9,7 @@ package sims.dynamics import sims.geometry._ import sims.collision._ import sims.dynamics.joints._ -import scala.collection.mutable._ +import scala.collection.mutable.ArrayBuffer /**A world contains and simulates a system of rigid bodies and joints.*/ class World { @@ -35,7 +35,7 @@ class World { * Example usage: monitors += ("Y-Position", _.pos.y.toString) * This will calculate all bodies - whose monitor field is set to * true - second position components.*/ - val monitors = new ArrayBuffer[(String, Body => String)] + val monitors = new ArrayBuffer[(String, Body => Any)] /**Collsion detector who manages collision detection in this world.*/ val detector: Detector = new GridDetector(this) @@ -65,7 +65,7 @@ class World { def +=(joint: Joint): Unit = joints += joint /**Adds the given prefabricated system of bodies and joints to this world.*/ - def +=(p: prefabs.Prefab): Unit = { + def +=(p: sims.prefabs.Prefab): Unit = { for (b <- p.bodies) this += b for (j <- p.joints) this += j } @@ -80,7 +80,7 @@ class World { def -=(joint: Joint): Unit = joints -= joint /**Removes the given prefabricated system of bodies and joints from this world.*/ - def -=(p: prefabs.Prefab): Unit = { + def -=(p: sims.prefabs.Prefab): Unit = { for (b <- p.bodies) this -= b for (j <- p.joints) this -= j } @@ -113,12 +113,9 @@ class World { //integration of acclerations, yields velocities for (b <- bodies) { - val m = b.mass b.applyForce(gravity * b.mass) - val a = b.force / b.mass - val alpha = b.torque / b.I - b.linearVelocity = b.linearVelocity + a * timeStep - b.angularVelocity = b.angularVelocity + alpha * timeStep + b.linearVelocity = b.linearVelocity + (b.force / b.mass) * timeStep + b.angularVelocity = b.angularVelocity + (b.torque / b.I) * timeStep } //correction of velocities diff --git a/src/sims/dynamics/joints/DistanceJoint.scala b/src/sims/dynamics/joints/DistanceJoint.scala index efb49e5..1bf9b46 100644 --- a/src/sims/dynamics/joints/DistanceJoint.scala +++ b/src/sims/dynamics/joints/DistanceJoint.scala @@ -6,6 +6,7 @@ package sims.dynamics.joints +import sims.dynamics._ import sims.geometry._ /** DistanceJoints keep their connection points at a constant distance. diff --git a/src/sims/dynamics/joints/SpringJoint.scala b/src/sims/dynamics/joints/SpringJoint.scala index 1267ccf..4d44864 100644 --- a/src/sims/dynamics/joints/SpringJoint.scala +++ b/src/sims/dynamics/joints/SpringJoint.scala @@ -6,6 +6,7 @@ package sims.dynamics.joints +import sims.dynamics._ import sims.geometry._ /**A spring obeying Hooke's law. diff --git a/src/sims/dynamics/joints/test/PrismaticJoint.scala b/src/sims/dynamics/joints/test/PrismaticJoint.scala index d4b43b2..040647d 100644 --- a/src/sims/dynamics/joints/test/PrismaticJoint.scala +++ b/src/sims/dynamics/joints/test/PrismaticJoint.scala @@ -1,5 +1,7 @@ package sims.dynamics.joints.test +import sims.dynamics._ +import sims.dynamics.joints._ import sims.geometry._ case class PrismaticJoint(node1: Body, anchor1: Vector2D, node2: Body, anchor2: Vector2D) extends Joint{ diff --git a/src/sims/dynamics/joints/test/UnitCircleJoint.scala b/src/sims/dynamics/joints/test/UnitCircleJoint.scala index 64f613c..09e72d9 100644 --- a/src/sims/dynamics/joints/test/UnitCircleJoint.scala +++ b/src/sims/dynamics/joints/test/UnitCircleJoint.scala @@ -7,6 +7,7 @@ package sims.dynamics.joints.test import sims.dynamics._ +import sims.dynamics.joints._ import sims.geometry._ class UnitCircleJoint(body: Body, anchor: Vector2D) extends Joint{ -- cgit v1.2.3