]> gerrit.simantics Code Review - simantics/3d.git/blob - dev/org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/scenegraph/IGraphicsNode.java
a72aa5f185b26981512216159982786f1ed152a3
[simantics/3d.git] / dev / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / scenegraph / IGraphicsNode.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\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
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.scenegraph;\r
12 \r
13 import java.util.Collection;\r
14 \r
15 import org.simantics.db.Graph;\r
16 import org.simantics.db.Resource;\r
17 import org.simantics.proconf.g3d.stubs.G3DNode;\r
18 \r
19 import com.jme.scene.Node;\r
20 \r
21 public interface IGraphicsNode {\r
22 \r
23     public IGraphicsNode getParent();\r
24 \r
25     public Node getGroup();\r
26 \r
27     public Resource getResource();\r
28 \r
29     /**\r
30      * Disposes the node. Disposing of node that has children is not allowed.\r
31      */\r
32     public void dispose();\r
33 \r
34     public void updateTransform(Graph graph);\r
35     \r
36     public G3DNode getG3DNode(Graph graph);\r
37     \r
38     public void addChild(IGraphicsNode node);\r
39     public void removeChild(IGraphicsNode node);\r
40     public Collection<IGraphicsNode> getChildren();\r
41 \r
42     \r
43 \r
44 }