Back to project page Look.
The source code is released under:
====================== LOOK! LICENSING TERMS ====================== look! is licensed under the BSD 3-Clause (also known as "BSD New" or "BSD Simplified"), as follows: Copyright (c) 2010-2012, Look...
If you think the Android project Look listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** *----------------------------------------------------------------------------- * Copyright (c) 2012, Look! Development Team * All rights reserved./* www.j a va2 s .c o m*/ * * Distributed under the terms of the BSD Simplified License. * * The full license is in the LICENSE file, distributed with this software. *----------------------------------------------------------------------------- */ package es.ucm.look.data; import es.ucm.look.ar.ar2D.drawables.Text2D; import es.ucm.look.ar.ar3D.core.drawables.primitives.Cube; /** * A general world entity factory. Creates world entities from type and * properties. Must be extended for add functionality * * @author ??ngel Serrano * */ public class WorldEntityFactory { protected Cube cube = new Cube(); /** * Creates a world entity for the given data * * @param data * the data */ public WorldEntity createWorldEntity(EntityData data) { WorldEntity w = new WorldEntity(data); w.setDrawable2D(new Text2D( "Entiy " + data.getId() + "; Type: " + data.getType())); w.setDrawable3D(cube); return w; } }