~seh999/jcog/proto3

« back to all changes in this revision

Viewing changes to spacetime/src.render.soft.new/opencog/spacetime/render/soft/softviewer/Environment.java

  • Committer: SeH
  • Date: 2009-09-19 22:59:48 UTC
  • Revision ID: seh999@gmail.com-20090919225948-q3ab80xa57i74mm6
start of major jReality refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
import java.awt.Color;
44
44
 
45
 
import opencog.spacetime.math.Rn;
46
 
import opencog.spacetime.scene.*;
47
 
import opencog.spacetime.scene.data.AttributeEntityUtility;
 
45
import opencog.math.Rn;
48
46
import opencog.spacetime.shader.CommonAttributes;
49
47
import opencog.spacetime.shader.CubeMap;
 
48
import opencog.spacetime.space.*;
 
49
import opencog.spacetime.space.data.AttributeEntityUtility;
50
50
 
51
51
 
52
52
/**
56
56
 * @author <a href="mailto:hoffmann@math.tu-berlin.de">Tim Hoffmann</a>
57
57
 *
58
58
 */
59
 
public final class Environment extends SceneGraphVisitor {
 
59
public final class Environment extends SpaceVisitor {
60
60
 
61
61
 
62
62
    //protected EffectiveAppearance eAppearance;
187
187
     * This starts the traversal of a SceneGraph starting form root.
188
188
     * @param root
189
189
     */
190
 
    public void traverse(SceneGraphComponent root) {
 
190
    public void traverse(SpaceComponent root) {
191
191
        removeAll();
192
192
        if (initialTrafo == null)
193
193
            initialTrafo= new double[16];
222
222
        visit(root);
223
223
    }
224
224
 
225
 
    public void visit(SceneGraphComponent c) {
 
225
    public void visit(SpaceComponent c) {
226
226
        c.childrenAccept(subContext());
227
227
    }
228
228