Package jme3utilities.minie
Class PhysicsDumper
java.lang.Object
jme3utilities.debug.Dumper
jme3utilities.minie.PhysicsDumper
- All Implemented Interfaces:
Cloneable
public class PhysicsDumper
extends jme3utilities.debug.Dumper
Dump Minie data structures for debugging purposes.
The level of detail can be configured dynamically.
-
Field Summary
FieldsFields inherited from class jme3utilities.debug.Dumper
stream -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a PhysicsDumper that usesSystem.outfor output.PhysicsDumper(PrintStream printStream) Instantiate a PhysicsDumper that uses the specified output stream. -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a deep copy of this dumper.voidDump the specified AppState.voiddump(BulletAppState appState) Dump the specified BulletAppState.voiddump(CollisionShape shape, String indent) Dump the specified CollisionShape.voiddump(PhysicsJoint joint, String indent) Dump the specified PhysicsJoint in a PhysicsSpace context.voiddump(MultiBodyCollider collider, String indent) Dump the specified MultiBodyCollider.voiddump(PhysicsCharacter character, String indent) Dump the specified PhysicsCharacter.voiddump(PhysicsGhostObject ghost, String indent) Dump the specified PhysicsGhostObject.voiddump(PhysicsRigidBody body, String indent) Dump the specified PhysicsRigidBody.voiddump(PhysicsSoftBody body, String indent) Dump the specified PhysicsSoftBody.voiddump(PhysicsSpace space) Dump the specified PhysicsSpace.voiddump(PhysicsSpace space, String indent, BulletDebugAppState.DebugAppStateFilter filter) Dump the specified PhysicsSpace with the specified filter.voiddumpBas(BulletAppState appState, String indent) Dump the specified BulletAppState.Access the Describer used by this Dumper.booleanTest whether the specified dump flag is set.setEnabled(DumpFlags dumpFlag, boolean newValue) Configure the specified dump flag.Methods inherited from class jme3utilities.debug.Dumper
addDescription, addLine, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, dump, indentIncrement, isDumpBounds, isDumpBucket, isDumpCull, isDumpMatParam, isDumpOverride, isDumpShadow, isDumpTransform, isDumpUser, isDumpVertex, maxChildren, setDescriber, setDumpBounds, setDumpBucket, setDumpCull, setDumpMatParam, setDumpOverride, setDumpShadow, setDumpTransform, setDumpUser, setDumpVertex, setIndentIncrement, setMaxChildren
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
PhysicsDumper
public PhysicsDumper()Instantiate a PhysicsDumper that usesSystem.outfor output. -
PhysicsDumper
Instantiate a PhysicsDumper that uses the specified output stream.- Parameters:
printStream- output stream (not null)
-
-
Method Details
-
dump
Dump the specified BulletAppState.- Parameters:
appState- the app state to dump (not null, unaffected)
-
dump
Dump the specified CollisionShape.- Parameters:
shape- the shape to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified MultiBodyCollider.- Parameters:
collider- the collider to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsCharacter.- Parameters:
character- the character to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsGhostObject.- Parameters:
ghost- the ghost object to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsJoint in a PhysicsSpace context.- Parameters:
joint- the joint to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsRigidBody.- Parameters:
body- the rigid body to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsSoftBody.- Parameters:
body- the soft body to dump (not null, unaffected)indent- (not null)
-
dump
Dump the specified PhysicsSpace.- Parameters:
space- the PhysicsSpace to dump (not null, unaffected)
-
dump
Dump the specified PhysicsSpace with the specified filter. TODO dump a CollisionSpace- Parameters:
space- the PhysicsSpace to dump (not null, unaffected)indent- (not null, may be empty)filter- determines which physics objects are dumped, or null to dump all (unaffected)
-
dumpBas
Dump the specified BulletAppState.- Parameters:
appState- the app state to dump (not null, unaffected)indent- (not null)
-
isEnabled
Test whether the specified dump flag is set.- Parameters:
dumpFlag- which flag to test (not null)- Returns:
- true if output is enabled, otherwise false
-
setEnabled
Configure the specified dump flag.- Parameters:
dumpFlag- which flag to set (not null)newValue- true to enable output, false to disable it- Returns:
- this instance for chaining
-
clone
Create a deep copy of this dumper.- Overrides:
clonein classjme3utilities.debug.Dumper- Returns:
- a new instance, equivalent to this one, with its own Describer
- Throws:
CloneNotSupportedException- if the superclass isn't cloneable
-
dump
Dump the specified AppState.- Overrides:
dumpin classjme3utilities.debug.Dumper- Parameters:
appState- the AppState to dump (not null, unaffected)indent- (not null)
-
getDescriber
Access the Describer used by this Dumper.- Overrides:
getDescriberin classjme3utilities.debug.Dumper- Returns:
- the pre-existing instance (not null)
-