]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/proconf/g3d/tools/ScenegraphLockTraverser.java
Removing ancient 3d framework
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / proconf / g3d / tools / ScenegraphLockTraverser.java
diff --git a/org.simantics.g3d/src/org/simantics/proconf/g3d/tools/ScenegraphLockTraverser.java b/org.simantics.g3d/src/org/simantics/proconf/g3d/tools/ScenegraphLockTraverser.java
deleted file mode 100644 (file)
index 4f14e22..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************\r
- * Copyright (c) 2007- VTT Technical Research Centre of Finland.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.proconf.g3d.tools;\r
-\r
-import java.util.ArrayList;\r
-\r
-import com.jme.scene.Node;\r
-import com.jme.scene.Spatial;\r
-\r
-public class ScenegraphLockTraverser {\r
-       Node root;\r
-       boolean lock;\r
-       public ScenegraphLockTraverser(Node root, boolean lock) {\r
-               this.root = root;\r
-               this.lock = lock;\r
-               lock(root);\r
-       }\r
-       \r
-       private void lock(Spatial spatial) {\r
-               if (lock)\r
-                       spatial.lock();\r
-               else\r
-                       spatial.unlock();\r
-               if (spatial instanceof Node) {\r
-                       Node node = (Node)spatial;\r
-                       ArrayList<Spatial> children = node.getChildren();\r
-               for (Spatial s : children) {\r
-                       s.lock();\r
-                       lock(s);\r
-               }\r
-               }\r
-               \r
-       }\r
-}\r