/******************************************************************************* * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. * 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.proconf.g3d.base; import java.util.Collection; import org.simantics.layer0.utils.IEntity; import com.jme.renderer.Renderer; import com.jme.scene.state.RenderState; /** * Interface for Appearance / Material * * * @author Marko Luukkainen * */ public interface AppearanceProvider { /** * Used to check if GeometryProvider can generate mesh * @param instance * @return */ public boolean canHandle(IEntity instance); /** * Generates mesh * @param instance * @param transform * @return */ public Collection getAppearanceFromResource(IEntity instance, Renderer renderer); }