Package org.jbox2d.testbed.tests
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) DebugDrawdebugDraw(package private) inte_maxCount(package private) CircleShapem_circle(package private) intm_count(package private) Transformm_transform(package private) IWorldPoolp
-
Constructor Summary
Constructors Constructor Description PolyShapesCallback(IWorldPool argWorld)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidDrawFixture(Fixture fixture)booleanreportFixture(Fixture fixture)Called for each fixture found in the query AABB.
-
-
-
Field Detail
-
e_maxCount
int e_maxCount
-
m_circle
CircleShape m_circle
-
m_transform
Transform m_transform
-
debugDraw
DebugDraw debugDraw
-
m_count
int m_count
-
p
IWorldPool p
-
-
Constructor Detail
-
PolyShapesCallback
public PolyShapesCallback(IWorldPool argWorld)
-
-
Method Detail
-
DrawFixture
void DrawFixture(Fixture fixture)
-
reportFixture
public boolean reportFixture(Fixture fixture)
Description copied from interface:QueryCallbackCalled for each fixture found in the query AABB.- Specified by:
reportFixturein interfaceQueryCallback- Returns:
- false to terminate the query.
-
-