159b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartapackage com.jme3.scene.plugins.blender.constraints; 259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 359b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport com.jme3.scene.plugins.blender.BlenderContext; 459b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport com.jme3.scene.plugins.blender.animations.Ipo; 559b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport com.jme3.scene.plugins.blender.exceptions.BlenderFileException; 659b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport com.jme3.scene.plugins.blender.file.Structure; 759b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport java.util.logging.Level; 859b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartaimport java.util.logging.Logger; 959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 1059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta/** 1159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * This class represents 'Transform' constraint type in blender. 1259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @author Marcin Roguski (Kaelthas) 1359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta */ 1459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta/*package*/ class ConstraintTransform extends Constraint { 1559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta private static final Logger LOGGER = Logger.getLogger(ConstraintAction.class.getName()); 1659b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 1759b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta /** 1859b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * This constructor creates the constraint instance. 1959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * 2059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @param constraintStructure 2159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * the constraint's structure 2259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @param ownerOMA 2359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * the old memory address of the constraint owner 2459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @param influenceIpo 2559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * the ipo curve of the influence factor 2659b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @param blenderContext 2759b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * the blender context 2859b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @throws BlenderFileException 2959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * this exception is thrown when the blender file is somehow 3059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * corrupted 3159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta */ 3259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta public ConstraintTransform(Structure constraintStructure, Long ownerOMA, 3359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException { 3459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta super(constraintStructure, ownerOMA, influenceIpo, blenderContext); 3559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta } 3659b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 3759b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta @Override 3859b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta protected void bakeConstraint() { 3959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta // TODO: implement 'Transform' constraint 4059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta LOGGER.log(Level.WARNING, "'Transform' constraint NOT implemented!"); 4159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta } 4259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta} 43