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.scenegraph;
\r
13 import java.util.Collection;
\r
15 import org.simantics.db.Graph;
\r
16 import org.simantics.db.Resource;
\r
17 import org.simantics.proconf.g3d.stubs.G3DNode;
\r
19 import com.jme.scene.Node;
\r
21 public interface IGraphicsNode {
\r
23 public IGraphicsNode getParent();
\r
25 public Node getGroup();
\r
27 public Resource getResource();
\r
30 * Disposes the node. Disposing of node that has children is not allowed.
\r
32 public void dispose();
\r
34 public void updateTransform(Graph graph);
\r
36 public G3DNode getG3DNode(Graph graph);
\r
38 public void addChild(IGraphicsNode node);
\r
39 public void removeChild(IGraphicsNode node);
\r
40 public Collection<IGraphicsNode> getChildren();
\r