1 package com.jme3.scene.plugins.blender.constraints; 2 3 import com.jme3.scene.plugins.blender.BlenderContext; 4 import com.jme3.scene.plugins.blender.animations.Ipo; 5 import com.jme3.scene.plugins.blender.exceptions.BlenderFileException; 6 import com.jme3.scene.plugins.blender.file.Structure; 7 import java.util.logging.Level; 8 import java.util.logging.Logger; 9 10 /** 11 * This class represents 'Clamp to' constraint type in blender. 12 * @author Marcin Roguski (Kaelthas) 13 */ 14 /*package*/ class ConstraintClampTo extends Constraint { 15 private static final Logger LOGGER = Logger.getLogger(ConstraintClampTo.class.getName()); 16 17 /** 18 * This constructor creates the constraint instance. 19 * 20 * @param constraintStructure 21 * the constraint's structure (bConstraint clss in blender 2.49). 22 * @param ownerOMA 23 * the old memory address of the constraint owner 24 * @param influenceIpo 25 * the ipo curve of the influence factor 26 * @param blenderContext 27 * the blender context 28 * @throws BlenderFileException 29 * this exception is thrown when the blender file is somehow 30 * corrupted 31 */ 32 public ConstraintClampTo(Structure constraintStructure, Long ownerOMA, 33 Ipo influenceIpo, BlenderContext blenderContext) 34 throws BlenderFileException { 35 super(constraintStructure, ownerOMA, influenceIpo, blenderContext); 36 } 37 38 @Override 39 protected void bakeConstraint() { 40 //TODO: implement when curves are implemented 41 LOGGER.log(Level.INFO, "'Clamp to' not yet implemented! Curves not yet implemented!", name); 42 } 43 } 44