/******************************************************************************* * Copyright (c) 2007- VTT Technical Research Centre of Finland. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.processeditor.scenegraph; import org.simantics.db.Graph; import org.simantics.db.Resource; import org.simantics.processeditor.ProcessResource; import org.simantics.proconf.g3d.scenegraph.IGraphicsNode; import org.simantics.proconf.g3d.scenegraph.NonTransformableNode; public class NonVisibleNode extends NonTransformableNode { public NonVisibleNode(IGraphicsNode parent, Graph graph, Resource resource) { super(parent,resource); if (!getG3DNode(graph).isInstanceOf(ProcessResource.plant3Dresource.NonVisibleComponent)) throw new RuntimeException("Resource must be instance of NonVisibleComponent"); } }