Class FilterAll

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

public class FilterAll extends Object implements BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter that returns true for most physics objects (or false for most physics objects) with specified exceptions.
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Constructor Details

    • FilterAll

      public FilterAll(boolean returnValue)
      Instantiate a filter with the specified default return value.
      Parameters:
      returnValue - the default value to be returned by displayObject() for non-exceptional arguments
  • Method Details

    • addException

      public void addException(Object exception)
      Add an exceptional object to the list.
      Parameters:
      exception - the object to add (not null, alias created)
    • clearExceptions

      public void clearExceptions()
      Clear the list of exceptions.
    • countExceptions

      public int countExceptions()
      Count how many exceptions there are.
      Returns:
      the count (≥0)
    • defaultReturnValue

      public boolean defaultReturnValue()
      Read the value returned by displayObject() for non-exceptional arguments.
      Returns:
      the boolean value
    • listExceptions

      public Object[] listExceptions()
      Enumerate the exceptions.
      Returns:
      a new array of pre-existing objects (not null)
    • removeException

      public void removeException(Object exception)
      Remove an object from the exceptions list.
      Parameters:
      exception - the object to remove (not null, unaffected)
    • 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 the object should be displayed/dumped, false if not