public class PhysicsDumper extends Dumper
The level of detail can be configured dynamically.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Constructor and Description |
|---|
PhysicsDumper()
Instantiate a PhysicsDumper that uses
System.out for output. |
PhysicsDumper(java.io.PrintStream printStream)
Instantiate a PhysicsDumper that uses the specified output stream.
|
| Modifier and Type | Method and Description |
|---|---|
PhysicsDumper |
clone()
Create a deep copy of this dumper.
|
void |
dump(CollisionShape shape,
java.lang.String indent)
Dump the specified CollisionShape.
|
void |
dump(MultiBodyCollider collider,
java.lang.String indent)
Dump the specified MultiBodyCollider.
|
void |
dump(PhysicsCharacter character,
java.lang.String indent)
Dump the specified PhysicsCharacter.
|
void |
dump(PhysicsGhostObject ghost,
java.lang.String indent)
Dump the specified PhysicsGhostObject.
|
void |
dump(PhysicsJoint joint,
java.lang.String indent)
Dump the specified PhysicsJoint in a PhysicsSpace context.
|
void |
dump(PhysicsRigidBody body,
java.lang.String indent)
Dump the specified PhysicsRigidBody.
|
void |
dump(PhysicsSoftBody body,
java.lang.String indent)
Dump the specified PhysicsSoftBody.
|
void |
dump(PhysicsSpace space)
Dump the specified PhysicsSpace.
|
void |
dump(PhysicsSpace space,
java.lang.String indent)
Dump the specified PhysicsSpace.
|
PhysicsDescriber |
getDescriber()
Access the Describer used by this Dumper.
|
boolean |
isEnabled(DumpFlags dumpFlag)
Test whether the specified dump flag is set.
|
PhysicsDumper |
setEnabled(DumpFlags dumpFlag,
boolean newValue)
Configure the specified dump flag.
|
addDescription, addLine, indentIncrement, setDescriber, setIndentIncrementpublic static final java.util.logging.Logger logger
public PhysicsDumper()
System.out for output.public PhysicsDumper(java.io.PrintStream printStream)
printStream - output stream (not null)public void dump(CollisionShape shape, java.lang.String indent)
shape - the shape to dump (not null, unaffected)indent - (not null)public void dump(MultiBodyCollider collider, java.lang.String indent)
collider - the collider to dump (not null, unaffected)indent - (not null)public void dump(PhysicsCharacter character, java.lang.String indent)
character - the character to dump (not null, unaffected)indent - (not null)public void dump(PhysicsGhostObject ghost, java.lang.String indent)
ghost - the ghost object to dump (not null, unaffected)indent - (not null)public void dump(PhysicsJoint joint, java.lang.String indent)
joint - the joint to dump (not null, unaffected)indent - (not null)public void dump(PhysicsRigidBody body, java.lang.String indent)
body - the rigid body to dump (not null, unaffected)indent - (not null)public void dump(PhysicsSoftBody body, java.lang.String indent)
body - the soft body to dump (not null, unaffected)indent - (not null)public void dump(PhysicsSpace space)
space - the PhysicsSpace to dump (not null, unaffected)public void dump(PhysicsSpace space, java.lang.String indent)
space - the PhysicsSpace to dump (not null, unaffected)indent - (not null, may be empty)public boolean isEnabled(DumpFlags dumpFlag)
dumpFlag - which flag to test (not null)public PhysicsDumper setEnabled(DumpFlags dumpFlag, boolean newValue)
dumpFlag - which flag to set (not null)newValue - true to enable output, false to disable itpublic PhysicsDumper clone() throws java.lang.CloneNotSupportedException
public PhysicsDescriber getDescriber()
getDescriber in class Dumper