Newer
Older
RxSprout / app / src / main / java / java3d / TransformGroup.java
KeijuMatsumoto on 28 Nov 2017 580 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;		
	}
}