Newer
Older
CarrotServer / src / java3d / TransformGroup.java
t-nakanishi on 18 Jul 2017 609 bytes [add] project
package java3d;

import java.util.Enumeration;

public class TransformGroup extends Group {

	private Transform3D transform;	
	
	public TransformGroup() {
		this(new Transform3D());
	}
	
	public TransformGroup(Transform3D transform) {
		this.transform = transform;
	}
	
	public void setTransform(Transform3D transform) {
		this.transform = transform;
	}
	
	public void getTransform(Transform3D transform) {
		transform.set(this.transform);
	}
	
	public Node cloneTree() {
		TransformGroup newInstance = new TransformGroup(new Transform3D(transform));
		return newInstance;		
	}
}