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 org.simantics.proconf.g3d.gizmo;
\r
13 import com.jme.scene.Node;
\r
16 * Interface for gizmos, interactive components in the scene-graph.
\r
18 * @author Marko Luukkainen <Marko.Luukkainen@vtt.fi>
\r
21 public interface Gizmo {
\r
24 * Must return unique identifier for this gizmo
\r
27 public abstract String getPickPrefix();
\r
30 * Sets selected component (where mouse is hovering) by using its name.
\r
31 * Name includes pick prefix
\r
34 public abstract void setSelected(String name);
\r
37 * Returns root-node of the gizmo. It is used for inserting the gizmo into scenegraph.
\r
40 public abstract Node getNode();
\r
43 * Returns true if gizmo needs to be redrawn.
\r
46 public boolean isChanged();
\r
48 public void setChanged(boolean b);
\r