|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.constraints.Constraint
public abstract class Constraint
The implementation of a constraint.
Nested Class Summary | |
---|---|
static class |
Constraint.Space
The space of target or owner transformation. |
Field Summary | |
---|---|
protected BlenderContext |
blenderContext
The blender context. |
protected Structure |
data
The structure with constraint's data. |
protected Ipo |
ipo
The ipo object defining influence. |
protected java.lang.String |
name
The name of this constraint. |
protected com.jme3.scene.plugins.blender.constraints.Feature |
owner
The constraint's owner. |
protected com.jme3.scene.plugins.blender.constraints.Feature |
target
The constraint's target. |
Constructor Summary | |
---|---|
Constraint(Structure constraintStructure,
java.lang.Long ownerOMA,
Ipo influenceIpo,
BlenderContext blenderContext)
This constructor creates the constraint instance. |
Method Summary | |
---|---|
void |
bake()
This method bakes the required sontraints into its owner. |
protected abstract void |
bakeConstraint()
Bake the animation's constraints into its owner. |
protected com.jme3.scene.plugins.blender.constraints.BlenderTrack |
getTrack(java.lang.Object owner,
Skeleton skeleton,
Animation animation)
This method returns the bone traces for the bone that is affected by the given constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected final com.jme3.scene.plugins.blender.constraints.Feature owner
protected final com.jme3.scene.plugins.blender.constraints.Feature target
protected final Structure data
protected final Ipo ipo
protected final BlenderContext blenderContext
Constructor Detail |
---|
public Constraint(Structure constraintStructure, java.lang.Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException
constraintStructure
- the constraint's structure (bConstraint clss in blender 2.49).ownerOMA
- the old memory address of the constraint ownerinfluenceIpo
- the ipo curve of the influence factorblenderContext
- the blender context
BlenderFileException
- this exception is thrown when the blender file is somehow
corruptedMethod Detail |
---|
public void bake()
protected abstract void bakeConstraint()
protected com.jme3.scene.plugins.blender.constraints.BlenderTrack getTrack(java.lang.Object owner, Skeleton skeleton, Animation animation)
skeleton
- the skeleton containing bonesboneAnimation
- the bone animation that affects the skeleton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |