Package jme3utilities.minie
Class FilterAll
java.lang.Object
jme3utilities.minie.FilterAll
- All Implemented Interfaces:
BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter that returns true for most physics objects (or
false for most physics objects) with specified exceptions.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFilterAll
(boolean returnValue) Instantiate a filter with the specified default return value. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addException
(Object exception) Add an exceptional object to the list.void
Clear the list of exceptions.int
Count how many exceptions there are.boolean
Return the value returned by displayObject() for non-exceptional arguments.boolean
displayObject
(Object physicsObject) Test whether the specified physics object should be displayed/dumped.Object[]
Enumerate the exceptions.void
removeException
(Object exception) Remove an object from the exceptions list.
-
Field Details
-
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
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()Return the value returned by displayObject() for non-exceptional arguments.- Returns:
- the boolean value
-
listExceptions
Enumerate the exceptions.- Returns:
- a new array of pre-existing objects (not null)
-
removeException
Remove an object from the exceptions list.- Parameters:
exception
- the object to remove (not null, unaffected)
-
displayObject
Test whether the specified physics object should be displayed/dumped.- Specified by:
displayObject
in interfaceBulletDebugAppState.DebugAppStateFilter
- Parameters:
physicsObject
- the joint or collision object to test (unaffected)- Returns:
- return true if the object should be displayed/dumped, false if not
-