1 /*******************************************************************************
\r
2 * Copyright (c) 2007- VTT Technical Research Centre of Finland.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the terms of the Eclipse Public License v1.0
\r
5 * which accompanies this distribution, and is available at
\r
6 * http://www.eclipse.org/legal/epl-v10.html
\r
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.proconf.g3d.tools;
\r
13 import java.util.ArrayList;
\r
15 import com.jme.scene.Node;
\r
16 import com.jme.scene.Spatial;
\r
18 public class ScenegraphLockTraverser {
\r
21 public ScenegraphLockTraverser(Node root, boolean lock) {
\r
27 private void lock(Spatial spatial) {
\r
32 if (spatial instanceof Node) {
\r
33 Node node = (Node)spatial;
\r
34 ArrayList<Spatial> children = node.getChildren();
\r
35 for (Spatial s : children) {
\r