Drag[en]gine Script Module DragonScript  1.23
Dragengine.Debugging.DebugBehaviorVRHandPose Class Reference

Debug BehaviorVRHandPose. \versoin 1.23. 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. More...
 
bool getPoseWithController ()
 Get use bone pose with controller. More...
 
bool getSkeletonVisible ()
 Skeleton is visible. More...
 
DebugBehaviorVRHandPose new (ECBehaviorVRHandPose.Instance behavior)
 Create debug instance for behavior. More...
 
void onAddToElement ()
 Behavior has been added to element. More...
 
void onRemoveFromElement ()
 Behavior has been removed from element. More...
 
void postThink (float elapsed)
 
void removeFromGameWorld ()
 
void setBoneCoordSystemsVisible (bool visible)
 Set if bone coordinate systems are visible. More...
 
void setPoseWithController (bool withController)
 Set use bone pose with controller. More...
 
void setSkeletonVisible (bool visible)
 Set if skeleton is visible. More...
 
- 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. More...
 
String persistencyFactoryName ()
 
bool requiresEnterFrame ()
 
bool requiresThink ()
 
void safeDispose ()
 Remove from element if present then call dispose(). More...
 
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. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() and postThink() to be called. More...
 

Detailed Description

Debug BehaviorVRHandPose. \versoin 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

◆ 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

◆ addToGameWorld()

void Dragengine.Debugging.DebugBehaviorVRHandPose.addToGameWorld ( )

◆ getBehavior()

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

\ brief Monitored behavior.

◆ getBoneCoordSystemsVisible()

bool Dragengine.Debugging.DebugBehaviorVRHandPose.getBoneCoordSystemsVisible ( )

Bone coordinate systems are visible.

◆ getInputDevice()

InputDevice Dragengine.Debugging.DebugBehaviorVRHandPose.getInputDevice ( )
protected

◆ 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.

◆ getSkeletonVisible()

bool Dragengine.Debugging.DebugBehaviorVRHandPose.getSkeletonVisible ( )

Skeleton is visible.

◆ log()

void Dragengine.Debugging.DebugBehaviorVRHandPose.log ( String  message)
protected

◆ new()

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

Create debug instance for behavior.

◆ 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.

◆ 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.

◆ postThink()

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

◆ removeFromGameWorld()

void Dragengine.Debugging.DebugBehaviorVRHandPose.removeFromGameWorld ( )

◆ setBoneCoordSystemsVisible()

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

Set if bone coordinate systems are visible.

◆ 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.

◆ setSkeletonVisible()

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

Set if skeleton is visible.

◆ update()

void Dragengine.Debugging.DebugBehaviorVRHandPose.update ( )
protected

◆ updateCoordSystems()

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

◆ updateSkeleton()

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

Member Data Documentation

◆ pBehavior

ECBehaviorVRHandPose.Instance Dragengine.Debugging.DebugBehaviorVRHandPose.pBehavior

◆ pDDSkeleton

DebugDrawer Dragengine.Debugging.DebugBehaviorVRHandPose.pDDSkeleton

◆ pLengthCoordAxis

float Dragengine.Debugging.DebugBehaviorVRHandPose.pLengthCoordAxis

◆ pLengthFingerTip

float Dragengine.Debugging.DebugBehaviorVRHandPose.pLengthFingerTip

◆ pPoseWithController

bool Dragengine.Debugging.DebugBehaviorVRHandPose.pPoseWithController

◆ pThicknessCoordAxis

float Dragengine.Debugging.DebugBehaviorVRHandPose.pThicknessCoordAxis

◆ pThicknessSkeletonLine

float Dragengine.Debugging.DebugBehaviorVRHandPose.pThicknessSkeletonLine

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