ConstraintAction.java revision 59b2e6871c65f58fdad78cd7229c292f6a177578
1package com.jme3.scene.plugins.blender.constraints;
2
3import com.jme3.scene.plugins.blender.BlenderContext;
4import com.jme3.scene.plugins.blender.animations.Ipo;
5import com.jme3.scene.plugins.blender.exceptions.BlenderFileException;
6import com.jme3.scene.plugins.blender.file.Structure;
7import java.util.logging.Level;
8import java.util.logging.Logger;
9
10/**
11 * This class represents 'Action' constraint type in blender.
12 * @author Marcin Roguski (Kaelthas)
13 */
14/*package*/ class ConstraintAction extends Constraint {
15	private static final Logger LOGGER = Logger.getLogger(ConstraintAction.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 ConstraintAction(Structure constraintStructure, Long ownerOMA,
33			Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {
34		super(constraintStructure, ownerOMA, influenceIpo, blenderContext);
35	}
36
37	@Override
38	protected void bakeConstraint() {
39		// TODO: implement 'Action' constraint
40		LOGGER.log(Level.WARNING, "'Action' constraint NOT implemented!");
41	}
42}
43