Class ClassFilter

java.lang.Object
jme3utilities.minie.ClassFilter
All Implemented Interfaces:
BulletDebugAppState.DebugAppStateFilter

public class ClassFilter extends Object implements BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter to select objects that are assignable to a specific class. Instances are immutable.
  • Constructor Details

    • ClassFilter

      public ClassFilter(Class<?> clazz)
      Instantiate a filter for the specified class.
      Parameters:
      clazz - the class to select
  • Method Details

    • displayObject

      public boolean displayObject(Object physicsObject)
      Test whether the specified physics object should be displayed/dumped.
      Specified by:
      displayObject in interface BulletDebugAppState.DebugAppStateFilter
      Parameters:
      physicsObject - the joint or collision object to test (unaffected)
      Returns:
      return true if physicsObject should be displayed/dumped, false if it shouldn't be