de.jreality.util
Class CopyVisitor

java.lang.Object
  extended by de.jreality.scene.SceneGraphVisitor
      extended by de.jreality.util.CopyVisitor

public class CopyVisitor
extends SceneGraphVisitor

Creates a copy of the visited SceneGraphNode. The copy may be accessed with getCopy(). Note: The copied attributes do not include children (for SceneGraphComponents).

Author:
Steffen Weissmann

Constructor Summary
CopyVisitor()
           
 
Method Summary
 void copyAttr(Appearance src, Appearance dst)
           
 void copyAttr(Camera src, Camera dst)
           
 void copyAttr(Cylinder src, Cylinder dst)
           
 void copyAttr(DirectionalLight src, DirectionalLight dst)
           
 void copyAttr(Geometry src, Geometry dst)
           
 void copyAttr(IndexedFaceSet src, IndexedFaceSet dst)
           
 void copyAttr(IndexedLineSet src, IndexedLineSet dst)
           
 void copyAttr(Light src, Light dst)
           
 void copyAttr(PointSet src, PointSet dst)
           
 void copyAttr(SceneGraphComponent src, SceneGraphComponent dst)
           
 void copyAttr(SceneGraphNode src, SceneGraphNode dst)
           
 void copyAttr(Sphere src, Sphere dst)
           
 void copyAttr(SpotLight src, SpotLight dst)
           
 void copyAttr(Transformation src, Transformation dst)
           
 SceneGraphNode getCopy()
           
 void visit(Appearance a)
           
 void visit(Camera c)
           
 void visit(ClippingPlane c)
           
 void visit(Cylinder c)
           
 void visit(DirectionalLight l)
           
 void visit(IndexedFaceSet i)
           
 void visit(IndexedLineSet g)
           
 void visit(PointLight l)
           
 void visit(PointSet p)
           
 void visit(SceneGraphComponent c)
           
 void visit(SceneGraphNode m)
           
 void visit(Sphere s)
           
 void visit(SpotLight l)
           
 void visit(Transformation t)
           
 
Methods inherited from class de.jreality.scene.SceneGraphVisitor
visit, visit, visit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyVisitor

public CopyVisitor()
Method Detail

getCopy

public SceneGraphNode getCopy()

visit

public void visit(Appearance a)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(Camera c)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(Cylinder c)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(DirectionalLight l)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(IndexedFaceSet i)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(IndexedLineSet g)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(PointSet p)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(SceneGraphComponent c)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(Sphere s)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(SpotLight l)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(ClippingPlane c)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(PointLight l)
Overrides:
visit in class SceneGraphVisitor

visit

public void visit(Transformation t)
Overrides:
visit in class SceneGraphVisitor

copyAttr

public void copyAttr(SceneGraphNode src,
                     SceneGraphNode dst)

copyAttr

public void copyAttr(SceneGraphComponent src,
                     SceneGraphComponent dst)

copyAttr

public void copyAttr(Appearance src,
                     Appearance dst)

copyAttr

public void copyAttr(Transformation src,
                     Transformation dst)

copyAttr

public void copyAttr(Light src,
                     Light dst)

copyAttr

public void copyAttr(DirectionalLight src,
                     DirectionalLight dst)

copyAttr

public void copyAttr(SpotLight src,
                     SpotLight dst)

copyAttr

public void copyAttr(Geometry src,
                     Geometry dst)

copyAttr

public void copyAttr(Sphere src,
                     Sphere dst)

copyAttr

public void copyAttr(Cylinder src,
                     Cylinder dst)

copyAttr

public void copyAttr(PointSet src,
                     PointSet dst)

copyAttr

public void copyAttr(IndexedLineSet src,
                     IndexedLineSet dst)

copyAttr

public void copyAttr(IndexedFaceSet src,
                     IndexedFaceSet dst)

copyAttr

public void copyAttr(Camera src,
                     Camera dst)

visit

public void visit(SceneGraphNode m)
Overrides:
visit in class SceneGraphVisitor