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
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package fi.vtt.simantics.processeditor.scenegraph;
\r
13 import org.simantics.db.Graph;
\r
14 import org.simantics.db.Resource;
\r
15 import org.simantics.proconf.g3d.scenegraph.IGraphicsNode;
\r
16 import org.simantics.proconf.g3d.scenegraph.NonTransformableNode;
\r
18 import fi.vtt.simantics.processeditor.ProcessResource;
\r
20 public class NonVisibleNode extends NonTransformableNode {
\r
22 public NonVisibleNode(IGraphicsNode parent, Graph graph, Resource resource) {
\r
23 super(parent,resource);
\r
24 if (!getG3DNode(graph).isInstanceOf(ProcessResource.plant3Dresource.NonVisibleComponent))
\r
25 throw new RuntimeException("Resource must be instance of NonVisibleComponent");
\r