Transform3D.java :  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dedit » scenegrapheditor » sourcecontrol » spec » javax » media » j3d » Java Open Source

Java Open Source » 6.0 JDK Modules » java 3d 
java 3d » org » jdesktop » j3dedit » scenegrapheditor » sourcecontrol » spec » javax » media » j3d » Transform3D.java
/*
 *  $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/sourcecontrol/spec/javax/media/j3d/Transform3D.java,v 1.1 2005/04/20 22:21:25 paulby Exp $
 *
 *                         Sun Public License Notice
 *
 *  The contents of this file are subject to the Sun Public License Version
 *  1.0 (the "License"). You may not use this file except in compliance with
 *  the License. A copy of the License is available at http://www.sun.com/
 *  
 *  The Original Code is the Java 3D(tm) Scene Graph Editor.
 *  The Initial Developer of the Original Code is Jan Becicka.
 *  Portions created by Jan Becicka are Copyright (C) 2002.
 *  All Rights Reserved.
 *  
 *  Contributor(s): Jan Becicka.
 *  
 **/
package org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d;

import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.NamePool;
import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.BeanCodeGenerator;
import javax.vecmath.Matrix4d;

/**
 *
 * @author  Jan Becicka
 * @version 
 */
public class Transform3D extends BeanCodeGenerator {


    public Transform3D(Object bean, NamePool naming) {
        super(bean, naming);
    }
    
    /** creates setters e.g. <CODE>t.setTransform(..);</CODE>
     */
    protected void createCustomizationCode() {
        // nothing to set
    }

    /** Override this method, if you want to create parametric constructor constr
     */
    protected void createConstructionCode() {
        javax.media.j3d.Transform3D trans = (javax.media.j3d.Transform3D) bean;
        Matrix4d mat = new Matrix4d();
        trans.get(mat);

        constructionCode = getFieldName() + " = new " + beanClassName + "(" + createIdentifier(mat) + ");\n";
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.