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.base;
\r
13 import org.simantics.layer0.utils.IEntity;
\r
17 * Interface for geometryProviders
\r
19 * TODO : instead of using Geometry array, create class that is passed through
\r
20 * TODO : Current animation system links resources; what about code generated meshes ?
\r
22 * @author Marko Luukkainen
\r
25 public interface GeometryProvider {
\r
28 * Used to check if GeometryProvider can generate mesh
\r
32 public boolean canHandle(IEntity instance);
\r
40 public com.jme.scene.Geometry[] getGeometryFromResource(IEntity instance, boolean transform);
\r
49 public boolean reconstructGeometry(IEntity instance, boolean transform, com.jme.scene.Geometry[] geometry);
\r