public abstract class Constraint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
baked
Indicates if the constraint is already baked or not.
|
protected BlenderContext |
blenderContext
The blender context.
|
protected ConstraintDefinition |
constraintDefinition |
protected ConstraintHelper |
constraintHelper |
protected Ipo |
ipo
The ipo object defining influence.
|
protected java.lang.String |
name
The name of this constraint.
|
protected java.lang.Long |
ownerOMA |
protected ConstraintHelper.Space |
ownerSpace |
protected java.lang.String |
subtargetName |
protected java.lang.Long |
targetOMA |
protected ConstraintHelper.Space |
targetSpace |
Constructor and Description |
---|
Constraint(Structure constraintStructure,
java.lang.Long ownerOMA,
Ipo influenceIpo,
BlenderContext blenderContext)
This constructor creates the constraint instance.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(int frame)
Applies the constraint to owner (and in some cases can alter other bones of the skeleton).
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<java.lang.Long> |
getAlteredOmas() |
java.lang.String |
getConstraintTypeName() |
abstract java.lang.Long |
getTargetOMA() |
int |
hashCode() |
boolean |
isImplemented() |
boolean |
isTrackToBeChanged() |
java.lang.String |
toString() |
abstract boolean |
validate()
Performs validation before baking.
|
protected final java.lang.String name
protected boolean baked
protected ConstraintHelper.Space ownerSpace
protected final ConstraintDefinition constraintDefinition
protected java.lang.Long ownerOMA
protected java.lang.Long targetOMA
protected ConstraintHelper.Space targetSpace
protected java.lang.String subtargetName
protected final Ipo ipo
protected final BlenderContext blenderContext
protected final ConstraintHelper constraintHelper
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 contextBlenderFileException
- this exception is thrown when the blender file is somehow
corruptedpublic boolean isImplemented()
public java.lang.String getConstraintTypeName()
public java.util.Set<java.lang.Long> getAlteredOmas()
public abstract boolean validate()
public abstract java.lang.Long getTargetOMA()
public void apply(int frame)
frame
- the frame of the animationpublic boolean isTrackToBeChanged()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object