Home | History | Annotate | Download | only in constraints
      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 'Action' constraint type in blender.
     12  * @author Marcin Roguski (Kaelthas)
     13  */
     14 /*package*/ class ConstraintLockTrack extends Constraint {
     15 	private static final Logger LOGGER = Logger.getLogger(ConstraintLockTrack.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 ConstraintLockTrack(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 'Lock track' constraint
     41 		LOGGER.log(Level.WARNING, "'Lock track' constraint NOT implemented!");
     42 	}
     43 }
     44