X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fscenegraph%2FNodeMap.java;h=6324d90e9f8be9b85f50c02af69286301accc16f;hb=9c5be9fa9ff5fece5710b9f21bcafca58388899d;hp=7e0f31e6439c02112d4ce45ba0b350eab263fb0a;hpb=b79406dcc167890ad62d43f0aa1baf1ce25b5e47;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/scenegraph/NodeMap.java b/org.simantics.g3d/src/org/simantics/g3d/scenegraph/NodeMap.java index 7e0f31e6..6324d90e 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/scenegraph/NodeMap.java +++ b/org.simantics.g3d/src/org/simantics/g3d/scenegraph/NodeMap.java @@ -1,59 +1,62 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 Association for Decentralized Information Management in - * Industry THTH ry. - * 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.g3d.scenegraph; - -import java.util.Collection; - -import org.simantics.g3d.scenegraph.base.INode; -import org.simantics.g3d.scenegraph.base.NodeListener; -import org.simantics.g3d.scenegraph.base.ParentNode; - -public interface NodeMap { - - public Collection getRenderObjects(INode node); - - public void updateRenderObjectsFor(INode node); - - public INode getNode(T t); - - public ParentNode getRootNode(); - - /** - * Commit changes to the database. - */ - public void commit(); - - - /** - * Deletes (Disposes) the map. - */ - public void delete(); - - - /** - * Track changes that are going to be committed into the database. - * - * Disabling change tracking causes commit() to do nothing. - * @param enabled - */ - public void setChangeTracking(boolean enabled); - public boolean isChangeTracking(); - - - /** - * Add listener for all scene-graph events. - * @param listener - */ - public void addListener(NodeListener listener); - - public void removeListener(NodeListener listener); -} +/******************************************************************************* + * Copyright (c) 2012, 2013 Association for Decentralized Information Management in + * Industry THTH ry. + * 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.g3d.scenegraph; + +import java.util.Collection; + +import org.simantics.g3d.scenegraph.base.INode; +import org.simantics.g3d.scenegraph.base.NodeListener; +import org.simantics.g3d.scenegraph.base.ParentNode; +import org.simantics.objmap.graph.IMapping; + +public interface NodeMap { + + public Collection getRenderObjects(E node); + + public void updateRenderObjectsFor(E node); + + public E getNode(T t); + + public ParentNode getRootNode(); + + /** + * Commit changes to the database. + */ + public void commit(); + + + /** + * Deletes (Disposes) the map. + */ + public void delete(); + + + /** + * Track changes that are going to be committed into the database. + * + * Disabling change tracking causes commit() to do nothing. + * @param enabled + */ + public void setChangeTracking(boolean enabled); + public boolean isChangeTracking(); + + + /** + * Add listener for all scene-graph events. + * @param listener + */ + public void addListener(NodeListener listener); + + public void removeListener(NodeListener listener); + + public IMapping getMapping(); +}