Class PolyShapesCallback

java.lang.Object
org.jbox2d.testbed.tests.PolyShapesCallback
All Implemented Interfaces:
QueryCallback

class PolyShapesCallback extends java.lang.Object implements QueryCallback
This callback is called by b2World::QueryAABB. We find all the fixtures that overlap an AABB. Of those, we use b2TestOverlap to determine which fixtures overlap a circle. Up to 30 overlapped fixtures will be highlighted with a yellow border.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) DebugDraw
     
    (package private) int
     
    (package private) CircleShape
     
    (package private) int
     
    (package private) Transform
     
    (package private) IWorldPool
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
     
    boolean
    Called for each fixture found in the query AABB.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PolyShapesCallback

      public PolyShapesCallback(IWorldPool argWorld)
  • Method Details

    • DrawFixture

      void DrawFixture(Fixture fixture)
    • reportFixture

      public boolean reportFixture(Fixture fixture)
      Description copied from interface: QueryCallback
      Called for each fixture found in the query AABB.
      Specified by:
      reportFixture in interface QueryCallback
      Parameters:
      fixture -
      Returns:
      false to terminate the query.