• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.jme3.scene.plugins.blender.constraints;
2 
3 import java.util.logging.Level;
4 import java.util.logging.Logger;
5 
6 import com.jme3.scene.plugins.blender.BlenderContext;
7 import com.jme3.scene.plugins.blender.animations.Ipo;
8 import com.jme3.scene.plugins.blender.exceptions.BlenderFileException;
9 import com.jme3.scene.plugins.blender.file.Structure;
10 
11 /**
12  * The pivot constraint. Available for blender 2.50+.
13  * @author Marcin Roguski (Kaelthas)
14  */
15 /*package*/ class ConstraintPivot extends Constraint {
16 	private static final Logger LOGGER = Logger.getLogger(ConstraintPivot.class.getName());
17 
18 	/**
19 	 * This constructor creates the constraint instance.
20 	 *
21 	 * @param constraintStructure
22 	 *            the constraint's structure (bConstraint clss in blender 2.49).
23 	 * @param ownerOMA
24 	 *            the old memory address of the constraint owner
25 	 * @param influenceIpo
26 	 *            the ipo curve of the influence factor
27 	 * @param blenderContext
28 	 *            the blender context
29 	 * @throws BlenderFileException
30 	 *             this exception is thrown when the blender file is somehow
31 	 *             corrupted
32 	 */
ConstraintPivot(Structure constraintStructure, Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext)33 	public ConstraintPivot(Structure constraintStructure, Long ownerOMA, Ipo influenceIpo,
34 			BlenderContext blenderContext) throws BlenderFileException {
35 		super(constraintStructure, ownerOMA, influenceIpo, blenderContext);
36 		// TODO Auto-generated constructor stub
37 	}
38 
39 	@Override
bakeConstraint()40 	protected void bakeConstraint() {
41 		// TODO Auto-generated method stub
42 		LOGGER.log(Level.WARNING, "'Pivot' constraint NOT implemented!");
43 	}
44 }
45