]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/AppearanceProvider.java
git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@8613 ac1ea38d...
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / base / AppearanceProvider.java
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
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.base;\r
12 \r
13 import java.util.Collection;\r
14 \r
15 import org.simantics.layer0.utils.IEntity;\r
16 \r
17 import com.jme.renderer.Renderer;\r
18 import com.jme.scene.state.RenderState;\r
19 \r
20 \r
21 /**\r
22  * Interface for Appearance / Material\r
23  * \r
24  * \r
25  * @author Marko Luukkainen\r
26  *\r
27  */\r
28 public interface AppearanceProvider {\r
29     \r
30         /**\r
31          * Used to check if GeometryProvider can generate mesh\r
32          * @param instance\r
33          * @return\r
34          */\r
35     public boolean canHandle(IEntity instance);\r
36         \r
37     /**\r
38      * Generates mesh\r
39      * @param instance\r
40      * @param transform\r
41      * @return\r
42      */\r
43     public Collection<RenderState> getAppearanceFromResource(IEntity instance, Renderer renderer);\r
44     \r
45 \r
46 }\r