Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.DebugBehaviorVRHandPose Class Reference

Debug BehaviorVRHandPose. More...

Inheritance diagram for Dragengine.Debugging.DebugBehaviorVRHandPose:
Dragengine.Scenery.DefaultECAttachableBehavior

Public Member Functions

void addToGameWorld ()
ECBehaviorVRHandPose.Instance getBehavior ()
bool getBoneCoordSystemsVisible ()
 Bone coordinate systems are visible.
bool getPoseWithController ()
 Get use bone pose with controller.
bool getSkeletonVisible ()
 Skeleton is visible.
DebugBehaviorVRHandPose new (ECBehaviorVRHandPose.Instance behavior)
 Create debug instance for behavior.
void onAddToElement ()
 Behavior has been added to element.
void onRemoveFromElement ()
 Behavior has been removed from element.
void postThink (float elapsed)
void removeFromGameWorld ()
void setBoneCoordSystemsVisible (bool visible)
 Set if bone coordinate systems are visible.
void setPoseWithController (bool withController)
 Set use bone pose with controller.
void setSkeletonVisible (bool visible)
 Set if skeleton is visible.
Public Member Functions inherited from Dragengine.Scenery.DefaultECAttachableBehavior
void attachToParent (Element parent)
void dispose ()
void enterFrame ()
void geometryChanged ()
BehaviorElement getElement ()
DefaultECAttachableBehavior new ()
 Create default attachable behavior instance.
String persistencyFactoryName ()
bool requiresEnterFrame ()
bool requiresThink ()
void safeDispose ()
 Remove from element if present then call dispose().
void setElement (BehaviorElement element)
void stateChanged ()
void think (float elapsed)
void writeObjectToFile (PersistencyEnvironment env, FileWriter writer)

Public Attributes

ECBehaviorVRHandPose.Instance pBehavior
DebugDrawer pDDSkeleton
float pLengthCoordAxis
float pLengthFingerTip
bool pPoseWithController
float pThicknessCoordAxis
float pThicknessSkeletonLine
Public Attributes inherited from Dragengine.Scenery.DefaultECAttachableBehavior
BehaviorElement pElement
bool pRequiresEnterFrame
bool pRequiresThink

Protected Member Functions

void addCoordSystem (ShapeList shapesX, ShapeList shapesY, ShapeList shapesZ, Matrix matrix)
void addCoordSystem (ShapeList shapesX, ShapeList shapesY, ShapeList shapesZ, Matrix matrix, float scale)
void addLineShape (ShapeList shapes, InputDevice device, int indexHead)
void addLineShape (ShapeList shapes, InputDevice device, int indexHead, int indexTail)
InputDevice getInputDevice ()
void log (String message)
void update ()
void updateCoordSystems (InputDevice device, DMatrix matrix)
void updateSkeleton (InputDevice device, DMatrix matrix)
Protected Member Functions inherited from Dragengine.Scenery.DefaultECAttachableBehavior
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called.
void setRequiresThink (bool required)
 Set if behavior instance requires think() and postThink() to be called.

Detailed Description

Debug BehaviorVRHandPose.

Version
1.23

To use create an instance of DebugBehaviorVRHandPose with the behavior to monitor then call BehaviorElement#addAttachableBehavior(). The debug class attaches to the behavior element owning the behavior instance. To remove the debug class from the behavior element call safeDispose().

Displays a debug skeleton.

Member Function Documentation

◆ addCoordSystem() [1/2]

void Dragengine.Debugging.DebugBehaviorVRHandPose.addCoordSystem ( ShapeList shapesX,
ShapeList shapesY,
ShapeList shapesZ,
Matrix matrix )
protected

Referenced by log().

◆ addCoordSystem() [2/2]

void Dragengine.Debugging.DebugBehaviorVRHandPose.addCoordSystem ( ShapeList shapesX,
ShapeList shapesY,
ShapeList shapesZ,
Matrix matrix,
float scale )
protected

◆ addLineShape() [1/2]

void Dragengine.Debugging.DebugBehaviorVRHandPose.addLineShape ( ShapeList shapes,
InputDevice device,
int indexHead )
protected

◆ addLineShape() [2/2]

void Dragengine.Debugging.DebugBehaviorVRHandPose.addLineShape ( ShapeList shapes,
InputDevice device,
int indexHead,
int indexTail )
protected

References getBoneCoordSystemsVisible().

Referenced by log().

◆ addToGameWorld()

void Dragengine.Debugging.DebugBehaviorVRHandPose.addToGameWorld ( )

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

Referenced by log().

◆ getBehavior()

ECBehaviorVRHandPose.Instance Dragengine.Debugging.DebugBehaviorVRHandPose.getBehavior ( )

\ brief Monitored behavior.

References pDDSkeleton.

Referenced by removeFromGameWorld().

◆ getBoneCoordSystemsVisible()

bool Dragengine.Debugging.DebugBehaviorVRHandPose.getBoneCoordSystemsVisible ( )

Bone coordinate systems are visible.

References pDDSkeleton.

Referenced by addLineShape().

◆ getInputDevice()

InputDevice Dragengine.Debugging.DebugBehaviorVRHandPose.getInputDevice ( )
protected

References pDDSkeleton.

Referenced by log().

◆ getPoseWithController()

bool Dragengine.Debugging.DebugBehaviorVRHandPose.getPoseWithController ( )

Get use bone pose with controller.

If true returns bone pose as accurate as possible to the real hand position. If false remaps the pose to simulate not holding the controller in hand.

References pLengthCoordAxis, pLengthFingerTip, pThicknessCoordAxis, and pThicknessSkeletonLine.

Referenced by log().

◆ getSkeletonVisible()

bool Dragengine.Debugging.DebugBehaviorVRHandPose.getSkeletonVisible ( )

Skeleton is visible.

References pDDSkeleton.

Referenced by onRemoveFromElement().

◆ log()

◆ new()

DebugBehaviorVRHandPose Dragengine.Debugging.DebugBehaviorVRHandPose.new ( ECBehaviorVRHandPose.Instance behavior)

Create debug instance for behavior.

References new(), pBehavior, and pDDSkeleton.

Referenced by log(), new(), and setBoneCoordSystemsVisible().

◆ onAddToElement()

void Dragengine.Debugging.DebugBehaviorVRHandPose.onAddToElement ( )

Behavior has been added to element.

Called by setElement() after element has been set in these situations:

  • BehaviorElement#addAttachableBehavior()
  • BehaviorElement#readFromFile()

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

Referenced by log().

◆ onRemoveFromElement()

void Dragengine.Debugging.DebugBehaviorVRHandPose.onRemoveFromElement ( )

Behavior has been removed from element.

Called by setElement() before element is set to null in these situations:

  • BehaviorElement#removeAttachableBehavior()

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

References getSkeletonVisible().

Referenced by log().

◆ postThink()

void Dragengine.Debugging.DebugBehaviorVRHandPose.postThink ( float elapsed)

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

Referenced by log().

◆ removeFromGameWorld()

void Dragengine.Debugging.DebugBehaviorVRHandPose.removeFromGameWorld ( )

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

References getBehavior(), and pBehavior.

Referenced by log().

◆ setBoneCoordSystemsVisible()

void Dragengine.Debugging.DebugBehaviorVRHandPose.setBoneCoordSystemsVisible ( bool visible)

Set if bone coordinate systems are visible.

References new().

Referenced by addCoordSystem().

◆ setPoseWithController()

void Dragengine.Debugging.DebugBehaviorVRHandPose.setPoseWithController ( bool withController)

Set use bone pose with controller.

If true returns bone pose as accurate as possible to the real hand position. If false remaps the pose to simulate not holding the controller in hand.

References pPoseWithController, and Dragengine.Scenery.DefaultECAttachableBehavior.setRequiresThink().

Referenced by log().

◆ setSkeletonVisible()

void Dragengine.Debugging.DebugBehaviorVRHandPose.setSkeletonVisible ( bool visible)

Set if skeleton is visible.

References pDDSkeleton.

Referenced by updateSkeleton().

◆ update()

void Dragengine.Debugging.DebugBehaviorVRHandPose.update ( )
protected

Referenced by log().

◆ updateCoordSystems()

void Dragengine.Debugging.DebugBehaviorVRHandPose.updateCoordSystems ( InputDevice device,
DMatrix matrix )
protected

Referenced by log().

◆ updateSkeleton()

void Dragengine.Debugging.DebugBehaviorVRHandPose.updateSkeleton ( InputDevice device,
DMatrix matrix )
protected

References pDDSkeleton, and setSkeletonVisible().

Referenced by log().

Member Data Documentation

◆ pBehavior

ECBehaviorVRHandPose.Instance Dragengine.Debugging.DebugBehaviorVRHandPose.pBehavior

Referenced by log(), new(), and removeFromGameWorld().

◆ pDDSkeleton

DebugDrawer Dragengine.Debugging.DebugBehaviorVRHandPose.pDDSkeleton

◆ pLengthCoordAxis

float Dragengine.Debugging.DebugBehaviorVRHandPose.pLengthCoordAxis

Referenced by getPoseWithController().

◆ pLengthFingerTip

float Dragengine.Debugging.DebugBehaviorVRHandPose.pLengthFingerTip

Referenced by getPoseWithController().

◆ pPoseWithController

bool Dragengine.Debugging.DebugBehaviorVRHandPose.pPoseWithController

Referenced by log(), and setPoseWithController().

◆ pThicknessCoordAxis

float Dragengine.Debugging.DebugBehaviorVRHandPose.pThicknessCoordAxis

Referenced by getPoseWithController().

◆ pThicknessSkeletonLine

float Dragengine.Debugging.DebugBehaviorVRHandPose.pThicknessSkeletonLine

Referenced by getPoseWithController().


The documentation for this class was generated from the following file: