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 'Follow path' constraint type in blender.
12  * @author Marcin Roguski (Kaelthas)
13  */
14 /*package*/ class ConstraintFollowPath extends Constraint {
15 	private static final Logger LOGGER = Logger.getLogger(ConstraintFollowPath.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 	 */
ConstraintFollowPath(Structure constraintStructure, Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext)32 	public ConstraintFollowPath(Structure constraintStructure, Long ownerOMA,
33 			Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {
34 		super(constraintStructure, ownerOMA, influenceIpo, blenderContext);
35 	}
36 
37 	@Override
bakeConstraint()38 	protected void bakeConstraint() {
39 		//TODO: implement when curves are implemented
40 		LOGGER.log(Level.INFO, "'Follow path' not implemented! Curves not yet implemented!");
41 	}
42 }
43